mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
mkamsboot: fix for newer fuzev2
These models are restricted to OF >= v02.3.31, probably because of a hardware change The OF checks a version string located between 0x0 and 0x200 in the firmware block, so let's keep this part unmodified We put our dualboot code at 0x200, and insert a branch + vectors at 0x0 That way our patched file will present the OF version to the fuzev2 OF patching it, and we only waste 512 bytes on other models git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27441 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6d732a32bc
commit
f5c79105a4
4 changed files with 162 additions and 173 deletions
|
|
@ -51,20 +51,9 @@
|
|||
#error i2c prescaler too big!
|
||||
#endif
|
||||
|
||||
/* Vectors */
|
||||
b start @ skip our data
|
||||
|
||||
ldr pc, =start /* reset vector */
|
||||
/* next vectors are unused, halt cpu */
|
||||
1: b 1b
|
||||
1: b 1b
|
||||
1: b 1b
|
||||
1: b 1b
|
||||
1: b 1b
|
||||
1: b 1b
|
||||
1: b 1b
|
||||
|
||||
|
||||
/* These values are filled in by mkamsboot - don't move them from offset 0x20 */
|
||||
/* These values are filled in by mkamsboot - don't move them from offset 0x4 */
|
||||
|
||||
uclunpack_end: .word 0 /* End of the ucl_unpack function */
|
||||
uclunpack_size: .word 0 /* Size in bytes of the ucl_unpack function */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue