Give the Gigabeat S bootloader the ability to untar a tarball.

To test a build, use 'make tar' and send the tar to the unit. The bootloader will unarchive it and delete it before loading the main binary.
This is a temporary hack to make testing possible until we have a better way of sending a complete build.
Also enable writing to the disk by disabling the optimised write stubs.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16338 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nicolas Pennequin 2008-02-17 23:17:08 +00:00
parent 4a06c87e78
commit e2f5f21e5b
3 changed files with 102 additions and 14 deletions

View file

@ -128,9 +128,11 @@ void ata_device_init(void)
ATA_TIME_9 = (T + 20)/T;
}
#if 0
#if !defined(BOOTLOADER)
void copy_write_sectors(const unsigned char* buf, int wordcount)
{
(void)buf; (void)wordcount;
}
#endif
#endif

View file

@ -22,10 +22,12 @@
/* Plain C read & write loops */
#define PREFER_C_READING
#define PREFER_C_WRITING
#if 0
#if !defined(BOOTLOADER)
#define ATA_OPTIMIZED_WRITING
void copy_write_sectors(const unsigned char* buf, int wordcount);
#endif
#endif
#define ATA_DATA ATA_DRIVE_DATA
#define ATA_ERROR ATA_DRIVE_FEATURES