Move loadPayload to fs.c, and the path to the beginning of the chainloader

This commit is contained in:
Aurora
2016-04-29 17:21:34 +02:00
parent 85615d1916
commit df112b550b
7 changed files with 18 additions and 40 deletions

View File

@@ -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);

View File

@@ -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