Problem with usb in FreeBSD 4.8....help!!!

Bernd Walter ticso at cicely12.cicely.de
Mon Mar 29 11:10:41 PST 2004


On Mon, Mar 29, 2004 at 06:15:56AM -0800, jitendra pande wrote:
> Hi Toni,
>  
> Thanks a lot for the information.
>  
> My device is the one which supports control transfers only thus i understand that for a second device i need to use /dev/ugen1 and so on.

Yes - /dev/ugen? is the control endpoint - if your device only supports
controll transfers that's all you need.
Otherwise you may need /dev/ugen?.? for the endpoints, but
./MAKEDEV ugen1 will also create /dev/ugen1.1 to ugen1.15.
While ugen0 uses /dev/ugen0* node ugen1 uses /dev/ugen1*, and so on.
So if your are using 6 devices of ugen type at the same time you want
to have at least /dev/ugen0 to /dev/ugen5.

> Does that mean, i need to explictly make a node /dev/ugen1 and /dev/ugen2 and so on for  every newly added USB device using MAKEDEV script. 

You can create them forhanded.
No need to wait until you really need them.
The following will create ugen0* to ugen19*:
cd /dev && jot 20 0 | sed 's/\(.*\)/.\/MAKEDEV ugen\1' | sh

-- 
B.Walter                   BWCT                http://www.bwct.de
ticso at bwct.de                                  info at bwct.de



More information about the freebsd-hackers mailing list