1
0
Fork 0
forked from len0rd/rockbox

Prepare for a new bootloader 7-pre4 release for iriver H100 series. Synced to work properly with SVN, and hopefully fixed remote detection problem and audio thump for some users. Also pure H100/H115 should be supported now. Actual bootloaders will be released separately.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16252 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Miika Pekkarinen 2008-02-09 15:06:09 +00:00
parent c6e9b8b7e1
commit 698113d9db
4 changed files with 82 additions and 39 deletions

View file

@ -27,7 +27,7 @@
unsigned char *audiobuf;
ssize_t audiobuf_size;
#if defined(IRIVER_H120)
#ifdef IRIVER_H100_SERIES
#define PLATFORM_ID ID_IRIVER_H100
#else
#undef PLATFORM_ID /* this platform is not (yet) flashable */
@ -329,7 +329,7 @@ int load_firmware_file(const char *filename, uint32_t *checksum)
}
/* Verify the checksum */
sum = 0;
sum = MODEL_NUMBER;
for (i = 0; i < len; i++)
sum += audiobuf[i];
@ -344,7 +344,12 @@ int load_firmware_file(const char *filename, uint32_t *checksum)
unsigned long valid_bootloaders[][2] = {
/* Size-8 CRC32 */
#ifdef IRIVER_H120 /* Iriver H120/H140 checksums */
{ 63788, 0x08ff01a9 }, /* 7-pre3, improved failsafe functions */
{ 48764, 0xc674323e }, /* 7-pre4. Fixed audio thump & remote bootup */
#endif
#ifdef IRIVER_H100
#endif
{ 0, 0 }
};
@ -483,7 +488,7 @@ int flash_rockbox(const char *filename, int section)
p8 = (char *)get_section_address(section);
p8 += sizeof(struct flash_header);
sum = 0;
sum = MODEL_NUMBER;
for (i = 0; i < len; i++)
sum += p8[i];
@ -573,7 +578,7 @@ int flash_bootloader(const char *filename)
/* Verify */
p8 = (char *)BOOTLOADER_ENTRYPOINT;
sum = 0;
sum = MODEL_NUMBER;
for (i = 0; i < len; i++)
sum += p8[i];