I want to develop a Linux kernel module in Rust for a Raspberry Pi Compute Module 4 but I am struggling to flash the kernel on to the Raspberry Pi. As I understand it I need to use the OS version rpi-6.12.y and build it myself so that I can activate the rust support and load Rust kernel modules.
What I have done is clone the repository and run the following commands to build the kernel.
activate rust in the menuconfig then build the kernel and its image
But when I try to flash the image on to the compute module it does not work.
I tried using the Imager but there I get the error message "MBR does not have valid signature" and when I try to do it manually by following this guide https://www.raspberrypi.com/documentati ... dule-emmc after running this command
I don't see the two partitions and therefor cant mount them.
Am I missing something?
Any help is welcome.
If this question was already answered in another post I am happy to get refereed there but I could not find one through my research.
What I have done is clone the repository and run the following commands to build the kernel.
Code:
make ARCH=arm64 LLVM=1 bcm2711_defconfig
Code:
make ARCH=arm64 LLVM=1 menuconfig
Code:
make ARCH=arm64 LLVM=1 -j16 Image modules dtbs
But when I try to flash the image on to the compute module it does not work.
I tried using the Imager but there I get the error message "MBR does not have valid signature" and when I try to do it manually by following this guide https://www.raspberrypi.com/documentati ... dule-emmc after running this command
Code:
sudo dd if=raw_os_image.img of=/dev/sdX bs=4MiB
I don't see the two partitions and therefor cant mount them.
Am I missing something?
Any help is welcome.
If this question was already answered in another post I am happy to get refereed there but I could not find one through my research.
Statistics: Posted by Kwila — Wed Feb 05, 2025 9:54 pm — Replies 0 — Views 12