Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2014 09:48:54 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Matthias Meyser <Meyser@xenet.de>
Cc:        freebsd-arm@FreeBSD.org
Subject:   Re: cross compiling & Native installing
Message-ID:  <CC531A20-E21E-40F5-A93E-FCF41146D5B1@bsdimp.com>
In-Reply-To: <536DDB0B.7040502@xenet.de>
References:  <536DDB0B.7040502@xenet.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_6F295D7B-4A82-492D-830B-2BB02511ED2F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252


On May 10, 2014, at 1:53 AM, Matthias Meyser <Meyser@xenet.de> wrote:

> Hi
>=20
> I xcompile armv6 World and kernel (BEAGLEBONE) on an amd64 machine =
with
>=20
> make buildworld TARGET=3Darm TARGET_ARCH=3Darmv6
> make buildkernel TARGET=3Darm TARGET_ARCH=3Darmv6 KERNCONF=3DBEAGLEBONE
>=20
> this works as expected.
>=20
> The I want to install world/kernel on the target machine (Beagelbone =
black)
>=20
> on the Beagkebone I nfsmount /usr/src /usr/doc /usr/obj exported from
> the build machine.
>=20
> then I do
>=20
> cd /usr/src
> make installkernel KERNCONF=3DBEAGELBONE CROSS_BUILD_TESTING=3Dyes
>=20
> to install the kernel this does not work
>=20
> =
-------------------------8<---------------------------------------------
> --------------------------------------------------------------
> >>> Installing kernel BEAGLEBONE
> --------------------------------------------------------------
> cd /usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE; =
MAKEOBJDIRPREFIX=3D/usr/obj/arm.armv6  MACHINE_ARCH=3Darmv6  MACHINE=3Darm=
 CPUTYPE=3D GROFF_BIN_PATH=3D/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/bin=
 =
GROFF_FONT_PATH=3D/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/share/groff_fo=
nt GROFF_TMAC_PATH=3D/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/share/tmac =
PATH=3D/usr/obj/arm.armv6/usr/src/tmp/legacy/usr/sbin:/usr/obj/arm.armv6/u=
sr/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/u=
sr/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=3Dkernel =
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.

Have you considered setting COMPILER_TYPE to =93clang=94 or something? =
The problem is that the cross build is trying to invoke the compiler =
that runs on the x86 box. There are likely other issues similar to this, =
but give it a try.

Or do as Ian suggested and install from the compile host over NFS.

Warner

> *** Error code 1
>=20
> Stop.
> make[1]: stopped in /usr/src
> *** Error code 1
>=20
> Stop.
> make: stopped in /usr/src
> =
-------------------------8<---------------------------------------------
>=20
> Any hints are welcome.
>=20
> 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
>=20
> 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
>=20
> /usr/src: latest head
>=20
>=20
> --=20
> 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
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"


--Apple-Mail=_6F295D7B-4A82-492D-830B-2BB02511ED2F
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJTbkpmAAoJEGwc0Sh9sBEA63EQAO0vIZxjYasVV97EAVZ3/mrw
IOA1fr32r2DzEpDrWCRnF/BWGUeYh0rbWohhVjIMAPC82LdHqnN0xemLrsnRNVUm
tQu5UB9YmD3y9ojL0LLf1ss2UiI+N1SjWgD3qLdOGwwlDVoOrvR90cw3Ehj6xvn1
wcUFXP8n9o96JkUpFbw60BzaNLTM/g9jWK729h0V6kfanmo7ETytRKHmFGpx6BCF
pFY3BmrjNER0VPOkti51OR8wGVc8x+kIHScd3V9FGa/LHzhjmi3r8Sljl9f2EsOD
liGMidKHj1I4LmXQR3np5TglAzPXzzo9Xm13xvvsQBZzJnaiEsDIQiduO8TzxShA
uBNVk/JjYYBszXli3PjWrHaHQyBeqNtEtVPB88WGu245oSevmDIvxZsngdd0a68t
p2shgiW5cFe7znWR7UEA4neqz3UEYhhttmEVyM2WlzCVzMx3T6N7SFhs94zOeJe7
/+xGm5oHErggYfgA/aN2PXzBESq6ZnOM9xpzKtq7zFO6omYktbtJlzLwH2zx8925
hQGr0vkrxHI/FsOov2PJvfTjTe+unao5uaxXj+1kej+qchULpwkhiQmUfb0C1sN5
4V5jZ33RKdPDpeZVYTF0yvn2bb/o0zr7cj3fE89Yg+/YUgw5X321u4tWhpLAt6kq
N/WnSZiMLNh++ZeXKnG1
=f7GY
-----END PGP SIGNATURE-----

--Apple-Mail=_6F295D7B-4A82-492D-830B-2BB02511ED2F--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CC531A20-E21E-40F5-A93E-FCF41146D5B1>