From f5c79105a4087362f2b95ecbc359ccecbf4910c9 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Fri, 16 Jul 2010 00:00:29 +0000 Subject: 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 --- rbutil/mkamsboot/dualboot/dualboot.S | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'rbutil/mkamsboot/dualboot') diff --git a/rbutil/mkamsboot/dualboot/dualboot.S b/rbutil/mkamsboot/dualboot/dualboot.S index d6a8d3701c..77fb4dec7d 100644 --- a/rbutil/mkamsboot/dualboot/dualboot.S +++ b/rbutil/mkamsboot/dualboot/dualboot.S @@ -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 */ -- cgit v1.2.3