bootloader menu to pick a kernel - what is the current situation in in early 2022?
#1
Hi all. I'm trying to compile and boot a custom kernel on my PineBook Pro. Trying to add some printk instrumentation to troubleshoot a type C hotplug issue I'm having, but I'm getting stuck even getting the kernel to boot at all. I don't want to outright replace my stock kernel, I just want to be able to pick the kernel I want at boot time. Ideally I would want to stick to the principle of a 100% free software (or close to it) process, and using a second computer with a serial cable is not attractive to me.

I am reluctant to try any option that makes my custom kernel the default, unless I also have a working boot menu that lets me pick the stock kernel.

I am using the manjaro OS that came preinstalled, fully updated. I am using the default partition map and bootloader.

I have tried editing my /boot/extlinux/extlinux.conf to look like this:
Code:
Timeout 10
DEFAULT Manjaro ARM

MENU TITLE pick a kernel

LABEL Manjaro ARM
KERNEL /Image
FDT /dtbs/rockchip/rk3399-pinebook-pro.dtb
APPEND initrd=/initramfs-linux.img console=tty1 console=ttyS2,1500000 root=LABEL=ROOT_MNJRO rw rootwait video=eDP-1:1920x1080@60 video=HDMI-A-1:1920x1080@60 bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash

LABEL CUSTOM INSTRUMENTATION
KERNEL /vmlinux-5.17.0-rc1-CUSTOM_INSTRUMENTATION+
FDT /dtbs/rockchip/rk3399-pinebook-pro.dtb
APPEND initrd=/initramfs-custom-instrumentation.img console=tty1 console=ttyS2,1500000 root=LABEL=ROOT_MNJRO rw rootwait video=eDP-1:1920x1080@60 video=HDMI-A-1:1920x1080@60 bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash
This doesn't seem to do anything, just boots right into the stock kernel. I also tried spamming control-C or the arrow keys at boot time, this made no difference, no menu shows up. As I mentioned earlier I am reluctant to change the DEFAULT setting since it might make the system unbootable.

I have also tried using the kexec method. I wrote this script:
Code:
#! /bin/sh
sudo kexec -l /boot/vmlinux-5.17.0-rc1-CUSTOM_INSTRUMENTATION+ --initrd=/boot/initramfs-custom-instrumentation.img --reuse-cmdline

# I tried both of these versions:
#sudo systemctl kexec
sudo kexec -e
It's hard to tell what the hardware is doing on a fanless system, but it appears to just power off the computer when I run the script. Then, when I power it on, I just get a blank screen. I can then hard reset and power it on again, and it boots back into the stock kernel.

I found some prior forum threads on this subject, but it looks like the situation is evolving rapidly and the info there might not be up to date.
  Reply


Messages In This Thread
bootloader menu to pick a kernel - what is the current situation in in early 2022? - by maxtothemax - 01-30-2022, 05:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinebook pro won't boot after bootloader installation jwensouls 4 937 08-21-2024, 04:17 AM
Last Post: KC9UDX
  How to mainline kernel on daniel thompson's debian installer? hellojack 14 9,848 09-07-2023, 09:38 PM
Last Post: Der Geist der Maschine
  kernel module that supports usb-c hdmi alexandre 16 17,025 05-14-2023, 09:58 PM
Last Post: rathofkhan3
  Suspend/Resume Broken with Bootloader on SPI Flash xp19375 2 1,631 03-24-2023, 04:25 PM
Last Post: srs5694
Question Debian (Vanilla) no output on display after Kernel update (6.0.8-1) as365n4 1 1,651 12-09-2022, 12:43 PM
Last Post: as365n4
  Bootloader: SD card boot quirks crazyquark 1 1,391 10-04-2022, 12:27 PM
Last Post: elitegamercody
Question Twister OS on PBP (2022) crusaderoath 9 4,589 09-22-2022, 11:44 PM
Last Post: wdt
  Manjaro PBP stable update 2022-06-19 bricked wpeckham 2 2,087 06-30-2022, 10:03 PM
Last Post: wangyukunshan
  Kernel panics solostian 17 16,770 01-26-2022, 08:08 AM
Last Post: TRS-80
  Kernel 5.17 will improve VP9 support? jiyong 1 2,547 01-16-2022, 08:26 PM
Last Post: xmixahlx

Forum Jump:


Users browsing this thread: 1 Guest(s)