by 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
')