mirror of
https://github.com/rcore-os/rCore.git
synced 2024-11-24 00:46:17 +04:00
633 B
633 B
How to use u-boot to boot rCore in Raspberry Pi
Tested under QEMU.
Instructions:
- Build u-boot
- Download aarch64 toolchain and u-boot source
make rpi_3_defconfig ARCH=arm CROSS_COMPILE=aarch64-elf-
make all ARCH=arm CROSS_COMILE=aarch64-elf-
- A file named
u-boot.bin
should be generated
- Use u-boot to run rCore
make run arch=aarch64 u_boot=/path/to/u-boot.bin
- In u-boot, enter following commands:
mmc read 0x1000000 0 ${nblocks}
, where ${nblocks} can be probed if you enter a large enought numberbootelf -p 0x1000000
- rCore should boot now