Fix: on board
This commit is contained in:
2
Makefile
2
Makefile
@@ -38,7 +38,7 @@ OBJS := $(SRCS:%=%.o)
|
||||
|
||||
.PHONY: all build clean clean_target run kernel debug gdb
|
||||
|
||||
all:
|
||||
all: $(CPIO)
|
||||
$(MAKE) build TARGET_DIR=./kernel TARGET=kernel8
|
||||
$(MAKE) build TARGET_DIR=./bootloader TARGET=bootloader
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ void main(void *dtb)
|
||||
uart_puts("waiting for kernel to be sent ..." ENDL);
|
||||
|
||||
union {
|
||||
int size;
|
||||
int32_t size;
|
||||
uint8_t buf[4];
|
||||
} kernel_header;
|
||||
kernel_header.size = 0;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
ENTRY(_start)
|
||||
MEMORY
|
||||
{
|
||||
TEXT (rx) : ORIGIN = 0x80000, LENGTH = 128K
|
||||
RO (r) : ORIGIN = 0xa0000, LENGTH = 128K
|
||||
DATA (rw) : ORIGIN = 0x100000, LENGTH = 512K
|
||||
RAM (rw) : ORIGIN = 0x180000, LENGTH = 64M
|
||||
TEXT (rx) : ORIGIN = 0x80000, LENGTH = 64K
|
||||
RO (r) : ORIGIN = 0x90000, LENGTH = 16K
|
||||
DATA (rw) : ORIGIN = 0x94000, LENGTH = 64K
|
||||
RAM (rw) : ORIGIN = 0xa4000, LENGTH = 64M
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
|
||||
BIN
misc/bootcode.bin
Normal file
BIN
misc/bootcode.bin
Normal file
Binary file not shown.
@@ -1,3 +1,4 @@
|
||||
initramfs initramfs.cpio 0x20000000
|
||||
initramfs initramfs.cpio
|
||||
kernel=bootloader.img
|
||||
enable_uart=1
|
||||
arm_64bit=1
|
||||
|
||||
BIN
misc/fixup.dat
Normal file
BIN
misc/fixup.dat
Normal file
Binary file not shown.
Reference in New Issue
Block a user