Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12244

Trying to create .img for my raspberry pi 4 with Image and vmlinux

$
0
0

I am new to linux and I really need your help

I am working on project for my end of studies internship : controlling sensors and displaying the result on an LCD screen

for that I will use raspberry and create a QT application for displaying the result of the sensors.

The boot time need to be very minimal so for that I want to create a minimal kernel for my raspberri pi-4 b

I did the cross compilation for arm64:

mkdir rasp_arm64cd rasp_arm64/git clone --depth=1 https://github.com/raspberrypi/linuxsudo apt-get install qemu-system-armsudo apt-get install lzopsudo apt-get install gcc-aarch64-linux-gnucd linux/make -j8 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- mrpropermake -j8 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- bcm2711_defconfigmake -j8 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image modules dtbs

this is what I did

How can I actually make a .img file for my a bootalbe SDcard for my raspberry pi 4?

I also worked on https://www.raspberrypi.org/documentation/linux/kernel/building.md

and I added (cen someone also clarify why we need this)KERNEL=kernel8

and after that I didmake ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image modules dtbsmkdir mnt
mkdir mnt/fat32mkdir mnt/ext4sudo mount /dev/sdb6 mnt/fat32sudo mount /dev/sdb7 mnt/ext4

 sudo env PATH=$PATH make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- INSTALL_MOD_PATH=mnt/ext4 modules_installsudo cp mnt/fat32/$KERNEL.img mnt/fat32/$KERNEL-backup.img

I got an error telling that mnt/fat32/.img no such file or directory

I will be grateful if someone could help


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>