From owner-freebsd-arm@freebsd.org Fri Feb 3 00:06:41 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6EC88CCC102 for ; Fri, 3 Feb 2017 00:06:41 +0000 (UTC) (envelope-from bauergreg786@yahoo.com) Received: from nm38-vm1.bullet.mail.gq1.yahoo.com (nm38-vm1.bullet.mail.gq1.yahoo.com [98.136.217.60]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4A32B1881 for ; Fri, 3 Feb 2017 00:06:40 +0000 (UTC) (envelope-from bauergreg786@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1486080394; bh=rG/sWZ0oerpD+B8ZKoCJ7hhUHeVGuNqzTQc+5kyyXS8=; h=From:Subject:Date:To:From:Subject; b=HuHuHLYjzImBelZNcv/O+n/iLLAbcH5ASl8ZfetSacTtz89pyslUr99c83V48p18n8n6oaPINK2nHpxMozf/eijUSrRa/spZVSdz4fXvQIhNzausxjFmAF1lxejIJTENRTNmTEjY+JDk40O+FNwodqJ4twAkZpN14OqYPjyUYCJFqRkG8DE5TXOA8rFxiL2N9m1jLe5omvS8npirxu9mEOmL5yZVHS10cnjUQRF3Z/hbrBdQ7tk+xd7qZYXDN1lHLRyWDFwBnAGbgEOxODa0gfGbbFlAfnnB5w/Efmj/FmO6vP13wwxngrB3SFVrODTZXnvLDHcKIqPRQqaufgpUmw== Received: from [127.0.0.1] by nm38.bullet.mail.gq1.yahoo.com with NNFMP; 03 Feb 2017 00:06:34 -0000 Received: from [98.137.12.60] by nm38.bullet.mail.gq1.yahoo.com with NNFMP; 03 Feb 2017 00:03:34 -0000 Received: from [98.136.164.70] by tm5.bullet.mail.gq1.yahoo.com with NNFMP; 03 Feb 2017 00:03:34 -0000 Received: from [127.0.0.1] by smtp232.mail.gq1.yahoo.com with NNFMP; 03 Feb 2017 00:03:34 -0000 X-Yahoo-Newman-Id: 486682.99066.bm@smtp232.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-4 X-YMail-OSG: tRmsCQ0VM1lG9fWEXAEezv0.wDNJ6V3KmZRghb9lG1tyOyi RQfNyzVizFN35eU7RYoFxlTbqCQOevvV1fLQnd4ZK27pxMKiFK_BGjyOpsQk wu.AIf_rG0b0cigUMnjHgOBM6NyKxm7mcad2usuOFqk1IFYhJiiLVki0g94M tyfSLkvw5TgYynlihJqhnl9nx8qw64vT0D59DbnFBTzZYNT1rElXpYInpLTg VcNEOKyR1e6um7d3peCNxvZAADfx3BaP0G9hr4NB_EbcUcXnyzGmSAuE68Ws yVQZftpB_w5zpsfNN0MRzvgVKhMJXwpkubpnJYte2jJEx9AoCwLATU.W4zkS Kms.HaQTS32q97fmeewLXhT7U9dyuECEnBAe9lw1cTFux7i1cFMIWnHHlMGJ GzYSpdIwAjc0jY_HqSR1SjZ8MjH8jbYkQn9M9xrSOHqNrcpmKuMqo0TO5wEn SUsjRQ62wB4oMSNEpkkd_3quL2IQoOeeYPMre75usgeB8AEEf8QZi1Y5fQtA cE3aoufMB9Eyf4JxkpbhFsrPwi9OyJ213yONp.w7atBUoIxHdK6m_ia09_kj _60oE1D9hisNegD7PjdI- X-Yahoo-SMTP: qDz2MUuswBARL03QLj6PStJko8jkFVhKS27oj2b7nJ7JMIuxeaEPVIHVAfTh6yS_0rS9fEQ- From: greg bauer Mime-Version: 1.0 (1.0) Subject: Poudriere armv6 RPI2 Message-Id: Date: Thu, 2 Feb 2017 17:03:30 -0700 To: freebsd-arm@freebsd.org X-Mailer: iPad Mail (14D27) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 00:06:41 -0000 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