You are not logged in.

#1 2010-09-01 20:16:57

ssl6
Member
From: Ottawa, ON, CA
Registered: 2007-08-30
Posts: 594

trying to compile experimental saa7164 module

i need help.

i'm trying to follow these steps as best i can
http://www.linuxtv.org/wiki/index.php/H … V-HVR-2200

and this is what i'm getting
http://pastebin.com/Y9DJZb8d

i'm sure i'm missing something, but i don't know enough to figure that out. if anyone has any ideas maybe? i need this module for my tv tuner. it is experimental, at least the analogue support provided by this module, but without analogue, i need to buy another cable receiver to pass a digital signal through, which i don't want to do, i've spent enough already building the box i'm trying to get working.


this is a signature

Offline

#2 2010-09-01 20:51:45

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: trying to compile experimental saa7164 module

Just so I am clear, there is a 7164 module available to the kernel already.  You are trying to use this one solely because of the tuner.

The install script tries to use /sbin/lsmod    There is no /sbin/lsmod in my arch system.

try this : sudo ln -s /bin/lsmod /sbin/lsmod
Then try to make.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2010-09-01 20:58:10

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: trying to compile experimental saa7164 module

Oh, one other thing.  Is there a configure script provided with the driver?  If so, a ./configure before making might be in order.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2010-09-01 21:04:10

ssl6
Member
From: Ottawa, ON, CA
Registered: 2007-08-30
Posts: 594

Re: trying to compile experimental saa7164 module

yes, there is a module available already, but apparently, from what i've been reading, the mainline module only supports digital signal, i can't use digital unless i get another cable receiver in the loop to decrypt that signal. i'm perfectly happy using analogue and getting only 70 channels that way, because everything i watch, is on those anyway.

but i need the experimental driver apparently, there's not much on this blog, but might explain
http://www.kernellabs.com/blog/?p=1443

there might be more info in regards to analogue support on this mythtv page
http://www.mythtv.org/wiki/Hauppauge_HVR-2250

otherwise, i would not be going to this trouble, its too technical, i don't do technical

when i was looking for a tv tuner, and doing my research, this one seemed like a good choice, the digital only note on the mythtv page didn't hit me at the time as relevant to my needs.....i like it though, works great under windows, the dual tuner is nice, i can watch and record even with analogue signal. i really want to get mythtv working 100%, this is my first step. windows media center is nice and all for the average user, overall i like it, its simple, has a fairly streamlined interface, but lacks some of the fine tuning options, and has a few quirks that are deal breakers for me, otherwise i would live with it.

media portal is ok so far, but i was really hyped about fianlly trying out mythtv, but i need this module

Last edited by ssl6 (2010-09-01 21:11:21)


this is a signature

Offline

#5 2010-09-01 21:42:18

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: trying to compile experimental saa7164 module

Makes sense.  Any luck with the soft link from /bin/lsmod to /sbin/lsmod?  Does there exist a configure script?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2010-09-01 22:08:52

ssl6
Member
From: Ottawa, ON, CA
Registered: 2007-08-30
Posts: 594

Re: trying to compile experimental saa7164 module

you can run make menuconfig, if thats what you mean

the soft link got rid of that one error, but it still craps out with the rest of it


this is a signature

Offline

#7 2010-09-03 17:56:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: trying to compile experimental saa7164 module

Well, I have been working the problem for a couple days.  So far, I have found 6 files that needed

#include <linux/slab.h>

declarations (tuner-xc2028.c, mt20xx.c, tda8290.c, tea5767.c, tea5761.c and tda827x.c)

There were two more files (au0828-video.c, and cx231xx-core.c) that needed references to usb_buffer_alloc and usb_buffer_free changed to usb_alloc_coherent and usb_free_coherent, respectively.

I do not understand the missing references to slab.  The USB buffer calls are a because the older styles have been depreciated and the compatibility calls were dropped from the 2.6.35 kernel.

Sadly, I have hit a show stopper.  In the file dvb_net.c, there is an attempt to use a structure called dev_mc_list that is not declared in any file, but is only used within the function dvb_set_mc_filter.  This is related to http://kerneltrap.org/mailarchive/linux … 169/thread

I assume you are using kernel 2.6.35.  With the exception to the missing references to slab.h, everything else seems to be a function of 2.6.35 dropping legacy support and breaking things.  The Slab.h stuff may even be an artifact of changes in nested includes in kernel headers.

Anyway, This seems to be an active project, and the 2.6.35 kernel is new.  My suggestion is to give them some time to sort things out.  Keep an eye on their development repository and, perhaps, gently nudge them with a bug report / feature request.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2010-09-14 07:06:44

ssl6
Member
From: Ottawa, ON, CA
Registered: 2007-08-30
Posts: 594

Re: trying to compile experimental saa7164 module

i've been trying for the last hour to get it to build. i've manged to get further, but i think i may be stuck at the same point as ewaller now.

here's my latest output

[root@myhost saa7164-dev]# make
make -C /root/saa7164-dev/v4l 
/bin/sh: /sbin/lsmod: No such file or directory
make[1]: Entering directory `/root/saa7164-dev/v4l'
creating symbolic links...
make -C firmware prep
make[2]: Entering directory `/root/saa7164-dev/v4l/firmware'
make[2]: Leaving directory `/root/saa7164-dev/v4l/firmware'
make -C firmware
make[2]: Entering directory `/root/saa7164-dev/v4l/firmware'
make[2]: Nothing to be done for `default'.
make[2]: Leaving directory `/root/saa7164-dev/v4l/firmware'
Kernel build directory is /lib/modules/2.6.35-ARCH/build
make -C /lib/modules/2.6.35-ARCH/build SUBDIRS=/root/saa7164-dev/v4l  modules
make[2]: Entering directory `/lib/modules/2.6.35-ARCH/build'

  WARNING: Symbol version dump /lib/modules/2.6.35-ARCH/build/Module.symvers
           is missing; modules will have no dependencies and modversions.

/bin/sh: /sbin/lsmod: No such file or directory
  CC [M]  /root/saa7164-dev/v4l/tuner-xc2028.o
/root/saa7164-dev/v4l/tuner-xc2028.c: In function 'free_firmware':
/root/saa7164-dev/v4l/tuner-xc2028.c:252:3: error: implicit declaration of function 'kfree'
/root/saa7164-dev/v4l/tuner-xc2028.c: In function 'load_all_firmwares':
/root/saa7164-dev/v4l/tuner-xc2028.c:314:2: error: implicit declaration of function 'kzalloc'
/root/saa7164-dev/v4l/tuner-xc2028.c:314:13: warning: assignment makes pointer from integer without a cast
/root/saa7164-dev/v4l/tuner-xc2028.c:365:21: warning: assignment makes pointer from integer without a cast
/root/saa7164-dev/v4l/tuner-xc2028.c: In function 'xc2028_attach':
/root/saa7164-dev/v4l/tuner-xc2028.c:1314:13: warning: assignment makes pointer from integer without a cast
make[3]: *** [/root/saa7164-dev/v4l/tuner-xc2028.o] Error 1
make[2]: *** [_module_/root/saa7164-dev/v4l] Error 2
make[2]: Leaving directory `/lib/modules/2.6.35-ARCH/build'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/saa7164-dev/v4l'
make: *** [all] Error 2

this is after making a mess of my file system copying kernel source and symlinking stuff everywhere.........


this is a signature

Offline

#9 2010-09-14 07:45:35

ssl6
Member
From: Ottawa, ON, CA
Registered: 2007-08-30
Posts: 594

Re: trying to compile experimental saa7164 module

well, i thought i would clean things up a little. and tried building against 2.6.34 sources. seems to do the same as i had before.....thoughts?

here's the latest output though.....again

[root@myhost saa7164-dev]# make
make -C /root/saa7164-dev/v4l 
/bin/sh: /sbin/lsmod: No such file or directory
make[1]: Entering directory `/root/saa7164-dev/v4l'
./scripts/make_myconfig.pl
make[1]: Leaving directory `/root/saa7164-dev/v4l'
/bin/sh: /sbin/lsmod: No such file or directory
make[1]: Entering directory `/root/saa7164-dev/v4l'
perl scripts/make_config_compat.pl /lib/modules/2.6.34-ARCH/build ./.myconfig ./config-compat.h
creating symbolic links...
make -C firmware prep
make[2]: Entering directory `/root/saa7164-dev/v4l/firmware'
make[2]: Leaving directory `/root/saa7164-dev/v4l/firmware'
make -C firmware
make[2]: Entering directory `/root/saa7164-dev/v4l/firmware'
make[2]: Nothing to be done for `default'.
make[2]: Leaving directory `/root/saa7164-dev/v4l/firmware'
Kernel build directory is /lib/modules/2.6.34-ARCH/build
make -C /lib/modules/2.6.34-ARCH/build SUBDIRS=/root/saa7164-dev/v4l  modules
make[2]: Entering directory `/usr/src/linux'

  WARNING: Symbol version dump /usr/src/linux/Module.symvers
           is missing; modules will have no dependencies and modversions.

/bin/sh: /sbin/lsmod: No such file or directory
  CC [M]  /root/saa7164-dev/v4l/tuner-xc2028.o
/root/saa7164-dev/v4l/tuner-xc2028.c: In function 'free_firmware':
/root/saa7164-dev/v4l/tuner-xc2028.c:252:3: error: implicit declaration of function 'kfree'
/root/saa7164-dev/v4l/tuner-xc2028.c: In function 'load_all_firmwares':
/root/saa7164-dev/v4l/tuner-xc2028.c:314:2: error: implicit declaration of function 'kzalloc'
/root/saa7164-dev/v4l/tuner-xc2028.c:314:13: warning: assignment makes pointer from integer without a cast
/root/saa7164-dev/v4l/tuner-xc2028.c:365:21: warning: assignment makes pointer from integer without a cast
/root/saa7164-dev/v4l/tuner-xc2028.c: In function 'xc2028_attach':
/root/saa7164-dev/v4l/tuner-xc2028.c:1314:13: warning: assignment makes pointer from integer without a cast
make[3]: *** [/root/saa7164-dev/v4l/tuner-xc2028.o] Error 1
make[2]: *** [_module_/root/saa7164-dev/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/saa7164-dev/v4l'
make: *** [all] Error 2

basically, what i've done, is put the latest arch patched 2.6.24 kernel source in /usr/src/linux, and made a symlink to that folder in /lib/modules/2.6.34-ARCH/build

at least it doesn't just jump to not being able to build for me now, it gets further than it did. there may be a better way to do what i did.....but thats technical....i'm just a linux user, i have much to learn still


this is a signature

Offline

#10 2010-09-15 22:31:51

fphillips
Member
From: Austin, TX
Registered: 2009-01-24
Posts: 202

Re: trying to compile experimental saa7164 module

It looks like you are trying to build the entire v4l tree (that's what it contains) when you just need a few drivers. You can disable all but the ones you want. This will speed up compilation and skip all that problematic code. Follow my steps here (with the saa7164-dev tree of course) and you will want newer firmware than what I have linked to.
https://bbs.archlinux.org/viewtopic.php … 75#p558875

The driver probably uses header files from all over the v4l tree, which is why it contains the whole tree rather than just the saa7164 code. Steven pulls a copy of the v4l code, makes his changes, then the v4l maintainer merges it back with the main tree.

Offline

Board footer

Powered by FluxBB