Hi Greg,

Have just read your book of chapter 13 last week, I am still new to USB :-).

 > As the usb core isn't even registering your device I'd suggest fixing 
this first before worrying about your code :)

I did see a message of "usb.c: registered new driver MX" when the module 
was inserted. Didn't above message indicate that the device had been 
registered? If not, could you please explain me more what was I missing 
and how can I fix the device registering?

 > Do any USB devices work on this system?  Does this device work on any
 > other machine?

No, the system is an embedded ARM linux platform, it is the first time I 
tried to make the USB work on it although there are many other drivers 
have already worked on it. The device of the usb-serial adapter works on 
PCs.

Thanks.

Jim

Greg KH wrote:
> On Fri, Sep 15, 2006 at 09:20:25PM +1000, [EMAIL PROTECTED] wrote:
> 
>>Thanks Greg. Please see attached file which is identical to your 
>>skeleton.c except changed the name to mx (for my experimental and learning).
>>
>>What I did was following commands:
>>
>>/sbin/insmod mx.o
>>mknod /dev/mx0 c 180 0
>>chmod 644 /dev/mx0
>>
>>usb.c: registered new driver MX
>>
>>I can see mx module by lsmod and I can see /dev/mx0 as well.
>>
>>Then to call fd = open("dev/mx0", O_RDWR), it return an error of "No 
>>such device".
>>
>>When I pluged a serial adapter UC-232A:
>>
>>hub.c: new USB device not_pci-3, assigned address 2
>>usb.c: USB device not accepting new address=2 (error=-110)
>>hub.c: new USB device not_pci-3, assigned address 3
>>usb.c: USB device not accepting new address=3 (error=-110)
> 
> 
> As the usb core isn't even registering your device, your driver will
> never get called.  I'd suggest fixing this first before worrying about
> your code :)
> 
> Do any USB devices work on this system?  Does this device work on any
> other machine?
> 
> 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

Reply via email to