Help fixing kernel module problem and misc issues?

Ask questions about Arch Linux ARM. Please search before making a new topic.

Help fixing kernel module problem and misc issues?

Postby Marnes » Thu Apr 20, 2017 2:08 pm

I've been running arch on a raspi2b for a little over a year with what I think is relative success, and miscellaneous distros (mosly arch-based) on pc for a few years for very sporadic use. I'm a programmer irl and spend a lot of time on tech, so I'm not a total idiot, but the intricacies and jargon of certain aspects of linux distros are still like quantum computing to me and there's only so deep 1 person can dig into the plumbing of a system he only uses for a hobby before just getting fed up with it and throwing the stuff back into the closet... So yeah, not a linux pro but it's not like I don't understand what a binary or terminal is and does :D I just dont know what's supposed to look how to be correct (besides the obvious), what is and isn't safe to do or delete, how some aspects of the kernel environment work, etc.

Since some moment many months ago, I've started getting an error during kernel updates/mkinitcpio runs:
$this->bbcode_second_pass_quote('', '=')=> WARNING: No modules were added to the image. This is probably not what you want.

Things never actually go really wrong, my kernel gets updated like it should and I can reboot all I want without problems. I've always been googling any error messages I get, and I can usually fix things, but this one keeps eluding me. None of the info and solutions I've found have done anything, and I can't make any meaningful conclusions from my own observations when running certain commands and checking certain files.

Aside from that, I just keep getting minor errors left and right, it seems there are little broken things all over my system and I can't find information on them.

I'm just gonna post some hopefully relevant debugging information here and ask if someone could please go over things and tell me if something looks wrong and what to do about it. I know, it's a broad question... I just don't know the exact problem either. I have a metaphorical machine and when I turn it on, it makes loud abnormal clanging noises, and that's all I know.

My system setup in a nutshell is an sdcard with a small vfat partition for booting (as required by raspi and iirc it came out of the box with the iso from this project), and a large btrfs partition with all my stuff on it. I control my raspi via ssh from my pc or phone, only hooking up a keyboard and screen when all hands need to be on deck.

Upon ssh login (fairly new warning, nothing to be found on google):
$this->bbcode_second_pass_quote('', 'u')nicode_start skipped on /dev/pts/0


My /boot seems in order, with the kernel file having the timestamp from the latest build and all. I read in one forum post that the problem could be having your system set up for kernel version x while at runtime kernel y is loaded - I don't think I'm having that here (anymore).
$this->bbcode_second_pass_quote('', 'r')oot@raspi /h/marnes# ls -l /boot
total 18881
-rwxr-xr-x 1 root root 16507 Apr 20 03:23 bcm2709-rpi-2-b.dtb*
-rwxr-xr-x 1 root root 17608 Apr 20 03:23 bcm2710-rpi-3-b.dtb*
-rwxr-xr-x 1 root root 16364 Apr 20 03:23 bcm2710-rpi-cm3.dtb*
-rwxr-xr-x 1 root root 10283 Apr 20 03:23 bcm2836-rpi-2-b.dtb*
-rwxr-xr-x 1 root root 50268 Apr 20 02:34 bootcode.bin*
-rwxr-xr-x 1 root root 235 Mar 23 22:30 cmdline.txt*
-rwxr-xr-x 1 root root 211 Mar 23 21:18 cmdline.txt.bak*
-rwxr-xr-x 1 root root 127 Feb 23 01:42 config.txt*
-rwxr-xr-x 1 root root 6663 Apr 20 02:34 fixup.dat*
-rwxr-xr-x 1 root root 2578 Apr 20 02:34 fixup_cd.dat*
-rwxr-xr-x 1 root root 9802 Apr 20 02:34 fixup_db.dat*
-rwxr-xr-x 1 root root 3937515 Apr 20 14:48 initramfs-linux.img*
-rwxr-xr-x 1 root root 6754448 Apr 20 03:23 kernel7.img*
drwxr-xr-x 2 root root 9728 Apr 20 14:48 overlays/
-rwxr-xr-x 1 root root 2850564 Apr 20 02:34 start.elf*
-rwxr-xr-x 1 root root 656484 Apr 20 02:34 start_cd.elf*
-rwxr-xr-x 1 root root 4988612 Apr 20 02:34 start_db.elf*


cmdline.txt
(never touched any of the cryptic stuff, only the filesystem params and such, which seem to be working fine)
$this->bbcode_second_pass_quote('', 'r')oot=/dev/mmcblk0p2 rw rootwait rootflags=subvol=@arch,autodefrag,compress=lzo console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyAMA0,115200 elevator=noop logo.nologo


$this->bbcode_second_pass_quote('', 'r')oot@raspi /h/marnes# uname -r
4.9.23-1-ARCH
root@raspi /h/marnes# cat /proc/version
Linux version 4.9.23-1-ARCH (builduser@leming) (gcc version 6.3.1 20170306 (GCC) ) #1 SMP Wed Apr 19 19:19:37 MDT 2017


/lib/modules is where things start to look fishy to me, but I can't tell what is and isn't good. In particular, I was having a problem where some things like uname were reporting a different version number from other kernel-related components. The dir name in /lib/modules, uname, and depmod -a search path didn't match each other. Trying to fix the mismatch in either direction just swapped the complaining side. That seems to somehow have gone now after some fiddling.
$this->bbcode_second_pass_quote('', 'r')oot@raspi /h/marnes# cd /lib/modules
root@raspi /u/l/modules# ls
4.9.23-1-ARCH/ extramodules--raspberrypi/

root@raspi /u/l/modules# ls extramodules--raspberrypi/
version


This is new since fixing the kernel version cognitive dissonance...
$this->bbcode_second_pass_quote('', 'r')oot@raspi /u/l/modules# depmod -a
depmod: ERROR: fstatat(4, extramodules): No such file or directory

$this->bbcode_second_pass_quote('', 'r')oot@raspi /u/l/modules# pacman -S linux-raspberrypi
warning: linux-raspberrypi-4.9.23-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux-raspberrypi-4.9.23-1

Total Installed Size: 28.80 MiB
Net Upgrade Size: 0.00 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%(1/1) checking available disk space [##] 100%:: Processing package changes...
(1/1) reinstalling linux-raspberrypi [##] 100%>>> Updating module dependencies. Please wait ...
depmod: ERROR: fstatat(4, extramodules): No such file or directory
:: Running post-transaction hooks...
(1/2) Updating linux-raspberrypi initcpios
==> Building image from preset: /etc/mkinitcpio.d/linux-raspberrypi.preset: 'default'
-> -k 4.9.23-1-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.9.23-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
(2/2) Arming ConditionNeedsUpdate...

Why is there an old kernel dir inside the new one? Supposed to be or did it somehow end up there by mistake and does it need to be removed?
$this->bbcode_second_pass_quote('', 'r')oot@raspi /u/l/modules# ls 4.9.23-1-ARCH/
4.9.17-1-ARCH/ modules.builtin modules.order
extramodules@ modules.builtin.bin modules.softdep
kernel/ modules.dep modules.symbols
modules.alias modules.dep.bin modules.symbols.bin
modules.alias.bin modules.devname

root@raspi /u/l/modules# ls 4.9.23-1-ARCH/4.9.17-1-ARCH/
build/ modules.builtin modules.order
extramodules@ modules.builtin.bin modules.softdep
kernel/ modules.dep modules.symbols
modules.alias modules.dep.bin modules.symbols.bin
modules.alias.bin modules.devname

Am I missing anything here?
$this->bbcode_second_pass_quote('', 'r')oot@raspi /u/l/modules# pacman -Q | grep linux
libutil-linux 2.29.2-2
linux-api-headers 4.10.1-1
linux-firmware 20170309.695f2d6-1
linux-raspberrypi 4.9.23-1
linux-raspberrypi-headers 4.9.23-1
util-linux 2.29.2-2

So, to sum up:

Could someone please help me correct these things or walk me through a general system sanity check?

Sorry if this is a mess, I can't make it any more organized since everything is always in some state of being bugged and me having fiddled with it in 10 different ways to try to solve the problem. After a while I don't know what I have and haven't changed anymore either.
Marnes
 
Posts: 1
Joined: Thu Apr 20, 2017 1:07 pm
Top

Return to User Questions

Who is online

Users browsing this forum: No registered users and 7 guests