mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
fix the e200r installer so it compiles again (storage rework broke it)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19195 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5d21c8cb1d
commit
76e662b8e5
1 changed files with 4 additions and 4 deletions
|
@ -139,9 +139,9 @@ void* main(void)
|
||||||
printf("reading: %x", (START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK)*512);
|
printf("reading: %x", (START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK)*512);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
storage_read_sectors(IF_MV2(0,)
|
storage_read_sectors(0,
|
||||||
pinfo->start + START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK,
|
pinfo->start + START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK,
|
||||||
1 , sector);
|
1 , sector);
|
||||||
crc32 = chksum_crc32 (sector, 512);
|
crc32 = chksum_crc32 (sector, 512);
|
||||||
|
|
||||||
#if 0 /* not needed in release builds */
|
#if 0 /* not needed in release builds */
|
||||||
|
@ -161,7 +161,7 @@ void* main(void)
|
||||||
/* E200R bootloader detected - patch it */
|
/* E200R bootloader detected - patch it */
|
||||||
memcpy(§or[HACK_OFFSET], changedBytes,
|
memcpy(§or[HACK_OFFSET], changedBytes,
|
||||||
sizeof(changedBytes)/sizeof(*changedBytes));
|
sizeof(changedBytes)/sizeof(*changedBytes));
|
||||||
storage_write_sectors(IF_MV2(0,)
|
storage_write_sectors(0,
|
||||||
pinfo->start + START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK,
|
pinfo->start + START_SECTOR_OF_ROM + ROMSECTOR_TO_HACK,
|
||||||
1 , sector);
|
1 , sector);
|
||||||
printf("Firmware unlocked");
|
printf("Firmware unlocked");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue