[BeagleBone] Missing modules after upgrade

This forum is for supported devices using an ARMv7 Texas Instruments (TI) SoC.

Re: [BeagleBone] Missing modules after upgrade

Postby calzon65 » Sun Nov 04, 2012 8:52 pm

pepedog, any thoughts from my post above? Did I uncover a problem with a clean install of Arch on the BeagleBone?
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

Re: [BeagleBone] Missing modules after upgrade

Postby pepedog » Sun Nov 04, 2012 10:15 pm

Yes, I do have thoughts on this. I don't have any of these boards myself, but know this is in the PKGBUILD.
let's see where the files are going
pacman -Ql linux-am33

Edit: I can see they are still going into /usr/modules and not /usr/lib/modules
Can't see why
https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/linux-am33x/PKGBUILD
line 133
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [BeagleBone] Missing modules after upgrade

Postby calzon65 » Sun Nov 04, 2012 11:23 pm

Thank you for the reply pepedog.

Yes, after running pacman -Ql linux-am33x I see files installed under /usr/modules/3.2.32-3. Also, as you can see from my depmod -a output above, depmod seems to be looking for /lib/modules/3.2.31-3-ARCH.

Also, when I look at that script you linked, while looking at line 133 I was not seeing where $pkgdir is being initially set. I am not sure if that is significant.

It is not an inconvenience for me to reinstall my BeagleBone from scratch or run commands and post my results here; I would like to do what I can to help resolve this issue.

My Unix systems knowledge is a bit rusty, but please let me know how I can help.
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

Re: [BeagleBone] Missing modules after upgrade

Postby pepedog » Mon Nov 05, 2012 12:09 am

Can you
mv /usr/modules /usr/lib/modules
Then depmod -a
Just to try
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [BeagleBone] Missing modules after upgrade

Postby WarheadsSE » Mon Nov 05, 2012 1:29 am

You may need to also rename that dir. Seems the -ARCH is not making it into the directory, so there is a patch that may not be getting applied (a sed on the config actually)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [BeagleBone] Missing modules after upgrade

Postby calzon65 » Mon Nov 05, 2012 1:42 am

pepedog, are you sure you want me to run that command ... mv /usr/modules /usr/lib/modules will create /usr/lib/modules/modules.

So before I moved the directory, here is the ls -l from my existing structure.

$this->bbcode_second_pass_code('', '[root@BeagleBone modules]# ls -l /usr/lib/modules
total 4
drwxr-xr-x 2 root root 4096 Nov 3 12:42 3.2.32-3
')

$this->bbcode_second_pass_code('', '[root@BeagleBone modules]# ls -l /usr/lib/modules/3.2.32-3
total 0
lrwxrwxrwx 1 root root 27 Nov 3 12:42 build -> ../../../src/linux-3.2.32-3
')

$this->bbcode_second_pass_code('', '[root@BeagleBone modules]# ls -l /usr/modules
total 8
drwxr-xr-x 3 root root 4096 Nov 3 12:42 3.2.32-3
drwxr-xr-x 2 root root 4096 Nov 3 12:41 extramodules-3.2--am33x
[root@BeagleBone modules]#
')

$this->bbcode_second_pass_code('', '[root@BeagleBone modules]# ls -l /usr/modules/3.2.32-3
total 1356
lrwxrwxrwx 1 root root 26 Nov 3 12:41 extramodules -> ../extramodules-3.2--am33x
drwxr-xr-x 9 root root 4096 Nov 3 12:40 kernel
-rw-r--r-- 1 root root 319869 Nov 3 12:41 modules.alias
-rw-r--r-- 1 root root 338585 Nov 3 12:41 modules.alias.bin
-rw-r--r-- 1 root root 7235 Nov 3 12:40 modules.builtin
-rw-r--r-- 1 root root 9299 Nov 3 12:42 modules.builtin.bin
-rw-r--r-- 1 root root 115923 Nov 3 12:41 modules.dep
-rw-r--r-- 1 root root 180917 Nov 3 12:41 modules.dep.bin
-rw-r--r-- 1 root root 171 Nov 3 12:42 modules.devname
-rw-r--r-- 1 root root 58223 Nov 3 12:40 modules.order
-rw-r--r-- 1 root root 131 Nov 3 12:42 modules.softdep
-rw-r--r-- 1 root root 128436 Nov 3 12:42 modules.symbols
-rw-r--r-- 1 root root 163980 Nov 3 12:42 modules.symbols.bin
')

EDIT:

WarheadsSE you caught that too. I'm glad because it makes me believe I'm not losing my mind. I noticed that a few posts back but was not sure if it was relevant since nobody commented on it. I can see from the depmod -a results, it's looking for a version (directory) that has -ARCH appended to the end. Also, I don't remember seeing -ARCH appended to the version release from previous releases (e.g., a few months ago), I wonder if the -ARCH extension is new.

$this->bbcode_second_pass_code('', '[root@BeagleBone modules]# uname -a
Linux BeagleBone 3.2.21-3-ARCH #1 PREEMPT Tue Jul 24 05:32:19 UTC 2012 armv7l GNU/Linux
')

$this->bbcode_second_pass_code('', '[root@BeagleBone modules]# depmod -a
ERROR: could not open directory /lib/modules/3.2.21-3-ARCH: No such file or directory
FATAL: could not search modules: No such file or directory
')
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

Re: [BeagleBone] Missing modules after upgrade

Postby kmihelich » Mon Nov 05, 2012 3:38 am

Fixed in 3.2.32-4.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: [BeagleBone] Missing modules after upgrade

Postby calzon65 » Mon Nov 05, 2012 3:59 am

Very nice. I am actually in the process of creating another clean microSD card ... I will post my results with the -4 version.
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

Re: [BeagleBone] Missing modules after upgrade

Postby calzon65 » Mon Nov 05, 2012 4:13 am

So far the -4 version is working without incident. /usr/lib/modules looks correct and I now see the -ARCH suffix has been added ... thank you.

I manually copied /boot/uImage to the bootloader on my microSD card. I thought this might be accomplished by the upgrade script. Am I wrong? Should I always plan to manually copy /boot/uImage to my bootloader partition?
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

Re: [BeagleBone] Missing modules after upgrade

Postby kmihelich » Mon Nov 05, 2012 4:16 am

You could add the SD partition in your fstab to mount to /boot, otherwise yes, you will need to.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

PreviousNext

Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 4 guests