From 38172b25607a967fd3afe67bc5ba95975e84ce42 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 25 Sep 2020 17:31:44 +0800 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8ec805ffa..0021ffceb 100644 --- a/README.md +++ b/README.md @@ -50,10 +50,12 @@ The following files need manual adjustment: * examples/graphics-server/src/backend/betrusted.rs needs a correct address for the "control" data structure (based on csr.csv) * kernel/src/debug.rs:7 needs a correct UART base, based on csr.csv -Create the loader.bin from the .elf: +Create the loader.bin from the .elf. `objcopy` adds several hundred megabytes of zero at the end of `loader.bin` so just +take the first 64kiB, which is the max size allocated for it anyways in hardware. ``` -riscv64-unknown-elf-objcopy loader/target/riscv32imac-unknown-none-elf/release/loader -O binary loader.bin +riscv64-unknown-elf-objcopy loader/target/riscv32imac-unknown-none-elf/release/loader -O binary loader_raw.bin +dd if=loader_raw.bin of=loader.bin bs=1024 count=64 ```