On Sat, May 20, 2006 at 01:21:24PM +0200, Bart Verstraete wrote: > Greg KH schreef: > >On Fri, May 19, 2006 at 10:35:28PM +0200, Bart Verstraete wrote: > > > >>Hi, > >>got this code for a dacal dc300, its a cd library,more info on > >>http://www.dacal.com.tw. But now I want to convert it to a kernel > >>module, but the first thing I don't know how I would use the function > >>usb_control_msg(). I need it to fill with the data I retrieve from > >>usbsnoop.log that is included and can be found in dacal.tar.gz > >>Also can i find something where the current cd is, like in position 57, > >>the dacal keeps track of it because the number keeps displayed on the > >>led, so I should somehow have to access the led? > >>dacaldcxxx.tar.gz is the code for the kernel module it doe nothing but > >>load into to the kernel reistering the device the dacal.TAR.GZ uses > >>libusb to use the device ut it only runs under root otherwise the device > >>does nothing, why is that??? > >> > > > >Why not just stick with the libusb version? And if you use the latest > >version of libusb, it will use the /dev/usb/ nodes found on the latest > >2.6 kernel versions which makes it easier to set the proper user > >permissions. That will help you out from having to run the program as > >root. > > > > > Ok if I stick with libusb I still have the problem with the permisions > and I don't know what to change(newbie here)
No, just use udev to set the permissions properly for your individual USB device. See the documentation in udev for how to do this. > >As a side note, your attachments made a whole lot of email servers puke > >messages back to the list admins. It's not your fault at all, it's just > >some companies (Intel in paticular) is really dumb in not allowing any > >attachments to come through their system, so a lot of different people > >on this mailing list never saw your original post :( > > > > > Sorry about that, in the future I will post a weblink. Not your fault at all, just me ranting about stupid mail admins :) thanks, greg k-h ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel