 |
Installing pcHDTV 2.0 driver on a Debian-based system |
 |
Posted: Thu Mar 10, 2005 8:06 pm |
|
|
| kebe |
|
|
| |
| Joined: 10 Mar 2005 |
| Posts: 1 |
|
|
|
 |
 |
 |
|
I'm running a Debian-based system and had a few problems getting the 2.0 driver to install. The following changes to Makefile helped.
Problem:
I'm using a packaged kernel image (2.6.10-4-k7). "make" found the kernel headers ok, but "make install" tried to put everything into /lib/modules/2.6.10/
FIx:
in Makefile, change
KERNELRELEASE := $(shell cat $(obj)/.version 2>/dev/null || uname -r)
to
KERNELRELEASE := $(shell uname -r)
Problem:
The Makefile script can't find the firmware directory. (The firmware.agent file on my system supports multiple firmware directories instead of one.)
Fix:
in Makefile, change
DESTF := $(shell grep FIRMWARE_DIR= /etc/hotplug/firmware.agent | sed 's/FIRMWARE_DIR=//')
to
DESTF := /lib/hotplug/firmware
Problem:
Makefile calls ./scripts/patch_modprobe.sh which wants to change /etc/modprobe.conf which doesn't exist.
Fix
This doesn't seam to be a problem - just ignore the error message. |
|
|
|
|
 |
 |
|
 |
Posted: Fri Mar 11, 2005 11:00 pm |
|
|
| pcHDTV_tech |
|
|
| |
| Joined: 16 Dec 2004 |
| Posts: 295 |
|
|
|
 |
 |
 |
|
Debian has been our least tested distro. We put the majority of effort into the Fedora Core distributions. Thanks for the feedback, hope it helps others. You might want to look at what the patch_modprobe.sh file is doing and add those lines to your modules.conf file (I think that's what it is on debian). The tuner module is now only indirectly connected to the cx88-dvb or cx88-atsc modules and might not get loaded which will cause you to not be able to change channels.
Rusty |
|
|
|
|
 |
 |
|
 |
Posted: Sat Mar 12, 2005 10:32 am |
|
|
| HDTV buff |
|
|
| |
| Joined: 02 Mar 2005 |
| Posts: 114 |
| Location: Maryland, USA |
|
|
 |
 |
 |
|
| pcHDTV_tech wrote: | | Debian has been our least tested distro. We put the majority of effort into the Fedora Core distributions. |
I am running Debian unstable. Currently, I am using the dvb and video4linux cvs on 2.6.11 kernel.
It has been a dream. I did not have to modify a single script to make it work (other then placing the firmware files in /lib/firmware). Everything was auto-detected by the kernel.
I am currently using a single pcHDTV 3000 card in the system. I have ordered a second one. I will let you know how it behaves with two of these cards.
-HDTV Buff |
|
|
|
|
 |
 |
|
 |
Posted: Sat Mar 12, 2005 7:08 pm |
|
|
| markzimm |
|
|
| |
| Joined: 15 Jul 2004 |
| Posts: 24 |
| Location: Black Forest, CO |
|
|
 |
 |
 |
|
Thanks for the tips. This worked well for me with one small difference: I had to put the firmware files in a different place for them to be found. This may depend on the particular distribution you are running (I am using sarge).
Anyhow, to decide on a value for DESTF, look in /etc/hotplug/firmware.agent and choose one of the directories listed in FIRMWARE_DIRS. |
|
|
|
|
 |
Debian Problems |
 |
Posted: Wed Apr 06, 2005 1:53 pm |
|
|
| emrainey |
|
|
| |
| Joined: 16 Mar 2005 |
| Posts: 11 |
| Location: Dallas, TX |
|
|
 |
 |
 |
|
I've had some issues too that were difficult for me to resolve but not hard for a seasoned debian person to resolve. Overall, it's been a good learning experience and a pain.
1.) Debian 3.0 uses modutils so you have to throw the modules install into it's own file in /etc/modutils and then run update-modules.
2.) Also I had the same firmware problem as others did. I'd like to sumbit a patch to the install system for Debian but honestly I have no idea how to detect a debian install for the proper conditions for the install script.
3.) Since I'm running a Custom Built 2.6.11 kernel; that causes ... problems, like the kobject_register call for sysfs registration in v4l1-compat.c. This is something I'm tracking down myself as a learning exercise.
I would suggest those who want a trouble free HD experience just go with Fedora like pcHDTV suggests. |
|
_________________ e.m.rainey
-------------
Pentium 4 2.4Ghz
1 GB PC2700
Abit IS7
AOpen GeForce FX 5200
HD-3000
Promise Ultra100TX2
PIONEER DVD-RW DVR-109
575 GB of Storage
SilverStone LC10M (with working VFD!) |
|
|
|
 |
 |
Re: Debian Problems |
 |
Posted: Wed Apr 06, 2005 2:25 pm |
|
|
| HDTV buff |
|
|
| |
| Joined: 02 Mar 2005 |
| Posts: 114 |
| Location: Maryland, USA |
|
|
 |
 |
 |
|
| emrainey wrote: | I've had some issues too that were difficult for me to resolve but not hard for a seasoned debian person to resolve. Overall, it's been a good learning experience and a pain.
1.) Debian 3.0 uses modutils so you have to throw the modules install into it's own file in /etc/modutils and then run update-modules.
2.) Also I had the same firmware problem as others did. I'd like to sumbit a patch to the install system for Debian but honestly I have no idea how to detect a debian install for the proper conditions for the install script.
3.) Since I'm running a Custom Built 2.6.11 kernel; that causes ... problems, like the kobject_register call for sysfs registration in v4l1-compat.c. This is something I'm tracking down myself as a learning exercise.
I would suggest those who want a trouble free HD experience just go with Fedora like pcHDTV suggests. |
I use Debian. While I had my share of problems early on (many many months ago). It is quite different now.
Just install a vanilla 2.6.12-rc1 or later kernel and everything will work. All you have to do is extract the firmware in appropriate folder (/lib/firmware, /usr/local/lib/firmware or /usr/lib/hotplug/firmware).
No modifications will be required on your part to have the pcHDTV 3000 card work correctly. The only catch is that if you have already modified your files (like disabling certain modules or have custom udev rules), you will have to undo that. The built-in drivers (in the linux kernel) work best if you have never tried to install the pcHDTV drivers on the machine.
I am not an expert on the pcHDTV drivers, but you will have to undo changes done by them. Once that is done, and you have 2.6.12-rc1 or higer. Everything will work smoothly.
-HDTV Buff |
|
|
|
|
 |
 |
Debian |
 |
Posted: Wed Apr 06, 2005 8:28 pm |
|
|
| emrainey |
|
|
| |
| Joined: 16 Mar 2005 |
| Posts: 11 |
| Location: Dallas, TX |
|
|
 |
 |
 |
|
Do you mean that you are using some driver in the kernel tree itself and not the driver from pchdtv.com? If so, which driver is it? Also, are you sure that the modules.conf fix or the update-modules was presented? I'd like to try a newer kernel out but I dread having to reconfigure the kernel again . |
|
_________________ e.m.rainey
-------------
Pentium 4 2.4Ghz
1 GB PC2700
Abit IS7
AOpen GeForce FX 5200
HD-3000
Promise Ultra100TX2
PIONEER DVD-RW DVR-109
575 GB of Storage
SilverStone LC10M (with working VFD!) |
|
|
|
 |
Re: Debian |
 |
Posted: Wed Apr 06, 2005 10:29 pm |
|
|
| HDTV buff |
|
|
| |
| Joined: 02 Mar 2005 |
| Posts: 114 |
| Location: Maryland, USA |
|
|
 |
 |
 |
|
| emrainey wrote: | | Do you mean that you are using some driver in the kernel tree itself and not the driver from pchdtv.com? |
Yes. That is exactly what I am saying. I am not using the drivers from pcHDTV's website. They are built into the kernel tree.
| emrainey wrote: | | If so, which driver is it? |
It is or51132 driver. If you select Video4Linux. Then that driver is automatically selected. You don't have to select that driver. Just make sure you are building v4l and that driver will be compiled.
| emrainey wrote: | Also, are you sure that the modules.conf fix or the update-modules was presented? I'd like to try a newer kernel out but I dread having to reconfigure the kernel again . |
I am not sure what is "modules.conf fix". However, I did no such thing. I did not do anything other then compile the kernel on a debian unstable. Really, I just compiled the latest kernel. Everything worked like a champ. I did not touch any other subsystem (including udev or modules.conf or whatever).
Hope this helps.
-HDTV Buff
PS. The dvb drivers have been ROCK SOLID. I am recoding several hours of programing a day. They have yet to cause a single problem. |
|
|
|
|
 |
 |
Response here... |
 |
Posted: Thu Apr 07, 2005 8:33 am |
|
|
| emrainey |
|
|
| |
| Joined: 16 Mar 2005 |
| Posts: 11 |
| Location: Dallas, TX |
|
|
 |
 |
 |
|
| Thanks, i'll give a compile tonight! |
|
_________________ e.m.rainey
-------------
Pentium 4 2.4Ghz
1 GB PC2700
Abit IS7
AOpen GeForce FX 5200
HD-3000
Promise Ultra100TX2
PIONEER DVD-RW DVR-109
575 GB of Storage
SilverStone LC10M (with working VFD!) |
|
|
|
 |
 |
|
 |
Posted: Mon Apr 11, 2005 8:12 pm |
|
|
| bob |
|
|
| |
| Joined: 04 Jan 2005 |
| Posts: 20 |
|
|
|
 |
 |
 |
|
I was trying to compile this driver for Sarge (2.6.8-2-k7) and had a problem, any advice?
| Code: |
make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
CC [M] /root/pchdtv/pcHDTV-2.0/video-buf.o
CC [M] /root/pchdtv/pcHDTV-2.0/v4l1-compat.o
CC [M] /root/pchdtv/pcHDTV-2.0/v4l2-common.o
CC [M] /root/pchdtv/pcHDTV-2.0/bttv-driver.o
In file included from /root/pchdtv/pcHDTV-2.0/bttv-driver.c:42:
/root/pchdtv/pcHDTV-2.0/bttvp.h:287: warning: no semicolon at end of struct or union
/root/pchdtv/pcHDTV-2.0/bttvp.h:287: error: parse error before '*' token
/root/pchdtv/pcHDTV-2.0/bttvp.h:371: warning: `main' is usually a function
/root/pchdtv/pcHDTV-2.0/bttvp.h:393: error: parse error before '}' token
/root/pchdtv/pcHDTV-2.0/bttv-driver.c: In function `show_card':
/root/pchdtv/pcHDTV-2.0/bttv-driver.c:145: error: dereferencing pointer to incomplete type
/root/pchdtv/pcHDTV-2.0/bttv-driver.c: In function `check_alloc_btres':
/root/pchdtv/pcHDTV-2.0/bttv-driver.c:644: error: dereferencing pointer to incomplete type
...
/root/pchdtv/pcHDTV-2.0/bttv-driver.c:4012: error: dereferencing pointer to incomplete type
/root/pchdtv/pcHDTV-2.0/bttv-driver.c: At top level:
/root/pchdtv/pcHDTV-2.0/bttv-driver.c:45: error: storage size of `bttvs' isn't known
make[2]: *** [/root/pchdtv/pcHDTV-2.0/bttv-driver.o] Error 1
make[1]: *** [_module_/root/pchdtv/pcHDTV-2.0] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
make: *** [default] Error 2
|
The "dereferencing pointer to incomplete type" goes on and on. Again, I am using Sarge and I did an "apt-get upgrade" a few minutes ago. |
|
|
|
|
 |
 |
|
 |
Posted: Mon Apr 11, 2005 8:33 pm |
|
|
| emrainey |
|
|
| |
| Joined: 16 Mar 2005 |
| Posts: 11 |
| Location: Dallas, TX |
|
|
 |
 |
 |
|
| bob wrote: | I was trying to compile this driver for Sarge (2.6.8-2-k7) and had a problem, any advice?
| Code: |
make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
CC [M] /root/pchdtv/pcHDTV-2.0/video-buf.o
CC [M] /root/pchdtv/pcHDTV-2.0/v4l1-compat.o
CC [M] /root/pchdtv/pcHDTV-2.0/v4l2-common.o
CC [M] /root/pchdtv/pcHDTV-2.0/bttv-driver.o
In file included from /root/pchdtv/pcHDTV-2.0/bttv-driver.c:42:
/root/pchdtv/pcHDTV-2.0/bttvp.h:287: warning: no semicolon at end of struct or union
/root/pchdtv/pcHDTV-2.0/bttvp.h:287: error: parse error before '*' token
/root/pchdtv/pcHDTV-2.0/bttvp.h:371: warning: `main' is usually a function
/root/pchdtv/pcHDTV-2.0/bttvp.h:393: error: parse error before '}' token
/root/pchdtv/pcHDTV-2.0/bttv-driver.c: In function `show_card':
/root/pchdtv/pcHDTV-2.0/bttv-driver.c:145: error: dereferencing pointer to incomplete type
/root/pchdtv/pcHDTV-2.0/bttv-driver.c: In function `check_alloc_btres':
/root/pchdtv/pcHDTV-2.0/bttv-driver.c:644: error: dereferencing pointer to incomplete type
...
/root/pchdtv/pcHDTV-2.0/bttv-driver.c:4012: error: dereferencing pointer to incomplete type
/root/pchdtv/pcHDTV-2.0/bttv-driver.c: At top level:
/root/pchdtv/pcHDTV-2.0/bttv-driver.c:45: error: storage size of `bttvs' isn't known
make[2]: *** [/root/pchdtv/pcHDTV-2.0/bttv-driver.o] Error 1
make[1]: *** [_module_/root/pchdtv/pcHDTV-2.0] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
make: *** [default] Error 2
|
The "dereferencing pointer to incomplete type" goes on and on. Again, I am using Sarge and I did an "apt-get upgrade" a few minutes ago. |
Well that error on line 287 is because it doesn't know what __iomem is which I think is probably an indication that the module is for a later kernel than you have. I had to apt-get upgrade and distupgrade to Woody and then get the 2.6.11 kernel to get the driver to run as it does on my system. I'm going to go to the default kernel for 2.6.12 as soon as it's out of rcX state. I would bet that you're kernel headers are out of date. I'd try that first. If they are up to date for your kernel I'd bet that that kernel is not supported by the 2.0 drivers. |
|
_________________ e.m.rainey
-------------
Pentium 4 2.4Ghz
1 GB PC2700
Abit IS7
AOpen GeForce FX 5200
HD-3000
Promise Ultra100TX2
PIONEER DVD-RW DVR-109
575 GB of Storage
SilverStone LC10M (with working VFD!) |
|
|
|
 |
 |
Unknown symbol cleanup_module |
 |
Posted: Wed Apr 13, 2005 12:24 pm |
|
|
|
I've written to the hdtv support folk, but I guess I will post it here too.
I'm using debian unstable and I'm using the kernel-image-2.6.11-1-k7 package. I've got the associated headers package installed.
The compile appears to happen with 2 warnings, but then during the "MODPOST" step of the make process, I get a series of warnings.
Specifically using make V=1, when the line:
make -rR -f /usr/src/kernel-headers-2.6.11-1-k7/scripts/Makefile.modpost
happens I get a numer of warnings with verbage similar to:
*** Warning: "cleanup_module" /home/ken/Desktop/hd-drivers/pchdtv-drivers/video-buf.ko] undefined!
The process completes as these are just warnings.
Like others I have patched the make script to fix the install target.
(getting RELEASEVERSION being fixed is a biggie)
After finishing the install process I tryed an insmod of v4l2-common,
I received the error:
insmod: error inserting './v4l2-common.ko': -1 Unknown symbol in module
dmesg contains:
v4l2_common: Unknown symbol cleanup_module
v4l2_common: Unknown symbol init_module
I've been out of messing with the kernel since the 2.4 days. The 2.6 process is a bit new for me. Is there some dumb thing I am missing?
I understand that I could simply install the latest dev kerenl
(2.4.12rc2), but I would prefer to stick with a default Debian kernel.
Given the time it will probably be before 2.6.12 is released as a stable
kernel (thanks to the BK fiasco), and the fact that Debian will most
likely freeze their next "stable" distro at a kernel version < 2.6.12.
Back-patching will still be a requirement for Debian hd-3000 users for a
long time. We should get the process out straight. (is anybody looking at making a hd-3000-modules package? If it's all gpl'd it shuouldn't be a problem for getting into Debian)
I would like to be able to help friends who will be using the stable debian in the future. Thanks for any advice. |
|
|
|
|
 |
 |
Re: Unknown symbol cleanup_module.. Correction |
 |
Posted: Wed Apr 13, 2005 12:27 pm |
|
|
|
Oops:
| yohahn wrote: |
(getting RELEASEVERSION being fixed is a biggie)
|
Um let me restate that..
s/RELEASEVERSION/KERNELRELEASE/g
There.. that makes more sense |
|
|
|
|
Posted: Fri Apr 15, 2005 9:18 pm |
|
|
| pcHDTV_tech |
|
|
| |
| Joined: 16 Dec 2004 |
| Posts: 295 |
|
|
|
 |
 |
 |
|
v4l2_common doesn't reference cleanup_module so I'm not sure why insmod would complain about it. Make sure all v4l modules have been uninstalled before you install the new ones. Do /sbin/lsmod and modprobe -r anything that starts with bt, cx or v4l
If that doesn't help, cut and paste the output when you do make clean;make
Perhaps I can spot what the issue might be.
Rusty |
|
|
|
|
 |
Debian kernel-headers bug that affects this thread. |
 |
Posted: Sat Apr 30, 2005 9:06 am |
|
|
|
Have a look at http://lists.debian.org/debian-kernel/2005/02/msg00163.html
In essence, this bug says that the /usr/src/kernel-headers-2.6.xx/scripts symlink is not correct, since it points to the kernel-kbuild package's version of the kernel script directory rather than copying these scripts to the header package from the original kernel source.
The workaround I used was to remove the symlink (rm -f /usr/src/kernel-headers-2.6.11-1-k7/scripts), then copy a version of the scripts directory in it's place from the source extracted after installing the corresponding kernel-source package. |
|
|
|
|
pcHDTV Forum Index -> HD-2000/3000 drivers
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT - 7 Hours
Page 1 of 2
Goto page 1, 2 Next
|
|
|
|
|