1
0
Fork 0
forked from len0rd/rockbox

mkimxboot/fuze+: fix booting to the OF

Change-Id: I51db192d9c88952173acac6558941ba6421a31dd
This commit is contained in:
Amaury Pouly 2012-02-28 20:59:59 +01:00
parent d96a32d01a
commit c735ff2ac0
2 changed files with 3 additions and 3 deletions

View file

@ -3,8 +3,8 @@
#include "dualboot.h" #include "dualboot.h"
unsigned char dualboot_fuzeplus[128] = { unsigned char dualboot_fuzeplus[128] = {
0x70, 0x40, 0x2d, 0xe9, 0x5c, 0x20, 0x9f, 0xe5, 0x00, 0x20, 0x92, 0xe5, 0x01, 0x01, 0x12, 0xe3, 0x60, 0x20, 0x9f, 0xe5, 0x00, 0x20, 0x92, 0xe5, 0x01, 0x01, 0x12, 0xe3, 0x00, 0x00, 0xa0, 0x03,
0x00, 0x00, 0xa0, 0x03, 0x1e, 0xff, 0x2f, 0x01, 0x4c, 0x20, 0x9f, 0xe5, 0x00, 0x40, 0xa0, 0xe3, 0x1e, 0xff, 0x2f, 0x01, 0x70, 0x40, 0x2d, 0xe9, 0x4c, 0x20, 0x9f, 0xe5, 0x00, 0x40, 0xa0, 0xe3,
0x48, 0x30, 0x9f, 0xe5, 0x00, 0x30, 0x93, 0xe5, 0x03, 0x35, 0xa0, 0xe1, 0x23, 0x3f, 0xa0, 0xe1, 0x48, 0x30, 0x9f, 0xe5, 0x00, 0x30, 0x93, 0xe5, 0x03, 0x35, 0xa0, 0xe1, 0x23, 0x3f, 0xa0, 0xe1,
0x01, 0x00, 0x53, 0xe3, 0x03, 0x40, 0x84, 0x00, 0x01, 0x20, 0x52, 0xe2, 0xf7, 0xff, 0xff, 0x1a, 0x01, 0x00, 0x53, 0xe3, 0x03, 0x40, 0x84, 0x00, 0x01, 0x20, 0x52, 0xe2, 0xf7, 0xff, 0xff, 0x1a,
0x2c, 0x20, 0x9f, 0xe5, 0x02, 0x00, 0x54, 0xe1, 0x02, 0x00, 0x00, 0x3a, 0x00, 0x00, 0x81, 0xe5, 0x2c, 0x20, 0x9f, 0xe5, 0x02, 0x00, 0x54, 0xe1, 0x02, 0x00, 0x00, 0x3a, 0x00, 0x00, 0x81, 0xe5,

View file

@ -23,7 +23,6 @@
.global start .global start
@ int start(uint32_t arg, uint32_t *result_id) @ int start(uint32_t arg, uint32_t *result_id)
start: start:
stmfd sp!, {r4-r6,lr}
#if defined(SANSA_FUZEPLUS) #if defined(SANSA_FUZEPLUS)
/* If volume down key is hold, return so that the OF can boot */ /* If volume down key is hold, return so that the OF can boot */
ldr r2, =0x80018610 @ HW_PINCTRL_DIN1 ldr r2, =0x80018610 @ HW_PINCTRL_DIN1
@ -32,6 +31,7 @@ start:
moveq r0, #0 @ return 0, continue boot moveq r0, #0 @ return 0, continue boot
bxeq lr bxeq lr
/* otherwise monitor the power button for a short time */ /* otherwise monitor the power button for a short time */
stmfd sp!, {r4-r6,lr}
ldr r2, =550000 @ loop count ldr r2, =550000 @ loop count
ldr r4, =0 @ number of times PSWITCH was 1 ldr r4, =0 @ number of times PSWITCH was 1
pswitch_monitor_loop: pswitch_monitor_loop: