tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: (Semi-random) thoughts on device tree structure and devfs



"More or less", because I don't have all the details. If you were to post the dmesg from your booting, I could give you the exact thing.

Are you sure your USB disk shows up as sd? Looking at the config file, I would have thought it would match wd.

If it is wd, then the config should have something along these lines:

wd0 at umass0
umass0 at uhub0 port 0 configuration 0 interface 0
uhub0 at usb0
usb0 at uhci0
uhci0 at pci1 dev 1 function 0
pci1 at ppb0 bus 0
ppb0 at pci0 dev 0 function 0
pci0 at mainbus 0 bus 0


Obviously I've thrown in a bunch of "0" here, where there probably should be something else, as well as a "1", since you have two pci buses involved already at this point. That's the "more or less" part. Now, if you don't understand the concept based on this, then I don't think putting correct numbers in here is going to help much more either. The basic idea though, is that this will always cause the same disk to be wd0, and no other disk will ever become that. No matter what hardware you add, or where.

        Johnny

Masao Uebayashi wrote:
It would help if you started by showing where your disk would be in the
device tree.

I connect USB memory (sd(4)) at uhci0.  Please tell me.

Then I can tell you what (more or less) you need in your config file.

"More or less" doesn't meet my criteria.  Consider mission critical
use cases.  My devfs is not meant only for hobbysts.

Masao

/mainbus0
 /pci0
   /puhb0
     /agp0
   /ppb0
     /pci0
       /vge0
         /ukphy0
       /vga0
         /wsdisplay0
         /drm0
       /uhci0
       /azalia0
       /ppb0
         /pci0
       /ppb1
         /pci0
       /uhci1
       /uhci2
       /uhci3
       /uhci4
       /ppb2
         /pci0
       /ichlpcib0
         /isa0
           /lpt0
           /com0
       /piixide0
         /atabus0
           /wd0
         /atabus1
           /atapibus0
             /cd0
       /ichsmb0
       /piixide1
         /atabus0
         /atabus1


Home | Main Index | Thread Index | Old Index