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

Raspberry Pi OS • Customized kernel not loading on Pi4, instead the old kernel boots (successfully)

$
0
0
Hello everyone.

Advise would be welcome. I have done this successfully a week ago (for kernel version 6.6.45), but now I suddenly can't make it work.

I've compiled a kernel with some custom changes.

More or less I followed this process:

Code:

Download the kernel source to Pi and unzip the file.cp /boot/config-$(uname -r) /root/linux-rpi-6.6.y/.configcd /root/linux-rpi-6.6.ymakemake modules_installmake install
No errors happened, my /boot directory listing looks like:

Code:

-rw-r--r--  1 root root       83 May 29 15:04 System.map-6.6.31+rpt-rpi-2712-rw-r--r--  1 root root       83 May 29 15:04 System.map-6.6.31+rpt-rpi-v8-rw-r--r--  1 root root  4004862 Aug 26 22:50 System.map-6.6.47-v8-rw-r--r--  1 root root       92 Jul  4 01:05 cmdline.txt-rw-r--r--  1 root root   237986 May 29 15:04 config-6.6.31+rpt-rpi-2712-rw-r--r--  1 root root   237975 May 29 15:04 config-6.6.31+rpt-rpi-v8-rw-r--r--  1 root root   238199 Aug 26 22:50 config-6.6.47-v8-rw-r--r--  1 root root       91 Jul  4 01:05 config.txtdrwxr-xr-x  3 root root     4096 Jan  1  1970 firmware-rw-r--r--  1 root root 11569728 Jul  4 01:13 initrd.img-6.6.31+rpt-rpi-2712-rw-r--r--  1 root root 11569550 Jul  4 01:14 initrd.img-6.6.31+rpt-rpi-v8-rw-r--r--  1 root root 11562661 Aug 26 22:50 initrd.img-6.6.47-v8lrwxrwxrwx  1 root root       18 Jul  4 01:14 issue.txt -> firmware/issue.txtlrwxrwxrwx  1 root root       17 Jul  4 01:05 overlays -> firmware/overlays-rw-r--r--  1 root root  9277371 May 29 15:04 vmlinuz-6.6.31+rpt-rpi-2712-rw-r--r--  1 root root  9276375 May 29 15:04 vmlinuz-6.6.31+rpt-rpi-v8-rw-r--r--  1 root root 25530880 Aug 26 22:50 vmlinuz-6.6.47-v8
I would like to load the "vmlinuz-6.6.47-v8" kernel. Thus, into "/boot/firmware/config.txt" I drop the lines:

Code:

kernel=vmlinuz-6.6.47-v8initramfs initrd.img-6.6.47-v8
Then I issue "reboot" and it boots into 6.6.31.

Where would one search for a problem? I have tried an equal sign before the initramfs filename (documentation says not to use an equal sign). I have tried dropping the equal sign before the kernel filename. Nothing seems to influence it and I don't find any error messages. :)

Statistics: Posted by diastrikos — Mon Aug 26, 2024 10:55 pm



Viewing all articles
Browse latest Browse all 3869

Trending Articles