Hi, > >> in the /chosen/qemu,boot-list property. SLOF, however, probes the > >> USB device, recognizes that it is a storage device and thus changes > >> its name to "storage", and additionally adds a child node for the > >> SCSI LUN, so the correct boot path in SLOF is something like > >> "/pci@800000020000000/usb@0/storage@1/disk@101000000000000" instead.
Sure this is correct? usb-storage (aka virtual usb stick) creates paths like this: /pci@i0cf8/usb@1,2/storage@1/channel@0/disk@0,0 i.e. there is a extra channel element (probably for host adapters with multiple scsi busses). > >> So when we detect an USB mass storage device with SCSI interface, > >> we've got to adjust the firmware boot-device path properly, so that > >> SLOF can automatically boot from the device. > > Any reason why this is hidden in ppc/spapr? > > > > usb-host could implement the ->fw_name callback instead to create a name > > depending on the device type ... > The naming is specific to SLOF ... not sure what happens with other > firmware implementations, so spapr.c sounds like the better place to me > right now. If usb-host (and usb-redir too btw) create paths identical to the ones created by usb-storage. Existing firmware should cope just fine (assuming bootindex for usb-storage works). cheers, Gerd