cross compiling & Native installing

Matthias Meyser meyser at xenet.de
Sun May 11 10:10:02 UTC 2014


Am 10.05.2014 13:47, schrieb Ian Lepore:
> On Sat, 2014-05-10 at 09:53 +0200, Matthias Meyser wrote:
>> 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
>>
[...]
>>
>>
>> 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 at 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 at bbb.lan.xenet.de:/usr/obj/usr/src/sys/BEAGLEBONE
>>    arm
>>
>> /usr/src: latest head
>>
>>
>
> I think it's the CROSS_BUILD_TESTING that's causing the problem.  It's
> trying to run the x86 cross-tools during the native install.  Try
> replacing that with MAKEOBJDIRPREFIX=/usr/obj/arm.armv6.

make installkernel KERNCONF=BBB MAKEOBJDIRPREFIX=/usr/obj/arm.armv6

givs the exact same error.

> I'm not sure
> that'll work, I've never tried to do what you're doing... I do the
> install on the same machine as the cross-builds, using
>
>   make installworld TARGET_ARCH=armv6 DESTDIR=/path/to/nfsroot
>
> and likewise for installkernel but with KERNCONF added.

I will use that as a workaround.

-- Matthias


More information about the freebsd-arm mailing list