Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Need help installing tv tuner driver in ubuntu 9.04

Based on DMP's Vortex processor / SoC this board is a full computer capable of running a standard Windows and Linux installation on the backpack of your robot.
8 postsPage 1 of 1
8 postsPage 1 of 1

Need help installing tv tuner driver in ubuntu 9.04

Post by Ernif » Tue Oct 26, 2010 5:25 am

Post by Ernif
Tue Oct 26, 2010 5:25 am

I'm trying to install the v4l-dvb driver that is suppose to make my hauppage tv tuner working, but when I try to compile it I get the following error:

---------------------------------------------------------------------------------
root@machine:/home/temp/v4l-dvb# make
make -C /home/temp/v4l-dvb/v4l
make[1]: Entering directory `/home/temp/v4l-dvb/v4l'
Updating/Creating .config
Preparing to compile for kernel version 2.6.34
File not found: /lib/modules/2.6.34.1-vortex86-sg/build/.config at ./scripts/mak
e_kconfig.pl line 32, <IN> line 4.
make[1]: *** No rule to make target `.myconfig', needed by `config-compat.h'. S
top.
make[1]: Leaving directory `/home/temp/v4l-dvb/v4l'
make: *** [all] Error 2
root@machine:/home/temp/v4l-dvb#
----------------------------------------------------------------------------------

I've been reading this forum and googling and I think I must recompile the kernel but there is so many options in the menuconfig that I don't know what to enable to actually make it work. Or maybe I just need to set the default options... I have no clue for the moment and since it take 3-5 hours to compile it will take me ages to find the correct options (my robot competition is in 2 months and a half).

Any idea?
I'm trying to install the v4l-dvb driver that is suppose to make my hauppage tv tuner working, but when I try to compile it I get the following error:

---------------------------------------------------------------------------------
root@machine:/home/temp/v4l-dvb# make
make -C /home/temp/v4l-dvb/v4l
make[1]: Entering directory `/home/temp/v4l-dvb/v4l'
Updating/Creating .config
Preparing to compile for kernel version 2.6.34
File not found: /lib/modules/2.6.34.1-vortex86-sg/build/.config at ./scripts/mak
e_kconfig.pl line 32, <IN> line 4.
make[1]: *** No rule to make target `.myconfig', needed by `config-compat.h'. S
top.
make[1]: Leaving directory `/home/temp/v4l-dvb/v4l'
make: *** [all] Error 2
root@machine:/home/temp/v4l-dvb#
----------------------------------------------------------------------------------

I've been reading this forum and googling and I think I must recompile the kernel but there is so many options in the menuconfig that I don't know what to enable to actually make it work. Or maybe I just need to set the default options... I have no clue for the moment and since it take 3-5 hours to compile it will take me ages to find the correct options (my robot competition is in 2 months and a half).

Any idea?
Ernif
Robot Builder
Robot Builder
Posts: 7
Joined: Tue Oct 26, 2010 5:19 am

Post by andrewmerrill » Tue Oct 26, 2010 6:12 am

Post by andrewmerrill
Tue Oct 26, 2010 6:12 am

I'm assuming you installed the vortex kernel headers package, probably with a command like this:
Code: Select all
dpkg -i linux-headers-2.6.34.1-vortex86-sg_1.0_i386.deb


Unfortunately, this package does not create a needed link that the v4l build process is looking for. To create the missing link yourself, enter these commands (as root):
Code: Select all
cd /lib/modules/2.6.34.1-vortex86-sg
ln -s /usr/src/linux-headers-2.6.34.1-vortex86-sg build

This creates a symbolic link (called 'build') from the kernel headers that you installed into the /lib/modules subdirectory for the current kernel version.

It looks like you already know what you're doing with regard to building the v4l-dvb driver. In case anyone who isn't sure what to do is reading this, here are the steps I used to download and install it:
Code: Select all
cd /usr/local/src
wget http://linuxtv.org/hg/v4l-dvb/archive/tip.tar.gz
tar xzf tip.tar.gz
cd v4l-dvb-1da5fed5c8b2
make all
make install
modprobe uvcvideo


After doing this, I was able to use uvc based webcams (including a Logitech c500 and Logitech Pro 9000) directly from the RoBoard.

One note - I'm running Debian 5 (lenny) on my Roboard, and I have not tested any of these instructions with other linux distros.

Andrew
I'm assuming you installed the vortex kernel headers package, probably with a command like this:
Code: Select all
dpkg -i linux-headers-2.6.34.1-vortex86-sg_1.0_i386.deb


Unfortunately, this package does not create a needed link that the v4l build process is looking for. To create the missing link yourself, enter these commands (as root):
Code: Select all
cd /lib/modules/2.6.34.1-vortex86-sg
ln -s /usr/src/linux-headers-2.6.34.1-vortex86-sg build

This creates a symbolic link (called 'build') from the kernel headers that you installed into the /lib/modules subdirectory for the current kernel version.

It looks like you already know what you're doing with regard to building the v4l-dvb driver. In case anyone who isn't sure what to do is reading this, here are the steps I used to download and install it:
Code: Select all
cd /usr/local/src
wget http://linuxtv.org/hg/v4l-dvb/archive/tip.tar.gz
tar xzf tip.tar.gz
cd v4l-dvb-1da5fed5c8b2
make all
make install
modprobe uvcvideo


After doing this, I was able to use uvc based webcams (including a Logitech c500 and Logitech Pro 9000) directly from the RoBoard.

One note - I'm running Debian 5 (lenny) on my Roboard, and I have not tested any of these instructions with other linux distros.

Andrew
andrewmerrill
Newbie
Newbie
Posts: 5
Joined: Fri Oct 22, 2010 3:09 am

Post by Ernif » Tue Oct 26, 2010 2:31 pm

Post by Ernif
Tue Oct 26, 2010 2:31 pm

Thanks for the quick reply, sounds like exactly what I need. I'll be trying this tonight and post the result!
Thanks for the quick reply, sounds like exactly what I need. I'll be trying this tonight and post the result!
Ernif
Robot Builder
Robot Builder
Posts: 7
Joined: Tue Oct 26, 2010 5:19 am

Post by Ernif » Wed Oct 27, 2010 6:37 pm

Post by Ernif
Wed Oct 27, 2010 6:37 pm

Posting result:

Actually it DID compile, thanks a lot, but after when I try to install the driver I need using modprobe:

modprobe em28xx

It says that it doesn't recognize the module em28xx.

So... I'm working on it!
Posting result:

Actually it DID compile, thanks a lot, but after when I try to install the driver I need using modprobe:

modprobe em28xx

It says that it doesn't recognize the module em28xx.

So... I'm working on it!
Ernif
Robot Builder
Robot Builder
Posts: 7
Joined: Tue Oct 26, 2010 5:19 am

Post by Ernif » Sat Oct 30, 2010 9:51 pm

Post by Ernif
Sat Oct 30, 2010 9:51 pm

Everything working fine now! Thanks a lot.
Everything working fine now! Thanks a lot.
Ernif
Robot Builder
Robot Builder
Posts: 7
Joined: Tue Oct 26, 2010 5:19 am

Post by andrewmerrill » Sun Oct 31, 2010 6:16 pm

Post by andrewmerrill
Sun Oct 31, 2010 6:16 pm

It's great you got your camera working!

Could you post some information about what you did to get it to work, to help out anyone else who has a similar problem in the future? That would be a great help.
It's great you got your camera working!

Could you post some information about what you did to get it to work, to help out anyone else who has a similar problem in the future? That would be a great help.
andrewmerrill
Newbie
Newbie
Posts: 5
Joined: Fri Oct 22, 2010 3:09 am

Post by Ernif » Tue Nov 02, 2010 6:53 pm

Post by Ernif
Tue Nov 02, 2010 6:53 pm

Just to mention that I didn't do anything more. It just happened that sometime later the v4l-driver created a symbolic link from /dev/v4l-dvb/[camera] to /dev/video0.

I don't know why it didnt work right away but now it's working fine.
Just to mention that I didn't do anything more. It just happened that sometime later the v4l-driver created a symbolic link from /dev/v4l-dvb/[camera] to /dev/video0.

I don't know why it didnt work right away but now it's working fine.
Ernif
Robot Builder
Robot Builder
Posts: 7
Joined: Tue Oct 26, 2010 5:19 am

Post by nishi59 » Sun Nov 28, 2010 10:34 pm

Post by nishi59
Sun Nov 28, 2010 10:34 pm

don't know what to enable to actually make it work. Or maybe I just need to set the default options... I have no clue for the moment and since it take 3-5 hours to compile it will take me ages to find the correct options (my robot competition is in 2 months and a half).



صور
don't know what to enable to actually make it work. Or maybe I just need to set the default options... I have no clue for the moment and since it take 3-5 hours to compile it will take me ages to find the correct options (my robot competition is in 2 months and a half).



صور
nishi59
Newbie
Newbie
Posts: 1
Joined: Sun Nov 28, 2010 10:32 pm


8 postsPage 1 of 1
8 postsPage 1 of 1