Current-Users archive

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

Re: libusb-1.0 for NetBSD



On Wed, 30 May 2012, Xiaofan Chen wrote:

> On Wed, May 30, 2012 at 10:31 PM, Jeremy C. Reed 
> <reed%reedmedia.net@localhost> wrote:
> > I built it with  --enable-examples-build. How to use the examples?
> >
> > sunflower:examples$ ./listdevs
> > sunflower:examples$ ./dpfp
> > Could not find/open device
> > sunflower:examples$ ./dpfp_threaded
> > Could not find/open device
> >
> > The listdevs shows nothing.
> 
> libusb-1.0 under OpenBSD/NetBSD use ugen, so only
> ugen device are supported. And you may need to
> set up proper permission to run the examples
> under normal user account. You can try run as
> root first or use sudo.

sunflower:examples$ sudo ./listdevs                                            
sunflower:examples$ ls -l /dev/*ugen*
crw-rw----  1 root  photos  64,  0 Mar  6  2009 /dev/ugen0.00
crw-rw----  1 root  photos  64,  1 Mar  6  2009 /dev/ugen0.01
crw-rw----  1 root  photos  64,  2 May 21 16:09 /dev/ugen0.02
crw-rw----  1 root  photos  64,  3 Mar  6  2009 /dev/ugen0.03
crw-rw----  1 root  photos  64,  4 Mar  6  2009 /dev/ugen0.04
crw-rw----  1 root  photos  64,  5 Mar  6  2009 /dev/ugen0.05
crw-rw----  1 root  photos  64,  6 Mar  6  2009 /dev/ugen0.06
crw-rw----  1 root  photos  64,  7 May 13  2010 /dev/ugen0.07
crw-rw----  1 root  photos  64,  8 Mar  6  2009 /dev/ugen0.08
crw-rw----  1 root  photos  64,  9 Mar  6  2009 /dev/ugen0.09
crw-rw----  1 root  photos  64, 10 Mar  6  2009 /dev/ugen0.10
crw-rw----  1 root  photos  64, 11 Mar  6  2009 /dev/ugen0.11
crw-rw----  1 root  photos  64, 12 Mar  6  2009 /dev/ugen0.12
crw-rw----  1 root  photos  64, 13 Mar  6  2009 /dev/ugen0.13
crw-rw----  1 root  photos  64, 14 Mar  6  2009 /dev/ugen0.14
crw-rw----  1 root  photos  64, 15 Mar  6  2009 /dev/ugen0.15
sunflower:examples$ id
uid=1000(reed) gid=100(users) groups=100(users),0(wheel),1007(photos)
sunflower:examples$ sudo id
uid=0(root) gid=0(wheel) 
groups=0(wheel),2(kmem),3(sys),4(tty),5(operator),20(staff),31(guest)
sunflower:examples$ 

What does the output supposed to look like?

My kernel is 6.0_BETA from around April 16.

(My main problem is with CUPs using USB. I will redocument my problems 
with it.)


Home | Main Index | Thread Index | Old Index