From owner-freebsd-arm@FreeBSD.ORG Sat May 10 07:54:09 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 39455AB3 for ; Sat, 10 May 2014 07:54:09 +0000 (UTC) Received: from server1.xenet.de (server1out.xenet.de [213.221.94.200]) by mx1.freebsd.org (Postfix) with ESMTP id A0F169C for ; Sat, 10 May 2014 07:54:07 +0000 (UTC) Received: from [10.0.0.50] (intern.xenet.de [213.221.94.50]) (authenticated bits=0) by server1.xenet.de (8.12.5/8.12.5) with ESMTP id s4A7rudC054589 for ; Sat, 10 May 2014 09:53:59 +0200 (CEST) (envelope-from meyser@xenet.de) Message-ID: <536DDB0B.7040502@xenet.de> Date: Sat, 10 May 2014 09:53:47 +0200 From: Matthias Meyser Organization: XeNET GmbH, Clausthal-Zellerfeld User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-arm@FreeBSD.org Subject: cross compiling & Native installing Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.38 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 May 2014 07:54:09 -0000 Hi I xcompile armv6 World and kernel (BEAGLEBONE) on an amd64 machine with make buildworld TARGET=arm TARGET_ARCH=armv6 make buildkernel TARGET=arm TARGET_ARCH=armv6 KERNCONF=BEAGLEBONE this works as expected. The I want to install world/kernel on the target machine (Beagelbone black) on the Beagkebone I nfsmount /usr/src /usr/doc /usr/obj exported from the build machine. then I do cd /usr/src make installkernel KERNCONF=BEAGELBONE CROSS_BUILD_TESTING=yes to install the kernel this does not work -------------------------8<--------------------------------------------- -------------------------------------------------------------- >>> Installing kernel BEAGLEBONE -------------------------------------------------------------- cd /usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE; MAKEOBJDIRPREFIX=/usr/obj/arm.armv6 MACHINE_ARCH=armv6 MACHINE=arm CPUTYPE= GROFF_BIN_PATH=/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/sbin:/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/games:/usr/obj/arm.armv6/usr/src/tmp/legacy/bin:/usr/obj/arm.armv6/usr/src/tmp/usr/sbin:/usr/obj/arm.armv6/usr/src/tmp/usr/bin:/usr/obj/arm.armv6/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin make KERNEL=kernel install cc: Exec format error make[2]: "/usr/src/share/mk/bsd.compiler.mk" line 12: warning: "cc --version" returned non-zero status make[2]: "/usr/src/share/mk/bsd.compiler.mk" line 20: Unable to determine compiler type for cc. Consider setting COMPILER_TYPE. *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src -------------------------8<--------------------------------------------- Any hints are welcome. uname Buildsystem: FreeBSD slx00.lan.xenet.de 10.0-STABLE FreeBSD 10.0-STABLE #1 r262074: Tue Feb 18 01:00:39 CET 2014 root@slx00.lan.xenet.de:/usr/obj/usr/src/sys/SLX00 amd64 uname Beaglebone: FreeBSD bbb.lan.xenet.de 11.0-CURRENT FreeBSD 11.0-CURRENT #0: Thu May 8 10:16:09 CEST 2014 root@bbb.lan.xenet.de:/usr/obj/usr/src/sys/BEAGLEBONE arm /usr/src: latest head -- Matthias Meyser | XeNET GmbH Tel.: +49-5323-9489050 | 38678 Clausthal-Zellerfeld, Marktstrasse 40 Fax: +49-5323-94014 | Registergericht: Amtsgericht Braunschweig HRB 110823 Email: Meyser@xenet.de | Geschaeftsfuehrer: Matthias Meyser