Update README.md

This commit is contained in:
bunnie 2020-09-25 17:38:11 +08:00 committed by GitHub
parent a90728a7fa
commit b028167c5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,9 +52,7 @@ The following files need manual adjustment:
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 exact size allocated for it anyways in hardware. The final loadable image is created by
`cat`ing the loader and the kernel together, and writing it to location 0x2050_0000 (SPI ROM offset 0x50_0000), using
the `provision-xous.sh` script inside [betrusted-scipts](https://github.com/betrusted-io/betrusted-scripts/blob/master/provision-xous.sh)
running on a Raspberry Pi 4 with the appropriate debug hat attached.
`cat`ing the loader and the kernel together.
```
riscv64-unknown-elf-objcopy loader/target/riscv32imac-unknown-none-elf/release/loader -O binary loader_raw.bin
@ -62,6 +60,9 @@ dd if=loader_raw.bin of=loader.bin bs=1024 count=64
cat loader.bin target/args.bin > xous.img
```
The image should be written to location 0x2050_0000 (SPI ROM offset 0x50_0000), using
the `provision-xous.sh` script inside [betrusted-scipts](https://github.com/betrusted-io/betrusted-scripts/blob/master/provision-xous.sh)
running on a Raspberry Pi 4 with the appropriate debug hat attached.
## Try It Out on a Desktop