[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 WarheadsSE » Thu Oct 25, 2012 4:24 pm

And no, pepedog it doesn't make sense that not having boot mounted is causing depmod failure to even open the dir that is _right there_
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 pepedog » Thu Oct 25, 2012 6:22 pm

My eyes missed that
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [BeagleBone] Missing modules after upgrade

Postby phaedrus961 » Thu Oct 25, 2012 7:19 pm

I've just encountered the same problem and found that the modules ended up in /usr/modules rather than /usr/lib/modules. The culprit seems to be this bit from commit fe247e1:
$this->bbcode_second_pass_code('', '
@@ -127,7 +127,6 @@ package_linux-am33x() {
depmod -b "$pkgdir" -F System.map "$_kernver"

# move module tree /lib -> /usr/lib
- mkdir -p "${pkgdir}/usr"
mv "$pkgdir/lib" "$pkgdir/usr"
}
')
I assume that line was removed by mistake?
phaedrus961
 
Posts: 1
Joined: Thu Oct 25, 2012 7:11 pm

Re: [BeagleBone] Missing modules after upgrade

Postby ykmag » Thu Oct 25, 2012 8:15 pm

Can it be fixed with a simple
$this->bbcode_second_pass_code('', 'mv /usr/modules /usr/lib/modules')

or is there more to it?

Good find by the way!
ykmag
 
Posts: 61
Joined: Wed Aug 18, 2010 1:28 pm

Re: [BeagleBone] Missing modules after upgrade

Postby pepedog » Sat Nov 03, 2012 12:08 pm

phaedrus961
Should it read
mv "$pkgdir/lib" "$pkgdir/usr/"
If so I'll put it right
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [BeagleBone] Missing modules after upgrade

Postby WarheadsSE » Sat Nov 03, 2012 1:31 pm

@pepedog
Yes, it should. You are inadvertently moving /lib to /usr instead of moving /lib into /usr
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 » Sun Nov 04, 2012 12:06 am

I have been hainvg the same/similar issues on my BeagleBone. Based on some output the developers wanted from ykmag, I also ran the same commands requested. After running the update to linux-am33x and rebooting, uname -a still returns 3.2.18.1 but I would have expected 3.2.32-3. Here is the output for the commands I ran.

$this->bbcode_second_pass_code('', '[root@BeagleBone usr]# uname -a
Linux BeagleBone 3.2.18-1 #1 PREEMPT Thu Jun 14 22:23:06 UTC 2012 armv7l GNU/Linux
')

$this->bbcode_second_pass_code('', '[root@BeagleBone usr]# pacman -S linux-am33x
warning: linux-am33x-3.2.32-3 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): linux-am33x-3.2.32-3

Total Installed Size: 20.38 MiB
Net Upgrade Size: 0.00 MiB

Proceed with installation? [Y/n] y
(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%
(1/1) upgrading linux-am33x [######################################] 100%
>>> Updating module dependencies. Please wait ...
[root@BeagleBone usr]#
')

After reboot, this is what I have:

$this->bbcode_second_pass_code('', '[root@BeagleBone usr]# uname -a
Linux BeagleBone 3.2.18-1 #1 PREEMPT Thu Jun 14 22:23:06 UTC 2012 armv7l GNU/Linux
')

$this->bbcode_second_pass_code('', '[root@BeagleBone usr]# ls -l /lib
lrwxrwxrwx 1 root root 7 Sep 13 19:26 /lib -> usr/lib')

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

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

$this->bbcode_second_pass_code('', '[root@BeagleBone usr]# depmod -a
ERROR: could not open directory /lib/modules/3.2.18-1: 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 pepedog » Sun Nov 04, 2012 12:20 am

Did you copy /boot/uImage to the 1st partition?
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 12:39 am

pepedog, no I did not do that but I will. Using my PogoPlug, which also runs ArchLinux, I am actually makeing a fresh install on a different SD card for my BeagleBone to try that first. I wanted to take a look at the O/S on my BeagleBone after a clean install using a different SD card. Then on the current SD card in my BeagleBone, I will copy /boot/ulmage to the 1st partition as you suggest and post my results.
Last edited by calzon65 on Sun Nov 04, 2012 3:26 pm, edited 1 time in total.
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

Re: [BeagleBone] Missing modules after upgrade

Postby calzon65 » Sun Nov 04, 2012 6:23 am

So as an experiment I took a new microSD card and created a fresh install of ArchLinux for my BeagleBone. I thought it might be a good idea to try a completely clean install to see what happens when I use pacman.

I booted the BeagleBone with the fresh installed microSD card then ran pacman -Syu. After first updating pacman before anything else, as well as running pacman-key --init, I then ran pacman again to updated all the other modules and when upgrading the 52nd item, I get this error message.

$this->bbcode_second_pass_code('', '(36/52) upgrading linux-am33x [######################################] 100%
>>> Updating module dependencies. Please wait ...
ERROR: could not open directory /lib/modules/3.2.32-3: No such file or directory
FATAL: could not search modules: No such file or directory
error: command failed to execute correctly
')

I assumed that a clean install would not come up with this error. Pepedog, are you in the middle of makeing some changes? I'm not sure if I should wait until you are done or do something else. I am willing to be the "guinea pig" to help debug clean installs.

FYI, this is the script I used on my PogoPlug to creat a fresh install of ArchLinux on the microSD card for my BeagleBone ... which does copy uImage to the boot partition. Could I be grabbing a the wrong version of ArchLinux with wget?

$this->bbcode_second_pass_code('', '# This script is used to create a new (clean) install of Arch Linux for the BeagleBone.
# Before you use this script, you must use fdisk to create two partitions on the SD card.
# The first partition only needs to be 128MB in size but must be set to bootable and must
# be type 'e' which is FAT 16.
# The second partition is a normal Linux partition.

mkfs.vfat -F 16 -n "bootloader" /dev/sdb1
mkfs.ext3 -L "rootfs" /dev/sdb2
mkdir /tmp/boot
mkdir /tmp/root
mount /dev/sdb1 /tmp/boot
mount /dev/sdb2 /tmp/root
wget http://archlinuxarm.org/os/omap/BeagleBone-bootloader.tar.gz
wget http://archlinuxarm.org/os/ArchLinuxARM-am33x-latest.tar.gz
tar -xvf BeagleBone-bootloader.tar.gz -C /tmp/boot
tar -xvf ArchLinuxARM-am33x-latest.tar.gz -C /tmp/root
cp /tmp/root/boot/uImage /tmp/boot
sync
sync
sync
umount /tmp/boot
umount /tmp/root
rmdir /tmp/boot
rmdir /tmp/root
rm BeagleBone-bootloader*
rm ArchLinuxARM*')

I thought this was strange, look at these results from the clean install. Is "-ARCH" intended to be part of the uname and depmod, especiallyl when look look at the output from ls -l /lib/modules, there is no "-ARCH" on the end of the directory name.

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

$this->bbcode_second_pass_code('', '[root@alarm 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
')

$this->bbcode_second_pass_code('', '[root@BeagleBone modules]# ls -l /lib
lrwxrwxrwx 1 root root 7 Sep 13 19:26 /lib -> usr/lib
')

$this->bbcode_second_pass_code('', '[root@BeagleBone ~]# ls -l /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 /lib/modules/3.2.32-3
total 0
lrwxrwxrwx 1 root root 27 Nov 3 12:42 build -> ../../../src/linux-3.2.32-3
')
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

PreviousNext

Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 2 guests