IanS
Posts: 251
Joined: Wed Jun 20, 2012 2:51 pm
Location: Southampton, England

Pi4 kernel modules vanish after apt upgrade

Thu Feb 20, 2020 10:41 am

After running an apt update+upgrade cycle which brought in a set of 41 upgrades with very tangled interdependencies, my wireless interface vanished. Not just needed reconfiguring, but totally vanished. The options in raspi-config for setting the wireless country, ssid+password, etc report that there is no wireless interface, ifconfig shows only lo and eth0. Further investigation found that the kernel module which supports it, brcmfmac, was not loaded, and neither was any other module. The output of lsmod just has the header line, and no modules.
In case it makes a difference, with the recent changes to power handling on the PI4 having a subsequent effect on USB devices on some boards, I am using the initial boot from an SD card just to repoint the boot device at a USB3 SSD. I have also tried updating the VL805 from 000137ab to ad, and adding force_turbo=1 to /boot/config.txt. Neither helped.
Fortunately I had a reasonably recent backup image on the SD card which could be used to replace the SSD contents, at which point everything worked again, so it does not look like dead hardware is the problem. The dependencies between the 41 packages are so intertwined that I cannot install just a subset to help isolate the problem.

Does anybody recognise the problem, or have any suggestions on what to try?

The upgraded packages were:

Code: Select all

$ apt list --upgradable
Listing... Done
base-files/stable 10.3+rpi1+deb10u3 armhf [upgradable from: 10.3+rpi1+deb10u2]
e2fsprogs/stable 1.44.5-1+deb10u3 armhf [upgradable from: 1.44.5-1+deb10u2]
libboost-iostreams1.67.0/stable 1.67.0-13+deb10u1 armhf [upgradable from: 1.67.0-13]
libboost-system1.67.0/stable 1.67.0-13+deb10u1 armhf [upgradable from: 1.67.0-13]
libcom-err2/stable 1.44.5-1+deb10u3 armhf [upgradable from: 1.44.5-1+deb10u2]
libext2fs2/stable 1.44.5-1+deb10u3 armhf [upgradable from: 1.44.5-1+deb10u2]
libgnutls30/stable 3.6.7-4+deb10u2 armhf [upgradable from: 3.6.7-4]
libidn2-0/stable 2.0.5-1+deb10u1 armhf [upgradable from: 2.0.5-1]
libpam-systemd/stable 241-7~deb10u3+rpi1 armhf [upgradable from: 241-7~deb10u2+rpi1]
libpython3.7-minimal/stable 3.7.3-2+deb10u1 armhf [upgradable from: 3.7.3-2]
libpython3.7-stdlib/stable 3.7.3-2+deb10u1 armhf [upgradable from: 3.7.3-2]
libpython3.7/stable 3.7.3-2+deb10u1 armhf [upgradable from: 3.7.3-2]
libraspberrypi-bin/testing 1.20200212-1 armhf [upgradable from: 1.20190925+1-1]
libraspberrypi-dev/testing 1.20200212-1 armhf [upgradable from: 1.20190925+1-1]
libraspberrypi-doc/testing 1.20200212-1 armhf [upgradable from: 1.20190925+1-1]
libraspberrypi0/testing 1.20200212-1 armhf [upgradable from: 1.20190925+1-1]
libsasl2-2/stable 2.1.27+dfsg-1+deb10u1 armhf [upgradable from: 2.1.27+dfsg-1+b1]
libsasl2-modules-db/stable 2.1.27+dfsg-1+deb10u1 armhf [upgradable from: 2.1.27+dfsg-1+b1]
libss2/stable 1.44.5-1+deb10u3 armhf [upgradable from: 1.44.5-1+deb10u2]
libssl1.1/testing 1.1.1d-0+deb10u2+rpt1 armhf [upgradable from: 1.1.1d-0+deb10u2]
libsystemd0/stable 241-7~deb10u3+rpi1 armhf [upgradable from: 241-7~deb10u2+rpi1]
libtimedate-perl/stable 2.3000-2+deb10u1 all [upgradable from: 2.3000-2]
libudev1/stable 241-7~deb10u3+rpi1 armhf [upgradable from: 241-7~deb10u2+rpi1]
openssh-client/stable 1:7.9p1-10+deb10u2 armhf [upgradable from: 1:7.9p1-10+deb10u1]
openssh-server/stable 1:7.9p1-10+deb10u2 armhf [upgradable from: 1:7.9p1-10+deb10u1]
openssh-sftp-server/stable 1:7.9p1-10+deb10u2 armhf [upgradable from: 1:7.9p1-10+deb10u1]
openssl/testing 1.1.1d-0+deb10u2+rpt1 armhf [upgradable from: 1.1.1d-0+deb10u2]
python-apt-common/stable 1.8.4.1 all [upgradable from: 1.8.4]
python3-apt/stable 1.8.4.1 armhf [upgradable from: 1.8.4]
python3.7-minimal/stable 3.7.3-2+deb10u1 armhf [upgradable from: 3.7.3-2]
python3.7/stable 3.7.3-2+deb10u1 armhf [upgradable from: 3.7.3-2]
raspberrypi-bootloader/testing 1.20200212-1 armhf [upgradable from: 1.20190925+1-1]
raspberrypi-kernel/testing 1.20200212-1 armhf [upgradable from: 1.20190925+1-1]
raspi-config/testing 20200207 all [upgradable from: 20191021]
rpi-eeprom-images/testing 4.0-1 all [upgradable from: 2.4-1]
rpi-eeprom/testing 4.0-1 all [upgradable from: 2.4-1]
ssh/stable 1:7.9p1-10+deb10u2 all [upgradable from: 1:7.9p1-10+deb10u1]
sudo/stable 1.8.27-1+deb10u2 armhf [upgradable from: 1.8.27-1+deb10u1]
systemd-sysv/stable 241-7~deb10u3+rpi1 armhf [upgradable from: 241-7~deb10u2+rpi1]
systemd/stable 241-7~deb10u3+rpi1 armhf [upgradable from: 241-7~deb10u2+rpi1]
udev/stable 241-7~deb10u3+rpi1 armhf [upgradable from: 241-7~deb10u2+rpi1]

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26659
Joined: Sat Jul 30, 2011 7:41 pm

Re: Pi4 kernel modules vanish after apt upgrade

Thu Feb 20, 2020 10:55 am

Did you do

Code: Select all

sudo apt update
sudo apt upgrade
or

Code: Select all

sudo apt update
sudo apt full-upgrade
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

IanS
Posts: 251
Joined: Wed Jun 20, 2012 2:51 pm
Location: Southampton, England

Re: Pi4 kernel modules vanish after apt upgrade

Fri Feb 21, 2020 9:09 am

I used apt upgrade. Having now tried full-upgrade, that worked successfully.
The apt history log shows the same 41 packages, at the same versions as the list above.

Code: Select all

$ cat /var/log/apt/history.log

Start-Date: 2020-02-21  08:42:48
Commandline: apt full-upgrade
Requested-By: pi (1000)
Upgrade: libpython3.7-minimal:armhf (3.7.3-2, 3.7.3-2+deb10u1), libraspberrypi-bin:armhf (1.20190925+1-1, 1.20200212-1), libcom-err2:armhf (1.44.5-1+deb10u2, 1.44.5-1+deb10u3), libraspberrypi-dev:armhf (1.20190925+1-1, 1.20200212-1), rpi-eeprom-images:armhf (2.4-1, 4.0-1), libraspberrypi-doc:armhf (1.20190925+1-1, 1.20200212-1), libsasl2-modules-db:armhf (2.1.27+dfsg-1+b1, 2.1.27+dfsg-1+deb10u1), openssl:armhf (1.1.1d-0+deb10u2, 1.1.1d-0+deb10u2+rpt1), libsystemd0:armhf (241-7~deb10u2+rpi1, 241-7~deb10u3+rpi1), raspi-config:armhf (20191021, 20200207), rpi-eeprom:armhf (2.4-1, 4.0-1), e2fsprogs:armhf (1.44.5-1+deb10u2, 1.44.5-1+deb10u3), sudo:armhf (1.8.27-1+deb10u1, 1.8.27-1+deb10u2), libpython3.7:armhf (3.7.3-2, 3.7.3-2+deb10u1), python3.7:armhf (3.7.3-2, 3.7.3-2+deb10u1), python-apt-common:armhf (1.8.4, 1.8.4.1), openssh-sftp-server:armhf (1:7.9p1-10+deb10u1, 1:7.9p1-10+deb10u2), udev:armhf (241-7~deb10u2+rpi1, 241-7~deb10u3+rpi1), libsasl2-2:armhf (2.1.27+dfsg-1+b1, 2.1.27+dfsg-1+deb10u1), libpython3.7-stdlib:armhf (3.7.3-2, 3.7.3-2+deb10u1), libudev1:armhf (241-7~deb10u2+rpi1, 241-7~deb10u3+rpi1), python3.7-minimal:armhf (3.7.3-2, 3.7.3-2+deb10u1), raspberrypi-kernel:armhf (1.20190925+1-1, 1.20200212-1), libss2:armhf (1.44.5-1+deb10u2, 1.44.5-1+deb10u3), libext2fs2:armhf (1.44.5-1+deb10u2, 1.44.5-1+deb10u3), raspberrypi-bootloader:armhf (1.20190925+1-1, 1.20200212-1), libboost-iostreams1.67.0:armhf (1.67.0-13, 1.67.0-13+deb10u1), ssh:armhf (1:7.9p1-10+deb10u1, 1:7.9p1-10+deb10u2), systemd-sysv:armhf (241-7~deb10u2+rpi1, 241-7~deb10u3+rpi1), libpam-systemd:armhf (241-7~deb10u2+rpi1, 241-7~deb10u3+rpi1), systemd:armhf (241-7~deb10u2+rpi1, 241-7~deb10u3+rpi1), libraspberrypi0:armhf (1.20190925+1-1, 1.20200212-1), openssh-server:armhf (1:7.9p1-10+deb10u1, 1:7.9p1-10+deb10u2), openssh-client:armhf (1:7.9p1-10+deb10u1, 1:7.9p1-10+deb10u2), libtimedate-perl:armhf (2.3000-2, 2.3000-2+deb10u1), libgnutls30:armhf (3.6.7-4, 3.6.7-4+deb10u2), libssl1.1:armhf (1.1.1d-0+deb10u2, 1.1.1d-0+deb10u2+rpt1), libidn2-0:armhf (2.0.5-1, 2.0.5-1+deb10u1), python3-apt:armhf (1.8.4, 1.8.4.1), base-files:armhf (10.3+rpi1+deb10u2, 10.3+rpi1+deb10u3), libboost-system1.67.0:armhf (1.67.0-13, 1.67.0-13+deb10u1)
End-Date: 2020-02-21  08:46:24

Return to “Troubleshooting”