building RaspPi Images

Warner Losh imp at bsdimp.com
Mon Feb 11 18:01:28 UTC 2013


On Feb 11, 2013, at 10:03 AM, Iain Young wrote:

> On 11/02/13 16:26, Ian Lepore wrote:
>> On Mon, 2013-02-11 at 09:10 -0700, Warner Losh wrote:
> 
> [SNIP]
> 
>>>>> The real solution here is to get the FDT plumbed through from the boards primary boot strap code into our code. Linux requires that this be passed in via like r2 for Linux to boot. We should make use of that too.
>>>>> 
>>>>> Warner
>>>> 
>>>> I'm seeing an essential conflict here in the mission of FDT data.  If
>>>> changing the FDT is the way an end user customizes things like pinmux
>>>> assignments ("I need these pins for gpio, not another uart"), then how
>>>> can we just accept a cannonical hardware description from low-level boot
>>>> code we have no control over?
>>> 
>>> If you are going to do crazy things like this, then you supply your own custom FDT. If you use the board in its stock configuration, then you use the thing from the boot loader. If you hack the board, you have to hack the FDT to match...
>> 
>> That's a massively unsatisfying answer.  It makes sense for something
>> like a DreamPlug that's sold as a consumer unit; the phrase "stock
>> config" makes some sense there.
>> 
>> What's the stock configuration of a BeagleBoard?  Pretty much every ball
>> on the chip is brought out to one of two headers on the board so that
>> you can use the board for virtually anything you want.
> 
> Note: Linux also allows you to change the pinmux stuff once you've
> booted (It brings them up with their "default" mux setting, then you
> can change it by poking around in /sys/kernel/debug/omap_max)
> 
> For example, to enable UART3_CTS on pin 36 of P8, you do:
> 
> echo 26 >/sys/kernel/debug/omap_mux/lcd_data10
> 
> I'm not aware FreeBSD has any such mechanism at present.

Yea, we're late to the pinmux/pinctl/gpio party here :(

Warner


More information about the freebsd-arm mailing list