I'm trying to sniff the firmware of a USB2 DVB-T receiver, using 2.6.10 and vmware. I saw Greg Kroah-Hartman's article in Linux Journal, and tried to use his snooping support. The device is working(slowly) in vmware.
Unfortunately, the syslog doesn't show the firmware. I can see that the firmware is being downloaded, and data being exchanged after initialization.
The firmware appears to be transferred through SUBMITURB ioctl calls. Some printk()'s in proc_submiturb() show that the USBDEVFS_URB_TYPE_CONTROL uurb type is used.
At this point, I need help to identify where and how in proc_submiturb() to place my printk()'s. Is uurb.buffer the correct variable to dump, and is it the raw firmware data, or is there USB protocol data in there as well?
I've put a printk() in for each type in proc_submiturb()'s switch statement, here's part of the syslog:
Mar 10 09:01:31 debian kernel: usb 4-1: new high speed USB device using ehci_hcd and address 2 Mar 10 09:02:01 debian kernel: usb 4-1: usbdev_ioctl: CLAIMINTERFACE Mar 10 09:02:01 debian kernel: usb 4-1: usbdev_ioctl: SUBMITURB Mar 10 09:02:01 debian kernel: USBDEVFS_URB_TYPE_CONTROL Mar 10 09:02:01 debian kernel: usb 4-1: usbdev_ioctl: REAPURBDELAY Mar 10 09:02:01 debian kernel: usb 4-1: usbdev_ioctl: REAPURBDELAY Mar 10 09:02:01 debian kernel: usb 4-1: usbdev_ioctl: SUBMITURB Mar 10 09:02:01 debian kernel: USBDEVFS_URB_TYPE_CONTROL Mar 10 09:02:01 debian kernel: usb 4-1: usbdev_ioctl: REAPURBDELAY Mar 10 09:02:01 debian kernel: usb 4-1: usbdev_ioctl: REAPURBDELAY Mar 10 09:02:01 debian kernel: usb 4-1: usbdev_ioctl: SUBMITURB
This repeats a couple of dozen times, until the firmware is downloaded and the device initializes itself.
Thanks, glen.
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel