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