how do i add the defn for the beagle xM to barebox?

Eric Bénard eric at eukrea.com
Sun Feb 5 09:52:01 EST 2012


Hi Robert,

Le Sun, 5 Feb 2012 06:52:28 -0500 (EST),
"Robert P. J. Day" <rpjday at crashcourse.ca> a écrit :
>   thoughts?  i'd actually like to make the tweaks one at a time so
> that the git log shows clearly how the two boards differ one feature
> at a time.

By sensing a few GPIO, you can easily check which board you are running
barebox on and thus have ony binary which supports all beagleboards
(as already done in u-boot).

Check around line 108 in u-boot's beagle support for the details : 
http://git.denx.de/?p=u-boot.git;a=blob;f=board/ti/beagle/beagle.c;h=5c04b34e1ab0140aca93e7752c8672ce7aebc0b9;hb=HEAD

So in the end you can register the nand support only if you run on a
board which has a NAND flash and have one defconfig for all
beagleboards (some tweaks in the clock settings may be nedded -
especially for USB IIRC - as beagle XM is built around a DM3730 which
can run at 1GHz when older beagles had older OMAP3530 limited to
720MHz).

Eric
-- 
http://eukrea.com/en/news/104-2012



More information about the barebox mailing list