Prefix to OFW's chosen/bootpath
James Cameron
quozl at laptop.org
Wed Aug 17 00:27:09 EDT 2011
On Tue, Aug 16, 2011 at 09:13:31PM +0100, Daniel Drake wrote:
> On Mon, Aug 15, 2011 at 10:59 PM, James Cameron <quozl at laptop.org> wrote:
> > Address of SDIO controller in the SoC. ?See show-devs for others.
> > Plausible that a different model of SoC might eventually have a
> > different value, but I don't expect that soon.
> >
> > You might parse out and ignore the bit between @ and /.
>
> One of the main reasons we parse bootpath is to figure out which SD
> bus we are booting from (i.e. internal/external SD card).
Yes.
> The address presumably changes for internal vs external, as it does on
> x86.
Not so.
XO-1.75
ok dev int
ok pwd
/sd at d4280000/disk at 3
ok dev ext
ok pwd
/sd at d4280000/disk at 1 <-- unchanged address
ok
XO-1.5
ok dev int
ok pwd
/pci/sd at c/disk at 3
ok dev ext
ok pwd
/pci/sd at c/disk at 1 <-- unchanged address
ok
XO-1
ok dev int
ok pwd
/pci/nandflash at c
ok dev ext
ok pwd
/pci/sd at c,1/disk at 1
ok
> So it should be parsed and not ignored.
I don't think olpc-configure should rely on d4280000 being in the
string, but I don't expect it to change. I think disk at 3 and disk at 1
should be checked for, ignoring the other text.
--
James Cameron
http://quozl.linux.org.au/
More information about the Devel
mailing list