Jump to content

Error loading modules after kernel upgrade


t3l3m4k0

Recommended Posts

I am using Armbian for a long time on mi Orangepi mini (A20), board not supported but installing image Bananapi M1 it has been working very well adding fdtfile=sun7i-a20-orangepi-mini.dtb on /boot/armbianEnv.txt

After running apt upgrade kernel package is upgraded from 5.10.60-sunxi  to 5.15.25-sunxi i get this errors:

 

S'està configurant linux-image-current-sunxi (22.02.1)…
update-initramfs: Generating /boot/initrd.img-5.15.25-sunxi
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/drivers/cdrom/cdrom.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/isofs/isofs.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/jfs/jfs.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/reiserfs/reiserfs.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/udf/udf.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/xfs/xfs.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/netfs/netfs.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/fscache/fscache.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/net/sunrpc/sunrpc.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/nfs_common/grace.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/lockd/lockd.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/nfs/nfs.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/nfs/nfsv2.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/nfs_common/nfs_acl.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/nfs/nfsv3.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/fs/nfs/nfsv4.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/drivers/input/mouse/psmouse.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/drivers/extcon/extcon-usb-gpio.ko.xz not found.
modinfo: ERROR: Module /lib/modules/5.15.25-sunxi/kernel/drivers/md/dm-mod.ko.xz not found.

 

modules exist but system can't install.

 

on kernel.log i see lot of messages like "Module has invalid ELF structures"

 

uname -r sends 5.15.25-sunxi

 

if i try via modprobe, modinfo, insmod i get error

i will appreciate any guide.

 

Link to comment
Share on other sites

I have the same issue on Cubietruck. No modules load after reboot. When I try to load them manually using modprobe I get „exec format error”. Kern.log also contains „Module has invalid ELF structures” messages.

 

 

Link to comment
Share on other sites

I have exactly the same but on OrangePiZero

I did a manual

sudo apt-get update

sudo apt-get upgrade

 

Just before I rebooted, I tried a lsmod  and no modules were found with kernel 5.15.25

 

I tried to run modinfo and it told me could not get module info "exec format error"

 

I posted a screenshot:

https://imgur.com/a/7VBkrnt

 

Is this a common problem with a kernel upgrade, to 5.15.25 ?

This is three different boards but same kernel.

 

I'm going to have to reload my image as I cannot access my orage pi zero now.

 

Link to comment
Share on other sites

Hi Werner,

Yes I'd like to try and help out.

I have OPi zero Ver1.5  and can cross compile from my linux mint 64bit desktop.

Have also got a git account.

Is it just a matter of:

 

git clone https://github.com/armbian/build

cd build

./compile.sh

 

After the kernel is built is it just a matter of copying the kernel into the Orange Pi

and rebooting.

Or will I have to build the modules?

Thanks for further advice.

Link to comment
Share on other sites

leo@bananapim3:~$ lsb_release -rc
Release:        20.04
Codename:       focal
leo@bananapim3:~$ sudo modinfo sun4i_gpadc_iio
filename:       /lib/modules/5.17.3-sunxi/kernel/drivers/iio/adc/sun4i-gpadc-iio.ko.xz
license:        GPL v2
author:         Quentin Schulz <quentin.schulz@free-electrons.com>
description:    ADC driver for sunxi platforms
alias:          of:N*T*Callwinner,sun50i-a64-thsC*
alias:          of:N*T*Callwinner,sun50i-a64-ths
alias:          of:N*T*Callwinner,sun9i-a80-thsC*
alias:          of:N*T*Callwinner,sun9i-a80-ths
alias:          of:N*T*Callwinner,sun8i-a83t-thsC*
alias:          of:N*T*Callwinner,sun8i-a83t-ths
alias:          of:N*T*Callwinner,sun8i-h3-thsC*
alias:          of:N*T*Callwinner,sun8i-h3-ths
alias:          of:N*T*Callwinner,sun8i-a33-thsC*
alias:          of:N*T*Callwinner,sun8i-a33-ths
alias:          platform:sun6i-a31-gpadc-iio
alias:          platform:sun5i-a13-gpadc-iio
alias:          platform:sun4i-a10-gpadc-iio
depends:        industrialio
intree:         Y
name:           sun4i_gpadc_iio
vermagic:       5.17.3-sunxi SMP mod_unload ARMv7 thumb2 p2v8

 

I don't have such a mistake. Collected the image yesterday April 18, 2022

Link to comment
Share on other sites

1 час назад, rgala сказал:

Ubuntu 18.04 (Bionic)

That's the problem.

 

And I think the problem is not that it's a different OS.

And the fact is that the kernel is initially assembled in the environment of another OS.

 

Can we check it out if you agree? I will build a kernel package in this OS 18.04.

 

Or update the operating system.

Link to comment
Share on other sites

On 4/19/2022 at 10:10 AM, going said:

Gentlemen! Please publish the name of the OS on which you detected this error after the update.

Sorry for delay

 

usuari@orpimini:~$ lsb_release -rc
Release:        9.13
Codename:       stretch

 

 

and for module sample you request:

 


usuari@orpimini:~$ sudo modinfo sun4i_gpadc_iio
[sudo] contrasenya per a usuari:
filename:       /lib/modules/5.10.60-sunxi/kernel/drivers/iio/adc/sun4i-gpadc-ii                                                          o.ko
license:        GPL v2
author:         Quentin Schulz <quentin.schulz@free-electrons.com>
description:    ADC driver for sunxi platforms
alias:          of:N*T*Callwinner,sun50i-a64-thsC*
alias:          of:N*T*Callwinner,sun50i-a64-ths
alias:          of:N*T*Callwinner,sun9i-a80-thsC*
alias:          of:N*T*Callwinner,sun9i-a80-ths
alias:          of:N*T*Callwinner,sun50i-h5-thsC*
alias:          of:N*T*Callwinner,sun50i-h5-ths
alias:          of:N*T*Callwinner,sun8i-a83t-thsC*
alias:          of:N*T*Callwinner,sun8i-a83t-ths
alias:          of:N*T*Callwinner,sun8i-h3-thsC*
alias:          of:N*T*Callwinner,sun8i-h3-ths
alias:          of:N*T*Callwinner,sun8i-a33-thsC*
alias:          of:N*T*Callwinner,sun8i-a33-ths
alias:          platform:sun6i-a31-gpadc-iio
alias:          platform:sun5i-a13-gpadc-iio
alias:          platform:sun4i-a10-gpadc-iio
depends:        industrialio
intree:         Y
name:           sun4i_gpadc_iio
vermagic:       5.10.60-sunxi SMP mod_unload ARMv7 thumb2 p2v8
signat:         PKCS#7
signer:
sig_key:
sig_hashalgo:   md4

Link to comment
Share on other sites

On 4/19/2022 at 6:59 PM, going said:

Can we check it out if you agree? I will build a kernel package in this OS 18.04.

 

Or update the operating system.

 

Of course. I will try to help every way I can. Do you want to build it on my system or you want to build it on the same OS version and then want me to try it?

Link to comment
Share on other sites

17 минут назад, t3l3m4k0 сказал:

Release:        9.13
Codename:       stretch

 

19 минут назад, t3l3m4k0 сказал:

filename:       /lib/modules/5.10.60-sunxi/kernel/drivers/iio/adc/sun4i-gpadc-iio.ko

Debian 10 and 11 are supported

Link to comment
Share on other sites

12 минут назад, rgala сказал:

Of course. I will try to help every way I can. Do you want to build it on my system or you want to build it on the same OS version and then want me to try it?

 

I want to test my own assumption. I will create a package for your specific OS in the environment of this OS.

And I will provide you with a download link. You will install this kernel package into your system and check its operability.

 

Ubuntu 18.04 and Debian 9. Wait for the link here.

Link to comment
Share on other sites

Device model : NanoPi NEO (armv7l)

DietPi v8.3.1

 

# lsb_release -rc
Release:    11
Codename:    bullseye


 

# dpkg --list | egrep -i 'linux-image|linux-headers'
ii  linux-image-current-sunxi   22.02.1   armhf   Linux kernel, armbian version 5.15.25-sunxi current
inxi -Fx
System:    Host: mhj-neo Kernel: 5.15.25-sunxi armv7l bits: 32 compiler: gcc v: 10.2.1 Console: tty 0
           Distro: Armbian GNU/Linux 11 (bullseye)
Machine:   Type: ARM Device System: FriendlyARM NanoPi NEO details: Allwinner sun8i Family rev: N/A serial: ################
CPU:       Info: Quad Core model: ARMv7 v7l variant: cortex-a7 bits: 32 type: MCP arch: v7l rev: 5
           features: Use -f option to see features bogomips: 403
           Speed: 648 MHz min/max: 648/1008 MHz Core speeds (MHz): 1: 1008 2: 1008 3: 1008 4: 1008
Graphics:  Device-1: sun8i-h3-mali driver: lima v: kernel bus ID: N/A
           Device-2: sun8i-a83t-dw-hdmi driver: N/A bus ID: N/A
           Display: server: X.org 1.20.11 driver: loaded: modesetting tty: 194x48
           Message: Advanced graphics data unavailable in console for root.
Audio:     Device-1: sun8i-a83t-dw-hdmi driver: N/A bus ID: N/A
           Sound Server: ALSA v: k5.15.25-sunxi
Network:   Device-1: sun8i-h3-emac driver: dwmac_sun8i v: N/A port: N/A bus ID: N/A
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: 92:7f:86:5f:7d:ba
Drives:    Local Storage: total: 29.81 GiB used: 4.91 GiB (16.5%)
           ID-1: /dev/mmcblk0 model: 00000 size: 29.81 GiB
Partition: ID-1: / size: 28.44 GiB used: 4.91 GiB (17.3%) fs: ext4 dev: /dev/mmcblk0p1
Swap:      ID-1: swap-1 type: file size: 512 MiB used: 0 KiB (0.0%) file: /var/swap
           ID-2: swap-2 type: zram size: 256 MiB used: 512 KiB (0.2%) dev: /dev/zram0
Sensors:   Missing: Required tool sensors not installed. Check --recommends
Info:      Processes: 130 Uptime: 4h 47m Memory: 491.7 MiB used: 231.1 MiB (47.0%) Init: systemd runlevel: 5 Compilers:
           gcc: 10.2.1 Packages: 985 Shell: Bash v: 5.1.4 inxi: 3.3.01

 

Link to comment
Share on other sites

 

1 час назад, rgala сказал:

I’m trying to install the u-boot package but it’s in conflict with armbian-u-boot package. Is it safe to uninstall?

Do not reinstall u-boot

 

On board:

git clone https://github.com/The-going/PKG_test
cd PKG_test/cubietruck-bionic
ls
sudo dpkg -i linux-dtb-edge-sunxi_22.05.0-trunk_armhf.deb
sudo dpkg -i linux-image-edge-sunxi_22.05.0-trunk_armhf.deb

Packages must be installed from this directory. Non-system packages.

If everything went without errors. Reboot

Link to comment
Share on other sites

It rebooted but modules won’t load, this time the error is different though - it cannot find any module:

 

root@cubietruck:~# find /lib/modules/ -iname '*veth*' -type f
/lib/modules/4.19.62-sunxi/kernel/drivers/net/veth.ko
/lib/modules/5.17.4-sunxi/kernel/drivers/net/veth.ko.xz
/lib/modules/5.10.60-sunxi/kernel/drivers/net/veth.ko
root@cubietruck:~# modprobe veth
modprobe: FATAL: Module veth not found in directory /lib/modules/5.17.4-sunxi

 

Link to comment
Share on other sites

A negative result is also a result.
You have a choice.
Update the system.
Use the linux-image-legacy-sunxi system version of the package on the current system. It should be 5.10.y and the kernel modules are not compressed

Link to comment
Share on other sites

@Werner Can I make a request to you?

Somewhere on this page, write in large green letters the names of the operating systems that are currently supported.

https://docs.armbian.com/#what-is-supported

And in the section "How to report bugs"

Ask to specify the minimum information about the OS:

 

lsb_release -rc

Or in some other way, the main thing is that users and you and I can understand that the question relates to a supported operating system.

Link to comment
Share on other sites

"Supported" term in this section is per SBC, not per Armbian Release but yes, it should be mentioned somewhere that the latest and greatest release only can be supported atm.

 

The minimum is already providing armbianmonitor -u which is asked for at armbian.com/bugs. Reports that lacks this are moved to p2p. It is maintainer/developers choice then to waste time on these ;)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines