Need :
rustup target add armv7a-none-eabi
cargo build --release
arm-none-eabi-objcopy -O binary ./target/armv7a-none-eabi/release/led ./kernel.img
Put the to_push/kernel.img
on the SD card alongside with:
- bootcode.bin
- fixup.dat
- start.elf
Need :
rustup target add aarch64-unknown-none
We can test out things with qemu:
qemu-system-aarch64 -M raspi3b -serial stdio -kernel to_push/kernel.img
Sourceware : Linker script explanation BCM 2837 Datasheet Interactive Pinout