Starting to cross-compile non-base software for MIPS - what it's like
Adrian Chadd
adrian at freebsd.org
Mon Jun 15 06:21:43 UTC 2015
So, for what it's worth - after the relevant hacks to convince the
various stages to do their thing, I actually /do/ have a user/kernel
cross-built from gcc-4.9.2 up on both the mips32 emulator (qemu) /and/
on real hardware (AR9331, MIPS24kc).
The installworld fails because somehow the CROSS_TOOLCHAIN bits aren't
being included right, so the compiler bits aren't set right. Here,
COMPILER_TYPE=gcc and COMPILER_VERSION=40902 - with this, MK_GCC is
set to NO and the legacy c++ library isn't built.
There's no compiler built with it though, so until I cross compile a
compiler package (and cross-compile pkg, grr) getting a compiler
/into/ the image is going to take some time.
But, it does boot and run fine, and cross-compiled binaries (eg
dropbear client/server) work fine, as well as crunchgen binaries
(rescue, bsdbox.)
-adrian
More information about the freebsd-mips
mailing list