mkamsboot: fix for newer fuzev2
commit4d4df9e7931832b1d5d034e4e0a9a1f5fdb11bb1
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Fri, 16 Jul 2010 00:00:29 +0000 (16 00:00 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Fri, 16 Jul 2010 00:00:29 +0000 (16 00:00 +0000)
treea2adb6783082f52b136e58d96dbdc315f3c2993e
parent3722e41837b9573a02c0ca1eefd46b1b9e20ccfc
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.c
rbutil/mkamsboot/dualboot.h
rbutil/mkamsboot/dualboot/dualboot.S
rbutil/mkamsboot/mkamsboot.c