How to boot an older, working kernel
#1
Earlier this year, there was an update to the Linux kernel that broke booting Rock64 from their eMMC and it was necessary to force using an older, working kernel version.  It's since been fixed, but in case there is again a need to boot with a kernel older than the latest, here's one way:



Drop a file in /etc/flash-kernel/ubootenv.d that forces the U-Boot environment variable fk_kvers to a working kernel version present in your /boot, then run flash-kernel to regenerate the U-Boot bootscript /boot/boot.scr





echo "env set fk_kvers 6.1.0-22-arm64" > /etc/flash-kernel/ubootenv.d/90-force-kernel-version &&

flash-kernel



When you want to stop forcing the kernel version, remove /etc/flash-kernel/ubootenv.d/90-force-kernel-version, run flash-kernel, and reboot



This works because flash-kernel rebuilds /boot/boot.scr from the template /etc/flash-kernel/bootscript/bootscr.uboot-generic, and this includes "@@UBOOT_ENV_EXTRA@@", which gets replaced by the contents of each of the files in /etc/flash-kernel/ubootenv.d/ and the boot script boots the referenced kernel
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  problem with debian emmc boot G4zCDzWb 10 1,716 11-01-2024, 04:32 PM
Last Post: bits
  arch rock64 does not boot nemnob 1 983 09-20-2024, 11:18 AM
Last Post: AwU2HBg
  Rock64 won't boot dstallmo 0 649 12-27-2023, 10:34 AM
Last Post: dstallmo
  Disabling last mount time check on boot acwest 0 879 03-03-2023, 09:24 PM
Last Post: acwest
  Rock64 Rev3 doesn't boot and leds blinking fast dishins 6 8,866 06-30-2022, 06:28 PM
Last Post: rookie_267
  my rock64 can't boot rookie_267 0 1,301 06-27-2022, 06:52 PM
Last Post: rookie_267
Sad Blinkind red LED and stop working randomly ? jean_bruder 1 2,041 12-12-2021, 07:35 PM
Last Post: Rocklobster
  Linux 5.15 Kernel - openSuse mark1250 0 1,534 12-02-2021, 04:36 PM
Last Post: mark1250
  Security Patches for the Kernel kwinz 9 8,313 10-22-2021, 05:45 AM
Last Post: kwinz
Lightbulb RK3399 Linux rtl8822cu module bluetooth not working shivarj89 0 1,591 07-29-2021, 07:19 AM
Last Post: shivarj89

Forum Jump:


Users browsing this thread: 1 Guest(s)