mkamsboot: fix some Clipv2 that we used to brick
commit88cda7eb2677a5d36141cd4d0b94c98457213ccb
authorRafaël Carré <funman@videolan.org>
Tue, 31 Jan 2012 19:18:25 +0000 (31 14:18 -0500)
committerRafaël Carré <funman@videolan.org>
Tue, 31 Jan 2012 19:23:53 +0000 (31 14:23 -0500)
treeb7fe49d7411aa451e9e92b71adb15a987b70c498
parent54044fd6e9739376cd0df28c26afea66f295a4d3
mkamsboot: fix some Clipv2 that we used to brick

On those models the software bootloader is entered through the SWI vector,
not through the reset vector like we thought.

Use put_uint32le() instead of memcpy
Use mov pc, #0x200 instead of b 0x200, so we can use the same instruction
for both vectors.

Tested on Clipv2 and Clip Zip

Change-Id: I99dc24167dde5558d34fe9795c65b44ff91aa665
rbutil/mkamsboot/mkamsboot.c