Move loadPayload to fs.c, and the path to the beginning of the chainloader
This commit is contained in:
@@ -11,7 +11,7 @@ void main(void)
|
||||
FIL payload;
|
||||
unsigned int read;
|
||||
|
||||
f_open(&payload, (char *)0x24F02000, FA_READ);
|
||||
f_open(&payload, (char *)0x24F00004, FA_READ);
|
||||
f_read(&payload, (void *)PAYLOAD_ADDRESS, f_size(&payload), &read);
|
||||
f_close(&payload);
|
||||
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
.align 4
|
||||
.global _start
|
||||
_start:
|
||||
b start
|
||||
|
||||
.word 0, 0, 0, 0, 0, 0, 0
|
||||
|
||||
start:
|
||||
@ Flush caches
|
||||
mov r0, #0
|
||||
mcr p15, 0, r0, c7, c5, 0 @ flush I-cache
|
||||
|
||||
Reference in New Issue
Block a user