Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Feb 2011 08:03:23 +1100
From:      Johny Mattsson <johny.mattsson+fbsd@gmail.com>
To:        Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: FreeBSD on a DockStar - doesn't mount root
Message-ID:  <AANLkTim1xg9nRWTvvbQUdge1%2BADDEPj39SgMpmgKOPL=@mail.gmail.com>
In-Reply-To: <20110215194313.c9141c1c.torfinn.ingolfsen@broadpark.no>
References:  <20110206181659.869861bf.torfinn.ingolfsen@broadpark.no> <201102062331.01760.hselasky@c2i.net> <20110207163835.41be5884.torfinn.ingolfsen@broadpark.no> <201102071656.11633.milu@dat.pl> <20110207204429.ae2fa012.torfinn.ingolfsen@broadpark.no> <20110207213437.9839d476.torfinn.ingolfsen@broadpark.no> <20110212003203.c4ed07d8.torfinn.ingolfsen@broadpark.no> <f4649e8f0ee1ffae34204dd2046feb56@webmail.informatik.uni-bremen.de> <20110215194313.c9141c1c.torfinn.ingolfsen@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On 16 February 2011 05:43, Torfinn Ingolfsen
<torfinn.ingolfsen@broadpark.no> wrote:
> Aha. Is there no way to pass FreeBSD kernel arguments (or what you call it) via U-Boot?

The short answer is no.

The slightly longer answer is that it would be possible if you were
booting into ubldr instead of the kernel directly. However that
requires that your U-Boot is built with the API option enabled, and
even if you get that far you then learn that ubldr doesn't grok
MBR/FATs and can't find the kernel, and if you try to go for a raw BSD
disk/UFS you find that U-Boot doesn't grok that, and can't find ubldr
in the first place.

In the end it was quicker for me to just recompile a couple of kernels
than patch one or the other to work with my setup. Should I find
myself with some extra spare time, I would like to go back and see if
I can improve this situation. Right now that doesn't seem likely to
happen any time soon however.

Regards,
/Johny

Last minute edit: I don't think I ever tried placing ubldr directly
into the onboard flash and booting into it from there. That might be a
workable option, but you'll need to be careful of the load addresses
of the various U-Boots, ubldr and kernel - it's very easy to overload
one with another.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim1xg9nRWTvvbQUdge1%2BADDEPj39SgMpmgKOPL=>