为电视卡堆栈编译 Linux 驱动程序

为电视卡堆栈编译 Linux 驱动程序

我一直在尝试让我的 Raspberry Pi 与我现有的两张电视卡之一配合使用。不幸的是,我住在香港,由于数字广播标准,我的设备选择很少。两人似乎都不想打球。

出于显而易见的原因,两者都是 USB。我已经“确定”使用了 RTL2836U 芯片组。另一种则使用带有 Maxim 2165E 调谐器和 8G75-A1 解调器的 LME 2510C。

我一直把精力集中在RTL2836U上,我刚刚编译了一些驱动程序(添加了VID/PID),Linux似乎加载了模块,但后来由于错误而卸载了它。

消息

    dvb_hdhomerun: disagrees about version of symbol dvb_dmxdev_init
    dvb_hdhomerun: Unknown symbol dvb_dmxdev_init (err -22)
    dvb_hdhomerun: disagrees about version of symbol dvb_register_adapter
    dvb_hdhomerun: Unknown symbol dvb_register_adapter (err -22)
    dvb_hdhomerun: disagrees about version of symbol dvb_dmxdev_release
    dvb_hdhomerun: Unknown symbol dvb_dmxdev_release (err -22)
    dvb_hdhomerun: disagrees about version of symbol dvb_frontend_detach
    dvb_hdhomerun: Unknown symbol dvb_frontend_detach (err -22)
    dvb_hdhomerun: disagrees about version of symbol dvb_unregister_frontend
    dvb_hdhomerun: Unknown symbol dvb_unregister_frontend (err -22)
    dvb_hdhomerun: disagrees about version of symbol dvb_register_frontend
    dvb_hdhomerun: Unknown symbol dvb_register_frontend (err -22)
    dvb_hdhomerun: disagrees about version of symbol dvb_unregister_adapter
    dvb_hdhomerun: Unknown symbol dvb_unregister_adapter (err -22)
    bcm2708 watchdog, heartbeat=10 sec (nowayout=0)

尾-f /var/log/kern.log

Mar  1 03:14:06 raspbmc kernel: dvb_hdhomerun: Unknown symbol dvb_dmxdev_release (err -22)
Mar  1 03:14:06 raspbmc kernel: dvb_hdhomerun: disagrees about version of symbol dvb_frontend_detach
Mar  1 03:14:06 raspbmc kernel: dvb_hdhomerun: Unknown symbol dvb_frontend_detach (err -22)
Mar  1 03:14:06 raspbmc kernel: dvb_hdhomerun: disagrees about version of symbol dvb_unregister_frontend
Mar  1 03:14:06 raspbmc kernel: dvb_hdhomerun: Unknown symbol dvb_unregister_frontend (err -22)
Mar  1 03:14:06 raspbmc kernel: dvb_hdhomerun: disagrees about version of symbol dvb_register_frontend
Mar  1 03:14:06 raspbmc kernel: dvb_hdhomerun: Unknown symbol dvb_register_frontend (err -22)
Mar  1 03:14:06 raspbmc kernel: dvb_hdhomerun: disagrees about version of symbol dvb_unregister_adapter
Mar  1 03:14:06 raspbmc kernel: dvb_hdhomerun: Unknown symbol dvb_unregister_adapter (err -22)
Mar  1 03:14:18 raspbmc kernel: bcm2708 watchdog, heartbeat=10 sec (nowayout=0)

然后插入加密狗

Mar  1 03:21:07 raspbmc kernel: usb 1-1.3: new high-speed USB device number 5 using dwc_otg
Mar  1 03:21:07 raspbmc kernel: usb 1-1.3: New USB device found, idVendor=1f4d,idProduct=689b
Mar  1 03:21:07 raspbmc kernel: usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar  1 03:21:07 raspbmc kernel: usb 1-1.3: Product: USB Device
Mar  1 03:21:07 raspbmc kernel: usb 1-1.3: Manufacturer: realtek
Mar  1 03:21:07 raspbmc kernel: usb 1-1.3: SerialNumber: 00000005
Mar  1 03:21:07 raspbmc kernel: WARNING: You are using an experimental version of the media stack.
Mar  1 03:21:07 raspbmc kernel:         As the driver is backported to an olderkernel, it doesn't offer
Mar  1 03:21:07 raspbmc kernel:         enough quality for its usage in production.
Mar  1 03:21:07 raspbmc kernel:         Use it with care.
Mar  1 03:21:07 raspbmc kernel: Latest git patches (needed if you report a bug to [email protected]):
Mar  1 03:21:07 raspbmc kernel:         ed72d37a33fdf43dc47787fe220532cdec9da528 [media] media: Add 0x3009 USB PID to ttusb2 driver (fixed diff)
Mar  1 03:21:07 raspbmc kernel:         b9e2afff1e6b36d05a0e12b6114eb0aaf8949c09 [media] rtl28xxu: Add USB IDs for Compro VideoMate U620F
Mar  1 03:21:07 raspbmc kernel:         676fa7d4c9fd141a31cba2870e592a597c0bb07f [media] em28xx: add usb id for terratec h5 rev. 3
Mar  1 03:21:07 raspbmc kernel: usb 1-1.3: dvb_usb_v2: found a 'MYGICA D690U' in warm state
Mar  1 03:21:07 raspbmc kernel: usbcore: registered new interface driver dvb_usb_rtl28xxu
Mar  1 03:21:10 raspbmc kernel: usb 1-1.3: dvb_usb_v2: 'MYGICA D690U' error while loading driver (-110)
Mar  1 03:21:10 raspbmc kernel: usb 1-1.3: dvb_usb_v2: 'MYGICA D690U' successfully deinitialized and disconnected

Aptitude 向我展示了这些模块

v   linux-headers
p   linux-headers-2.6-mx5
p   linux-headers-2.6-omap
p   linux-headers-3.2.0-4-all
p   linux-headers-3.2.0-4-all-armhf
p   linux-headers-3.2.0-4-common
p   linux-headers-3.2.0-4-rpi
i   linux-headers-generic
p   linux-headers-mx5
p   linux-headers-omap
p   linux-headers-vexpress
v   linux-kernel-headers

答案1

据我所知,您的错误源于正在运行的内核与您正在构建模块的内核版本之间的版本不兼容。检查uname -r你的树。

相关内容