gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1438
Joined: Sat Sep 10, 2011 11:43 am

Re: USB redux

Tue Dec 18, 2012 3:52 pm

Best information to output would be the debug in qh_init in drivers/usb/host/dwc_otg/dwc_otg_hcd_queue

This function is called to create a new queue head when we add a new endpoint to the system. This is done each time you set the interface (I think it'll be done each time you open the device but it will be device dependent)

The interesting thing would be the settings of all the qh's in both the working and non-working case to see if there is a clear difference, I'm currently working on the hypothesis that the problem occurs when we create a new endpoint and the interrupt endpoints are scheduled badly such that the keyboard interrupt occurs just after the ethernet interrupt schedule, therefore when the keyboard interrupt occurs the processor is likely to be busy processing the network stack so the latency kills us with the split transactions!

So I'm most interested in

qh->sched_frame
qh->interval

for each of the endpoints (so you'll also need information such as the device number and endpoint number!)

As to why you are seeing such an effect when not powering down correctly I can only assume this is because when you power back up it is doing more disk checking type work when it recovers...

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

User avatar
with ice cream
Posts: 161
Joined: Mon Jul 30, 2012 7:25 am

Re: USB redux

Wed Dec 19, 2012 7:45 am

To recap what I am observing (in layperson's terms): pushing large chunks of data via USB makes causes problems. In my environment this means webcams and digital picture frames. My DPF runs fine unless I load a bigger image (e.g. as background or the lcd4linux splash screen). My webcam is unusable since the resolutions it would support lead to timeouts on the bus (my interpretation of the debug output, a lower resolution webcam runs fine). A USB sound card runs fine, I assume the data rate is low enough.

Is there any progress being made? I am not using the LAN port, would USB performance be improved if LAN gets switched off?

tmpp
Posts: 8
Joined: Sun Dec 02, 2012 5:26 pm
Location: Chicago

Re: USB redux

Wed Dec 19, 2012 12:28 pm

Here are two snips of /var/log/message for the good and bad kbd separated by boot cycles. And yes, the primary difference is a file system check with fsck. Will need a little/lot help if specialty debug/log captures are needed.
Good:

Code: Select all

Dec 16 20:17:17 raspberrypi kernel: [    0.000000] Initializing cgroup subsys cpu
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] Linux version 3.2.27+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #307 PREEMPT Mon Nov 26 23:22:29 GMT 2012
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] Machine: BCM2708
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] Memory policy: ECC disabled, Data cache writeback
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xf bcm2708.serial=0x88a99faf smsc95xx.macaddr=B8:27:EB:A9:9F:AF sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1c000000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 smsc95xx.turbo_mode=N elevator=deadline rootwait
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] Memory: 448MB = 448MB total
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] Memory: 448824k/448824k available, 9928k reserved, 0K highmem
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] Virtual kernel memory layout:
Dec 16 20:17:17 raspberrypi kernel: [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
Dec 16 20:17:17 raspberrypi kernel: [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
Dec 16 20:17:17 raspberrypi kernel: [    0.000000]     vmalloc : 0xdc800000 - 0xe8000000   ( 184 MB)
Dec 16 20:17:17 raspberrypi kernel: [    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
Dec 16 20:17:17 raspberrypi kernel: [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
Dec 16 20:17:17 raspberrypi kernel: [    0.000000]       .text : 0xc0008000 - 0xc04cc494   (4882 kB)
Dec 16 20:17:17 raspberrypi kernel: [    0.000000]       .init : 0xc04cd000 - 0xc04ece18   ( 128 kB)
Dec 16 20:17:17 raspberrypi kernel: [    0.000000]       .data : 0xc04ee000 - 0xc051a8a0   ( 179 kB)
Dec 16 20:17:17 raspberrypi kernel: [    0.000000]        .bss : 0xc051a8c4 - 0xc05c18c8   ( 669 kB)
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] NR_IRQS:330
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] Console: colour dummy device 80x30
Dec 16 20:17:17 raspberrypi kernel: [    0.000000] console [tty1] enabled
Dec 16 20:17:17 raspberrypi kernel: [    0.000943] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
Dec 16 20:17:17 raspberrypi kernel: [    0.060151] pid_max: default: 32768 minimum: 301
Dec 16 20:17:17 raspberrypi kernel: [    0.060632] Mount-cache hash table entries: 512
Dec 16 20:17:17 raspberrypi kernel: [    0.061130] Initializing cgroup subsys cpuacct
Dec 16 20:17:17 raspberrypi kernel: [    0.061220] Initializing cgroup subsys devices
Dec 16 20:17:17 raspberrypi kernel: [    0.061256] Initializing cgroup subsys freezer
Dec 16 20:17:17 raspberrypi kernel: [    0.061286] Initializing cgroup subsys blkio
Dec 16 20:17:17 raspberrypi kernel: [    0.061428] CPU: Testing write buffer coherency: ok
Dec 16 20:17:17 raspberrypi kernel: [    0.061769] hw perfevents: enabled with v6 PMU driver, 3 counters available
Dec 16 20:17:17 raspberrypi kernel: [    0.062994] devtmpfs: initialized
Dec 16 20:17:17 raspberrypi kernel: [    0.073261] NET: Registered protocol family 16
Dec 16 20:17:17 raspberrypi kernel: [    0.073951] bcm2708.uart_clock = 0
Dec 16 20:17:17 raspberrypi kernel: [    0.075556] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
Dec 16 20:17:17 raspberrypi kernel: [    0.075611] hw-breakpoint: maximum watchpoint size is 4 bytes.
Dec 16 20:17:17 raspberrypi kernel: [    0.075649] mailbox: Broadcom VideoCore Mailbox driver
Dec 16 20:17:17 raspberrypi kernel: [    0.075756] bcm2708_vcio: mailbox at f200b880
Dec 16 20:17:17 raspberrypi kernel: [    0.075861] bcm_power: Broadcom power driver
Dec 16 20:17:17 raspberrypi kernel: [    0.075900] bcm_power_open() -> 0
Dec 16 20:17:17 raspberrypi kernel: [    0.075926] bcm_power_request(0, 8)
Dec 16 20:17:17 raspberrypi kernel: [    0.576603] bcm_mailbox_read -> 00000080, 0
Dec 16 20:17:17 raspberrypi kernel: [    0.576643] bcm_power_request -> 0
Dec 16 20:17:17 raspberrypi kernel: [    0.576668] Serial: AMBA PL011 UART driver
Dec 16 20:17:17 raspberrypi kernel: [    0.576824] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
Dec 16 20:17:17 raspberrypi kernel: [    0.888670] console [ttyAMA0] enabled
Dec 16 20:17:17 raspberrypi kernel: [    0.914034] bio: create slab <bio-0> at 0
Dec 16 20:17:17 raspberrypi kernel: [    0.919263] SCSI subsystem initialized
Dec 16 20:17:17 raspberrypi kernel: [    0.923256] usbcore: registered new interface driver usbfs
Dec 16 20:17:17 raspberrypi kernel: [    0.928997] usbcore: registered new interface driver hub
Dec 16 20:17:17 raspberrypi kernel: [    0.934580] usbcore: registered new device driver usb
Dec 16 20:17:17 raspberrypi kernel: [    0.940587] Switching to clocksource stc
Dec 16 20:17:17 raspberrypi kernel: [    0.944852] FS-Cache: Loaded
Dec 16 20:17:17 raspberrypi kernel: [    0.948035] CacheFiles: Loaded
Dec 16 20:17:17 raspberrypi kernel: [    0.964778] NET: Registered protocol family 2
Dec 16 20:17:17 raspberrypi kernel: [    0.969615] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
Dec 16 20:17:17 raspberrypi kernel: [    0.977788] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
Dec 16 20:17:17 raspberrypi kernel: [    0.985827] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
Dec 16 20:17:17 raspberrypi kernel: [    0.992779] TCP: Hash tables configured (established 16384 bind 16384)
Dec 16 20:17:17 raspberrypi kernel: [    0.999388] TCP reno registered
Dec 16 20:17:17 raspberrypi kernel: [    1.002561] UDP hash table entries: 256 (order: 0, 4096 bytes)
Dec 16 20:17:17 raspberrypi kernel: [    1.008477] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
Dec 16 20:17:17 raspberrypi kernel: [    1.015297] NET: Registered protocol family 1
Dec 16 20:17:17 raspberrypi kernel: [    1.020439] RPC: Registered named UNIX socket transport module.
Dec 16 20:17:17 raspberrypi kernel: [    1.026575] RPC: Registered udp transport module.
Dec 16 20:17:17 raspberrypi kernel: [    1.031300] RPC: Registered tcp transport module.
Dec 16 20:17:17 raspberrypi kernel: [    1.036053] RPC: Registered tcp NFSv4.1 backchannel transport module.
Dec 16 20:17:17 raspberrypi kernel: [    1.042796] bcm2708_dma: DMA manager at dc808000
Dec 16 20:17:17 raspberrypi kernel: [    1.053040] vc-mem: phys_addr:0x00000000 mem_base=0x1c000000 mem_size:0x20000000(512 MiB)
Dec 16 20:17:17 raspberrypi kernel: [    1.062341] audit: initializing netlink socket (disabled)
Dec 16 20:17:17 raspberrypi kernel: [    1.067891] type=2000 audit(0.750:1): initialized
Dec 16 20:17:17 raspberrypi kernel: [    1.185396] VFS: Disk quotas dquot_6.5.2
Dec 16 20:17:17 raspberrypi kernel: [    1.189529] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Dec 16 20:17:17 raspberrypi kernel: [    1.197128] FS-Cache: Netfs 'nfs' registered for caching
Dec 16 20:17:17 raspberrypi kernel: [    1.203378] msgmni has been set to 876
Dec 16 20:17:17 raspberrypi kernel: [    1.209250] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
Dec 16 20:17:17 raspberrypi kernel: [    1.217046] io scheduler noop registered
Dec 16 20:17:17 raspberrypi kernel: [    1.220996] io scheduler deadline registered (default)
Dec 16 20:17:17 raspberrypi kernel: [    1.226387] io scheduler cfq registered
Dec 16 20:17:17 raspberrypi kernel: [    1.252762] Console: switching to colour frame buffer device 82x26
Dec 16 20:17:17 raspberrypi kernel: [    1.265228] kgdb: Registered I/O driver kgdboc.
Dec 16 20:17:17 raspberrypi kernel: [    1.281559] brd: module loaded
Dec 16 20:17:17 raspberrypi kernel: [    1.291921] loop: module loaded
Dec 16 20:17:17 raspberrypi kernel: [    1.298277] vcos: [1]: vchiq_init_state: slot_zero = 0xffd80000, is_master = 0
Dec 16 20:17:17 raspberrypi kernel: [    1.308182] vcos: [1]: vchiq_init_state: called
Dec 16 20:17:17 raspberrypi kernel: [    1.325582] Loading iSCSI transport class v2.0-870.
Dec 16 20:17:17 raspberrypi kernel: [    1.333666] usbcore: registered new interface driver smsc95xx
Dec 16 20:17:17 raspberrypi kernel: [    1.341856] cdc_ncm: 04-Aug-2011
Dec 16 20:17:17 raspberrypi kernel: [    1.347528] usbcore: registered new interface driver cdc_ncm
Dec 16 20:17:17 raspberrypi kernel: [    1.355496] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
Dec 16 20:17:17 raspberrypi kernel: [    1.568672] Core Release: 2.80a
Dec 16 20:17:17 raspberrypi kernel: [    1.574037] Setting default values for core params
Dec 16 20:17:17 raspberrypi kernel: [    1.581165] Finished setting default values for core params
Dec 16 20:17:17 raspberrypi kernel: [    1.794120] Using Buffer DMA mode
Dec 16 20:17:17 raspberrypi kernel: [    1.799650] Periodic Transfer Interrupt Enhancement - disabled
Dec 16 20:17:17 raspberrypi kernel: [    1.807657] Multiprocessor Interrupt Enhancement - disabled
Dec 16 20:17:17 raspberrypi kernel: [    1.815448] OTG VER PARAM: 0, OTG VER FLAG: 0
Dec 16 20:17:17 raspberrypi kernel: [    1.821944] Dedicated Tx FIFOs mode
Dec 16 20:17:17 raspberrypi kernel: [    1.828001] dwc_otg bcm2708_usb: DWC OTG Controller
Dec 16 20:17:17 raspberrypi kernel: [    1.835215] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
Dec 16 20:17:17 raspberrypi kernel: [    1.844791] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
Dec 16 20:17:17 raspberrypi kernel: [    1.852494] Init: Port Power? op_state=1
Dec 16 20:17:17 raspberrypi kernel: [    1.858644] Init: Power Port (0)
Dec 16 20:17:17 raspberrypi kernel: [    1.864085] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Dec 16 20:17:17 raspberrypi kernel: [    1.873139] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Dec 16 20:17:17 raspberrypi kernel: [    1.882607] usb usb1: Product: DWC OTG Controller
Dec 16 20:17:17 raspberrypi kernel: [    1.889484] usb usb1: Manufacturer: Linux 3.2.27+ dwc_otg_hcd
Dec 16 20:17:17 raspberrypi kernel: [    1.897450] usb usb1: SerialNumber: bcm2708_usb
Dec 16 20:17:17 raspberrypi kernel: [    1.905029] hub 1-0:1.0: USB hub found
Dec 16 20:17:17 raspberrypi kernel: [    1.910926] hub 1-0:1.0: 1 port detected
Dec 16 20:17:17 raspberrypi kernel: [    1.918018] usbcore: registered new interface driver uas
Dec 16 20:17:17 raspberrypi kernel: [    1.925506] Initializing USB Mass Storage driver...
Dec 16 20:17:17 raspberrypi kernel: [    1.932674] usbcore: registered new interface driver usb-storage
Dec 16 20:17:17 raspberrypi kernel: [    1.940808] USB Mass Storage support registered.

Dec 16 20:17:17 raspberrypi kernel: [    1.947804] usbcore: registered new interface driver libusual
Dec 16 20:17:17 raspberrypi kernel: [    1.956096] mousedev: PS/2 mouse device common for all mice
Dec 16 20:17:17 raspberrypi kernel: [    1.964636] bcm2835-cpufreq: min=700000 max=700000 cur=700000
Dec 16 20:17:17 raspberrypi kernel: [    1.970494] bcm2835-cpufreq: switching to governor powersave
Dec 16 20:17:17 raspberrypi kernel: [    1.978302] bcm2835-cpufreq: switching to governor powersave
Dec 16 20:17:17 raspberrypi kernel: [    1.986169] cpuidle: using governor ladder
Dec 16 20:17:17 raspberrypi kernel: [    1.994238] cpuidle: using governor menu
Dec 16 20:17:17 raspberrypi kernel: [    2.000238] sdhci: Secure Digital Host Controller Interface driver
Dec 16 20:17:17 raspberrypi kernel: [    2.008412] sdhci: Copyright(c) Pierre Ossman
Dec 16 20:17:17 raspberrypi kernel: [    2.015044] sdhci: Enable low-latency mode
Dec 16 20:17:17 raspberrypi kernel: [    2.021066] bcm_power_open() -> 1
Dec 16 20:17:17 raspberrypi kernel: [    2.028149] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
Dec 16 20:17:17 raspberrypi kernel: [    2.039953] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
Dec 16 20:17:17 raspberrypi kernel: [    2.048016] sdhci-pltfm: SDHCI platform and OF driver helper
Dec 16 20:17:17 raspberrypi kernel: [    2.057613] usbcore: registered new interface driver usbhid
Dec 16 20:17:17 raspberrypi kernel: [    2.065401] usbhid: USB HID core driver
Dec 16 20:17:17 raspberrypi kernel: [    2.072544] TCP cubic registered
Dec 16 20:17:17 raspberrypi kernel: [    2.078041] Initializing XFRM netlink socket
Dec 16 20:17:17 raspberrypi kernel: [    2.086587] NET: Registered protocol family 17
Dec 16 20:17:17 raspberrypi kernel: [    2.096352] Registering the dns_resolver key type
Dec 16 20:17:17 raspberrypi kernel: [    2.105376] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
Dec 16 20:17:17 raspberrypi kernel: [    2.119478] Indeed it is in host mode hprt0 = 00021501
Dec 16 20:17:17 raspberrypi kernel: [    2.132067] registered taskstats version 1
Dec 16 20:17:17 raspberrypi kernel: [    2.175206] Waiting for root device /dev/mmcblk0p2...
Dec 16 20:17:17 raspberrypi kernel: [    2.226678] mmc0: could read SD Status register (SSR) at the 3th attempt
Dec 16 20:17:17 raspberrypi kernel: [    2.252638] mmc0: new high speed SDHC card at address d016
Dec 16 20:17:17 raspberrypi kernel: [    2.261219] mmcblk0: mmc0:d016 SU04G 3.69 GiB 
Dec 16 20:17:17 raspberrypi kernel: [    2.270317]  mmcblk0: p1 p2
Dec 16 20:17:17 raspberrypi kernel: [    2.354834] usb 1-1: new high-speed USB device number 2 using dwc_otg
Dec 16 20:17:17 raspberrypi kernel: [    2.363819] Indeed it is in host mode hprt0 = 00001101
Dec 16 20:17:17 raspberrypi kernel: [    2.564912] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
Dec 16 20:17:17 raspberrypi kernel: [    2.573931] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Dec 16 20:17:17 raspberrypi kernel: [    2.584318] hub 1-1:1.0: USB hub found
Dec 16 20:17:17 raspberrypi kernel: [    2.590558] hub 1-1:1.0: 3 ports detected
Dec 16 20:17:17 raspberrypi kernel: [    2.874818] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
Dec 16 20:17:17 raspberrypi kernel: [    2.985235] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
Dec 16 20:17:17 raspberrypi kernel: [    2.994482] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Dec 16 20:17:17 raspberrypi kernel: [    3.007391] smsc95xx v1.0.4
Dec 16 20:17:17 raspberrypi kernel: [    3.070015] smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:a9:9f:af
Dec 16 20:17:17 raspberrypi kernel: [    3.164849] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
Dec 16 20:17:17 raspberrypi kernel: [    3.299647] usb 1-1.2: New USB device found, idVendor=05e3, idProduct=0723
Dec 16 20:17:17 raspberrypi kernel: [    3.309097] usb 1-1.2: New USB device strings: Mfr=3, Product=4, SerialNumber=2
Dec 16 20:17:17 raspberrypi kernel: [    3.318959] usb 1-1.2: Product: USB Storage
Dec 16 20:17:17 raspberrypi kernel: [    3.325589] usb 1-1.2: Manufacturer: Generic 
Dec 16 20:17:17 raspberrypi kernel: [    3.332282] usb 1-1.2: SerialNumber: 000000009451
Dec 16 20:17:17 raspberrypi kernel: [    3.340968] usb-storage 1-1.2:1.0: Quirks match for vid 05e3 pid 0723: 8000
Dec 16 20:17:17 raspberrypi kernel: [    3.350671] scsi0 : usb-storage 1-1.2:1.0
Dec 16 20:17:17 raspberrypi kernel: [    3.434764] usb 1-1.3: new full-speed USB device number 5 using dwc_otg
Dec 16 20:17:17 raspberrypi kernel: [    3.546362] usb 1-1.3: New USB device found, idVendor=413c, idProduct=1002
Dec 16 20:17:17 raspberrypi kernel: [    3.555722] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 16 20:17:17 raspberrypi kernel: [    3.565491] usb 1-1.3: Product: Dell USB Keyboard Hub
Dec 16 20:17:17 raspberrypi kernel: [    3.572911] usb 1-1.3: Manufacturer: Dell
Dec 16 20:17:17 raspberrypi kernel: [    3.581217] hub 1-1.3:1.0: USB hub found
Dec 16 20:17:17 raspberrypi kernel: [    3.587760] hub 1-1.3:1.0: 3 ports detected
Dec 16 20:17:17 raspberrypi kernel: [    3.874851] usb 1-1.3.1: new full-speed USB device number 6 using dwc_otg
Dec 16 20:17:17 raspberrypi kernel: [    3.976586] usb 1-1.3.1: New USB device found, idVendor=413c, idProduct=2002
Dec 16 20:17:17 raspberrypi kernel: [    3.986051] usb 1-1.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 16 20:17:17 raspberrypi kernel: [    3.997926] usb 1-1.3.1: Product: Dell USB Keyboard Hub
Dec 16 20:17:17 raspberrypi kernel: [    4.005411] usb 1-1.3.1: Manufacturer: Dell
Dec 16 20:17:17 raspberrypi kernel: [    4.017135] input: Dell Dell USB Keyboard Hub as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.0/input/input0
Dec 16 20:17:17 raspberrypi kernel: [    4.034555] generic-usb 0003:413C:2002.0001: input: USB HID v1.10 Keyboard [Dell Dell USB Keyboard Hub] on usb-bcm2708_usb-1.3.1/input0
Dec 16 20:17:17 raspberrypi kernel: [    4.059996] input: Dell Dell USB Keyboard Hub as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.1/input/input1
Dec 16 20:17:17 raspberrypi kernel: [    4.076591] generic-usb 0003:413C:2002.0002: input: USB HID v1.10 Device [Dell Dell USB Keyboard Hub] on usb-bcm2708_usb-1.3.1/input1
Dec 16 20:17:17 raspberrypi kernel: [    4.174891] usb 1-1.3.3: new low-speed USB device number 7 using dwc_otg
Dec 16 20:17:17 raspberrypi kernel: [    4.290654] usb 1-1.3.3: New USB device found, idVendor=046d, idProduct=c00e
Dec 16 20:17:17 raspberrypi kernel: [    4.300404] usb 1-1.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 16 20:17:17 raspberrypi kernel: [    4.312959] usb 1-1.3.3: Product: USB-PS/2 Optical Mouse
Dec 16 20:17:17 raspberrypi kernel: [    4.321059] usb 1-1.3.3: Manufacturer: Logitech
Dec 16 20:17:17 raspberrypi kernel: [    4.335558] input: Logitech USB-PS/2 Optical Mouse as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/input/input2
Dec 16 20:17:17 raspberrypi kernel: [    4.353430] generic-usb 0003:046D:C00E.0003: input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-bcm2708_usb-1.3.3/input0
Dec 16 20:17:17 raspberrypi kernel: [    4.373661] scsi 0:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9451 PQ: 0 ANSI: 0
Dec 16 20:17:17 raspberrypi kernel: [    4.528950] sd 0:0:0:0: [sda] 15564800 512-byte logical blocks: (7.96 GB/7.42 GiB)
Dec 16 20:17:17 raspberrypi kernel: [    4.544952] sd 0:0:0:0: [sda] Write Protect is off
Dec 16 20:17:17 raspberrypi kernel: [    4.601904]  sda: sda1 sda2
Dec 16 20:17:17 raspberrypi kernel: [    4.628933] sd 0:0:0:0: [sda] Attached SCSI removable disk
Dec 16 20:17:17 raspberrypi kernel: [    9.755323] EXT4-fs (mmcblk0p2): recovery complete
Dec 16 20:17:17 raspberrypi kernel: [    9.765568] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
Dec 16 20:17:17 raspberrypi kernel: [    9.778680] VFS: Mounted root (ext4 filesystem) on device 179:2.
Dec 16 20:17:17 raspberrypi kernel: [    9.788697] devtmpfs: mounted
Dec 16 20:17:17 raspberrypi kernel: [    9.795125] Freeing init memory: 124K
Dec 16 20:17:17 raspberrypi kernel: [   20.847921] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Dec 16 20:17:17 raspberrypi kernel: [   21.293059] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Dec 16 20:17:17 raspberrypi kernel: [   21.984678] bcm2835 ALSA card created!
Dec 16 20:17:17 raspberrypi kernel: [   21.990766] bcm2835 ALSA chip created!
Dec 16 20:17:17 raspberrypi kernel: [   22.010388] bcm2835 ALSA chip created!
Dec 16 20:17:17 raspberrypi kernel: [   22.021034] bcm2835 ALSA chip created!
Dec 16 20:17:17 raspberrypi kernel: [   22.029151] bcm2835 ALSA chip created!
Dec 16 20:17:17 raspberrypi kernel: [   22.037305] bcm2835 ALSA chip created!
Dec 16 20:17:17 raspberrypi kernel: [   22.048387] bcm2835 ALSA chip created!
Dec 16 20:17:17 raspberrypi kernel: [   22.061369] bcm2835 ALSA chip created!
Dec 16 20:17:17 raspberrypi kernel: [   30.299994] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Dec 16 20:17:19 raspberrypi kernel: [   32.843114] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SS
Dec 16 20:17:17 raspberrypi kernel: imklog 5.8.11, log source = /proc/kmsg started.
Dec 16 20:17:17 raspberrypi rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="1701" x-info="http://www.rsyslog.com"] start
Bad:

Code: Select all

Dec 16 18:17:30 raspberrypi kernel: [    0.000000] Machine: BCM2708
Dec 16 18:17:30 raspberrypi kernel: [    0.000000] Memory policy: ECC disabled, Data cache writeback
Dec 16 18:17:30 raspberrypi kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
Dec 16 18:17:30 raspberrypi kernel: [    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xf bcm2708.serial=0x88a99faf smsc
95xx.macaddr=B8:27:EB:A9:9F:AF sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1c000000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,11520
0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 smsc95xx.turbo_mode=N elevator=deadline rootwait
Dec 16 18:17:30 raspberrypi kernel: [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
Dec 16 18:17:30 raspberrypi kernel: [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Dec 16 18:17:30 raspberrypi kernel: [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Dec 16 18:17:30 raspberrypi kernel: [    0.000000] Memory: 448MB = 448MB total
Dec 16 18:17:30 raspberrypi kernel: [    0.000000] Memory: 448824k/448824k available, 9928k reserved, 0K highmem
Dec 16 18:17:30 raspberrypi kernel: [    0.000000] Virtual kernel memory layout:
Dec 16 18:17:30 raspberrypi kernel: [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
Dec 16 18:17:30 raspberrypi kernel: [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
Dec 16 18:17:30 raspberrypi kernel: [    0.000000]     vmalloc : 0xdc800000 - 0xe8000000   ( 184 MB)
Dec 16 18:17:30 raspberrypi kernel: [    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
Dec 16 18:17:30 raspberrypi kernel: [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
Dec 16 18:17:30 raspberrypi kernel: [    0.000000]       .text : 0xc0008000 - 0xc04cc494   (4882 kB)
Dec 16 18:17:30 raspberrypi kernel: [    0.000000]       .init : 0xc04cd000 - 0xc04ece18   ( 128 kB)
Dec 16 18:17:30 raspberrypi kernel: [    0.000000]       .data : 0xc04ee000 - 0xc051a8a0   ( 179 kB)
Dec 16 18:17:30 raspberrypi kernel: [    0.000000]        .bss : 0xc051a8c4 - 0xc05c18c8   ( 669 kB)
Dec 16 18:17:30 raspberrypi kernel: [    0.000000] NR_IRQS:330
Dec 16 18:17:30 raspberrypi kernel: [    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
Dec 16 18:17:30 raspberrypi kernel: [    0.000000] Console: colour dummy device 80x30
Dec 16 18:17:30 raspberrypi kernel: [    0.000000] console [tty1] enabled
Dec 16 18:17:30 raspberrypi kernel: [    0.000943] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
Dec 16 18:17:30 raspberrypi kernel: [    0.060152] pid_max: default: 32768 minimum: 301
Dec 16 18:17:30 raspberrypi kernel: [    0.060628] Mount-cache hash table entries: 512
Dec 16 18:17:30 raspberrypi kernel: [    0.061131] Initializing cgroup subsys cpuacct
Dec 16 18:17:30 raspberrypi kernel: [    0.061223] Initializing cgroup subsys devices
Dec 16 18:17:30 raspberrypi kernel: [    0.061260] Initializing cgroup subsys freezer
Dec 16 18:17:30 raspberrypi kernel: [    0.061291] Initializing cgroup subsys blkio
Dec 16 18:17:30 raspberrypi kernel: [    0.061431] CPU: Testing write buffer coherency: ok
Dec 16 18:17:30 raspberrypi kernel: [    0.061773] hw perfevents: enabled with v6 PMU driver, 3 counters available
Dec 16 18:17:30 raspberrypi kernel: [    0.063003] devtmpfs: initialized
Dec 16 18:17:30 raspberrypi kernel: [    0.073296] NET: Registered protocol family 16
Dec 16 18:17:30 raspberrypi kernel: [    0.073989] bcm2708.uart_clock = 0
Dec 16 18:17:30 raspberrypi kernel: [    0.075602] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
Dec 16 18:17:30 raspberrypi kernel: [    0.075657] hw-breakpoint: maximum watchpoint size is 4 bytes.
Dec 16 18:17:30 raspberrypi kernel: [    0.075695] mailbox: Broadcom VideoCore Mailbox driver
Dec 16 18:17:30 raspberrypi kernel: [    0.075803] bcm2708_vcio: mailbox at f200b880
Dec 16 18:17:30 raspberrypi kernel: [    0.075908] bcm_power: Broadcom power driver
Dec 16 18:17:30 raspberrypi kernel: [    0.075947] bcm_power_open() -> 0
Dec 16 18:17:30 raspberrypi kernel: [    0.075971] bcm_power_request(0, 8)
Dec 16 18:17:30 raspberrypi kernel: [    0.576647] bcm_mailbox_read -> 00000080, 0
Dec 16 18:17:30 raspberrypi kernel: [    0.576686] bcm_power_request -> 0
Dec 16 18:17:30 raspberrypi kernel: [    0.576711] Serial: AMBA PL011 UART driver
Dec 16 18:17:30 raspberrypi kernel: [    0.576868] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
Dec 16 18:17:30 raspberrypi kernel: [    0.888713] console [ttyAMA0] enabled
Dec 16 18:17:30 raspberrypi kernel: [    0.914077] bio: create slab <bio-0> at 0
Dec 16 18:17:30 raspberrypi kernel: [    0.919310] SCSI subsystem initialized
Dec 16 18:17:30 raspberrypi kernel: [    0.923302] usbcore: registered new interface driver usbfs
Dec 16 18:17:30 raspberrypi kernel: [    0.929046] usbcore: registered new interface driver hub
Dec 16 18:17:30 raspberrypi kernel: [    0.934627] usbcore: registered new device driver usb
Dec 16 18:17:30 raspberrypi kernel: [    0.940635] Switching to clocksource stc
Dec 16 18:17:30 raspberrypi kernel: [    0.944906] FS-Cache: Loaded
Dec 16 18:17:30 raspberrypi kernel: [    0.948087] CacheFiles: Loaded
Dec 16 18:17:30 raspberrypi kernel: [    0.964844] NET: Registered protocol family 2
Dec 16 18:17:30 raspberrypi kernel: [    0.969682] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
Dec 16 18:17:30 raspberrypi kernel: [    0.977860] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
Dec 16 18:17:30 raspberrypi kernel: [    0.985909] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
Dec 16 18:17:30 raspberrypi kernel: [    0.992866] TCP: Hash tables configured (established 16384 bind 16384)
Dec 16 18:17:30 raspberrypi kernel: [    0.999473] TCP reno registered
Dec 16 18:17:30 raspberrypi kernel: [    1.002644] UDP hash table entries: 256 (order: 0, 4096 bytes)
Dec 16 18:17:30 raspberrypi kernel: [    1.008562] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
Dec 16 18:17:30 raspberrypi kernel: [    1.015380] NET: Registered protocol family 1
Dec 16 18:17:30 raspberrypi kernel: [    1.020520] RPC: Registered named UNIX socket transport module.
Dec 16 18:17:30 raspberrypi kernel: [    1.026660] RPC: Registered udp transport module.
Dec 16 18:17:30 raspberrypi kernel: [    1.031384] RPC: Registered tcp transport module.
Dec 16 18:17:30 raspberrypi kernel: [    1.036135] RPC: Registered tcp NFSv4.1 backchannel transport module.
Dec 16 18:17:30 raspberrypi kernel: [    1.042879] bcm2708_dma: DMA manager at dc808000
Dec 16 18:17:30 raspberrypi kernel: [    1.053125] vc-mem: phys_addr:0x00000000 mem_base=0x1c000000 mem_size:0x20000000(512 MiB)
Dec 16 18:17:30 raspberrypi kernel: [    1.062427] audit: initializing netlink socket (disabled)
Dec 16 18:17:30 raspberrypi kernel: [    1.067978] type=2000 audit(0.750:1): initialized
Dec 16 18:17:30 raspberrypi kernel: [    1.185838] VFS: Disk quotas dquot_6.5.2
Dec 16 18:17:30 raspberrypi kernel: [    1.189975] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Dec 16 18:17:30 raspberrypi kernel: [    1.197581] FS-Cache: Netfs 'nfs' registered for caching
Dec 16 18:17:30 raspberrypi kernel: [    1.203837] msgmni has been set to 876
Dec 16 18:17:30 raspberrypi kernel: [    1.209723] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
Dec 16 18:17:30 raspberrypi kernel: [    1.217520] io scheduler noop registered
Dec 16 18:17:30 raspberrypi kernel: [    1.221470] io scheduler deadline registered (default)
Dec 16 18:17:30 raspberrypi kernel: [    1.226864] io scheduler cfq registered
Dec 16 18:17:30 raspberrypi kernel: [    1.251996] Console: switching to colour frame buffer device 82x26
Dec 16 18:17:30 raspberrypi kernel: [    1.264447] kgdb: Registered I/O driver kgdboc.
Dec 16 18:17:30 raspberrypi kernel: [    1.280839] brd: module loaded
Dec 16 18:17:30 raspberrypi kernel: [    1.291208] loop: module loaded
Dec 16 18:17:30 raspberrypi kernel: [    1.297583] vcos: [1]: vchiq_init_state: slot_zero = 0xffd80000, is_master = 0
Dec 16 18:17:30 raspberrypi kernel: [    1.307517] vcos: [1]: vchiq_init_state: called
Dec 16 18:17:30 raspberrypi kernel: [    1.324964] Loading iSCSI transport class v2.0-870.
Dec 16 18:17:30 raspberrypi kernel: [    1.333072] usbcore: registered new interface driver smsc95xx
Dec 16 18:17:30 raspberrypi kernel: [    1.341285] cdc_ncm: 04-Aug-2011
Dec 16 18:17:30 raspberrypi kernel: [    1.346966] usbcore: registered new interface driver cdc_ncm
Dec 16 18:17:30 raspberrypi kernel: [    1.354945] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
Dec 16 18:17:30 raspberrypi kernel: [    1.568149] Core Release: 2.80a
Dec 16 18:17:30 raspberrypi kernel: [    1.573526] Setting default values for core params
Dec 16 18:17:30 raspberrypi kernel: [    1.580675] Finished setting default values for core params
Dec 16 18:17:30 raspberrypi kernel: [    1.793687] Using Buffer DMA mode
Dec 16 18:17:30 raspberrypi kernel: [    1.799243] Periodic Transfer Interrupt Enhancement - disabled
Dec 16 18:17:30 raspberrypi kernel: [    1.807273] Multiprocessor Interrupt Enhancement - disabled
Dec 16 18:17:30 raspberrypi kernel: [    1.815076] OTG VER PARAM: 0, OTG VER FLAG: 0
Dec 16 18:17:30 raspberrypi kernel: [    1.821582] Dedicated Tx FIFOs mode
Dec 16 18:17:30 raspberrypi kernel: [    1.827659] dwc_otg bcm2708_usb: DWC OTG Controller
Dec 16 18:17:30 raspberrypi kernel: [    1.834887] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
Dec 16 18:17:30 raspberrypi kernel: [    1.844395] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
Dec 16 18:17:30 raspberrypi kernel: [    1.852206] Init: Port Power? op_state=1
Dec 16 18:17:30 raspberrypi kernel: [    1.858398] Init: Power Port (0)
Dec 16 18:17:30 raspberrypi kernel: [    1.863866] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Dec 16 18:17:30 raspberrypi kernel: [    1.872937] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Dec 16 18:17:30 raspberrypi kernel: [    1.882438] usb usb1: Product: DWC OTG Controller
Dec 16 18:17:30 raspberrypi kernel: [    1.889345] usb usb1: Manufacturer: Linux 3.2.27+ dwc_otg_hcd
Dec 16 18:17:30 raspberrypi kernel: [    1.897324] usb usb1: SerialNumber: bcm2708_usb
Dec 16 18:17:30 raspberrypi kernel: [    1.904924] hub 1-0:1.0: USB hub found
Dec 16 18:17:30 raspberrypi kernel: [    1.910847] hub 1-0:1.0: 1 port detected
Dec 16 18:17:30 raspberrypi kernel: [    1.917961] usbcore: registered new interface driver uas
Dec 16 18:17:30 raspberrypi kernel: [    1.925479] Initializing USB Mass Storage driver...
Dec 16 18:17:30 raspberrypi kernel: [    1.932667] usbcore: registered new interface driver usb-storage
Dec 16 18:17:30 raspberrypi kernel: [    1.940823] USB Mass Storage support registered.
Dec 16 18:17:30 raspberrypi kernel: [    1.947828] usbcore: registered new interface driver libusual
Dec 16 18:17:30 raspberrypi kernel: [    1.956130] mousedev: PS/2 mouse device common for all mice
Dec 16 18:17:30 raspberrypi kernel: [    1.964674] bcm2835-cpufreq: min=700000 max=700000 cur=700000
Dec 16 18:17:30 raspberrypi kernel: [    1.970524] bcm2835-cpufreq: switching to governor powersave
Dec 16 18:17:30 raspberrypi kernel: [    1.978358] bcm2835-cpufreq: switching to governor powersave
Dec 16 18:17:30 raspberrypi kernel: [    1.986235] cpuidle: using governor ladder
Dec 16 18:17:30 raspberrypi kernel: [    1.994344] cpuidle: using governor menu
Dec 16 18:17:30 raspberrypi kernel: [    2.000367] sdhci: Secure Digital Host Controller Interface driver
Dec 16 18:17:30 raspberrypi kernel: [    2.008576] sdhci: Copyright(c) Pierre Ossman
Dec 16 18:17:30 raspberrypi kernel: [    2.015220] sdhci: Enable low-latency mode
Dec 16 18:17:30 raspberrypi kernel: [    2.021259] bcm_power_open() -> 1
Dec 16 18:17:30 raspberrypi kernel: [    2.029397] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
Dec 16 18:17:30 raspberrypi kernel: [    2.041232] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
Dec 16 18:17:30 raspberrypi kernel: [    2.049317] sdhci-pltfm: SDHCI platform and OF driver helper
Dec 16 18:17:30 raspberrypi kernel: [    2.058930] usbcore: registered new interface driver usbhid
Dec 16 18:17:30 raspberrypi kernel: [    2.066736] usbhid: USB HID core driver
Dec 16 18:17:30 raspberrypi kernel: [    2.073911] TCP cubic registered
Dec 16 18:17:30 raspberrypi kernel: [    2.079423] Initializing XFRM netlink socket
Dec 16 18:17:30 raspberrypi kernel: [    2.088053] NET: Registered protocol family 17
Dec 16 18:17:30 raspberrypi kernel: [    2.097841] Registering the dns_resolver key type
Dec 16 18:17:30 raspberrypi kernel: [    2.106944] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
Dec 16 18:17:30 raspberrypi kernel: [    2.121114] Indeed it is in host mode hprt0 = 00021501
Dec 16 18:17:30 raspberrypi kernel: [    2.133738] registered taskstats version 1
Dec 16 18:17:30 raspberrypi kernel: [    2.175240] Waiting for root device /dev/mmcblk0p2...
Dec 16 18:17:30 raspberrypi kernel: [    2.226736] mmc0: could read SD Status register (SSR) at the 3th attempt
Dec 16 18:17:30 raspberrypi kernel: [    2.253398] mmc0: new high speed SDHC card at address d016
Dec 16 18:17:30 raspberrypi kernel: [    2.262006] mmcblk0: mmc0:d016 SU04G 3.69 GiB 
Dec 16 18:17:30 raspberrypi kernel: [    2.271141]  mmcblk0: p1 p2
Dec 16 18:17:30 raspberrypi kernel: [    2.364747] usb 1-1: new high-speed USB device number 2 using dwc_otg
Dec 16 18:17:30 raspberrypi kernel: [    2.374434] Indeed it is in host mode hprt0 = 00001101
Dec 16 18:17:30 raspberrypi kernel: [    2.604978] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
Dec 16 18:17:30 raspberrypi kernel: [    2.614044] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Dec 16 18:17:30 raspberrypi kernel: [    2.624433] hub 1-1:1.0: USB hub found
Dec 16 18:17:30 raspberrypi kernel: [    2.630832] hub 1-1:1.0: 3 ports detected
Dec 16 18:17:30 raspberrypi kernel: [    2.914768] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
Dec 16 18:17:30 raspberrypi kernel: [    3.035201] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
Dec 16 18:17:30 raspberrypi kernel: [    3.044471] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Dec 16 18:17:30 raspberrypi kernel: [    3.057360] smsc95xx v1.0.4
Dec 16 18:17:30 raspberrypi kernel: [    3.129986] smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:a9:9f:af
Dec 16 18:17:30 raspberrypi kernel: [    8.844315] EXT4-fs (mmcblk0p2): warning: mounting fs with errors, running e2fsck is recommended
Dec 16 18:17:30 raspberrypi kernel: [    9.345806] EXT4-fs (mmcblk0p2): recovery complete
Dec 16 18:17:30 raspberrypi kernel: [    9.355870] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
Dec 16 18:17:30 raspberrypi kernel: [    9.368976] VFS: Mounted root (ext4 filesystem) on device 179:2.
Dec 16 18:17:30 raspberrypi kernel: [    9.379295] devtmpfs: mounted
Dec 16 18:17:30 raspberrypi kernel: [    9.385735] Freeing init memory: 124K
Dec 16 18:17:30 raspberrypi kernel: [   19.166678] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Dec 16 18:17:30 raspberrypi kernel: [   31.599088] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Dec 16 18:17:30 raspberrypi kernel: [   32.206666] bcm2835 ALSA card created!
Dec 16 18:17:30 raspberrypi kernel: [   32.212880] bcm2835 ALSA chip created!
Dec 16 18:17:30 raspberrypi kernel: [   32.233591] bcm2835 ALSA chip created!
Dec 16 18:17:30 raspberrypi kernel: [   32.244920] bcm2835 ALSA chip created!
Dec 16 18:17:30 raspberrypi kernel: [   32.250748] bcm2835 ALSA chip created!
Dec 16 18:17:30 raspberrypi kernel: [   32.266880] bcm2835 ALSA chip created!
Dec 16 18:17:30 raspberrypi kernel: [   32.274843] bcm2835 ALSA chip created!
Dec 16 18:17:30 raspberrypi kernel: [   32.282696] bcm2835 ALSA chip created!
Dec 16 18:17:30 raspberrypi kernel: [   40.594079] smsc95xx 1-1.1:1.0: eth0: link up, 10Mbps, half-duplex, lpa 0x0020

User avatar
SN
Posts: 1014
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
Contact: Website

Re: USB redux

Wed Dec 19, 2012 7:08 pm

just a note on the gphoto2 crap out - I use it with the pi directly connected to the camera via usb and with a nano wlan adaptor in the other usb in other words NO hub
Steve N – binatone mk4->intellivision->zx81->spectrum->cbm64->cpc6128->520stfm->pc->raspi ?

User avatar
mkopack
Posts: 242
Joined: Mon Nov 07, 2011 8:46 pm

Re: USB redux

Wed Dec 19, 2012 9:44 pm

MaxK1 wrote:Or 7 funky ones...
In my case it's the other way around... I have a brand new 4 port powered Hub that whenever I use it the Wifi adaptor drops out constantly. Then I have a like 5 yr old 7 port DLink hub and it works rock solid. If I take away the hub and just use the Wifi adaptor plugged directly into the RPi (512MB model) it is flaky. I'm using an Apple iPhone power adapter to drive the RPi.

I think a lot of it is how good the power supply on the hub is as well... (Note, in neither case am I trying to run the RPi off the hub.)

davidmam
Posts: 101
Joined: Tue Dec 06, 2011 4:13 pm

Re: USB redux

Thu Dec 20, 2012 11:24 pm

Coming back into this - I have finally changed the wireless adapter to an Edimax one instead of the Ralink one and the Pi is subjectively more responsive and hasn't fallen over yet! We shall see how it proceeds.

Maxion
Posts: 138
Joined: Mon Dec 03, 2012 2:22 pm

Re: USB redux

Fri Dec 21, 2012 5:52 pm

Right. I've started getting USB crashes again.

I'm powering my pi directly from the GPIO headers using a UBEC which provides stable 4.95V @ TP1-TP2.

When the crash happens this is what syslog says:

Code: Select all

Dec 21 12:28:01 raspberrypi /USR/SBIN/CRON[27372]: (maxion) CMD (/home/maxion/scripts/1min.py > /dev/null)
Dec 21 12:28:06 raspberrypi kernel: [89747.765153] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
Dec 21 12:28:06 raspberrypi kernel: [89747.765185] smsc95xx 1-1.1:1.0: eth0: Error reading MII_ACCESS
Dec 21 12:28:11 raspberrypi ifplugd(eth0)[1512]: Link beat lost.
Dec 21 12:28:11 raspberrypi kernel: [89747.765221] smsc95xx 1-1.1:1.0: eth0: MII is busy in smsc95xx_mdio_read
Dec 21 12:28:11 raspberrypi kernel: [89752.765280] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
Dec 21 12:28:11 raspberrypi kernel: [89752.765327] smsc95xx 1-1.1:1.0: eth0: Error reading MII_ACCESS
Dec 21 12:28:17 raspberrypi kernel: [89752.765345] smsc95xx 1-1.1:1.0: eth0: MII is busy in smsc95xx_mdio_read
Dec 21 12:28:17 raspberrypi kernel: [89758.865446] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
Dec 21 12:28:17 raspberrypi kernel: [89758.865493] smsc95xx 1-1.1:1.0: eth0: Error reading MII_ACCESS
The 1min.py scripts is simply a script which reads 1 DS18B20 sensor over the GPIO pins and saves it to a .log file on the SD memory card.

Does anyone know of a way to reset and force the USB interface and network interface to restart without rebooting the pi?

Maxion
Posts: 138
Joined: Mon Dec 03, 2012 2:22 pm

Re: USB redux

Fri Dec 21, 2012 6:00 pm

Hmmm there was also this in the kernlog... Not sure at all if related....


Dec 21 11:40:00 raspberrypi kernel: [86862.348442] uvcvideo: Failed to resubmit video URB (-1).

Maxion
Posts: 138
Joined: Mon Dec 03, 2012 2:22 pm

Re: USB redux

Fri Dec 21, 2012 6:32 pm

Sorry for spamming this thread so much, but I created a short script which reboots the Pi if the network and a chosen USB peripheral isn't found. A dirty fix but should keep a remote pi accessible.

Put it to your sudo crontab -e and run it as often as you like.

Code: Select all

#!/usr/bin/python

#This script checks if the USB interface has crashed. If it has it then reboots the Raspberry pi and tries to fix it.

from subprocess import call
import datetime

#Select an IP to ping. I use my router to test if the eth0 interface is actually working
IP_FOR_TEST = "192.168.10.1"

#Call the Ping command and ping the IP once and log the return to the ret variable
ret = call(["ping", "-c 1", IP_FOR_TEST])

#If the return is not successful...
if not ret == 0:

#...log the date and time..
	with open("/home/maxion/logs/usberror.log", "a") as logfile:
		logfile.write("\n" + str(datetime.datetime.now()) + " " + IP_FOR_TEST + " is unreachable")
		
# and then check if the USB device 006 on bus 001 is reachable and log the return to the variable ret2. 001:006 is my webcam which is always connected.
	ret2 = call(["lsusb", "-s 001:006"])

# If it isn't successful then log the results and the time
	if not ret2 == 0:
		with open("/home/maxion/logs/usberror.log", "a") as logfile:
			logfile.write("\n" + str(datetime.datetime.now()) + " USB device 001:006 Creative webcam is unreachable, rebooting")

# And then reboot the computer
		call(["sudo", "reboot", "-h"])

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1438
Joined: Sat Sep 10, 2011 11:43 am

Re: USB redux

Sat Dec 22, 2012 7:38 am

Are you fully up to date with the latest kernel? There was a bug exactly like this that was fixed in the last month

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

Maxion
Posts: 138
Joined: Mon Dec 03, 2012 2:22 pm

Re: USB redux

Sat Dec 22, 2012 8:37 am

gsh wrote:Are you fully up to date with the latest kernel? There was a bug exactly like this that was fixed in the last month

Gordon
I'm using 3.2.27 from Nov 26th, not sure if that's the latest or not :o

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1438
Joined: Sat Sep 10, 2011 11:43 am

Re: USB redux

Sat Dec 22, 2012 3:16 pm

Yeah that should contain the same bug fix.. you could try tickling the interrupt mask to see if that makes it wake up again

Just try the following to see if it's locked up waiting for an interrupt...

http://www.raspberrypi.org/phpBB3/viewt ... 92#p208392
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

Maxion
Posts: 138
Joined: Mon Dec 03, 2012 2:22 pm

Re: USB redux

Sat Dec 22, 2012 4:51 pm

gsh wrote:Yeah that should contain the same bug fix.. you could try tickling the interrupt mask to see if that makes it wake up again

Just try the following to see if it's locked up waiting for an interrupt...

http://www.raspberrypi.org/phpBB3/viewt ... 92#p208392
Thanks, I'll do that when/if it crashes again. So far no crashes yet.

kermitas
Posts: 108
Joined: Thu Jan 26, 2012 11:49 am

Re: USB redux

Sun Dec 23, 2012 1:21 pm

Excuse me.

Do you know why there is no new commits at https://github.com/raspberrypi/firmware/ for a month?
Is there any change of way how new firmware is distributed?
Or maybe there were some problems with latest work?

Thanks:)

lingon
Posts: 118
Joined: Fri Aug 26, 2011 7:31 am

Re: USB redux

Tue Dec 25, 2012 9:10 pm

I have two Logitech webcams that both use the uvcvideo driver.
Bus 001 Device 005: ID 046d:08c3 Logitech, Inc. Camera (Notebooks Pro)
Bus 001 Device 005: ID 046d:09a6 Logitech, Inc. QuickCam Vision Pro
I have tested both with mjpeg-streamer, but only the Notebooks Pro webcam is usable.
Both webcams drop frames with the error message "USB isochronous frame lost (-63)", but the Vision Pro drops most of the frames and is unusable in practice. Here are the details for these two webcams that hopefully could shed some light on why one works much better than the other.
First is the information for the Notebooks Pro and the next post contains the information for the Vision Pro.

uname -a
Linux rpicam 3.2.27+ #307 PREEMPT Mon Nov 26 23:22:29 GMT 2012 armv6l GNU/Linux

sudo rmmod snd-usb-audio
sudo mjpg_streamer -i "/usr/lib/input_uvc.so -d /dev/video0 -r 960x720 -f 15" -o "/usr/lib/output_http.so -p 8090 -w /var/www/mjpg_streamer" &

8-9 % CPU

lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 2001:3308 D-Link Corp. DWA-121 802.11n Wireless N 150 Pico Adapter [Realtek RTL8188CUS]
Bus 001 Device 005: ID 046d:08c3 Logitech, Inc. Camera (Notebooks Pro)

lsusb -t
1-1.3:1.2: No such file or directory
1-1.3:1.3: No such file or directory
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
|__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/3p, 480M
|__ Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 480M
|__ Port 2: Dev 4, If 0, Class=vend., Driver=rtl8192cu, 480M
|__ Port 3: Dev 5, If 0, Class=vend., Driver=uvcvideo, 480M
|__ Port 3: Dev 5, If 1, Class=vend., Driver=uvcvideo, 480M
|__ Port 3: Dev 5, If 2, Class=audio, Driver=, 480M
|__ Port 3: Dev 5, If 3, Class=audio, Driver=, 480M

Code: Select all

Bus 001 Device 005: ID 046d:08c3 Logitech, Inc. Camera (Notebooks Pro)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         1 
  bMaxPacketSize0        64
  idVendor           0x046d Logitech, Inc.
  idProduct          0x08c3 Camera (Notebooks Pro)
  bcdDevice            0.05
  iManufacturer           0 
  iProduct                0 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength         1361
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass        255 Vendor Specific Class
      bFunctionSubClass       3 
      bFunctionProtocol       0 
      iFunction               0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1 
      bInterfaceProtocol      0 
      iInterface              0 
      ** UNRECOGNIZED:  0d 24 01 00 01 6a 00 00 6c dc 02 01 01
      ** UNRECOGNIZED:  12 24 02 01 01 02 00 00 00 00 00 00 00 00 03 0e 00 00
      ** UNRECOGNIZED:  0b 24 05 02 01 00 40 02 7b 17 00
      ** UNRECOGNIZED:  1c 24 06 03 82 06 61 63 70 50 ab 49 b8 cc b3 85 5e 8d 22 1d 00 01 02 03 ff ff 1f 00
      ** UNRECOGNIZED:  1b 24 06 04 82 06 61 63 70 50 ab 49 b8 cc b3 85 5e 8d 22 1e 00 01 03 02 7f 01 00
      ** UNRECOGNIZED:  09 24 03 05 01 01 00 04 00
      ** UNRECOGNIZED:  20 41 01 08 82 06 61 63 70 50 ab 49 b8 cc b3 85 5e 8d 22 51 03 01 04 03 19 00 00 00 00 00 00 00
      ** UNRECOGNIZED:  20 41 01 0a 82 06 61 63 70 50 ab 49 b8 cc b3 85 5e 8d 22 52 01 01 04 03 00 40 00 00 00 00 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               8
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      0 
      iInterface              0 
      ** UNRECOGNIZED:  10 24 01 03 07 03 81 00 05 02 01 00 01 04 00 04
      ** UNRECOGNIZED:  0b 24 06 01 0c 01 03 00 00 00 00
      ** UNRECOGNIZED:  32 24 07 01 00 a0 00 78 00 00 70 17 00 00 a0 8c 00 00 96 00 00 15 16 05 00 06 15 16 05 00 80 1a 06 00 20 a1 07 00 2a 2c 0a 00 40 42 0f 00 80 84 1e 00
      ** UNRECOGNIZED:  32 24 07 02 00 b0 00 90 00 00 f0 1e 00 00 a0 b9 00 00 c6 00 00 15 16 05 00 06 15 16 05 00 80 1a 06 00 20 a1 07 00 2a 2c 0a 00 40 42 0f 00 80 84 1e 00
      ** UNRECOGNIZED:  32 24 07 03 00 40 01 f0 00 00 c0 5d 00 00 80 32 02 00 58 02 00 2a 2c 0a 00 06 15 16 05 00 80 1a 06 00 20 a1 07 00 2a 2c 0a 00 40 42 0f 00 80 84 1e 00
      ** UNRECOGNIZED:  32 24 07 04 00 60 01 20 01 00 c0 7b 00 00 80 e6 02 00 18 03 00 15 16 05 00 06 15 16 05 00 80 1a 06 00 20 a1 07 00 2a 2c 0a 00 40 42 0f 00 80 84 1e 00
      ** UNRECOGNIZED:  32 24 07 05 00 b0 01 f0 00 00 90 7e 00 00 60 f7 02 00 2a 03 00 15 16 05 00 06 15 16 05 00 80 1a 06 00 20 a1 07 00 2a 2c 0a 00 40 42 0f 00 80 84 1e 00
      ** UNRECOGNIZED:  32 24 07 06 00 e0 01 68 01 00 f0 d2 00 00 a0 f1 04 00 46 05 00 15 16 05 00 06 15 16 05 00 80 1a 06 00 20 a1 07 00 2a 2c 0a 00 40 42 0f 00 80 84 1e 00
      ** UNRECOGNIZED:  32 24 07 07 00 00 02 20 01 00 00 b4 00 00 00 38 04 00 80 04 00 15 16 05 00 06 15 16 05 00 80 1a 06 00 20 a1 07 00 2a 2c 0a 00 40 42 0f 00 80 84 1e 00
      ** UNRECOGNIZED:  32 24 07 08 00 80 02 68 01 00 40 19 01 00 80 97 06 00 08 07 00 15 16 05 00 06 15 16 05 00 80 1a 06 00 20 a1 07 00 2a 2c 0a 00 40 42 0f 00 80 84 1e 00
      ** UNRECOGNIZED:  32 24 07 09 00 80 02 e0 01 00 00 77 01 00 00 ca 08 00 60 09 00 2a 2c 0a 00 06 15 16 05 00 80 1a 06 00 20 a1 07 00 2a 2c 0a 00 40 42 0f 00 80 84 1e 00
      ** UNRECOGNIZED:  26 24 07 0a 00 c0 02 40 02 00 00 ef 01 00 00 cd 05 00 60 0c 00 2a 2c 0a 00 03 2a 2c 0a 00 40 42 0f 00 80 84 1e 00
      ** UNRECOGNIZED:  26 24 07 0b 00 60 03 e0 01 00 40 fa 01 00 c0 ee 05 00 a8 0c 00 2a 2c 0a 00 03 2a 2c 0a 00 40 42 0f 00 80 84 1e 00
      ** UNRECOGNIZED:  26 24 07 0c 00 c0 03 d0 02 00 c0 4b 03 00 40 e3 09 00 18 15 00 2a 2c 0a 00 03 2a 2c 0a 00 40 42 0f 00 80 84 1e 00
      ** UNRECOGNIZED:  3e 24 03 00 0c a0 00 78 00 b0 00 90 00 40 01 f0 00 60 01 20 01 b0 01 f0 00 e0 01 68 01 00 02 20 01 80 02 68 01 80 02 e0 01 c0 02 40 02 60 03 e0 01 c0 03 d0 02 08 04 08 0c 10 14 18 1c 1f
      ** UNRECOGNIZED:  06 24 0d 01 01 04
      ** UNRECOGNIZED:  1b 24 04 02 02 59 55 59 32 00 00 10 00 80 00 00 aa 00 38 9b 71 10 01 00 00 00 00
      ** UNRECOGNIZED:  22 24 05 01 00 00 04 40 02 00 00 d0 02 00 00 a0 05 00 00 12 00 40 42 0f 00 02 40 42 0f 00 80 84 1e 00
      ** UNRECOGNIZED:  22 24 05 02 00 00 05 c0 03 00 00 dc 05 00 00 b8 0b 00 80 25 00 55 58 14 00 02 55 58 14 00 80 84 1e 00
      ** UNRECOGNIZED:  0f 24 03 00 02 00 04 40 02 00 05 c0 03 01 04
      ** UNRECOGNIZED:  06 24 0d 01 01 04
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x00c0  1x 192 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       2
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0180  1x 384 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       3
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       4
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0280  1x 640 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       5
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0320  1x 800 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       6
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x03b0  1x 944 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       7
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0a80  2x 640 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       8
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0b20  2x 800 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       9
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0be0  2x 992 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting      10
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x1380  3x 896 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting      11
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      2 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x13fc  3x 1020 bytes
        bInterval               1
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         2
      bInterfaceCount         2
      bFunctionClass          1 Audio
      bFunctionSubClass       2 Streaming
      bFunctionProtocol       0 
      iFunction               0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength           38
        bInCollection           1
        baInterfaceNr( 0)       3
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0201 Microphone
        bAssocTerminal          0
        bNrChannels             1
        wChannelConfig     0x0000
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             3
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               5
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 8
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 5
        bSourceID               1
        bControlSize            1
        bmaControls( 0)      0x03
          Mute Control
          Volume Control
        iFeature                0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           3
        bDelay                  1 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]            0
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               4
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x01
            Sampling Frequency
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       2
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           3
        bDelay                  1 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]            0
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               4
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x01
            Sampling Frequency
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       3
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           3
        bDelay                  1 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        16000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0030  1x 48 bytes
        bInterval               4
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x01
            Sampling Frequency
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         1 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

echo 0xffff > /sys/module/uvcvideo/parameters/trace

[ 404.445503] uvcvideo: Queuing buffer 0.
[ 404.445772] uvcvideo: uvc_v4l2_ioctl(VIDIOC_DQBUF)
[ 404.485246] uvcvideo: USB isochronous frame lost (-63).
[ 404.489361] uvcvideo: USB isochronous frame lost (-63).
[ 404.513400] uvcvideo: Frame complete (EOF found).
[ 404.517488] uvcvideo: USB isochronous frame lost (-63).
[ 404.573632] uvcvideo: USB isochronous frame lost (-63).
[ 404.581800] uvcvideo: Frame complete (EOF found).

lingon
Posts: 118
Joined: Fri Aug 26, 2011 7:31 am

Re: USB redux

Tue Dec 25, 2012 9:13 pm

lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 2001:3308 D-Link Corp. DWA-121 802.11n Wireless N 150 Pico Adapter [Realtek RTL8188CUS]
Bus 001 Device 005: ID 046d:09a6 Logitech, Inc. QuickCam Vision Pro

lsusb -t
1-1.3:1.2: No such file or directory
1-1.3:1.3: No such file or directory
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
|__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/3p, 480M
|__ Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 480M
|__ Port 2: Dev 4, If 0, Class=vend., Driver=rtl8192cu, 480M
|__ Port 3: Dev 5, If 0, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
|__ Port 3: Dev 5, If 1, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
|__ Port 3: Dev 5, If 2, Class=audio, Driver=, 480M
|__ Port 3: Dev 5, If 3, Class=audio, Driver=, 480M

Code: Select all

Bus 001 Device 005: ID 046d:09a6 Logitech, Inc. QuickCam Vision Pro
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 ?
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x046d Logitech, Inc.
  idProduct          0x09a6 QuickCam Vision Pro
  bcdDevice            0.09
  iManufacturer           0 
  iProduct                0 
  iSerial                 2 7D08C520
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength         1915
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass         14 Video
      bFunctionSubClass       3 Video Interface Collection
      bFunctionProtocol       0 
      iFunction               0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      1 Video Control
      bInterfaceProtocol      0 
      iInterface              0 
      VideoControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdUVC               1.00
        wTotalLength          161
        dwClockFrequency       48.000000MHz
        bInCollection           1
        baInterfaceNr( 0)       1
      VideoControl Interface Descriptor:
        bLength                18
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0201 Camera Sensor
        bAssocTerminal          0
        iTerminal               0 
        wObjectiveFocalLengthMin      0
        wObjectiveFocalLengthMax      0
        wOcularFocalLength            0
        bControlSize                  3
        bmControls           0x0002082e
          Auto-Exposure Mode
          Auto-Exposure Priority
          Exposure Time (Absolute)
          Focus (Absolute)
          PanTilt (Absolute)
          Focus, Auto
      VideoControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      5 (PROCESSING_UNIT)
      Warning: Descriptor too short
        bUnitID                 2
        bSourceID               1
        wMaxMultiplier      16384
        bControlSize            2
        bmControls     0x0000175b
          Brightness
          Contrast
          Saturation
          Sharpness
          White Balance Temperature
          Backlight Compensation
          Gain
          Power Line Frequency
          White Balance Temperature, Auto
        iProcessing             0 
        bmVideoStandards     0x1b
          None
          NTSC - 525/60
          SECAM - 625/50
          NTSC - 625/50
      VideoControl Interface Descriptor:
        bLength                27
        bDescriptorType        36
        bDescriptorSubtype      6 (EXTENSION_UNIT)
        bUnitID                 4
        guidExtensionCode         {82066163-7050-ab49-b8cc-b3855e8d221e}
        bNumControl            10
        bNrPins                 1
        baSourceID( 0)          2
        bControlSize            2
        bmControls( 0)       0xff
        bmControls( 1)       0x03
        iExtension              0 
      VideoControl Interface Descriptor:
        bLength                27
        bDescriptorType        36
        bDescriptorSubtype      6 (EXTENSION_UNIT)
        bUnitID                13
        guidExtensionCode         {82066163-7050-ab49-b8cc-b3855e8d221f}
        bNumControl             8
        bNrPins                 1
        baSourceID( 0)          2
        bControlSize            2
        bmControls( 0)       0x7f
        bmControls( 1)       0x01
        iExtension              0 
      VideoControl Interface Descriptor:
        bLength                28
        bDescriptorType        36
        bDescriptorSubtype      6 (EXTENSION_UNIT)
        bUnitID                10
        guidExtensionCode         {82066163-7050-ab49-b8cc-b3855e8d2252}
        bNumControl            24
        bNrPins                 1
        baSourceID( 0)          4
        bControlSize            3
        bmControls( 0)       0xff
        bmControls( 1)       0xff
        bmControls( 2)       0xff
        iExtension              0 
      VideoControl Interface Descriptor:
        bLength                28
        bDescriptorType        36
        bDescriptorSubtype      6 (EXTENSION_UNIT)
        bUnitID                14
        guidExtensionCode         {b7935ba4-15c7-0245-90f4-532a3b311365}
        bNumControl             4
        bNrPins                 1
        baSourceID( 0)          1
        bControlSize            3
        bmControls( 0)       0x0f
        bmControls( 1)       0x00
        bmControls( 2)       0x00
        iExtension              0 
      VideoControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             5
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               4
        iTerminal               0 
      ** UNRECOGNIZED:  20 41 01 0c 82 06 61 63 70 50 ab 49 b8 cc b3 85 5e 8d 22 50 14 01 04 03 ff 7f 00 00 00 00 00 00
      ** UNRECOGNIZED:  20 41 01 08 82 06 61 63 70 50 ab 49 b8 cc b3 85 5e 8d 22 51 03 01 04 03 19 00 00 00 00 00 01 00
      ** UNRECOGNIZED:  20 41 01 0b 82 06 61 63 70 50 ab 49 b8 cc b3 85 5e 8d 22 55 01 01 04 03 01 00 00 00 00 00 00 00
      ** UNRECOGNIZED:  20 41 01 09 82 06 61 63 70 50 ab 49 b8 cc b3 85 5e 8d 22 56 08 01 04 03 ff 00 00 00 00 00 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               8
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      VideoStreaming Interface Descriptor:
        bLength                            16
        bDescriptorType                    36
        bDescriptorSubtype                  1 (INPUT_HEADER)
        bNumFormats                         3
        wTotalLength                     1296
        bEndPointAddress                  129
        bmInfo                              0
        bTerminalLink                       5
        bStillCaptureMethod                 2
        bTriggerSupport                     1
        bTriggerUsage                       0
        bControlSize                        1
        bmaControls( 0)                    11
        bmaControls( 1)                    11
        bmaControls( 2)                    11
      VideoStreaming Interface Descriptor:
        bLength                            11
        bDescriptorType                    36
        bDescriptorSubtype                  6 (FORMAT_MJPEG)
        bFormatIndex                        1
        bNumFrameDescriptors               13
        bFlags                              1
          Fixed-size samples: Yes
        bDefaultFrameIndex                  1
        bAspectRatioX                       0
        bAspectRatioY                       0
        bmInterlaceFlags                 0x00
          Interlaced stream or variable: No
          Fields per frame: 1 fields
          Field 1 first: No
          Field pattern: Field 1 only
          bCopyProtect                      0
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                         1
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            640
        wHeight                           480
        dwMinBitRate                 24576000
        dwMaxBitRate                147456000
        dwMaxVideoFrameBufferSize      614400
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  6
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                         2
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            160
        wHeight                           120
        dwMinBitRate                  1536000
        dwMaxBitRate                  9216000
        dwMaxVideoFrameBufferSize       38400
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  6
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                         3
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            176
        wHeight                           144
        dwMinBitRate                  2027520
        dwMaxBitRate                 12165120
        dwMaxVideoFrameBufferSize       50688
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  6
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                         4
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            320
        wHeight                           240
        dwMinBitRate                  6144000
        dwMaxBitRate                 36864000
        dwMaxVideoFrameBufferSize      153600
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  6
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                         5
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            352
        wHeight                           288
        dwMinBitRate                  8110080
        dwMaxBitRate                 48660480
        dwMaxVideoFrameBufferSize      202752
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  6
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                         6
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            800
        wHeight                           456
        dwMinBitRate                 29184000
        dwMaxBitRate                175104000
        dwMaxVideoFrameBufferSize      729600
        dwDefaultFrameInterval         666666
        bFrameIntervalType                  6
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                         7
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            800
        wHeight                           504
        dwMinBitRate                 32256000
        dwMaxBitRate                193536000
        dwMaxVideoFrameBufferSize      806400
        dwDefaultFrameInterval         666666
        bFrameIntervalType                  6
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                         8
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            800
        wHeight                           600
        dwMinBitRate                 38400000
        dwMaxBitRate                230400000
        dwMaxVideoFrameBufferSize      960000
        dwDefaultFrameInterval         666666
        bFrameIntervalType                  6
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            38
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                         9
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            960
        wHeight                           720
        dwMinBitRate                 55296000
        dwMaxBitRate                165888000
        dwMaxVideoFrameBufferSize     1382400
        dwDefaultFrameInterval        1000000
        bFrameIntervalType                  3
        dwFrameInterval( 0)            666666
        dwFrameInterval( 1)           1000000
        dwFrameInterval( 2)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            34
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                        10
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1280
        wHeight                           720
        dwMinBitRate                 73728000
        dwMaxBitRate                147456000
        dwMaxVideoFrameBufferSize     1843200
        dwDefaultFrameInterval        1000000
        bFrameIntervalType                  2
        dwFrameInterval( 0)           1000000
        dwFrameInterval( 1)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            34
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                        11
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1600
        wHeight                           904
        dwMinBitRate                115712000
        dwMaxBitRate                231424000
        dwMaxVideoFrameBufferSize     2892800
        dwDefaultFrameInterval        1000000
        bFrameIntervalType                  2
        dwFrameInterval( 0)           1000000
        dwFrameInterval( 1)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            34
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                        12
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1600
        wHeight                          1000
        dwMinBitRate                128000000
        dwMaxBitRate                256000000
        dwMaxVideoFrameBufferSize     3200000
        dwDefaultFrameInterval        1000000
        bFrameIntervalType                  2
        dwFrameInterval( 0)           1000000
        dwFrameInterval( 1)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            34
        bDescriptorType                    36
        bDescriptorSubtype                  7 (FRAME_MJPEG)
        bFrameIndex                        13
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1600
        wHeight                          1200
        dwMinBitRate                153600000
        dwMaxBitRate                307200000
        dwMaxVideoFrameBufferSize     3840000
        dwDefaultFrameInterval        2000000
        bFrameIntervalType                  2
        dwFrameInterval( 0)           1000000
        dwFrameInterval( 1)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            47
        bDescriptorType                    36
        bDescriptorSubtype                  3 (STILL_IMAGE_FRAME)
        bEndpointAddress                    0
        bNumImageSizePatterns               9
        wWidth( 0)                        640
        wHeight( 0)                       480
        wWidth( 1)                        160
        wHeight( 1)                       120
        wWidth( 2)                        176
        wHeight( 2)                       144
        wWidth( 3)                        320
        wHeight( 3)                       240
        wWidth( 4)                        352
        wHeight( 4)                       288
        wWidth( 5)                        800
        wHeight( 5)                       456
        wWidth( 6)                        800
        wHeight( 6)                       504
        wWidth( 7)                        800
        wHeight( 7)                       600
        wWidth( 8)                        960
        wHeight( 8)                       720
        bNumCompressionPatterns             9
        bCompression( 0)                    5
        bCompression( 1)                   10
        bCompression( 2)                   15
        bCompression( 3)                   20
        bCompression( 4)                   25
      VideoStreaming Interface Descriptor:
        bLength                             6
        bDescriptorType                    36
        bDescriptorSubtype                 13 (COLORFORMAT)
        bColorPrimaries                     1 (BT.709,sRGB)
        bTransferCharacteristics            1 (BT.709)
        bMatrixCoefficients                 4 (SMPTE 170M (BT.601))
      VideoStreaming Interface Descriptor:
        bLength                            27
        bDescriptorType                    36
        bDescriptorSubtype                  4 (FORMAT_UNCOMPRESSED)
        bFormatIndex                        2
        bNumFrameDescriptors               13
        guidFormat                            {59555932-0000-1000-8000-00aa00389b71}
        bBitsPerPixel                      16
        bDefaultFrameIndex                  1
        bAspectRatioX                       0
        bAspectRatioY                       0
        bmInterlaceFlags                 0x00
          Interlaced stream or variable: No
          Fields per frame: 2 fields
          Field 1 first: No
          Field pattern: Field 1 only
          bCopyProtect                      0
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         1
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            640
        wHeight                           480
        dwMinBitRate                 24576000
        dwMaxBitRate                147456000
        dwMaxVideoFrameBufferSize      614400
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  6
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         2
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            160
        wHeight                           120
        dwMinBitRate                  1536000
        dwMaxBitRate                  9216000
        dwMaxVideoFrameBufferSize       38400
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  6
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         3
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            176
        wHeight                           144
        dwMinBitRate                  2027520
        dwMaxBitRate                 12165120
        dwMaxVideoFrameBufferSize       50688
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  6
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         4
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            320
        wHeight                           240
        dwMinBitRate                  6144000
        dwMaxBitRate                 36864000
        dwMaxVideoFrameBufferSize      153600
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  6
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         5
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            352
        wHeight                           288
        dwMinBitRate                  8110080
        dwMaxBitRate                 48660480
        dwMaxVideoFrameBufferSize      202752
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  6
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            46
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         6
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            800
        wHeight                           456
        dwMinBitRate                 29184000
        dwMaxBitRate                145920000
        dwMaxVideoFrameBufferSize      729600
        dwDefaultFrameInterval         400000
        bFrameIntervalType                  5
        dwFrameInterval( 0)            400000
        dwFrameInterval( 1)            500000
        dwFrameInterval( 2)            666666
        dwFrameInterval( 3)           1000000
        dwFrameInterval( 4)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            46
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         7
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            800
        wHeight                           504
        dwMinBitRate                 32256000
        dwMaxBitRate                161280000
        dwMaxVideoFrameBufferSize      806400
        dwDefaultFrameInterval         400000
        bFrameIntervalType                  5
        dwFrameInterval( 0)            400000
        dwFrameInterval( 1)            500000
        dwFrameInterval( 2)            666666
        dwFrameInterval( 3)           1000000
        dwFrameInterval( 4)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            46
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         8
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            800
        wHeight                           600
        dwMinBitRate                 38400000
        dwMaxBitRate                192000000
        dwMaxVideoFrameBufferSize      960000
        dwDefaultFrameInterval         400000
        bFrameIntervalType                  5
        dwFrameInterval( 0)            400000
        dwFrameInterval( 1)            500000
        dwFrameInterval( 2)            666666
        dwFrameInterval( 3)           1000000
        dwFrameInterval( 4)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            38
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         9
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            960
        wHeight                           720
        dwMinBitRate                 55296000
        dwMaxBitRate                165888000
        dwMaxVideoFrameBufferSize     1382400
        dwDefaultFrameInterval        1000000
        bFrameIntervalType                  3
        dwFrameInterval( 0)            666666
        dwFrameInterval( 1)           1000000
        dwFrameInterval( 2)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            34
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                        10
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1280
        wHeight                           720
        dwMinBitRate                 73728000
        dwMaxBitRate                147456000
        dwMaxVideoFrameBufferSize     1843200
        dwDefaultFrameInterval        2000000
        bFrameIntervalType                  2
        dwFrameInterval( 0)           1333333
        dwFrameInterval( 1)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                        11
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1600
        wHeight                           904
        dwMinBitRate                115712000
        dwMaxBitRate                115712000
        dwMaxVideoFrameBufferSize     2892800
        dwDefaultFrameInterval        2000000
        bFrameIntervalType                  1
        dwFrameInterval( 0)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                        12
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1600
        wHeight                          1000
        dwMinBitRate                128000000
        dwMaxBitRate                128000000
        dwMaxVideoFrameBufferSize     3200000
        dwDefaultFrameInterval        2000000
        bFrameIntervalType                  1
        dwFrameInterval( 0)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                        13
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1600
        wHeight                          1200
        dwMinBitRate                153600000
        dwMaxBitRate                153600000
        dwMaxVideoFrameBufferSize     3840000
        dwDefaultFrameInterval        2000000
        bFrameIntervalType                  1
        dwFrameInterval( 0)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            59
        bDescriptorType                    36
        bDescriptorSubtype                  3 (STILL_IMAGE_FRAME)
        bEndpointAddress                    0
        bNumImageSizePatterns              13
        wWidth( 0)                        640
        wHeight( 0)                       480
        wWidth( 1)                        160
        wHeight( 1)                       120
        wWidth( 2)                        176
        wHeight( 2)                       144
        wWidth( 3)                        320
        wHeight( 3)                       240
        wWidth( 4)                        352
        wHeight( 4)                       288
        wWidth( 5)                        800
        wHeight( 5)                       456
        wWidth( 6)                        800
        wHeight( 6)                       504
        wWidth( 7)                        800
        wHeight( 7)                       600
        wWidth( 8)                        960
        wHeight( 8)                       720
        wWidth( 9)                       1280
        wHeight( 9)                       720
        wWidth(10)                       1600
        wHeight(10)                       904
        wWidth(11)                       1600
        wHeight(11)                      1000
        wWidth(12)                       1600
        wHeight(12)                      1200
        bNumCompressionPatterns            13
        bCompression( 0)                    5
      VideoStreaming Interface Descriptor:
        bLength                             6
        bDescriptorType                    36
        bDescriptorSubtype                 13 (COLORFORMAT)
        bColorPrimaries                     1 (BT.709,sRGB)
        bTransferCharacteristics            1 (BT.709)
        bMatrixCoefficients                 4 (SMPTE 170M (BT.601))
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x00c0  1x 192 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       2
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0180  1x 384 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       3
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       4
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0280  1x 640 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       5
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0320  1x 800 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       6
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x03b0  1x 944 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       7
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0a80  2x 640 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       8
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0b20  2x 800 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       9
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0be0  2x 992 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting      10
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x1380  3x 896 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting      11
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x13fc  3x 1020 bytes
        bInterval               1
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         2
      bInterfaceCount         2
      bFunctionClass          1 Audio
      bFunctionSubClass       2 Streaming
      bFunctionProtocol       0 
      iFunction               0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength           38
        bInCollection           1
        baInterfaceNr( 0)       3
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0201 Microphone
        bAssocTerminal          0
        bNrChannels             1
        wChannelConfig     0x0000
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             3
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          1
        bSourceID               5
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 8
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 5
        bSourceID               1
        bControlSize            1
        bmaControls( 0)      0x03
          Mute Control
          Volume Control
        iFeature                0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           3
        bDelay                  1 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        16000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0024  1x 36 bytes
        bInterval               4
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x01
            Sampling Frequency
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 ?
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)
sudo mjpg_streamer -i "/usr/lib/input_uvc.so -d /dev/video0 -r 320x240 -f 5" -o "/usr/lib/output_http.so -p 8090 -w /var/www/mjpg_streamer" &
Already at this resolution there are lost packets

[ 575.218121] uvcvideo: Queuing buffer 2.
[ 575.218278] uvcvideo: uvc_v4l2_ioctl(VIDIOC_DQBUF)
[ 575.221940] uvcvideo: USB isochronous frame lost (-63).
[ 575.417960] uvcvideo: Frame complete (EOF found).
[ 575.617983] uvcvideo: Frame complete (EOF found).
[ 575.618115] uvcvideo: Dequeuing buffer 3 (4, 13807 bytes).
[ 575.618269] uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
[ 575.618299] uvcvideo: Queuing buffer 3.
[ 575.618450] uvcvideo: uvc_v4l2_ioctl(VIDIOC_DQBUF)
[ 575.622115] uvcvideo: USB isochronous frame lost (-63).
[ 575.818133] uvcvideo: Frame complete (EOF found).
[ 576.018159] uvcvideo: Frame complete (EOF found).
[ 576.018287] uvcvideo: Dequeuing buffer 0 (4, 13811 bytes).
[ 576.018441] uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
[ 576.018473] uvcvideo: Queuing buffer 0.
[ 576.018621] uvcvideo: uvc_v4l2_ioctl(VIDIOC_DQBUF)
[ 576.022288] uvcvideo: USB isochronous frame lost (-63).


sudo mjpg_streamer -i "/usr/lib/input_uvc.so -d /dev/video0 -r 960x720 -f 15" -o "/usr/lib/output_http.so -p 8090 -w /var/www/mjpg_streamer" &

This resolution shows now frames very seldom and there are much more lost USB frames.

[ 849.452842] uvcvideo: Frame complete (EOF found).
[ 849.456967] uvcvideo: USB isochronous frame lost (-63).
[ 849.469215] uvcvideo: USB isochronous frame lost (-63).
[ 849.485586] uvcvideo: USB isochronous frame lost (-63).
[ 849.514216] uvcvideo: USB isochronous frame lost (-63).
[ 849.518380] uvcvideo: Frame complete (EOF found).
[ 849.562604] uvcvideo: USB isochronous frame lost (-63).
[ 849.583158] uvcvideo: Frame complete (EOF found).
[ 849.623352] uvcvideo: USB isochronous frame lost (-63).
[ 849.635738] uvcvideo: USB isochronous frame lost (-63).
[ 849.643970] uvcvideo: USB isochronous frame lost (-63).
[ 849.652254] uvcvideo: Frame complete (EOF found).
[ 849.688614] uvcvideo: USB isochronous frame lost (-63).
[ 849.696871] uvcvideo: USB isochronous frame lost (-63).
[ 849.717532] uvcvideo: Frame complete (EOF found).
[ 849.769752] uvcvideo: USB isochronous frame lost (-63).
[ 849.786253] uvcvideo: USB isochronous frame lost (-63).
[ 849.786292] uvcvideo: Frame complete (EOF found).
[ 849.846648] uvcvideo: USB isochronous frame lost (-63).
[ 849.850796] uvcvideo: Frame complete (EOF found).
[ 849.854890] uvcvideo: USB isochronous frame lost (-63).

Bergschreck
Posts: 11
Joined: Tue Jan 01, 2013 7:41 am

Re: USB redux

Tue Jan 01, 2013 7:56 am

It seems to me that the latest kernel and firmware have solved (some of) the problem.
I have a python app that collects serial data every 250ms through a FTDI usb-serial converter from a charger. With the official Raspbian image 2012-12-16 the system was freezing after a few hours.
I did rpi-update and I'm now on

Linux raspberrypi 3.6.11+ #346 PREEMPT Fri Dec 28 00:50:33 GMT 2012 armv6l
Dec 28 2012 11:20:48
Copyright (c) 2012 Broadcom
version 359904 (release)

and could collect data for 18 hours without a freeze. That was not possible before.

michaeljquinn
Posts: 39
Joined: Sun Oct 21, 2012 8:19 am

Re: USB redux

Wed Jan 02, 2013 10:08 am

was this at USB 2.0 speeds ? or USB 1.1 (dwc_otg.speed=1)

Bergschreck
Posts: 11
Joined: Tue Jan 01, 2013 7:41 am

Re: USB redux

Wed Jan 02, 2013 10:14 am

michaeljquinn wrote:was this at USB 2.0 speeds ? or USB 1.1 (dwc_otg.speed=1)
Where can I see that?

shuckle
Posts: 565
Joined: Sun Aug 26, 2012 11:49 am
Location: Finland

Re: USB redux

Wed Jan 02, 2013 11:30 am

$

Code: Select all

cat /proc/cmdline

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5331
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: USB redux

Wed Jan 02, 2013 11:52 am

kermitas wrote: Do you know why there is no new commits at https://github.com/raspberrypi/firmware/ for a month?
There were, but it was on the "next" branch, as the switch to newer kernel (3.6.11) and GPU firmware required more careful testing than the usual smaller changes.

The testing was positive (after a few bug fixes) and got merged into master tree a few days ago, so an rpi-update will now get you the newest firmware.
(some info here: http://www.raspberrypi.org/phpBB3/viewt ... 29&t=19334)

Bergschreck
Posts: 11
Joined: Tue Jan 01, 2013 7:41 am

Re: USB redux

Wed Jan 02, 2013 1:20 pm

shuckle wrote:$

Code: Select all

cat /proc/cmdline

Code: Select all

dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1024 bcm2708_fb.fbheight=768 bcm2708.boardrev=0xe bcm2708.serial=0x82ff4fcb smsc95xx.macaddr=xx:xx:xx:xx:xx:xx sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1fa00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait

tmpp
Posts: 8
Joined: Sun Dec 02, 2012 5:26 pm
Location: Chicago

Re: USB redux

Thu Jan 03, 2013 2:50 pm

Just checking in again, on USB topics. I have updated to the latest firmware and OS.

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.6.11+ #348 PREEMPT Tue Jan 1 16:33:22 GMT 2013 armv6l GNU/Linux

The config.txt and cmdline.txt, I believe, are again stock.

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 smsc95xx.turbo_mode=N elevator=deadline rootwait

The symptoms I have consistently observed are that the USB kbd and mouse will skip/repeat if the prior shutdown was improper. A second (or third) powercycle of pulling the plug will restore proper fuctionality. However, no instance of improper behaviour is observed IF a proper shutdown is done on the prior cycle.

# shutdown -h now

I have uptimes measured in days and cannot find fault, when properly shutdown.

my 2 cents.
Lou

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1438
Joined: Sat Sep 10, 2011 11:43 am

Re: USB redux

Thu Jan 03, 2013 3:31 pm

Can you try this:

1) Pull the plug without shutting down
2) start up and observe the bad keyboard behaviour
3) Unplug keyboard and plug it in again and see if the problem goes away (repeat it a few times...)

Thanks

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

tmpp
Posts: 8
Joined: Sun Dec 02, 2012 5:26 pm
Location: Chicago

Re: USB redux

Thu Jan 03, 2013 4:03 pm

Ok, each boot had a prior power plug pull.
1,2=good, 3=bad, 4=good, 5=bad,6,7=good, 8=bad
My definition of good was able to type the following into a text editor, nano.

abcdefghijklmnoqprstuvwxyz1234567890-=
abcdefghijklmnopqrstuvwxyz1234567890-=
abcdefghijklmnopqrstuvwxyz1234567890-=
abcdefghijklmnopqrstuvwxyz1234567890-=

Often bad was not even able to login properly and spell raspberry for the password.

keyboard is:
pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 413c:1002 Dell Computer Corp. Keyboard Hub
Bus 001 Device 005: ID 413c:2002 Dell Computer Corp. SK-8125 Keyboard
Bus 001 Device 006: ID 046d:c00e Logitech, Inc. M-BJ58/M-BJ69 Optical Wheel Mouse

regards
Lou

Return to “Troubleshooting”