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

Bernd Walter ticso at cicely12.cicely.de
Sun Mar 28 12:09:20 PST 2004


On Sun, Mar 28, 2004 at 02:51:56AM -0800, jitendra pande wrote:
> Hi,
>  
> I have stuck with a problem with usb devices.
>  
> In case of FreeBSD 4.8, whenever a new USB device is attached to the system, no device node is dynamically being created within the dev file system.
>  
> This is in contrast to the behavior there with FreeBSD 5.0 where a new device node is being  created on attaching a new USB device, Fox example when first USB device is attached then /dev/ugen0 node is created dynamically in dev file system. when 2nd device is added then /dev/ugen1 and so on .....ugen2, ugen3.......
>  
> On the other hand with freeBSD 4.8 there exist some static device node /dev/ugen0, /dev/ugen0.x where x =1-16 within the /dev file system.
>  
> My application uses libusb for iinteracting with the usb devices...libusb on freeBSD 4.8 tries to find /debv/ugen0, /dev/ugen1 and so on....hence couldn't able to detect more then one device.
>  
> It would really be great if someone can help me in resolving the issue Any idea why this changes in the behavior with  FreeBSD 4.8 and FreeBSD 5.0

You are expected to create devnodes manualy in 4.x.
/dev/MAKEDEV script will help you.
See MAKEDEV manpage for details or read the handbook.

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



More information about the freebsd-hackers mailing list