[SOLVED] Pi 3 fails to boot after update /boot empty

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

[SOLVED] Pi 3 fails to boot after update /boot empty

Postby loki279 » Fri Oct 15, 2021 4:02 pm

Hi,

I installed some updates today (new kernel was part of the update). After this my Pi is not booting any longer. The last message I ca see is "random: crng init done"
I googled this message and came across the root partiion might be set wrongly to to took out the SD-Card and wanted to have a look on the files in /boot

So, /boot is empty completly, No files at all

The updated must have deleted these files.

How can I recreate the files I need? Is there a template around somewhere? I know I had some parameters set for usb current and other stuff, I guess I can find these again later, for now I just need to be able to boot again.

Any held appreciated!
Last edited by loki279 on Sat Oct 16, 2021 5:53 pm, edited 1 time in total.
loki279
 
Posts: 54
Joined: Tue Mar 07, 2017 7:59 am

Re: Pi 3 fails to boot after update /boot empty

Postby graysky » Fri Oct 15, 2021 5:13 pm

Not sure why your /boot is empty. No update I know of would remove those files. Is the filesystem good? Is the filesystem mounted? There is a known bad issue with linux-raspberrypi 5.10.73-1 which has been fixed in -2. Update to that.
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Pi 3 fails to boot after update /boot empty

Postby loki279 » Sat Oct 16, 2021 7:33 am

Sorry I just realized /boot is a different partition and the content is still there. So the reason the Pi does not boot must be something else.

How can I debug? The process just stops, the last message I can see is:

$this->bbcode_second_pass_code('', 'random: crng init done')

after this nothings happens. My research showed this usually happens when the root filesystem is not mounted in the boot process, this is why I wanted to take a look on /boot/cmdline.txt in the first place.
loki279
 
Posts: 54
Joined: Tue Mar 07, 2017 7:59 am

Re: Pi 3 fails to boot after update /boot empty

Postby robg » Sat Oct 16, 2021 4:40 pm

Kindly post the outputs of the following commands:

$this->bbcode_second_pass_code('', '
sudo rpi-eeprom-update
uname -a
cat /etc/fstab
cat /var/log/pacman.log | tail -n 100
')
robg
 
Posts: 185
Joined: Tue Jan 05, 2021 8:22 am

Re: Pi 3 fails to boot after update /boot empty

Postby loki279 » Sat Oct 16, 2021 5:02 pm

For the time beeing I cannot give you the output of rpi-eeprom-update and uname as I cannot boot the Pi, I can provide logs:

$this->bbcode_second_pass_code('', '
var/log/pacman.log | tail -n 100
[2021-10-06T15:12:46+0000] [PACMAN] Running 'pacman -Scc'
[2021-10-08T06:29:33+0000] [PACMAN] Running 'pacman -Syu'
[2021-10-08T06:29:33+0000] [PACMAN] synchronizing package lists
[2021-10-08T06:29:37+0000] [PACMAN] starting full system upgrade
[2021-10-08T06:30:02+0000] [ALPM] transaction started
[2021-10-08T06:30:02+0000] [ALPM] upgraded aom (3.1.2-2 -> 3.1.3-1)
[2021-10-08T06:30:09+0000] [ALPM] upgraded linux-raspberrypi (5.10.63-15 -> 5.10.63-17)
[2021-10-08T06:30:09+0000] [ALPM] upgraded nano (5.8-1 -> 5.9-1)
[2021-10-08T06:30:09+0000] [ALPM] upgraded php-apcu (5.1.20-1 -> 5.1.21-1)
[2021-10-08T06:30:10+0000] [ALPM] upgraded raspberrypi-bootloader (20210930-1 -> 20211007-1)
[2021-10-08T06:30:11+0000] [ALPM] upgraded raspberrypi-bootloader-x (20210930-1 -> 20211007-1)
[2021-10-08T06:30:13+0000] [ALPM] upgraded srt (1.4.3-1 -> 1.4.4-1)
[2021-10-08T06:30:25+0000] [ALPM] transaction completed
[2021-10-08T06:30:26+0000] [ALPM] running '30-systemd-update.hook'...
[2021-10-08T06:30:26+0000] [ALPM] running '60-depmod.hook'...
[2021-10-08T06:30:26+0000] [ALPM] running '60-linux-raspberrypi.hook'...
[2021-10-08T06:30:32+0000] [ALPM] running '90-linux-raspberrypi.hook'...
[2021-10-08T06:30:32+0000] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-raspberrypi.preset: 'default'
[2021-10-08T06:30:32+0000] [ALPM-SCRIPTLET] -> -k 5.10.63-17-raspberrypi-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2021-10-08T06:30:32+0000] [ALPM-SCRIPTLET] ==> Starting build: 5.10.63-17-raspberrypi-ARCH
[2021-10-08T06:30:32+0000] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2021-10-08T06:30:34+0000] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2021-10-08T06:30:34+0000] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2021-10-08T06:30:35+0000] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2021-10-08T06:30:35+0000] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2021-10-08T06:30:36+0000] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2021-10-08T06:30:36+0000] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2021-10-08T06:30:36+0000] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2021-10-08T06:30:36+0000] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2021-10-08T06:30:36+0000] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2021-10-08T06:30:43+0000] [ALPM-SCRIPTLET] ==> Image generation successful
[2021-10-08T06:30:43+0000] [ALPM] running 'texinfo-install.hook'...
[2021-10-08T06:39:45+0000] [PACMAN] Running 'pacman -Scc'
[2021-10-10T03:51:32+0000] [PACMAN] Running 'pacman -Syu'
[2021-10-10T03:51:32+0000] [PACMAN] synchronizing package lists
[2021-10-10T03:51:35+0000] [PACMAN] starting full system upgrade
[2021-10-10T03:51:48+0000] [ALPM] transaction started
[2021-10-10T03:51:48+0000] [ALPM] upgraded aom (3.1.3-1 -> 3.1.3-2)
[2021-10-10T03:51:48+0000] [ALPM] upgraded libcap (2.58-1 -> 2.59-1)
[2021-10-10T03:51:48+0000] [ALPM] upgraded libnghttp2 (1.45.0-1 -> 1.45.1-1)
[2021-10-10T03:51:48+0000] [ALPM] upgraded php-apcu (5.1.21-1 -> 5.1.21-2)
[2021-10-10T03:51:49+0000] [ALPM] upgraded python-cryptography (3.4.8-2 -> 35.0.0-1)
[2021-10-10T03:51:49+0000] [ALPM] upgraded python-urllib3 (1.26.6-1 -> 1.26.7-1)
[2021-10-10T03:51:49+0000] [ALPM] upgraded sdl2 (2.0.16-3 -> 2.0.16-4)
[2021-10-10T03:51:50+0000] [ALPM] transaction completed
[2021-10-10T03:51:50+0000] [ALPM] running '30-systemd-update.hook'...
[2021-10-10T03:52:43+0000] [PACMAN] Running 'pacman -Scc'
[2021-10-15T08:56:33+0000] [PACMAN] Running 'pacman -Syu'
[2021-10-15T08:56:33+0000] [PACMAN] synchronizing package lists
[2021-10-15T08:56:36+0000] [PACMAN] starting full system upgrade
[2021-10-15T09:13:18+0000] [ALPM] transaction started
[2021-10-15T09:13:18+0000] [ALPM] upgraded systemd-libs (249.4-2 -> 249.5-1)
[2021-10-15T09:13:20+0000] [ALPM] upgraded systemd (249.4-2 -> 249.5-1)
[2021-10-15T09:13:28+0000] [ALPM] upgraded linux-raspberrypi (5.10.63-17 -> 5.10.73-1)
[2021-10-15T09:13:35+0000] [ALPM] upgraded raspberrypi-bootloader (20211007-1 -> 20211014-1)
[2021-10-15T09:13:35+0000] [ALPM] upgraded raspberrypi-bootloader-x (20211007-1 -> 20211014-1)
[2021-10-15T09:13:35+0000] [ALPM] upgraded systemd-sysvcompat (249.4-2 -> 249.5-1)
[2021-10-15T09:13:38+0000] [ALPM] transaction completed
[2021-10-15T09:13:39+0000] [ALPM] running '20-systemd-sysusers.hook'...
[2021-10-15T09:13:40+0000] [ALPM] running '30-systemd-catalog.hook'...
[2021-10-15T09:13:41+0000] [ALPM] running '30-systemd-daemon-reload.hook'...
[2021-10-15T09:13:42+0000] [ALPM] running '30-systemd-hwdb.hook'...
[2021-10-15T09:13:49+0000] [ALPM] running '30-systemd-sysctl.hook'...
[2021-10-15T09:13:49+0000] [ALPM] running '30-systemd-tmpfiles.hook'...
[2021-10-15T09:13:49+0000] [ALPM] running '30-systemd-udev-reload.hook'...
[2021-10-15T09:13:49+0000] [ALPM] running '30-systemd-update.hook'...
[2021-10-15T09:13:49+0000] [ALPM] running '60-depmod.hook'...
[2021-10-15T09:13:49+0000] [ALPM] running '60-linux-raspberrypi.hook'...
[2021-10-15T09:13:56+0000] [ALPM] running '90-linux-raspberrypi.hook'...
[2021-10-15T09:13:56+0000] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-raspberrypi.preset: 'default'
[2021-10-15T09:13:56+0000] [ALPM-SCRIPTLET] -> -k 5.10.73-1-raspberrypi-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2021-10-15T09:13:56+0000] [ALPM-SCRIPTLET] ==> Starting build: 5.10.73-1-raspberrypi-ARCH
[2021-10-15T09:13:56+0000] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2021-10-15T09:13:57+0000] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2021-10-15T09:13:58+0000] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2021-10-15T09:13:58+0000] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2021-10-15T09:13:58+0000] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2021-10-15T09:14:01+0000] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2021-10-15T09:14:01+0000] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2021-10-15T09:14:01+0000] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2021-10-15T09:14:01+0000] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2021-10-15T09:14:02+0000] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2021-10-15T09:14:08+0000] [ALPM-SCRIPTLET] ==> Image generation successful
[2021-10-15T09:14:08+0000] [ALPM] running '90-mkinitcpio-install.hook'...
[2021-10-15T09:14:09+0000] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-raspberrypi.preset: 'default'
[2021-10-15T09:14:09+0000] [ALPM-SCRIPTLET] -> -k 5.10.73-1-raspberrypi-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2021-10-15T09:14:09+0000] [ALPM-SCRIPTLET] ==> Starting build: 5.10.73-1-raspberrypi-ARCH
[2021-10-15T09:14:10+0000] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2021-10-15T09:14:11+0000] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2021-10-15T09:14:11+0000] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2021-10-15T09:14:12+0000] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2021-10-15T09:14:12+0000] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2021-10-15T09:14:12+0000] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2021-10-15T09:14:12+0000] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2021-10-15T09:14:13+0000] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2021-10-15T09:14:13+0000] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2021-10-15T09:14:13+0000] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2021-10-15T09:14:19+0000] [ALPM-SCRIPTLET] ==> Image generation successful
[2021-10-15T09:14:19+0000] [ALPM] running 'dbus-reload.hook'...
[2021-10-15T09:15:07+0000] [PACMAN] Running 'pacman -Scc'
')

and fstab:

$this->bbcode_second_pass_code('', '
GNU nano 5.9 etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
UUID=99E3-6AA6 /boot vfat 0 2
UUID=f25e701b-24bb-44f5-9d8d-8fbb459a3e25 / ext4 0 1
/dev/sda2 /var/lib/nextcloud/data ext4 0 2
')

I the attempt to solve the problem I already added the line for / in fstab, I wasn't there before. / was mounted only by /boot/cmdline.txt

$this->bbcode_second_pass_code('', '
root=UUID=f25e701b-24bb-44f5-9d8d-8fbb459a3e25 rw rootwait console=serial0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=serial0,115200
')

I trying to set up a crhoot environment for the Pi on my x86_64 machine using QEMU, If a have success I'll run an update und can also provide what the other commands return.
loki279
 
Posts: 54
Joined: Tue Mar 07, 2017 7:59 am

Re: Pi 3 fails to boot after update /boot empty

Postby loki279 » Sat Oct 16, 2021 5:53 pm

So, I was able to use arch-chroot on my Pis sdcard and updated the system, turned out that a new kernel and bootloader were avaliable (5.10.73-3). After updating the system boots normal again so there must have been a problem with the version i pulled on the update before (5.10.73-1). Problem solved. Thank you
loki279
 
Posts: 54
Joined: Tue Mar 07, 2017 7:59 am

Re: [SOLVED] Pi 3 fails to boot after update /boot empty

Postby robg » Sat Oct 16, 2021 7:44 pm

Glad to read that an update fixed your problem. Judging from the pacman logs, it must have been related to the kernel. In any case, I suggest installing rpi-eeprom so that your bootloader can be easily kept up-to-date.
robg
 
Posts: 185
Joined: Tue Jan 05, 2021 8:22 am

Re: [SOLVED] Pi 3 fails to boot after update /boot empty

Postby loki279 » Sun Oct 17, 2021 5:38 pm

Description says

$this->bbcode_second_pass_code('', 'Bootloader and VL805 USB controller EEPROM update tool for RPi4')

does it also work for a RPi3?
loki279
 
Posts: 54
Joined: Tue Mar 07, 2017 7:59 am


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 2 guests