Installing armv7h chroot

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

Installing armv7h chroot

Postby evand » Tue Sep 20, 2016 6:33 am

I've got Arch isntalled and running on an ODROID C2.

Thought I'd give this a try again to see whether issues I'd encountered previously have been resolved so I can run an armv7h package on the C2.

Using a custom pacman.conf that specifies:
$this->bbcode_second_pass_code('', 'Architecture = armv7h')

I've done the following as root:
$this->bbcode_second_pass_code('', '
pacman -S devtools
mkdir ~/chroot
CHROOT=$HOME/chroot
mkarchroot -C ./pacman.conf $CHROOT/root base base-devel
')

Right at the end of mkarchroot running I get this:
$this->bbcode_second_pass_code('', ':: Running post-transaction hooks...
(1/3) Updating the info directory file...
(2/3) Updating udev Hardware Database...
(3/3) Rebuilding certificate stores...
cp: cannot stat '/etc/pacman.d/gnupg': No such file or directory
setarch: armv7h: Unrecognized architecture
')

Any ideas how/why armv7h is an "Unrecognized architecture"?
evand
 
Posts: 20
Joined: Thu May 26, 2016 4:37 am

Re: Installing armv7h chroot

Postby WarheadsSE » Tue Sep 20, 2016 12:27 pm

Your best bet for this is to actually use the pacman.conf for armv7h, out of the repositories.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Installing armv7h chroot

Postby evand » Tue Sep 20, 2016 1:16 pm

Thanks WarheadsSE, I since extracted pacman.conf from ArchLinuxARM-odroid-c1-latest.tar.gz of a few months back and reran the above only to get an identical outcome:

$this->bbcode_second_pass_code('', ':: Running post-transaction hooks...
(1/3) Updating the info directory file...
(2/3) Updating udev Hardware Database...
(3/3) Rebuilding certificate stores...
cp: cannot stat '/etc/pacman.d/gnupg': No such file or directory
setarch: armv7h: Unrecognized architecture
')

FWIW, trying to gdownload the latest C1 build yields an error:$this->bbcode_second_pass_code('', '# wget http://os.archlinuxarm.org/os/ArchLinuxARM-odroid-c1-latest.tar.gz
--2016-09-20 15:18:25-- http://os.archlinuxarm.org/os/ArchLinuxARM-odroid-c1-latest.tar.gz
Resolving os.archlinuxarm.org (os.archlinuxarm.org)... 50.116.36.110
Connecting to os.archlinuxarm.org (os.archlinuxarm.org)|50.116.36.110|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://za.mirror.archlinuxarm.org/os/ArchLinuxARM-odroid-c1-latest.tar.gz [following]
--2016-09-20 15:18:26-- http://za.mirror.archlinuxarm.org/os/ArchLinuxARM-odroid-c1-latest.tar.gz
Resolving za.mirror.archlinuxarm.org (za.mirror.archlinuxarm.org)... 154.70.152.166
Connecting to za.mirror.archlinuxarm.org (za.mirror.archlinuxarm.org)|154.70.152.166|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2016-09-20 15:18:26 ERROR 403: Forbidden.
')

Web browser access yields the same:
$this->bbcode_second_pass_code('', 'You don't have permission to access /os/ArchLinuxARM-odroid-c1-latest.tar.gz on this server.') :roll:
evand
 
Posts: 20
Joined: Thu May 26, 2016 4:37 am

Re: Installing armv7h chroot

Postby moonman » Tue Sep 20, 2016 8:44 pm

Here is a direct link to a mirror: $this->bbcode_second_pass_code('', 'http://co.us.mirror.archlinuxarm.org/os/ArchLinuxARM-odroid-c1-latest.tar.gz')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Installing armv7h chroot

Postby mwq » Thu Oct 13, 2016 6:01 pm

I used pacstrap to create a armv7h chroot. And that was successful.

Full commands:
$this->bbcode_second_pass_code('', '
cp /etc/pacman.conf ./pacman.conf
sed -i "s/^Architecture =.*/Architecture = armv7h/g" ./pacman.conf
pacstrap -i -C ./pacman.conf -d ${CHROOTDIR} base --ignore linux
')

You may substitute ${CHROOTDIR} for something else.
mwq
 
Posts: 5
Joined: Thu Oct 13, 2016 4:36 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 20 guests

cron