Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Feb 2017 17:03:30 -0700
From:      greg bauer <bauergreg786@yahoo.com>
To:        freebsd-arm@freebsd.org
Subject:   Poudriere armv6 RPI2
Message-ID:  <FF4E51EF-AD61-43E9-93B0-3F878113FE2A@yahoo.com>

next in thread | raw e-mail | index | archive | help
This is likely a novice question with an easy answer. I have used poudriere f=
or i386 and amd64 builds successfully many times. I thought I would try buil=
ding some packages for raspberry Pi.=20

I think I have qemu-arm-static setup correctly with binmiscctl=20
I have done=20

binmiscctl add armv6 \
--interpreter "/usr/local/bin/qemu-arm-static" \
--magic "\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0=
2\x00\x28\x00" \
--mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe=
\xff\xff\xff" \
--size 20 --set-enabled

And copied /usr/local/bin/qemu-arm-static into /poudriere/jail/(jail name)/u=
sr/local/bin

I have tried creating a jail with various combinations of the following and d=
eleting unsuccessful attempts with the -d option and trying again=20

With and without=20
-x

With both=20
-a arm.armv6
-a armv6

With the following sources=20
-m svn+https release/11.0.1
-m svn+https release/11.0.0
-m none -M /builds/releng/11.0/armv6  (files created with the below shell sc=
ript)
-m tar=3D/tmp/fbsd110R_arm6.tar (created following these instructions http:/=
/phaq.phunsites.net/2015/08/31/freebsd-on-the-raspi-pt-2-crosscompiling-arm6=
v-packages-for-freebsd/)
++++++++++++++
Shell script for -M option (I have an updated svn version in /svn/base/relen=
g/11.0 )
#!/bin/sh
CORES=3D6
TYPE=3Dreleng
VERSION=3D11.0
TARGET=3Darm
TARGET_ARCH=3Darmv6
UBLDR_LOADADDR=3D0x2000000
KERNCONF=3DRPI2
EMULATOR=3Dqemu-arm-static
DESTDIR=3D/builds/${TYPE}/${VERSION}/${TARGET_ARCH}
mkdir -p ${DESTDIR}
cd ${DESTDIR}
mkdir -p ${DESTDIR}/usr/obj
export MAKEOBJDIRPREFIX=3D${DESTDIR}/usr/obj
mkdir -p ${DESTDIR}/usr/local/bin
cp /usr/local/bin/${EMULATOR} ${DESTDIR}/usr/local/bin
cp /usr/local/bin/qemu-system-${TARGET} ${DESTDIR}/usr/local/bin
mkdir -p ${DESTDIR}/usr/
ln -s /svn/base/${TYPE}/${VERSION}/ ${DESTDIR}/usr/src
cd ${DESTDIR}/usr/src
make -j ${CORES} -DNO_CLEAN UBLDR_LOADADDR=3D${UBLDR_LOADADDR} TARGET=3D${TA=
RGET} TARGET_ARCH=3D${TARGET_ARCH} buildworld
make -j ${CORES} -DNO_CLEAN KERNCONF=3D${KERNCONF} TARGET=3D${TARGET} TARGET=
_ARCH=3D${TARGET_ARCH} buildkernel
make DESTDIR=3D${DESTDIR} TARGET=3D${TARGET} TARGET_ARCH=3D${TARGET_ARCH} in=
stallkernel
make DESTDIR=3D${DESTDIR} TARGET=3D${TARGET} TARGET_ARCH=3D${TARGET_ARCH} in=
stallworld
make DESTDIR=3D${DESTDIR} TARGET=3D${TARGET} TARGET_ARCH=3D${TARGET_ARCH} di=
stribution

++++++++++++
The error is always as follows.=20

# poudriere bulk -j fbsd110Rarmv6_RPI2 -p HEAD shells/bash
[00:00:00] =3D=3D=3D=3D>> Cross-building ports for arm.armv6 on amd64 requir=
es QEMU
[00:00:00] =3D=3D=3D=3D>> Creating the reference jail... done
[00:00:12] =3D=3D=3D=3D>> Mounting system devices for fbsd110Rarmv6_RPI2-HEA=
D
[00:00:12] =3D=3D=3D=3D>> Mounting ports/packages/distfiles
[00:00:12] =3D=3D=3D=3D>> Using packages from previously failed build
[00:00:12] =3D=3D=3D=3D>> Mounting packages from: /poudriere/data/packages/f=
bsd110Rarmv6_RPI2-HEAD
[00:00:12] =3D=3D=3D=3D>> Raising MAX_EXECUTION_TIME and NOHANG_TIME for QEM=
U
[00:00:12] =3D=3D=3D=3D>> Copying latest version of the emulator from: /usr/=
local/bin/qemu-arm-static
/etc/resolv.conf -> /poudriere/data/.m/fbsd110Rarmv6_RPI2-HEAD/ref/etc/resol=
v.conf
[00:00:12] =3D=3D=3D=3D>> Starting jail fbsd110Rarmv6_RPI2-HEAD
[00:00:12] =3D=3D=3D=3D>> Error: Unable to execute id(1) in jail. Emulation o=
r ABI wrong.
[00:00:12] =3D=3D=3D=3D>> Cleaning up
[00:00:12] =3D=3D=3D=3D>> Umounting file systems

A few questions=20
Is my issue with qemu and binmiscctl or poudriere?
Is the -x option necessary when creating the jail?
Is -a arm.armv6 or -a armv6 correct?
Is there a way to test qemu functionality?

Thanks.=20






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FF4E51EF-AD61-43E9-93B0-3F878113FE2A>