On 2018-06-22, <r...@rvx86.net> <r...@rvx86.net> wrote:
> So, I have a mipsel-none-elf32 bare-metal Clang/LLVM cross-compiler (and the
> corresponding bare-metal GNU cross-binutils), and the platform-specific code
> ('sys/mips/mips' and 'sys/mips/broadcom') from the FreeBSD source tree as a
> starting point.
>
> Are there any other specific considerations to bootstrapping OpenBSD using
> the cross-compiler? The target is a router (128MB flash, 128MB RAM), so a
> native build is probably impractical, I plan to attach urndis(4) devices to
> its lone USB port primarily.
>
> (Yes, I plan to do the porting myself, just wanted to ask about any build
> system specifics. There isn't much in the way of documentation re: porting
> OpenBSD to a "new" architecture.)
>
> Thanks
> R
>
>
>
>

Some starter URLs:

https://www.openbsd.org/papers/mips32-openbsd.pdf
https://news.ycombinator.com/item?id=10140219

It's up to you of course, but I think looking at some of the arm-based
designs showing up in cheap routers would be a better use of time and
more likely to be successful tbh.

There is minimal infrastructure for cross-builds in OpenBSD (and what
is there is only for base, not ports) as they are only really used for
initial porting, the aim being to switch to native builds as soon as
possible.

Reply via email to