piotr-e / Stk1160-raspberrypi

stk1160 driver for Raspberry Pi (aka easycap)
https://github.com/piotr-e/stk1160-raspberrypi
15 stars 5 forks source link

stk1160: disagrees about version of symbol module_layout #2

Open raykov opened 11 years ago

raykov commented 11 years ago

Hello. Thanks for driver. But i get some errors.

make

make -C /lib/modules/3.2.27+/build M=/home/pi/stk1160-raspberrypi modules
make[1]: Entering directory `/usr/src/raspberrypi-linux-ada8b44'
  CC [M]  /home/pi/stk1160-raspberrypi/stk1160-core.o
  CC [M]  /home/pi/stk1160-raspberrypi/stk1160-v4l.o
  CC [M]  /home/pi/stk1160-raspberrypi/stk1160-video.o
  CC [M]  /home/pi/stk1160-raspberrypi/stk1160-i2c.o
  LD [M]  /home/pi/stk1160-raspberrypi/stk1160.o
  Building modules, stage 2.
  MODPOST 1 modules
  LD [M]  /home/pi/stk1160-raspberrypi/stk1160.ko
make[1]: Leaving directory `/usr/src/raspberrypi-linux-ada8b44'

sudo make install

make -C /lib/modules/3.2.27+/build M=/home/pi/stk1160-raspberrypi modules_install
make[1]: Entering directory `/usr/src/raspberrypi-linux-ada8b44'
  INSTALL /home/pi/stk1160-raspberrypi/stk1160.ko
  DEPMOD  3.2.27
make[1]: Leaving directory `/usr/src/raspberrypi-linux-ada8b44'

take your attention at DEPMOD 3.2.27

i have

uname -r

3.2.27+

but make install copy driver to /lib/modules/3.2.27/extra/stk1160.ko

i made symlink

sudo ln -s /lib/modules/3.2.27/extra/ /lib/modules/3.2.27+/extra/

and made

sudo depmod -a sudo modprobe stk1160

ERROR: could not insert 'stk1160': Exec format error

in dmesg i see

dmesg

[    3.283273] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    3.394139] usb 1-1.2: New USB device found, idVendor=05e1, idProduct=0408
[    3.421132] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.443149] usb 1-1.2: Product: USB 2.0 Video Capture Controller
[    3.460140] usb 1-1.2: Manufacturer: Syntek Semiconductor
[    3.893441] udevd[137]: starting version 175
[    5.192968] Linux video capture interface: v2.00
[    5.416454] stk1160: disagrees about version of symbol module_layout
[    5.428823] stk1160: disagrees about version of symbol module_layout
[    6.708698] usbcore: registered new interface driver snd-usb-audio
[    6.757934] stk1160: disagrees about version of symbol module_layout

and /dev/video0 or /dev/easycap0 not present

lsmod

Module                  Size  Used by
snd_bcm2835            12808  1 
snd_usb_audio          93242  1 
snd_usbmidi_lib        17812  1 snd_usb_audio
snd_hwdep               5730  1 snd_usb_audio
snd_seq_midi            4518  0 
snd_seq_midi_event      6453  1 snd_seq_midi
snd_rawmidi            20611  2 snd_seq_midi,snd_usbmidi_lib
snd_pcm                74834  2 snd_usb_audio,snd_bcm2835
snd_page_alloc          4951  1 snd_pcm
snd_seq                52536  2 snd_seq_midi_event,snd_seq_midi
snd_seq_device          6300  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              19698  2 snd_seq,snd_pcm
snd                    52489  13 snd_timer,snd_seq_device,snd_seq,snd_pcm,snd_rawmidi,snd_hwdep,snd_usbmidi_lib,snd_usb_audio,snd_bcm2835
videobuf2_vmalloc       1965  0 
videobuf2_memops        2364  1 videobuf2_vmalloc
videobuf2_core         21366  0 
v4l2_common             9405  0 
videodev               88790  1 v4l2_common

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 05e1:0408 Syntek Semiconductor Co., Ltd STK1160 Video Capture Device

Please, help make it work.

piotr-e commented 11 years ago

Can you show me inside your cmdline.txt file?

raykov commented 11 years ago
cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
ezequielgarcia commented 11 years ago

@raykov Notice this issue is opened in a fork of the original driver.

@piotr-e Hi piotr! What's the current status of stk1160 on RPI? Is it running? Is the USB issue solved?

raykov commented 11 years ago

@ezequielgarcia yeah, i know. And tried this one (https://github.com/piotr-e/stk1160-raspberrypi), master and rpi branches of https://github.com/ezequielgarcia/stk1160-standalone and get same errors in dmesg

stk1160: disagrees about version of symbol module_layout
piotr-e commented 11 years ago

@ezequielgarcia, I cannot check current status because Raspbian has now 3.6.11 kernel.