Ras Pi 2 install help?

Raspberry Pi 2

Ras Pi 2 install help?

Postby random_user_93816 » Fri Sep 13, 2024 4:52 am

I'm trying to install Arch ARM onto Ras Pi 2 Model B. I followed this guide, and got these problems:
[url]https://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2[/url]

* Host: Linux Mint 21.3 x86-64

- Inserted MicroUSB card into computer, (Linux) "ejected" (to be able to format).
sudo fdisk /dev/sdb1 [DEVICE HARDWARE NAME]
o
p
n
p
1
(enter)
+200M
t
L [LIST ALL TYPES]
0c ["W95 FAT32 (LBA)"]
n
p
2
(enter)
(enter)
w
sudo mkfs.vfat /dev/sdb1
sudo mkdir boot
sudo mount /dev/sdb1 boot
sudo mkfs.ext4 /dev/sdb1
sudo mkdir root
sudo mount /dev/sdb1 root
sudo apt install libarchive-tools [TO INSTALL "bsdtar"]
wget [url]http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-armv7-latest.tar.gz[/url] [ADDRESS COPIED DIRECTLY FROM "Downloads" PAGE]
bsdtar -xpf ArchLinuxARM-rpi-armv7-latest.tar.gz -C root
sync

* After "bsdtar" command, the following errors appeared:
Cannot restore extended attributes: security.SMACK64 security.SMACK64: Operation not permitted
mv: cannot stat 'root/boot/*': No such file or directory

* I tried a variation of these, with no change:
mv root/boot/* boot
mv root/boot/* boot /home/batman/Desktop/Ras Pi 2
mv root/boot/* boot "/home/batman/Desktop/Ras Pi 2"
mv root/boot/* boot:"/home/batman/Desktop/Ras Pi 2"
mv root/boot/* boot:/home/batman/Desktop/Ras Pi 2
random_user_93816
 
Posts: 4
Joined: Fri Sep 13, 2024 4:31 am

Re: Ras Pi 2 install help?

Postby baslking » Fri Sep 13, 2024 3:25 pm

Did you follow step 5 exactly?

Download and extract the root filesystem (as root, not via sudo)

In your explanation I don't see that you did something like "sudo su -" before executing the bsdtar command.
baslking
 
Posts: 11
Joined: Thu Feb 18, 2021 10:53 pm

Re: Ras Pi 2 install help?

Postby random_user_93816 » Sat Sep 14, 2024 9:56 pm

Arch ARM image is 445.2 MB, larger than "200 MB" first partition, and 1.1GB extracted. So which partition size to use?
random_user_93816
 
Posts: 4
Joined: Fri Sep 13, 2024 4:31 am

Re: Ras Pi 2 install help?

Postby baslking » Sun Sep 15, 2024 2:50 pm

Just follow the instructions suggesting 200MB for the first partition. You will need something like 8GB on the 2nd partition to not be too tight on space once you install anything meaningful. 16GB would be better.

The tar file puts both partitions in one place for simplicity, so the instructions move the boot folder to the 1st partition. It should be about 64MB when copied. It is FAT formatted since the RPI bootloader doesn't know how to read an ext4 filesystem. Once the kernel boots it can read the 2nd partition. which is where most of the files are. it sounds like you may be new to some of this, and if so, you may find Arch Linux a bit of a steep climb.
baslking
 
Posts: 11
Joined: Thu Feb 18, 2021 10:53 pm

Re: Ras Pi 2 install help?

Postby random_user_93816 » Mon Sep 16, 2024 8:52 pm

- Trying "sudo su bsdtar -xpf ArchLinuxARM-rpi-armv7-latest.tar.gz -C root" (as written) results in:
su: invalid option -- 'x'
Try 'su --help' for more information.

- Trying "sudo bsdtar -xpf ArchLinuxARM-rpi-armv7-latest.tar.gz -C root" results in:
(attached "Error.txt".)
Basically this repeated at the end of different files:
Can't create 'bin': Operation not permitted
Cannot restore extended attributes on this file system.: Operation not supported
Last edited by random_user_93816 on Thu Sep 26, 2024 3:05 am, edited 1 time in total.
random_user_93816
 
Posts: 4
Joined: Fri Sep 13, 2024 4:31 am

Re: Ras Pi 2 install help?

Postby random_user_93816 » Thu Sep 26, 2024 3:05 am

I figured it out. I was using the same commands on the first partition, instead of separate commands on each partition.
random_user_93816
 
Posts: 4
Joined: Fri Sep 13, 2024 4:31 am


Return to Broadcom

Who is online

Users browsing this forum: No registered users and 6 guests