1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-22 08:06:17 +04:00
rCore/docs/uboot_raspi3.md

18 lines
633 B
Markdown
Raw Normal View History

2019-04-05 19:31:02 +04:00
How to use u-boot to boot rCore in Raspberry Pi
===============
Tested under QEMU.
Instructions:
1. Build u-boot
1. Download aarch64 toolchain and u-boot source
2. `make rpi_3_defconfig ARCH=arm CROSS_COMPILE=aarch64-elf-`
3. `make all ARCH=arm CROSS_COMILE=aarch64-elf-`
4. A file named `u-boot.bin` should be generated
2. Use u-boot to run rCore
1. `make run arch=aarch64 u_boot=/path/to/u-boot.bin`
2. In u-boot, enter following commands:
1. `mmc read 0x1000000 0 ${nblocks}`, where ${nblocks} can be probed if you enter a large enought number
2. `bootelf -p 0x1000000`
3. rCore should boot now