jonjonarnearne / smi2021

A v4l2 kernel driver for the smi2021 video capture chips

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to capture

Manouchehri opened this issue · comments

I'm unable to get any output from VLC, here's the dmesg log.

[19642.761348] usb 4-1.1: new high-speed USB device number 18 using ehci-pci
[19642.912276] usb 4-1.1: Looking for: smi2021_3f.bin
[19642.912306] usb 4-1.1: Looking for: smi2021_3e.bin
[19642.912322] usb 4-1.1: Looking for: smi2021_3c.bin
[19642.912354] usb 4-1.1: Found firmware for 0x003c
[19642.928175] usbcore: registered new interface driver smi2021
[19643.086639] usb 4-1.1: USB disconnect, device number 18
[19643.271638] usb 4-1.1: new high-speed USB device number 19 using ehci-pci
[19643.378912] smi2021 4-1.1:1.0: driver version 0.1-, V4L2 device registered as video1
[19649.678269] smi2021 4-1.1:1.0: queue_setup: buffer count 4, each 696960 bytes
[19649.685196] smi2021 4-1.1:1.0: allocating urbs...
[19649.685269] smi2021 4-1.1:1.0: 16 urbs of 30720 bytes, allocated

Running the module from ca8eea2. I have the 4 channel version.

This seems to be a similar problem to #3, except I have no video at all.

I bought a single channel version and it works great, so I can confirm this is a problem with only the 4 channel version.

I'm guessing you have a file called /usr/lib/firmware/smi2021_3c.bin. If you renamed it to smi2021_3f.bin (3f I'm guessing is the model for 4-channels) what happens? For me, it makes my raspberry pi go nuts. I too have the 4 channel version.

@bandi13 Do you have any logs? What kernel are you running?

I'm not actually sure if I own this device anymore. I moved some of my hardware around and I can't remember if this was one I gave away or not.

Well, yesterday, I had a green screen readback when the file was called smi2021_3c.bin and crashed spectacularly when called smi2021_3f.bin. Today all I get are crashes. I've also tried it on my laptop. Kernel panic galore. Here's the kern.log output:
Jun 30 23:00:10 andras-X202E kernel: [66503.416117] usb 3-2: USB disconnect, device number 2
Jun 30 23:00:25 andras-X202E kernel: [66519.031469] usb 3-2: new high-speed USB device number 3 using xhci_hcd
Jun 30 23:00:26 andras-X202E kernel: [66519.160308] usb 3-2: New USB device found, idVendor=1c88, idProduct=0007
Jun 30 23:00:26 andras-X202E kernel: [66519.160319] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 30 23:00:26 andras-X202E kernel: [66519.160324] usb 3-2: Product: SM-USB 007
Jun 30 23:00:26 andras-X202E kernel: [66519.160329] usb 3-2: Manufacturer: Somagic, Inc.
Jun 30 23:00:26 andras-X202E kernel: [66519.160333] usb 3-2: SerialNumber: SMBL007
Jun 30 23:04:26 andras-X202E kernel: [66759.647420] usb 3-2: USB disconnect, device number 3
Jun 30 23:04:26 andras-X202E kernel: [66759.920567] usb 3-2: new high-speed USB device number 4 using xhci_hcd
Jun 30 23:04:27 andras-X202E kernel: [66760.049456] usb 3-2: New USB device found, idVendor=1c88, idProduct=003f
Jun 30 23:04:27 andras-X202E kernel: [66760.049467] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 30 23:04:27 andras-X202E kernel: [66760.049472] usb 3-2: Product: SMI Grabber Dev
Jun 30 23:04:27 andras-X202E kernel: [66760.049477] usb 3-2: Manufacturer: Somagic, Inc.
Jun 30 23:04:27 andras-X202E kernel: [66760.049481] usb 3-2: SerialNumber: SMIVIDEO3E9876543210
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@

Here's the link to the monitor output on the raspberry pi: https://goo.gl/photos/SG6HYe5jHhXvXSQi6

By the way, on my laptop I'm using 3.16.0-41-generic from the ubuntu repos. On the rpi, I have the 3.18.0-trunk-rpi. 'lsusb' reports that the firmware was loaded into the device like so:
Bus 003 Device 003: ID 1c88:003f Somagic, Inc.