Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jun 2015 23:21:42 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        "freebsd-embedded@freebsd.org" <embedded@freebsd.org>,  "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: Starting to cross-compile non-base software for MIPS - what it's like
Message-ID:  <CAJ-VmokS7ac7GHBSyajVJrenEa0s226xdrfAaDyPi4Rz=OfHXw@mail.gmail.com>
In-Reply-To: <CAJ-VmomYqmkZimzpXgxJK00vDhxK%2BqUdMSk%2BxXXiaZ_qdE6COQ@mail.gmail.com>
References:  <CAJ-VmonSXYdLP_VpGh%2B3N_WfGwDLqWGcuPvOCf4VkOd0pJ5QWg@mail.gmail.com> <CAJ-Vmom%2BkGODRk8eT4LyFRnwTJd2AHwgrR6cbrB7hE6Z8Cx_Vw@mail.gmail.com> <CAJ-VmomYqmkZimzpXgxJK00vDhxK%2BqUdMSk%2BxXXiaZ_qdE6COQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmokS7ac7GHBSyajVJrenEa0s226xdrfAaDyPi4Rz=OfHXw>