LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   current 19/12/2019, kernel modules did not install. (https://www.linuxquestions.org/questions/slackware-arm-108/current-19-12-2019-kernel-modules-did-not-install-4175667001/)

justwantin 01-03-2020 05:27 AM

current 19/12/2019, kernel modules did not install.
 
I installed current 19/12/19 on a bananapro two days ago and finally got around to compiling an rtl8192u module for the system today. Compile went well but when I went to put it where it belonged I found that there were no modules installed. I re-installed them manually and all was good afterwards. However, I did a full install less some package groups. the kernel modules package was where it belonged on my install usb. I really don't know what went wrong but if you can't find your kernel modules in current know that you are not alone.

drmozes 01-03-2020 12:49 PM

Quote:

Originally Posted by justwantin (Post 6073860)
I installed current 19/12/19 on a bananapro two days ago and finally got around to compiling an rtl8192u module

Thanks, I'll add that to the kernel config.

Quote:

for the system today. Compile went well but when I went to put it where it belonged I found that there were no modules installed. I re-installed them manually and all was good afterwards. However, I did a full install less some package groups. the kernel modules package was where it belonged on my install usb. I really don't know what went wrong but if you can't find your kernel modules in current know that you are not alone.
The package contains the Kernel modules, and works on my systems so I suspect a local problem there:

Code:

root@zippy:~# ls /lib/modules/5.4.5-armv7/kernel/
arch/  block/  crypto/  drivers/  fs/  kernel/  lib/  net/  security/  sound/
root@zippy:~# find /lib/modules/5.4.5-armv7/ -type f| wc -l
3728

Did you build the module from source in /usr/src/linux that is provided by the 'kernel-source' package?

justwantin 01-03-2020 02:36 PM

Quote:

Thanks, I'll add that to the kernel config.
Never wanted to bother you about it and anyway I don't learn anything if I'm not challenged
Quote:

The package contains the Kernel modules, and works on my systems so I suspect a local problem there:
ditto
Quote:

Did you build the module from source in /usr/src/linux that is provided by the 'kernel-source' package?
yes, after selecting it in menuconfig and saving
Code:

# make modules_prepare
# make M=staging/rtl8192u

then put it where it belonged in the modules tree.

justwantin 01-03-2020 04:43 PM

my apologies .... working from memory ... buffer overrun .. holidays, etc . wrong driver wrong command.
Code:

# make modules_prepare
# make M=drivers/staging/rtl8712


justwantin 01-05-2020 01:19 AM

@drmozes
Quote:

The package contains the Kernel modules, and works on my systems so I suspect a local problem there:
Code:

root@zippy:~# ls /lib/modules/5.4.5-armv7/kernel/
arch/  block/  crypto/  drivers/  fs/  kernel/  lib/  net/  security/  sound/
root@zippy:~# find /lib/modules/5.4.5-armv7/ -type f| wc -l
3728


I have re-installed current, it boots and seems to be working fine. However, please note that second time around it still appears that the kernel modules did not install.
Code:

root@bpro10:/home/rick# ls /lib/modules/5.4.5-armv7/kernel/
root@bpro10:/home/rick# find /lib/modules/5.4.5-armv7/ -type f| wc -l
12

I selected 'terse' messages and did see a line saying that 'kernel-modules-armv7-5.4.5_armv7' were being installed. However nothing is there,
Code:

root@bpro10:/home/rick# ls /lib/modules/5.4.5-armv7/kernel/
root@bpro10:/home/rick# find /lib/modules/5.4.5-armv7/ -type f| wc -l
12

but after manually installing I have the same as you
Code:

root@bpro10:/home/rick# installpkg kernel-modules-armv7-5.4.5_armv7-arm-1.txz
Verifying package kernel-modules-armv7-5.4.5_armv7-arm-1.txz.
Installing package kernel-modules-armv7-5.4.5_armv7-arm-1.txz:
PACKAGE DESCRIPTION:
# Linux kernel modules for devices with an ARMv7 CPU
<snipped>
Executing install script for kernel-modules-armv7-5.4.5_armv7-arm-1.txz.
Package kernel-modules-armv7-5.4.5_armv7-arm-1.txz installed.

root@bpro10:/home/rick# ls /lib/modules/5.4.5-armv7/kernel/
arch  block  crypto  drivers  fs  kernel  lib  net  security  sound
root@bpro10:/home/rick# find /lib/modules/5.4.5-armv7/ -type f| wc -l
3728

It may be a silly question, and it wouldn't be my first, but where did the modules come from I was using before I installed the modules?

drmozes 01-05-2020 02:09 AM

Hi

The modules your system has loaded (visible from 'lsmod') come from the initrd '/boot/uinitrd-armv7', and indeed the system will boot into run level 3 without /lib/modules.
You will see some error messages during boot, but only a few.

I don't know what the issue is here, but check /tmp/installpkg-report.log to see if there's any output from that package.
I reinstall my machines regularly and I've never seen that before.

justwantin 01-05-2020 02:26 AM

I figured I was running on initrd modules but I wasn't sure. Nothing in /tmp/installpkg-report.log except
Code:

Install report for /usb-stick/slackwarearm-current/slackware/a/kernel-modules-armv7-5.4.5_armv7-arm-1.txz:
Quote:

I reinstall my machines regularly and I've never seen that before
aha ... that's it ... I might reinstall current once or twice a year. Your machines get a lot more practice!

Exaga 01-05-2020 02:48 AM

Quote:

Originally Posted by justwantin (Post 6074743)
aha ... that's it ... I might reinstall current once or twice a year. Your machines get a lot more practice!

Yesterday I installed Slackware ARM current 4 times on RPi2/3/4 devices. Yeah, it was a quiet day. :D

drmozes 01-05-2020 06:40 AM

Quote:

Originally Posted by justwantin (Post 6074743)
I figured I was running on initrd modules but I wasn't sure. Nothing in /tmp/installpkg-report.log except
Code:

Install report for /usb-stick/slackwarearm-current/slackware/a/kernel-modules-armv7-5.4.5_armv7-arm-1.txz:
aha ... that's it ... I might reinstall current once or twice a year. Your machines get a lot more practice!

Reinstall and before rebooting, drop into a shell and check /mnt/lib/modules to see if the modules were installed properly.

justwantin 01-05-2020 04:21 PM

OK finished reinstall and mules did indeed install. I have no idea why the didn't install the previous two install. I used the same source on a usb stick and the same b'pro on all three installs.
Code:

root@slackware:/mnt/lib/modules# cd 5.4.5-armv7/
root@slackware:/mnt/lib/modules/5.4.5-armv7# ls
build@            modules.builtin.bin      modules.order
kernel/            modules.builtin.modinfo  modules.softdep
modules.alias      modules.dep              modules.symbols
modules.alias.bin  modules.dep.bin          modules.symbols.bin
modules.builtin    modules.devname          source@
root@slackware:/mnt/lib/modules/5.4.5-armv7# cd kernel/
root@slackware:/mnt/lib/modules/5.4.5-armv7/kernel# ls
arch/  block/  crypto/  drivers/  fs/  kernel/  lib/  net/  security/  sound/
root@slackware:/mnt/lib/modules/5.4.5-armv7/kernel#

With regards to the incorrect date I reported in another thread, the modification date is correct this time around before and after running make clean. I propose to file this all under Stranger Things for lack of a reasonable explanation.
Code:

root@darkstar:/usr/src/linux# ls -l scripts/kconfig/mconf-cfg.sh*
-rwxr-xr-x 1 root root 1141 Dec 19  2019 scripts/kconfig/mconf-cfg.sh*



All times are GMT -5. The time now is 08:07 AM.