LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 01-03-2020, 05:27 AM   #1
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 773

Rep: Reputation: 94
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.
 
Old 01-03-2020, 12:49 PM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 872

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Quote:
Originally Posted by justwantin View Post
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?
 
Old 01-03-2020, 02:36 PM   #3
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 773

Original Poster
Rep: Reputation: 94
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.
 
Old 01-03-2020, 04:43 PM   #4
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 773

Original Poster
Rep: Reputation: 94
my apologies .... working from memory ... buffer overrun .. holidays, etc . wrong driver wrong command.
Code:
# make modules_prepare
# make M=drivers/staging/rtl8712
 
Old 01-05-2020, 01:19 AM   #5
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 773

Original Poster
Rep: Reputation: 94
@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?
 
Old 01-05-2020, 02:09 AM   #6
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 872

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
Old 01-05-2020, 02:26 AM   #7
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 773

Original Poster
Rep: Reputation: 94
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!

Last edited by justwantin; 01-05-2020 at 02:27 AM. Reason: tyop
 
Old 01-05-2020, 02:48 AM   #8
Exaga
Member
 
Registered: Nov 2012
Posts: 214

Rep: Reputation: 98
Quote:
Originally Posted by justwantin View Post
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.
 
Old 01-05-2020, 06:40 AM   #9
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 872

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Quote:
Originally Posted by justwantin View Post
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.
 
Old 01-05-2020, 04:21 PM   #10
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 773

Original Poster
Rep: Reputation: 94
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*
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Did you achieve your new year's resolution for 2019? jsbjsb001 General 15 12-13-2019 11:42 AM
[SOLVED] Slackware 14.2 Install mkinitrd ERROR: No /lib/modules/4.4.14-smp kernel modules tree found for kernel " 4.4.14-smp" laxware Slackware 4 01-04-2019 01:40 PM
PHP code did not create a cookie and it did not changed the background and text color Linh Programming 5 07-29-2004 11:15 PM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 02:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 08:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration