Kernel and /lib/modules adrift

Problems with packages? Post here, using [tags] of the package name.

Kernel and /lib/modules adrift

Postby tchelovek » Thu Jun 25, 2020 11:40 am

Hi all,

after having tried this the umpteenth time to make sure I'm not the culprit, I put this to your attention for correction:

After setting up a new raspberry 4 with archlinux arm and performing
$this->bbcode_second_pass_code('', 'pacman-key --init
pacman-key --populate archlinuxarm
pacman -Syu
')

the kernel and the modules do not match:

$this->bbcode_second_pass_code('', 'uname -r
5.4.42-1-ARCH
ls /lib/modules
5.4.45-1-ARCH extramodules-5.4-raspberrypi4')

I stumbled on this accidentally, when trying to use fuse and on modprobe was informed the module wasn't found.

The only remedy I found so far is, manually downloading and installing the kernel to match the modules.

Probably a lot of the problems reported are due to this malfunction.
ODROID C1 ( armv7h ), Raspberry Pi 2B+ ( armv7h ), 2 x Raspberry Pi B+ ( armv6h ), Raspberry Pi4 (armv7l)
tchelovek
 
Posts: 17
Joined: Sat Mar 07, 2015 1:33 pm
Location: Yes

Re: Kernel and /lib/modules adrift

Postby moonman » Thu Jun 25, 2020 6:14 pm

This usually means your don't have your boot partition mounted at "/boot". Check your fstab.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Kernel and /lib/modules adrift

Postby tchelovek » Fri Jun 26, 2020 6:59 am

Thanks moonman,

indeed it seems that not having mounted /boot after the boot process has ill effects.

There should be a hint somewhere (cmdline.txt, fstab or even pacman) to that end.

Actually I set up the gadget to boot from a usb connected SSD, which works nicely, except for not mounting /boot if fstab isn't reflecting the new location. As /boot doesn't seem to be needed during normal operation, this won't be notied very soon.

Anyway, thanks again for waking me up.
ODROID C1 ( armv7h ), Raspberry Pi 2B+ ( armv7h ), 2 x Raspberry Pi B+ ( armv6h ), Raspberry Pi4 (armv7l)
tchelovek
 
Posts: 17
Joined: Sat Mar 07, 2015 1:33 pm
Location: Yes


Return to Packages

Who is online

Users browsing this forum: No registered users and 5 guests