Moderator Control Panel ]

Linux Driver for Kernel 3.x Released

Linux Driver for Kernel 3.x Released

Postby warumnix » Thu Oct 13, 2011 1:54 pm

Hi All :D

Great news! TBS Linux driver for kernel 3.x is ready the same day as Ubuntu 11.10 official release!
Please check the download section:
http://www.tbsdtv.com/english/Download.html
warumnix
 

Re: Linux Driver for Kernel 3.x Released

Postby Meindert » Thu Oct 13, 2011 7:27 pm

This driver is not working on my debian system with 3.0 linux-kernel. This is already posted a couple of months ago, on the previous driver, but still no success with the new one. I'm disappointed.

Regards,
Meindert
Meindert
 
Posts: 21
Joined: Mon Feb 14, 2011 4:16 am

Re: Linux Driver for Kernel 3.x Released

Postby Meindert » Thu Oct 13, 2011 7:31 pm

Below errors are shown with dmesg:

[ 6.576529] BUG: unable to handle kernel NULL pointer dereference at
(null)
[ 6.576626] IP: [<f855f7e0>] tbs6981fe_attach+0x10/0x490 [tbs6981fe]
[ 6.576692] *pdpt = 0000000033a0a001 *pde = 0000000000000000
[ 6.576782] Oops: 0000 [#1] SMP
[ 6.576870] Modules linked in: tbs6981fe(P) snd_hda_codec_hdmi
ir_lirc_codec(O) lirc_dev(O) ir_mce_kbd_decoder(O) ir_sony_decoder(O)
ir_jvc_decoder(O) ir_rc6_decoder(O) cx25840(O) snd_hda_codec_realtek
nvidia(P) ir_rc5_decoder(O) cx23885(O+) cx2341x(O) snd_hda_intel
videobuf_dma_sg(O) snd_hda_codec videobuf_dvb(O) snd_hwdep rc_rc6_mce(O)
ir_nec_decoder(O) dvb_core(O) snd_pcm ftdi_sio mceusb(O) rc_core(O) evdev
videobuf_core(O) v4l2_common(O) videodev(O) media(O) snd_seq btcx_risc(O)
usbserial tveeprom(O) asus_atk0110 snd_timer snd_seq_device i2c_nforce2
snd shpchp soundcore pci_hotplug snd_page_alloc wmi video processor pcspkr
button i2c_core thermal_sys ext4 mbcache jbd2 crc16 sg sd_mod sr_mod
crc_t10dif cdrom ata_generic ohci_hcd ahci libahci libata ehci_hcd
scsi_mod forcedeth usbcore [last unloaded: scsi_wait_scan]
[ 6.578988]
[ 6.579027] Pid: 419, comm: modprobe Tainted: P O
3.0.0-1-686-pae #1 System manufacturer System Product Name/P5N7A-VM
[ 6.579167] EIP: 0060:[<f855f7e0>] EFLAGS: 00010286 CPU: 0
[ 6.579210] EIP is at tbs6981fe_attach+0x10/0x490 [tbs6981fe]
[ 6.579251] EAX: 00000000 EBX: f9c42bb0 ECX: 00000000 EDX: f71c044c
[ 6.579293] ESI: f71c044c EDI: f9c3d9ed EBP: f3acfd00 ESP: f3acfcc0
[ 6.579336] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[ 6.579379] Process modprobe (pid: 419, ti=f3ace000 task=f7308a20
task.ti=f3ace000)
[ 6.579430] Stack:
[ 6.579469] f71c0000 c105c93f f9c3d9dc c1050101 f856f214 f856eec8
f856eec0 00000000
[ 6.579745] f3804c00 00000000 f856eec0 c105cb6e f856f214 f855f7d0
f3804c00 f9c3d9ed
[ 6.580019] f71c0000 f9c31443 f71c0bec f71c0bcc f71c0bf8 331ff000
331ff000 0000017f
[ 6.580191] Call Trace:
[ 6.580191] [<c105c93f>] ? find_symbol+0x28/0x4e
[ 6.580191] [<c1050101>] ? sched_clock_local+0xab/0x12f
[ 6.580191] [<c105cb6e>] ? __symbol_get+0x24/0x34
[ 6.580191] [<f855f7d0>] ? Delay1mS+0x10/0x10 [tbs6981fe]
[ 6.580191] [<f9c31443>] ? dvb_register+0x12f9/0x2287 [cx23885]
[ 6.580191] [<c1157c57>] ? vsnprintf+0x228/0x261
[ 6.580191] [<c1157ab4>] ? vsnprintf+0x85/0x261
[ 6.580191] [<c105c24f>] ? arch_local_irq_save+0x11/0x18
[ 6.580191] [<c12ada73>] ? _raw_spin_lock_irqsave+0x8/0x1e
[ 6.580191] [<c104f7df>] ? up+0x9/0x2a
[ 6.580191] [<c1036b65>] ? console_unlock+0x143/0x15d
[ 6.580191] [<c1036fe2>] ? vprintk+0x397/0x3cd
[ 6.580191] [<f9b50919>] ? videobuf_queue_core_init+0xa5/0xbc
[videobuf_core]
[ 6.580191] [<f9b6804c>] ? videobuf_queue_sg_init+0x22/0x26
[videobuf_dma_sg]
[ 6.580191] [<f9c325ac>] ? cx23885_dvb_register+0xa8/0xdd [cx23885]
[ 6.580191] [<f9c325be>] ? cx23885_dvb_register+0xba/0xdd [cx23885]
[ 6.580191] [<f9c37da8>] ? cx23885_initdev+0x811/0xaf8 [cx23885]
[ 6.580191] [<c11698f6>] ? local_pci_probe+0x2c/0x56
[ 6.580191] [<c1169d1c>] ? pci_device_probe+0x43/0x65
[ 6.580191] [<c11e71ab>] ? driver_probe_device+0x93/0x113
[ 6.580191] [<c11e726b>] ? __driver_attach+0x40/0x5b
[ 6.580191] [<c11e6733>] ? bus_for_each_dev+0x37/0x59
[ 6.580191] [<c11e6f44>] ? driver_attach+0x11/0x13
[ 6.580191] [<c11e722b>] ? driver_probe_device+0x113/0x113
[ 6.580191] [<c11e6c64>] ? bus_add_driver+0x83/0x1bd
[ 6.580191] [<c1152935>] ? kset_find_obj_hinted+0x43/0x76
[ 6.580191] [<f9bbb000>] ? 0xf9bbafff
[ 6.580191] [<c11e7627>] ? driver_register+0x75/0xca
[ 6.580191] [<f9bbb000>] ? 0xf9bbafff
[ 6.580191] [<c1169eef>] ? __pci_register_driver+0x33/0x89
[ 6.580191] [<f9bbb000>] ? 0xf9bbafff
[ 6.580191] [<c100312c>] ? do_one_initcall+0x68/0x110
[ 6.580191] [<c105fdf4>] ? sys_init_module+0x140a/0x15d7
[ 6.580191] [<c12b245f>] ? sysenter_do_call+0x12/0x28
[ 6.580191] Code: 5f 5d c3 90 8d b4 26 00 00 00 00 55 b8 e0 6d 34 00 89
e5 e8 df 88 bf c8 5d c3 90 55 89 e5 57 56 89 d6 53 89 c3 83 ec 34 8b 42 10
<8b> 38 89 4c 24 04 c7 04 24 fc ea 56 f8 89 4d c8 e8 6b cc d4 c8
[ 6.580191] EIP: [<f855f7e0>] tbs6981fe_attach+0x10/0x490 [tbs6981fe]
SS:ESP 0068:f3acfcc0
[ 6.580191] CR2: 0000000000000000
Meindert
 
Posts: 21
Joined: Mon Feb 14, 2011 4:16 am

Re: Linux Driver for Kernel 3.x Released

Postby hda » Thu Oct 13, 2011 9:09 pm

Weird problems with this release. When I list the driver dir I get funny output

Code: Select All Code
hda@localhost /tmp/linux-tbs-drivers_111013/linux-tbs-drivers
$ ls -l linux/
ls: cannot access linux/kernel_version.h: Permission denied
ls: cannot access linux/include: Permission denied
ls: cannot access linux/Makefile: Permission denied
ls: cannot access linux/sound: Permission denied
ls: cannot access linux/firmware: Permission denied
ls: cannot access linux/drivers: Permission denied
total 0
d????????? ? ? ? ?            ? drivers
d????????? ? ? ? ?            ? firmware
d????????? ? ? ? ?            ? include
-????????? ? ? ? ?            ? kernel_version.h
-????????? ? ? ? ?            ? Makefile
d????????? ? ? ? ?            ? sound

hda@localhost /tmp/linux-tbs-drivers_111013/linux-tbs-drivers
$ ls -l v4l/
ls: cannot access v4l/tbs5922ctrl.o.x86_64: Permission denied
ls: cannot access v4l/tbs-x86.sh: Permission denied
ls: cannot access v4l/compat.h: Permission denied
ls: cannot access v4l/tbs62x0fe_driver.o.x86_64: Permission denied
ls: cannot access v4l/tbs5922fe_driver.o.x86_64: Permission denied
ls: cannot access v4l/tbs6984fe_driver.o.x86: Permission denied
ls: cannot access v4l/tbs8921ctrl.o.x86_64: Permission denied
ls: cannot access v4l/tbs6921fe_driver.o.x86_64: Permission denied
ls: cannot access v4l/Makefile.kernel: Permission denied
ls: cannot access v4l/tbs6922fe_driver.o.x86: Permission denied
ls: cannot access v4l/scripts: Permission denied
ls: cannot access v4l/tbsctrl.o.x86: Permission denied
ls: cannot access v4l/Makefile.sound: Permission denied
ls: cannot access v4l/tbs6921fe_driver.o.x86: Permission denied
ls: cannot access v4l/tbs8921fe_driver.o.x86_64: Permission denied
ls: cannot access v4l/tbs6980ctrl.o.x86_64: Permission denied
ls: cannot access v4l/tbs6981fe_driver.o.x86_64: Permission denied
ls: cannot access v4l/tbs6925ctrl_driver.o.x86: Permission denied
ls: cannot access v4l/tbs5921ctrl.o.x86_64: Permission denied
ls: cannot access v4l/tbs6980ctrl.o.x86: Permission denied
ls: cannot access v4l/tbs6981ctrl.o.x86_64: Permission denied
ls: cannot access v4l/Kconfig.staging: Permission denied
ls: cannot access v4l/tbs6984fe_driver.o.x86_64: Permission denied
ls: cannot access v4l/tbs6980fe_driver.o.x86_64: Permission denied
ls: cannot access v4l/tbs6921ctrl.o.x86_64: Permission denied
ls: cannot access v4l/tbs8921fe_driver.o.x86: Permission denied
ls: cannot access v4l/tbs8922fe_driver.o.x86: Permission denied
ls: cannot access v4l/Kconfig.sound: Permission denied
ls: cannot access v4l/tbs6992_driver.o.x86: Permission denied
ls: cannot access v4l/tbs6992_driver.o.x86_64: Permission denied
ls: cannot access v4l/versions.txt: Permission denied
ls: cannot access v4l/Makefile: Permission denied
ls: cannot access v4l/tbs5922ctrl.o.x86: Permission denied
ls: cannot access v4l/tbs6981fe_driver.o.x86: Permission denied
ls: cannot access v4l/tbs8922ctrl.o.x86: Permission denied
ls: cannot access v4l/tbs-x86_64.sh: Permission denied
ls: cannot access v4l/tbs6980fe_driver.o.x86: Permission denied
ls: cannot access v4l/tbs6922fe_driver.o.x86_64: Permission denied
ls: cannot access v4l/tbs8922ctrl.o.x86_64: Permission denied
ls: cannot access v4l/tbs62x0fe_driver.o.x86: Permission denied
ls: cannot access v4l/tbs6921ctrl.o.x86: Permission denied
ls: cannot access v4l/tbs8922fe_driver.o.x86_64: Permission denied
ls: cannot access v4l/obsolete.txt: Permission denied
ls: cannot access v4l/tbsctrl.o.x86_64: Permission denied
ls: cannot access v4l/tbs5921fe_driver.o.x86_64: Permission denied
ls: cannot access v4l/tbs6981ctrl.o.x86: Permission denied
ls: cannot access v4l/tbs5921fe_driver.o.x86: Permission denied
ls: cannot access v4l/firmware: Permission denied
ls: cannot access v4l/tbs5921ctrl.o.x86: Permission denied
ls: cannot access v4l/tbs8921ctrl.o.x86: Permission denied
ls: cannot access v4l/tbs6928fe_driver.o.x86_64: Permission denied
ls: cannot access v4l/tbs5922fe_driver.o.x86: Permission denied
ls: cannot access v4l/tbs6925ctrl_driver.o.x86_64: Permission denied
ls: cannot access v4l/tbs6928fe_driver.o.x86: Permission denied
total 0
-????????? ? ? ? ?            ? compat.h
d????????? ? ? ? ?            ? firmware
-????????? ? ? ? ?            ? Kconfig.sound
-????????? ? ? ? ?            ? Kconfig.staging
-????????? ? ? ? ?            ? Makefile
-????????? ? ? ? ?            ? Makefile.kernel
-????????? ? ? ? ?            ? Makefile.sound
-????????? ? ? ? ?            ? obsolete.txt
d????????? ? ? ? ?            ? scripts
-????????? ? ? ? ?            ? tbs5921ctrl.o.x86
-????????? ? ? ? ?            ? tbs5921ctrl.o.x86_64
-????????? ? ? ? ?            ? tbs5921fe_driver.o.x86
-????????? ? ? ? ?            ? tbs5921fe_driver.o.x86_64
-????????? ? ? ? ?            ? tbs5922ctrl.o.x86
-????????? ? ? ? ?            ? tbs5922ctrl.o.x86_64
-????????? ? ? ? ?            ? tbs5922fe_driver.o.x86
-????????? ? ? ? ?            ? tbs5922fe_driver.o.x86_64
-????????? ? ? ? ?            ? tbs62x0fe_driver.o.x86
-????????? ? ? ? ?            ? tbs62x0fe_driver.o.x86_64
-????????? ? ? ? ?            ? tbs6921ctrl.o.x86
-????????? ? ? ? ?            ? tbs6921ctrl.o.x86_64
-????????? ? ? ? ?            ? tbs6921fe_driver.o.x86
-????????? ? ? ? ?            ? tbs6921fe_driver.o.x86_64
-????????? ? ? ? ?            ? tbs6922fe_driver.o.x86
-????????? ? ? ? ?            ? tbs6922fe_driver.o.x86_64
-????????? ? ? ? ?            ? tbs6925ctrl_driver.o.x86
-????????? ? ? ? ?            ? tbs6925ctrl_driver.o.x86_64
-????????? ? ? ? ?            ? tbs6928fe_driver.o.x86
-????????? ? ? ? ?            ? tbs6928fe_driver.o.x86_64
-????????? ? ? ? ?            ? tbs6980ctrl.o.x86
-????????? ? ? ? ?            ? tbs6980ctrl.o.x86_64
-????????? ? ? ? ?            ? tbs6980fe_driver.o.x86
-????????? ? ? ? ?            ? tbs6980fe_driver.o.x86_64
-????????? ? ? ? ?            ? tbs6981ctrl.o.x86
-????????? ? ? ? ?            ? tbs6981ctrl.o.x86_64
-????????? ? ? ? ?            ? tbs6981fe_driver.o.x86
-????????? ? ? ? ?            ? tbs6981fe_driver.o.x86_64
-????????? ? ? ? ?            ? tbs6984fe_driver.o.x86
-????????? ? ? ? ?            ? tbs6984fe_driver.o.x86_64
-????????? ? ? ? ?            ? tbs6992_driver.o.x86
-????????? ? ? ? ?            ? tbs6992_driver.o.x86_64
-????????? ? ? ? ?            ? tbs8921ctrl.o.x86
-????????? ? ? ? ?            ? tbs8921ctrl.o.x86_64
-????????? ? ? ? ?            ? tbs8921fe_driver.o.x86
-????????? ? ? ? ?            ? tbs8921fe_driver.o.x86_64
-????????? ? ? ? ?            ? tbs8922ctrl.o.x86
-????????? ? ? ? ?            ? tbs8922ctrl.o.x86_64
-????????? ? ? ? ?            ? tbs8922fe_driver.o.x86
-????????? ? ? ? ?            ? tbs8922fe_driver.o.x86_64
-????????? ? ? ? ?            ? tbsctrl.o.x86
-????????? ? ? ? ?            ? tbsctrl.o.x86_64
-????????? ? ? ? ?            ? tbs-x86_64.sh
-????????? ? ? ? ?            ? tbs-x86.sh
-????????? ? ? ? ?            ? versions.txt


This is after unpacking the release sip the same as I have done with all previous drivers.

If I try as root I can see the files properly but the driver won't compile anyway.

Code: Select All Code
localhost linux-tbs-drivers
# ./v4l/tbs-x86_64.sh
TBS drivers configured for x86_64 platform.

localhost linux-tbs-drivers
# make
make -C /tmp/linux-tbs-drivers_111013/linux-tbs-drivers/v4l
/bin/sh: /sbin/lsmod: No such file or directory
make[1]: Entering directory `/tmp/linux-tbs-drivers_111013/linux-tbs-drivers/v4l'
No version yet, using 3.0-ARCH
make[1]: Leaving directory `/tmp/linux-tbs-drivers_111013/linux-tbs-drivers/v4l'
/bin/sh: /sbin/lsmod: No such file or directory
make[1]: Entering directory `/tmp/linux-tbs-drivers_111013/linux-tbs-drivers/v4l'
Updating/Creating .config
Preparing to compile for kernel version
File not found: /lib/modules//build/.config at ./scripts/make_kconfig.pl line 33.
make[1]: *** [.config] Error 2
make[1]: Leaving directory `/tmp/linux-tbs-drivers_111013/linux-tbs-drivers/v4l'
make: *** [all] Error 2


I am trying to make these drivers on Arch Linux x86_64 kernel 3.0.6 with the system fully up to date (pacman -Syu just before trying to compile).

I even tried symlinking /bin/lsmod to /sbin/lsmod as I saw make complaining about that but it also made no difference.
hda
 
Posts: 42
Joined: Thu Dec 09, 2010 2:21 am

Re: Linux Driver for Kernel 3.x Released

Postby cody » Thu Oct 13, 2011 10:04 pm

@ Meindert

we replied to your e-mails - i can't see how posting about the specific problem with Debian to the forum can help except just to inform the users that it seems there is problem with Debian

@hda

'scripts/make_kconfig.pl' script seems to fail on Arch Linux updated to the current latest version 'pacman -Syu' - i've just confirmed that. however don't entirely blame us for that, because 'scripts/make_kconfig.pl' is the original file from V4L project and we didn't make any changes in 'get_version' function, which is what fails in the latest Arch Linux environment.

the easy workaround for it is:

- run 'make' and after fails like in your case then open 'v4l/.version' file and paste in it the following:

VERSION=3
PATCHLEVEL:=0
SUBLEVEL:=0
KERNELRELEASE:=3.0-ARCH

- then run 'make' again and the driver has to build successfully

- then:

# rm -rf /lib/modules/3.0-ARCH/kernel/drivers/media/

because otherwise some modules are left/mix from the stock Arch Linux kernel

and after that:

# make install

it would be useful if you can confirm or deny the same problem as Meindert in your Arch Linux environment or it continue to be isolated to Debian.

thanks for all problem reports and details so far.
cody
 
Posts: 627
Joined: Tue Apr 13, 2010 11:20 pm

Re: Linux Driver for Kernel 3.x Released

Postby hda » Thu Oct 13, 2011 11:12 pm

Thanks for the quick reply cody.

After following your instructions and compiling the driver I get the following in dmesg after inserting the module:

Code: Select All Code
[   10.173009] cx25840 3-0044: loaded v4l-cx23885-avcore-01.fw firmware (16382 bytes)
[   10.180560] cx23885_dvb_register() allocating 1 frontend(s)
[   10.180562] cx23885[0]: cx23885 based dvb card
[   10.238417] TurboSight TBS 6981 Frontend 0 Attaching...
[   10.238846] BUG: unable to handle kernel paging request at 0000000300110010
[   10.239117] IP: [<ffffffffa02b8c85>] tbs6981ctrl1+0x15/0x20 [cx23885]
[   10.239364] PGD 12714c067 PUD 0
[   10.239495] Oops: 0000 [#1] PREEMPT SMP
[   10.239657] CPU 1
[   10.239730] Modules linked in: tbs6981fe(P) snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device nvidia(P) ir_lirc_codec lirc_dev ir_mce_kbd_decoder ir_sony_decoder cx25840 ir_jvc_decoder ir_rc6_decoder ir_rc5_decoder snd_hda_codec_via ir_nec_decoder snd_hda_intel cx23885(+) snd_hda_codec rc_core cx2341x snd_hwdep snd_pcm videobuf_dma_sg videobuf_dvb snd_timer dvb_core snd soundcore videobuf_core r8169 sg evdev v4l2_common videodev media v4l2_compat_ioctl32 btcx_risc tveeprom iTCO_wdt mii snd_page_alloc asus_atk0110 pcspkr i2c_i801 intel_agp button iTCO_vendor_support intel_gtt i2c_core processor ext4 mbcache jbd2 crc16 sr_mod cdrom sd_mod usbhid hid uhci_hcd ahci libahci ehci_hcd libata usbcore scsi_mod
[   10.241398]
[   10.241398] Pid: 428, comm: modprobe Tainted: P            3.0-ARCH #1 System manufacturer System Product Name/P5Q SE PLUS
[   10.241398] RIP: 0010:[<ffffffffa02b8c85>]  [<ffffffffa02b8c85>] tbs6981ctrl1+0x15/0x20 [cx23885]
[   10.241398] RSP: 0018:ffff8801283ff9f8  EFLAGS: 00010202
[   10.241398] RAX: ffff8801283ffa7e RBX: ffffffffa02c5080 RCX: 0000000000000001
[   10.241398] RDX: 0000000000000001 RSI: 0000000300110010 RDI: ffff880122440000
[   10.241398] RBP: ffff8801283ff9f8 R08: 000000000cd890f9 R09: 00000000f8db99c1
[   10.241398] R10: 0000000041652316 R11: 00000000300bacc0 R12: ffff880122440000
[   10.241398] R13: 0000000000000001 R14: 0000000000000001 R15: ffff880126a58800
[   10.241398] FS:  00007f0a5403f700(0000) GS:ffff88012fc80000(0000) knlGS:0000000000000000
[   10.241398] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[   10.241398] CR2: 0000000300110010 CR3: 0000000127c32000 CR4: 00000000000406e0
[   10.241398] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   10.241398] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[   10.241398] Process modprobe (pid: 428, threadinfo ffff8801283fe000, task ffff880127f7b250)
[   10.241398] Stack:
[   10.241398]  ffff8801283ffa28 ffffffffa0f4b082 ffffffffa02c5080 ffff880122440000
[   10.241398]  ffff8801283ffa78 00000000000000ff ffff8801283ffa48 ffffffffa0f4b23f
[   10.241398]  ffffffffa02c5080 ffff880122440000 ffff8801283ffad8 ffffffffa0f4ba66
[   10.241398] Call Trace:
[   10.241398]  [<ffffffffa0f4b082>] SetGpioPinDirection+0x32/0x80 [tbs6981fe]
[   10.241398]  [<ffffffffa0f4b23f>] SetEncrypt_Cs+0x5f/0x80 [tbs6981fe]
[   10.241398]  [<ffffffffa0f4ba66>] tbs6981fe_attach+0x196/0x4f0 [tbs6981fe]
[   10.241398]  [<ffffffff810996f0>] ? mod_find_symname+0x90/0x90
[   10.241398]  [<ffffffffa02b0ae7>] dvb_register+0x1427/0x2410 [cx23885]
[   10.241398]  [<ffffffff8105d079>] ? console_unlock+0x1a9/0x200
[   10.241398]  [<ffffffff813f2c4f>] ? __mutex_lock_slowpath+0x23f/0x330
[   10.241398]  [<ffffffff81082b4f>] ? __mutex_init+0x2f/0x40
[   10.241398]  [<ffffffffa00cc3d5>] ? videobuf_queue_core_init+0x105/0x1b0 [videobuf_core]
[   10.241398]  [<ffffffffa02b1d78>] cx23885_dvb_register+0x118/0x150 [cx23885]
[   10.241398]  [<ffffffffa02a7d42>] ? cx23885_ir_init+0x92/0x300 [cx23885]
[   10.241398]  [<ffffffffa02b9abf>] cx23885_initdev+0x8eb/0xc6e [cx23885]
[   10.241398]  [<ffffffff812f3d76>] ? __pm_runtime_set_status+0x146/0x200
[   10.241398]  [<ffffffff81240ecc>] local_pci_probe+0x5c/0xd0
[   10.241398]  [<ffffffff81241671>] pci_device_probe+0x101/0x120
[   10.241398]  [<ffffffff812ea43e>] driver_probe_device+0x7e/0x1b0
[   10.241398]  [<ffffffff812ea61b>] __driver_attach+0xab/0xb0
[   10.241398]  [<ffffffff812ea570>] ? driver_probe_device+0x1b0/0x1b0
[   10.241398]  [<ffffffff812ea570>] ? driver_probe_device+0x1b0/0x1b0
[   10.241398]  [<ffffffff812e93fc>] bus_for_each_dev+0x5c/0x90
[   10.241398]  [<ffffffff812ea0ce>] driver_attach+0x1e/0x20
[   10.241398]  [<ffffffff812e9d20>] bus_add_driver+0x1a0/0x270
[   10.241398]  [<ffffffffa02ca000>] ? 0xffffffffa02c9fff
[   10.241398]  [<ffffffff812eab86>] driver_register+0x76/0x140
[   10.241398]  [<ffffffff813eb0f9>] ? printk+0x41/0x43
[   10.241398]  [<ffffffffa02ca000>] ? 0xffffffffa02c9fff
[   10.241398]  [<ffffffff812425d6>] __pci_register_driver+0x56/0xd0
[   10.241398]  [<ffffffffa02ca033>] cx23885_init+0x33/0x35 [cx23885]
[   10.241398]  [<ffffffff81002040>] do_one_initcall+0x40/0x180
[   10.241398]  [<ffffffff8109d5ef>] sys_init_module+0x8f/0x200
[   10.241398]  [<ffffffff813f4c82>] system_call_fastpath+0x16/0x1b
[   10.241398] Code: 02 48 89 e5 48 03 b7 b8 00 00 00 89 16 31 c0 c9 c3 90 90 90 90 90 55 c1 fe 02 48 63 f6 48 c1 e6 02 48 89 e5 48 03 b7 b8 00 00 00 <8b> 06 c9 c3 0f 1f 80 00 00 00 00 55 c1 fe 02 48 63 f6 48 c1 e6
[   10.241398] RIP  [<ffffffffa02b8c85>] tbs6981ctrl1+0x15/0x20 [cx23885]
[   10.241398]  RSP <ffff8801283ff9f8>
[   10.241398] CR2: 0000000300110010
[   10.415043] ---[ end trace 8cc6cc126764aad9 ]---


Also any idea why I cant list the driver directories as a regular user?
hda
 
Posts: 42
Joined: Thu Dec 09, 2010 2:21 am

Re: Linux Driver for Kernel 3.x Released

Postby cody » Thu Oct 13, 2011 11:19 pm

ok, let me summarize the problems with the latest driver release based on the tests i ran in the last few hours and the trouble reports here as well received via e-mails.

i want to do that mainly to prevent any confusion, misleading and misunderstanding what is working and what not, because some people report problems to the forum, other via e-mails and also different people from our team reply in the forum and to the e-mails.

* Ubuntu 11.10 "Release Candidates" with kernel 3.x from the last several days:

http://cdimage.ubuntu.com/daily-live/current/

all TBS cards are working - at least during my test in the last hours the final version of Ubuntu 11.10 wasn't released yet, but it's expected the compatibility to remain the same

* tests on random older version of Ubuntu with kernels like version 2.6.31, 2.6.35, etc - no problems and all TBS cards are working

* tests on random Linux distribution like openSUSE, Fedora, ArchLinux, etc with random kernels version older than 3.x - no problems and all TBS cards are working

* latest ArchLinux updated few hours ago with 'pacman -Syu' to kernel version 3.0.6-2:

1) 'scripts/make_kconfig.pl', which is the original script developed by Linux V4L project fails to detect the kernel version in 'get_version' function of the script (mentioned in my previous post including workaround for it)

2) TBS 8910, TBS 8920, TBS 8921, TBS 8922, TBS 6920, TBS 6922, TBS 6925, TBS 6928, TBS 6992, TBS 6220, TBS 6280, TBS 6284, TBS 6984, TBS 5910 (aka 'Qbox'), TBS 5920 (aka 'Qbox II'), TBS 5921 (aka 'Qbox III'), TBS 5922, TBS 5928 (aka 'Qbox S2'), TBS 5980 : are all working fine

3) TBS 6921, TBS 6980, TBS 6981: crash the same way as Meindert reported

* Debian with kernel 3.x: same status as points 2) and 3) about ArchLinux with kernel version 3.0.6-2

so, basically, we reproduced and confirmed the crash Meindert reported, but it's limited to only 3 TBS boards (TBS 6921, TBS 6980 and TBS 6981) and so far confirmed only to happen in Debian and ArchLinux with kernel 3.x, all other almost 20 TBS boards listed in point 2) about ArchLinux with kernel version 3.0.6-2 are fully working including in Debian and ArchLinux with kernel 3.x.

hopefully, after now we have reliable way to reproduce the problem with TBS 6921, TBS 6980 and TBS 6981 in Debian and ArchLinux with kernel 3.x there will be a solution (fix) for it in the next few days.
cody
 
Posts: 627
Joined: Tue Apr 13, 2010 11:20 pm

Re: Linux Driver for Kernel 3.x Released

Postby cody » Thu Oct 13, 2011 11:26 pm

hda Wrote:Thanks for the quick reply cody.

After following your instructions and compiling the driver I get the following in dmesg after inserting the module:


you beat me just with few minutes with your post, while i was writing my last post - i also confirmed the same problem and from all over 20 TBS cards only 6921/6980/6981 are affected by the problem and so far it's confirmed to happen only in ArchLinux and Debian with 3.x kernel. i hope it's something simple and there will be fix for it in the next days. so far excluding that problem with 6921/6980/6981 in ArchLinux and Debian with 3.x kernel the things looks quite good for such major update of the driver package, because everything else is working - at least neither we found, nor there problem reports by customers about other problems.

hda Wrote:Also any idea why I cant list the driver directories as a regular user?


it seems the permission of the files is messed up and we need to fix that - they all are "root:root", i.e. both owner and the group are root, while they should be "root:users". so, simple:

chown -R root:users *

done in the driver directory ('linux-tbs-drivers') have to fix it.
cody
 
Posts: 627
Joined: Tue Apr 13, 2010 11:20 pm

Re: Linux Driver for Kernel 3.x Released

Postby hda » Thu Oct 13, 2011 11:41 pm

The problems is the files aren't owned by anyone. If you look in my first post I cannot list the linux or v4l directories properly. There is just loads of ? where you should see permisions and owners. The first thing I tried to do was chown the files but I couldn't. I had to change to root to do anything with the files. When I listed the dirs as root it said owner was hda:hda but as user hda I get the garbage list from my first post.

Weird.
hda
 
Posts: 42
Joined: Thu Dec 09, 2010 2:21 am

Re: Linux Driver for Kernel 3.x Released

Postby dewolff » Fri Oct 14, 2011 8:54 pm

The problem is about the directory permissions.
The directory don't have the x permissiosn, so as a non root user, you are not allowed to recurse in them.
When you do a
chmod -R u+rwX .
in the unpacked directory, you can do a make.

Is it also possible to upload a file with the name linux-tbs-drivers_VERXX.tar.bz2, with only what is now in linux-tbs-drivers.tar.bz2?
dewolff
 
Posts: 4
Joined: Mon Aug 22, 2011 2:20 pm

Next

Return to Linux

Who is online

Users browsing this forum: No registered users and 4 guests