forked from len0rd/rockbox
The model and type strings are only 4 characters long. Also remove the 20 at the start of the version string - it should never have been there.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12839 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
58038d86f1
commit
ca8f7bf352
1 changed files with 5 additions and 5 deletions
|
@ -187,10 +187,10 @@ int load_mi4(unsigned char* buf, char* firmware, unsigned int buffer_size)
|
||||||
printf("CRC32: %x", mi4header.crc32);
|
printf("CRC32: %x", mi4header.crc32);
|
||||||
|
|
||||||
/* Rockbox model id */
|
/* Rockbox model id */
|
||||||
printf("Model id: %4s", mi4header.model);
|
printf("Model id: %.4s", mi4header.model);
|
||||||
|
|
||||||
/* Read binary type (RBOS, RBBL) */
|
/* Read binary type (RBOS, RBBL) */
|
||||||
printf("Binary type: %4s", mi4header.type);
|
printf("Binary type: %.4s", mi4header.type);
|
||||||
|
|
||||||
/* Load firmware */
|
/* Load firmware */
|
||||||
lseek(fd, MI4_HEADER_SIZE, SEEK_SET);
|
lseek(fd, MI4_HEADER_SIZE, SEEK_SET);
|
||||||
|
@ -245,10 +245,10 @@ int load_mi4_part(unsigned char* buf, struct partinfo* pinfo, unsigned int buffe
|
||||||
printf("CRC32: %x", mi4header.crc32);
|
printf("CRC32: %x", mi4header.crc32);
|
||||||
|
|
||||||
/* Rockbox model id */
|
/* Rockbox model id */
|
||||||
printf("Model id: %4s", mi4header.model);
|
printf("Model id: %.4s", mi4header.model);
|
||||||
|
|
||||||
/* Read binary type (RBOS, RBBL) */
|
/* Read binary type (RBOS, RBBL) */
|
||||||
printf("Binary type: %4s", mi4header.type);
|
printf("Binary type: %.4s", mi4header.type);
|
||||||
|
|
||||||
/* Load firmware */
|
/* Load firmware */
|
||||||
ata_read_sectors(pinfo->start + PPMI_SECTOR_OFFSET + PPMI_SECTORS
|
ata_read_sectors(pinfo->start + PPMI_SECTOR_OFFSET + PPMI_SECTORS
|
||||||
|
@ -298,7 +298,7 @@ void* main(void)
|
||||||
lcd_setfont(FONT_SYSFIXED);
|
lcd_setfont(FONT_SYSFIXED);
|
||||||
|
|
||||||
printf("Rockbox boot loader");
|
printf("Rockbox boot loader");
|
||||||
printf("Version: 20%s", version);
|
printf("Version: %s", version);
|
||||||
printf(MODEL_NAME);
|
printf(MODEL_NAME);
|
||||||
|
|
||||||
i=ata_init();
|
i=ata_init();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue