problem with debian emmc boot
#4
It's possible to temporarily restore boot by booting Linux from a MicroSD, which even at 6.1.0-23 boots fine, by mounting the /boot partition from the eMMC and restoring the boot script that loaded 6.1.0-22.

Use `lsblk` to find the emmc device name, which was mmcblk1 for me.  Partition 4 is /boot the way I have it set up, so to mount the eMMC's /boot partition on /mnt:

  mount /dev/mmcblk1p4 /mnt

Verify that the older boot.scr.bak references 6.1.0-22 by looking for a line like: setenv fk_kvers '6.1.0-22-arm64'.  The broken version would have: setenv fk_kvers '6.1.0-23-arm64':
  cat /mnt/boot.scr.bak

Back up the broken boot.scr:
  cp /mnt/boot.scr /mnt/boot.scr.broken

Copy the older boot.scr over the newer, broken one:
  cp /mnt/boot.scr.bak /mnt/boot.scr

Power off the Rock64 `poweroff`, remove the MicroSD and boot into the eMMC and it boots up.

Unfortunately, at the next apt upgrade or unattended-upgrades run, flash-kernel will run and regenerate the boot.scr and it will again point at the latest -23 kernel which will cause it to halt at boot again, so this is very much a temporary patch until a fix is developed and released.

A bug should be submitted to Debian's bug tracker, but I can't look at this again until next week, so if someone else wants to run with this, please do!
  Reply


Messages In This Thread
problem with debian emmc boot - by G4zCDzWb - 07-23-2024, 12:41 PM
RE: problem with debian emmc boot - by G4zCDzWb - 07-24-2024, 09:28 AM
RE: problem with debian emmc boot - by bits - 07-25-2024, 08:41 AM
RE: problem with debian emmc boot - by Boia11 - 07-25-2024, 04:02 PM
RE: problem with debian emmc boot - by Boia11 - 07-27-2024, 04:47 AM
RE: problem with debian emmc boot - by G4zCDzWb - 07-27-2024, 06:18 AM
RE: problem with debian emmc boot - by bennofs - 07-27-2024, 12:04 PM
RE: problem with debian emmc boot - by Boia11 - 07-30-2024, 05:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Debian installation via sd card oaFJSADBKV 0 39 10-12-2024, 10:24 AM
Last Post: oaFJSADBKV
  arch rock64 does not boot nemnob 1 884 09-20-2024, 11:18 AM
Last Post: AwU2HBg
  How to update/compile Debian 12.5? Wizardknight 3 1,167 03-29-2024, 05:01 AM
Last Post: gedas07
  Rock64 won't boot dstallmo 0 589 12-27-2023, 10:34 AM
Last Post: dstallmo
  Rock64 Debian 11 (Bullseye) install problem jbize 15 10,740 10-12-2023, 05:14 PM
Last Post: tpaul
  Disabling last mount time check on boot acwest 0 838 03-03-2023, 09:24 PM
Last Post: acwest
  Rock64 Rev3 doesn't boot and leds blinking fast dishins 6 8,652 06-30-2022, 06:28 PM
Last Post: rookie_267
  my rock64 can't boot rookie_267 0 1,250 06-27-2022, 06:52 PM
Last Post: rookie_267
  rock64-debian-mrfixit-190531.img.xz : missing /usr/lib/dri/rockchip_dri.so popi 5 6,056 08-12-2021, 04:55 AM
Last Post: igorp
  Debian build from mrfixit2001 Luke 18 30,645 05-17-2021, 02:35 AM
Last Post: Wizzard

Forum Jump:


Users browsing this thread: 3 Guest(s)