Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2012 21:34:55 -0800
From:      Tim Kientzle <tim@kientzle.com>
To:        Rafal Jaworowski <raj@semihalf.com>
Cc:        arm@freebsd.org
Subject:   Re: FreeBSD and BeagleBone
Message-ID:  <214BF14D-33BA-4D3D-B043-31008E24F7AE@kientzle.com>
In-Reply-To: <AE745CFE-81C8-400C-BAC6-CED7341D0A99@semihalf.com>
References:  <23CB6C35-9450-40BA-9FA3-37C44B328CA8@freebsd.org> <CABt%2Bj0mB4w==h_SQ4YyDM24_wGOjcdZDK9T1N3DqjSkap0VkQw@mail.gmail.com> <E8A24EBE-967D-44F8-A884-3207B3C6F0FE@bsdimp.com> <8042D895-3B3D-431E-ADCC-A150BDC838ED@kientzle.com> <CAGW5k5ahyaTest3L0NTe1t%2B%2BYBgpLMkWZNpp=GRyz%2Bg=nMcZLg@mail.gmail.com> <7E53112E-DE29-4145-B597-D39AA77252C5@kientzle.com> <E1RoGMT-000DkR-6a@groundzero.grondar.org> <AEF07CD1-6794-4F04-AF9C-938423FE919B@kientzle.com> <DB160959-A698-415D-AACC-659D6469212E@semihalf.com> <101D3416-6B61-4840-A89E-4CF91B0BB8BC@kientzle.com> <AE745CFE-81C8-400C-BAC6-CED7341D0A99@semihalf.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 25, 2012, at 2:06 PM, Rafal Jaworowski wrote:
> On 2012-01-22, at 00:29, Tim Kientzle wrote:
>=20
>>=20
>> P.S.  Is it worth trying to generalize the ubldr Makefile
>> to accept some form of link address specification?
>=20
> In general yes, the challenge is how to do this in a smart and =
flexible way: loader/ubldr is built as part of the world which you don't =
want to entagle with platform specific knobs. On the other hand a =
configurable like this is specific to some board (not even a chip, soc =
or a familiy, anybody can have their U-Boot configured differently =
underneath..), so the question is how to convey this knowledge.

I know Warner has some ideas for organizing the tree to include
board information.  If each board has a directory, then
you could build a custom ubldr for each board.  That
feels a little heavyweight to me, though.

The closest thing to a board description we have is
the kernel config.  That reflects the hardware and layout
of the board being targeted.  Is there some way to have
ubldr made by buildkernel instead of buildworld?

Another approach might be to provide a build script that
accepts arguments and spits out a compiled ubldr to
match those parameters.  Maybe something like:

    $ cd /usr/src/sys/tools/ubldr-build
    $ ./ubldr-build arm.arm -l 0x80010000 -o ubldr.beagle

Tim




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?214BF14D-33BA-4D3D-B043-31008E24F7AE>