Raspberry Pi 3 Chroot

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

Raspberry Pi 3 Chroot

Postby martyg » Thu Sep 28, 2017 2:58 pm

Hello, I am trying to set up a chroot build environment for my Raspberry Pi 3 to allow building from AUR.
I am running into snags with platform settings. Help!

Here I am following the regular process from the Wiki.

Code: Select all
# pacman -Suy # System is up-to-date
# uname -a
Linux rpi 4.9.51-1-ARCH #1 SMP Sat Sep 23 00:35:12 UTC 2017 armv7l GNU/Linux
# mkarchroot chroot base
...
setarch: armv7h: Unrecognized architecture
#

# arch-nspawn chroot
setarch: armv7h: Unrecognized architecture


If I try some manual workarounds, I just seem to dig myself deeper.

Code: Select all
# mkdir chroot1
# pacstrap -c -d chroot1/ base
#

# arch-nspawn chroot1
==> ERROR: '/root/chroot1' does not appear to be an Arch chroot.

# systemd-nspawn -D chroot1
Spawning container chroot1 on /root/chroot1.
Press ^] three times within 1s to kill container.
-bash: cannot set terminal process group (-1): Inappropriate ioctl for device
-bash: no job control in this shell
[root@chroot1 ~]#


(Note the container came up this way, but I am getting some scary warnings from bash)

I am going about this the "right" way?
Should I (gulp!) consider a X86_64->ARMv7h cross-compile environment instead? Where to start?
martyg
 
Posts: 2
Joined: Thu Sep 28, 2017 12:57 am

Re: Raspberry Pi 3 Chroot

Postby martyg » Thu Sep 28, 2017 7:12 pm

Forgot to mention, on this host:

Code: Select all
# setarch --list
uname26
linux32
linux64
armv7l
martyg
 
Posts: 2
Joined: Thu Sep 28, 2017 12:57 am

Re: Raspberry Pi 3 Chroot

Postby welkie » Thu Oct 12, 2017 6:01 pm

Are you sure you have a Raspberry Pi 3? The architecture in your post is armv7h which corresponds to the Raspberry Pi 2. The Pi 3 uses armv8.

See https://unix.stackexchange.com/questions/136407/is-my-linux-arm-32-or-64-bit.
welkie
 
Posts: 2
Joined: Thu Oct 12, 2017 5:56 pm

Re: Raspberry Pi 3 Chroot

Postby graysky » Thu Oct 12, 2017 6:17 pm

welkie wrote:Are you sure you have a Raspberry Pi 3? The architecture in your post is armv7h which corresponds to the Raspberry Pi 2. The Pi 3 uses armv8.

See https://unix.stackexchange.com/questions/136407/is-my-linux-arm-32-or-64-bit.


RPi3 is aarch64.
graysky
 
Posts: 355
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Raspberry Pi 3 Chroot

Postby andre » Sun Oct 15, 2017 8:56 pm

The hardware may be 64 bit, but might run a 32 bit Linux version. As the VideoCore stuff isn't ported to 64 bit Linux, you need to run the 32 bit version if you want video acceleration. Therefore, running the armv7h version on Raspberry Pi 3 is likely.
andre
 
Posts: 46
Joined: Wed Jan 25, 2012 1:39 pm
Location: Eindhoven


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 4 guests