On Mon, 23 Jan 2012, Stojsavljevic, Zoran wrote: > Hello Alan, > > Thank you very much for your comments. Here are my comments. > > Since I read your email, I got some directions. I got the new sets of files for max3420 SPI USB driver. I recompiled them properly and built new kernel for target and new set of modules for gadget directory. > > I am able now to recognize g_zero driver. Upon insertion it is there, sitting, but I decided still to proceed with g_printer. > > I recognized that my environment on host is not properly set for modprobe command, so I spend some time to do that. At the end I was able to create proper environment which does see usbtest module with modprobe. > > Since then, I have g_printer inserted on target. I also see it on my host in /proc/bus/usb/002/009 (it is actually 009), and it does properly shows in /proc/bus/usb/devices as: > > T: Bus=02 Lev=02 Prnt=03 Port=00 Cnt=01 Dev#= 9 Spd=12 MxCh= 0 > D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 > P: Vendor=0525 ProdID=a4a8 Rev= 2.27 > S: Manufacturer=Linux 2.6.34.10-WR4.3.0.0_standard with max_udc > S: Product=Printer Gadget > S: SerialNumber=1 > C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA > I:* If#= 0 Alt= 0 #EPs= 1 Cls=07(print) Sub=01 Prot=02 Driver=usbtest > E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms > > Then I did your proposed magic (note that the command has 0x in front of parameters, without it'll not work): > modprobe usbtest vendor=0x0525 product=0xa4a8 You're right; I forget to put in the "0x" parts. > usbtest _init printed message (inserted by me as KERN_EMER): > kernel:[157420.284462] KERN_EMERG: usb test params: vend=0x0525 prod=0xa4a8 > > Which shows that it recognized my CLI command. > > The very least (but not last): /proc/bus/usb/devices did NOT register usbtest!? What do you mean? It shows up in the second-to-last line above: I:* If#= 0 Alt= 0 #EPs= 1 Cls=07(print) Sub=01 Prot=02 Driver=usbtest > As for your convenience, please, find devices file attached to this email. > > Please, advise course of action? Proceed with your testing. So far everything seems to be working right. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html