Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5224

Troubleshooting • tried to compile new kernel & modules from source, but stays the same before & after reboot

$
0
0
good afternoon, it's taken the launch of the Pi5 to get me back on the Forum


Here's what has happened:

I did a git pull for a package I use regularly and compiled & installed the source (progress huh?).

I next decided to compile the Kernel from source, including some former modules, so followed the instructions on this page:

https://www.raspberrypi.com/documentati ... ernel.html

Code:

sudo apt install git bc bison flex libssl-dev makegit clone --depth=1 https://github.com/raspberrypi/linux
I then ran "make menuconfig", and named the .config file to be distinctive. and compiling certain packages into the Kernel rather than
as modules.

then

Code:

sudo make -j4 Image.gz modules dtbssudo make modules_installsudo cp arch/arm64/boot/dts/broadcom/*.dtb /boot/firmware/sudo cp arch/arm64/boot/dts/overlays/*.dtb* /boot/firmware/overlays/sudo cp arch/arm64/boot/dts/overlays/README /boot/firmware/overlays/sudo cp arch/arm64/boot/Image.gz /boot/firmware/$KERNEL.img
after doing some manual clearing up, "make clean", recompiling I then got problems running "make menuconfig", so had to

Code:

sudo make oldconfig &&  sudo make prepare   sudo make -j4 Image.gz modules dtbs  sudo make modules_install  sudo cp arch/arm64/boot/dts/broadcom/*.dtb /boot/firmware/  sudo cp arch/arm64/boot/dts/overlays/*.dtb* /boot/firmware/overlays/  sudo cp arch/arm64/boot/dts/overlays/README /boot/firmware/overlays/  sudo cp arch/arm64/boot/Image.gz /boot/firmware/$KERNEL.img
The result, both before and after reboot:

Code:

uname -aLinux Pi5 6.1.0-rpi8-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux
More information:

Code:

ls -ltr /boot/firmware/ |grep bcm-rwxr-xr-x 1 root root    20265 Feb  8 16:23 bcm2837-rpi-zero-2-w.dtb-rwxr-xr-x 1 root root    19972 Feb  8 16:23 bcm2837-rpi-cm3-io3.dtb-rwxr-xr-x 1 root root    21184 Feb  8 16:23 bcm2837-rpi-3-b-plus.dtb-rwxr-xr-x 1 root root    20720 Feb  8 16:23 bcm2837-rpi-3-b.dtb-rwxr-xr-x 1 root root    20454 Feb  8 16:23 bcm2837-rpi-3-a-plus.dtb-rwxr-xr-x 1 root root    76538 Feb  8 16:23 bcm2712-rpi-5-b.dtb-rwxr-xr-x 1 root root    52158 Feb  8 16:23 bcm2711-rpi-cm4s.dtb-rwxr-xr-x 1 root root    38182 Feb  8 16:23 bcm2711-rpi-cm4-io.dtb-rwxr-xr-x 1 root root    55375 Feb  8 16:23 bcm2711-rpi-cm4.dtb-rwxr-xr-x 1 root root    54707 Feb  8 16:23 bcm2711-rpi-4-b.dtb-rwxr-xr-x 1 root root    54751 Feb  8 16:23 bcm2711-rpi-400.dtb-rwxr-xr-x 1 root root    32524 Feb  8 16:23 bcm2710-rpi-zero-2-w.dtb-rwxr-xr-x 1 root root    32524 Feb  8 16:23 bcm2710-rpi-zero-2.dtb-rwxr-xr-x 1 root root    31254 Feb  8 16:23 bcm2710-rpi-cm3.dtb-rwxr-xr-x 1 root root    34182 Feb  8 16:23 bcm2710-rpi-3-b-plus.dtb-rwxr-xr-x 1 root root    33555 Feb  8 16:23 bcm2710-rpi-3-b.dtb-rwxr-xr-x 1 root root    31359 Feb  8 16:23 bcm2710-rpi-2-b.dtb
and i'm seeing a pattern here:

Code:

ls -altr broadcom/*.dtb-rw-r--r-- 1 root root 54707 Feb  8 15:43 broadcom/bcm2711-rpi-4-b.dtb-rw-r--r-- 1 root root 54751 Feb  8 15:43 broadcom/bcm2711-rpi-400.dtb-rw-r--r-- 1 root root 38182 Feb  8 15:43 broadcom/bcm2711-rpi-cm4-io.dtb-rw-r--r-- 1 root root 20454 Feb  8 15:43 broadcom/bcm2837-rpi-3-a-plus.dtb-rw-r--r-- 1 root root 20720 Feb  8 15:43 broadcom/bcm2837-rpi-3-b.dtb-rw-r--r-- 1 root root 21184 Feb  8 15:43 broadcom/bcm2837-rpi-3-b-plus.dtb-rw-r--r-- 1 root root 19972 Feb  8 15:43 broadcom/bcm2837-rpi-cm3-io3.dtb-rw-r--r-- 1 root root 20265 Feb  8 15:43 broadcom/bcm2837-rpi-zero-2-w.dtb-rw-r--r-- 1 root root 32524 Feb  8 15:43 broadcom/bcm2710-rpi-zero-2.dtb-rw-r--r-- 1 root root 32524 Feb  8 15:43 broadcom/bcm2710-rpi-zero-2-w.dtb-rw-r--r-- 1 root root 31359 Feb  8 15:43 broadcom/bcm2710-rpi-2-b.dtb-rw-r--r-- 1 root root 33555 Feb  8 15:43 broadcom/bcm2710-rpi-3-b.dtb-rw-r--r-- 1 root root 34182 Feb  8 15:43 broadcom/bcm2710-rpi-3-b-plus.dtb-rw-r--r-- 1 root root 31254 Feb  8 15:43 broadcom/bcm2710-rpi-cm3.dtb-rw-r--r-- 1 root root 55375 Feb  8 15:43 broadcom/bcm2711-rpi-cm4.dtb-rw-r--r-- 1 root root 52158 Feb  8 15:43 broadcom/bcm2711-rpi-cm4s.dtb-rw-r--r-- 1 root root 76538 Feb  8 15:43 broadcom/bcm2712-rpi-5-b.dtbpaul@Pi5:/usr/src/kernels/linux/arch/arm64/boot/dts $ 

Code:

ls -altr overlayslrwxrwxrwx 1 root root 30 Feb  8 14:53 overlays -> ../../../arm/boot/dts/overlayspaul@Pi5:/usr/src/kernels/linux/arch/arm64/boot/dts $  ls -altr ../../../arm/boot/dts/overlays/*.dtb*-rw-r--r-- 1 root root   589 Feb  8 15:43 ../../../arm/boot/dts/overlays/act-led.dtbo-rw-r--r-- 1 root root  2285 Feb  8 15:43 ../../../arm/boot/dts/overlays/adafruit-st7735r.dtbo-rw-r--r-- 1 root root  1624 Feb  8 15:43 ../../../arm/boot/dts/overlays/adafruit18.dtbo****shedloads of files snipped***-rw-r--r-- 1 root root   321 Feb  8 15:43 ../../../arm/boot/dts/overlays/hat_map.dtbpaul@Pi5:/usr/src/kernels/linux/arch/arm64/boot/dts $ 

note the date:

Code:

 ls -altr /boot/firmware/*.img-rwxr-xr-x 1 root root 8753764 Feb  1 00:40 /boot/firmware/kernel_2712.img-rwxr-xr-x 1 root root 8751247 Feb  1 00:40 /boot/firmware/kernel8.img 
and just to finally prove what's wrong, all 3 images I can find all differ
this is the result after i ran

Code:

 "make menuconfig"ls -al .config_AX25-rw-r--r-- 1 root root 230589 Feb  8 15:23 .config_AX25paul@Pi5:/usr/src/kernels/linux $ ls -al /usr/src/kernels/linux/arch/arm64/boot/total 31584drwxr-xr-x  3 root root     4096 Feb  8 16:19 .drwxr-xr-x 14 root root     4096 Feb  8 15:45 ..drwxr-xr-x 35 root root     4096 Feb  8 14:53 dts-rw-r--r--  1 root root       64 Feb  8 14:53 .gitignore-rw-r--r--  1 root root 23863808 Feb  8 16:19 Image-rw-r--r--  1 root root      124 Feb  8 16:19 .Image.cmd-rw-r--r--  1 root root  8749716 Feb  8 16:19 Image.gzpaul@Pi5:/usr/src/kernels/linux $ -rw-r--r--  1 root root      101 Feb  8 16:19 .Image.gz.cmd-rwxr-xr-x  1 root root      962 Feb  8 14:53 install.sh-rw-r--r--  1 root root     1198 Feb  8 14:53 Makefile/code]so there is a Image.gz/ but without knowing the $KERNEL variable, I can't copy the Image.gz to /boot/firmware manually

Statistics: Posted by paulie — Mon Feb 12, 2024 9:06 am



Viewing all articles
Browse latest Browse all 5224

Trending Articles