Also, i tried to do that,
Here is my script (it's for cargo makefile):With boot_part looking like this:But when running, i get an error saying that it cannot open fixup4.dat (despite being present)
Here is my script (it's for cargo makefile):
Code:
[tasks.build-img]script = [ "rm -f boot_part/kernel8.img", "rm -f boot_files/boot.img", "mkdir -p boot_files", "cargo build", "aarch64-none-elf-objcopy -O binary target/aarch64-unknown-none/debug/kernel boot_part/kernel8.img", "dd if=/dev/zero of=boot_files/boot.img bs=1M count=512", "mkfs.vfat -F 32 boot_files/boot.img", # Copy files into image without mounting "mcopy -i boot_files/boot.img -s boot_part/* ::", "rpiboot -d boot_files/"]Code:
boot_part/├── armstub8-rpi4.bin├── bcm2711-rpi-cm4.dtb├── config.txt├── COPYING.linux├── fixup4cd.dat├── fixup4.dat├── kernel8.img├── LICENCE.broadcom├── start4cd.elf└── start4.elfStatistics: Posted by antoineok — Wed Oct 01, 2025 7:54 pm