Raspberry Pi 2B+ no longer boots after latest kernel update

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Re: Raspberry Pi 2B+ no longer boots after latest kernel upd

Postby minomic » Fri Oct 15, 2021 6:45 pm

Confirmed: all solved for me as well.

Just a note in case someone stumbles on the same issue: after downgrading the kernel (see my previous message), I went on upgrading to the fixed version, and it was complaining about conflicts with the files in /boot/overlays.
After checking online, and verifying that no other packages were owning those files, I removed everything with $this->bbcode_second_pass_code('', 'sudo rm -rf /boot/overlays') and then immediately installed the new kernel, which recreated all the files.

Disclaimer: I am not sure this is the best thing to do and take no responsibility whatsoever but... it worked for me.
minomic
 
Posts: 13
Joined: Fri Oct 15, 2021 5:55 am

Re: Raspberry Pi 2B+ no longer boots after latest kernel upd

Postby bulletmark » Fri Oct 15, 2021 11:13 pm

@minomic, I didn't get any such errors. I suspect you did not mount your boot partition correctly before you did the chroot. E.g. I did the following (assuming your SD card to be fixed is mounted at /dev/sdb):

$this->bbcode_second_pass_code('', '
mkdir mnt

# Mount root partition
sudo mount /dev/sdb2 mnt

# Mount boot partition
sudo mount /dev/sdb1 mnt/boot

sudo arch-chroot mnt
sudo pacman -U /var/cache/pacman/pkg/linux-raspberrypi-5.10.64-1-armv6h.pkg.tar.xz
')
bulletmark
 
Posts: 98
Joined: Tue Oct 13, 2015 10:17 pm

Re: Raspberry Pi 2B+ no longer boots after latest kernel upd

Postby minomic » Sat Oct 16, 2021 6:19 am

@bulletmark You are right, the first time I had not mounted the boot partition correctly and pacman told me (somewhat dramatically) that I had broken my system... :roll:
Instead, remounting everything correctly and re-installing the kernel seems to have fixed all the problems.
minomic
 
Posts: 13
Joined: Fri Oct 15, 2021 5:55 am

Re: Raspberry Pi 2B+ no longer boots after latest kernel upd

Postby renkei » Sat Oct 16, 2021 1:07 pm

Can someone help me with the chroot? I try this from an x86_64 machine.

$this->bbcode_list('1')
  • I've installed qemu-user-static and binfmt-qemu-static from AUR
  • I've mounted my root partition from sdcard to /mnt, I've mounted my boot partition from sdcard to /mnt/boot
  • I've copied qemu-arm-static to /mnt/usr/bin
  • I've called sudo chroot /mnt qemu-arm-static /bin/bash

  • Looks good so far, uname -m shows me armv7l, but uname -r shows me still my x86_64 kernel 5.14.11.

    If I try now
    $this->bbcode_second_pass_code('', 'pacman -U /var/cache/pacman/pkg/linux-raspberrypi-5.10.64-1-armv7h.pkg.tar.xz')
    then I get
    $this->bbcode_second_pass_code('', '
    loading packages...
    error: GPGME error: Invalid crypto engine
    error: GPGME error: Invalid crypto engine
    error: '/var/cache/pacman/pkg/linux-raspberrypi-5.10.64-1-armv7h.pkg.tar.xz': invalid or corrupted package (PGP signature)
    ')
    Last edited by renkei on Sat Oct 16, 2021 10:01 pm, edited 2 times in total.
    renkei
     
    Posts: 11
    Joined: Sun Jan 31, 2021 1:27 am

    Re: Raspberry Pi 2B+ no longer boots after latest kernel upd

    Postby minomic » Sat Oct 16, 2021 1:42 pm

    I remember facing something similar as well. You can have a look here to disable the signature checking. Hope this helps.
    minomic
     
    Posts: 13
    Joined: Fri Oct 15, 2021 5:55 am

    Re: Raspberry Pi 2B+ no longer boots after latest kernel upd

    Postby minomic » Sat Oct 16, 2021 5:30 pm

    I saw now that version 5.10.73-3 is out. After the bad experience, I am going to wait a bit before upgrading.
    If someone is more brave and wants to share their experience...
    minomic
     
    Posts: 13
    Joined: Fri Oct 15, 2021 5:55 am

    Re: Raspberry Pi 2B+ no longer boots after latest kernel upd

    Postby trigger » Sat Oct 16, 2021 8:06 pm

    It's working
    trigger
     
    Posts: 11
    Joined: Mon Apr 25, 2016 1:40 pm

    Re: Raspberry Pi 2B+ no longer boots after latest kernel upd

    Postby renkei » Sat Oct 16, 2021 9:58 pm

    Unfortunately, SigLevel = Never does not have any effect, same error message. It's really strange, also a pacman -Syu does not work:

    $this->bbcode_second_pass_code('', '
    pacman -Syu
    :: Synchronizing package databases...
    core.db failed to download
    error: failed retrieving file 'core.db' from mirror.archlinuxarm.org : Could not resolve host: mirror.archlinuxarm.org
    warning: too many errors from mirror.archlinuxarm.org, skipping for the remainder of this transaction
    error: failed to synchronize all databases (invalid url for server)
    ')
    Even a ping is not possible:

    $this->bbcode_second_pass_code('', '
    ping mirror.archlinuxarm.org
    /usr/bin/ping: mirror.archlinuxarm.org: Temporary failure in name resolution
    ')
    Any idea? At the moment, the chroot is useless since I'm not able to replace the broken kernel with an older or newer one.
    renkei
     
    Posts: 11
    Joined: Sun Jan 31, 2021 1:27 am

    Re: Raspberry Pi 2B+ no longer boots after latest kernel upd

    Postby renkei » Sat Oct 16, 2021 10:28 pm

    Ok, in my case LocalFileSigLevel = Never is the right setting in /etc/pacman.conf. But then:
    $this->bbcode_second_pass_code('', '
    pacman -U /var/cache/pacman/pkg/linux-raspberrypi-5.10.64-1-armv7h.pkg.tar.xz
    loading packages...
    warning: downgrading package linux-raspberrypi (5.10.73-1 => 5.10.64-1)
    resolving dependencies...
    looking for conflicting packages...

    Packages (1) linux-raspberrypi-5.10.64-1

    Total Installed Size: 32.02 MiB
    Net Upgrade Size: -0.01 MiB

    :: Proceed with installation? [Y/n]
    (1/1) checking keys in keyring [###########################################################] 100%
    (1/1) checking package integrity [###########################################################] 100%
    (1/1) loading package files [###########################################################] 100%
    (1/1) checking for file conflicts [###########################################################] 100%
    error: could not open file: /etc/mtab: No such file or directory
    error: could not determine filesystem mount points
    error: not enough free disk space
    error: failed to commit transaction (unexpected error)
    Errors occurred, no packages were upgraded.
    ')
    If I check my /etc/mtab I see that it points to /proc/self/mounts but my /proc is empty.
    renkei
     
    Posts: 11
    Joined: Sun Jan 31, 2021 1:27 am

    Re: Raspberry Pi 2B+ no longer boots after latest kernel upd

    Postby renkei » Sat Oct 16, 2021 11:08 pm

    I fixed this with
    $this->bbcode_second_pass_code('', '
    mount -t proc none proc/
    mount -t sysfs /sys sys/
    mount --rbind /dev dev/
    ')
    I downgraded successfully to 5.10.64-1 and then, after a reboot of the SDCard in my Pi2 I updated to 5.10.73-3. Everything is fine again.
    renkei
     
    Posts: 11
    Joined: Sun Jan 31, 2021 1:27 am

    PreviousNext

    Return to Raspberry Pi

    Who is online

    Users browsing this forum: No registered users and 15 guests