Aviator45003
Posts: 3
Joined: Wed Jan 30, 2013 12:51 am

rPi, BerryBoot, ArchLinux (2 out of 3 ain't bad!)

Wed Jan 30, 2013 3:49 am

Hello Meatloaf.
Anyway, as the title suggest, I have a Raspberry Pi with BerryBoot 2 running and happy (Tested and Working), and I want to add Arch Linux.
I converted the image provided on the Arch Linux website to SqashFS as per the instructions on the BerryBoot page. I `cp`ed this to a flashdrive, brought it to school with the rPi, and copied it over there. I get a Kernel Panic right after the CPU governor is set, something about `/sbin/init` not being executed.
Does anybody have suggestions as to what to do?

Thanks,

The Aviator

Max

Re: rPi, BerryBoot, ArchLinux (2 out of 3 ain't bad!)

Wed Jan 30, 2013 2:34 pm

Need to reverse Arch's /lib -> /usr/lib symlink stuff.
See the Berryboot thread in "general discussion".

Aviator45003
Posts: 3
Joined: Wed Jan 30, 2013 12:51 am

Re: rPi, BerryBoot, ArchLinux (2 out of 3 ain't bad!)

Wed Jan 30, 2013 5:12 pm

Max wrote:Need to reverse Arch's /lib -> /usr/lib symlink stuff.
See the Berryboot thread in "general discussion".
I have, I sshed into my home box (I'm at school), and fixed up the disk there. Now `ls -l` on /usr/ returns a symlink `lib -> ../lib`. I will test when at home, and will see about this then.

Thanks Max!

Aviator45003
Posts: 3
Joined: Wed Jan 30, 2013 12:51 am

Re: rPi, BerryBoot, ArchLinux (2 out of 3 ain't bad!)

Thu Jan 31, 2013 2:21 am

Worked like a charm! [Solved], and will edit my first post to reflect the solution. Thank you SO much!
EDIT: So much for editing.

The following are the commands that I issued, just so nobody has to do any burrowing.

First the commands as Max entered them, then as I entered them (some ways to save typing).
Max's way:

Code: Select all

sudo kpartx -av archlinux-hf-2012-09-18.img
sudo mount /dev/mapper/loop0p2 /mnt
cd /mnt
sudo rm lib
sudo mv usr/lib lib
cd usr
sudo ln -s ../lib lib
cd /tmp
sudo mksquashfs /mnt Arch_Linux.img240 -comp lzo -e lib/modules
sudo kpartx -d archlinux-hf-2012-09-18.img 
My way, that doesn't care about what version of Arch you downloaded (I created a folder in my home directory called rPi and downloaded the disk image itself to there), and I also use /mnt for mounting flash drives, so I use subfolders in /mnt for mounting:

Code: Select all

sudo kpartx -av arch*.img
sudo mkdir /mnt/tmp/
sudo mount /dev/mapper/loop0p2 /mnt/tmp/
cd /mnt/tmp/
sudo rm lib
sudo mv usr/lib lib
cd usr
sudo ln -s ../lib lib
cd ~/rPi
sudo mksquashfs /mnt/tmp/ Arch_Linux.img240 -comp lzo -e lib/modules
sudo kpartx -d arch*.img 

kkprince
Posts: 24
Joined: Tue Oct 22, 2013 6:38 pm

Re: rPi, BerryBoot, ArchLinux (2 out of 3 ain't bad!)

Tue Apr 22, 2014 12:11 am

Could you please post a download link of the image?

r3curs10n
Posts: 3
Joined: Fri Sep 11, 2015 4:51 pm

Re: rPi, BerryBoot, ArchLinux (2 out of 3 ain't bad!)

Fri Sep 11, 2015 4:57 pm

Hello all, I am attempting to use ArchLinux, on a Pi2 with berryboot. I acquired "ArchLinuxARM-rpi-2-latest.tar(1).gz", however cannot find an .img or .squashfs. I'm unsure how to handle preparation of berryboot-images on a Windows X64 machine. I'm sorry if this is the wrong thread, but any ideas?

Return to “Troubleshooting”