Re: Restoring MIPS32 support as a private project

2018-06-24 Thread Stuart Henderson
On 2018-06-22,   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.



Re: Restoring MIPS32 support as a private project

2018-06-23 Thread Reese
Hello,

I have always thought about running obsd on my ci20
https://en.wikipedia.org/wiki/Imagination_Creator#Creator_Ci20 the v2 is
the one I have. I am not that great of a coder but could try running
some builds or something. I'd like to get more involved with the
project. I learn a lot just reading the list.

Have a good day all :)

On Fri, Jun 22, 2018 at 02:37:46PM -0500, 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
> 
> 
> 



Restoring MIPS32 support as a private project

2018-06-22 Thread rick
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