Ok, managed to get it all building by adjusting the "getlinks" script. I run the MAKE_DEV script to generate the devices, insmod to load the modules, but then when attempting to run the "scan" application, it aborts saying that it can't find the frontend0 device - checking via "ls" they are there. Using the "old" (ie: non-V4) interface, it all works fine, just the V4 stuff is giving me problems. If there something I need to check, or do you need more information? James. On 16/09/05, James Fisher <jef2115@xxxxxxxxx> wrote: > > Hi Michael, > > The Kbuild file was in the build2.6 directory, but did not exist in the > /lib/modules/2.6.9-1.667/build directory. I copied it into this directory > and the build worked (I think) with the following output: > > [fisherj@localhost build-2.6]$ make > [ -L audio.c ] || ./getlinks > getting links from kernel-cvs driver > create symbolic link `av7110.c' to > `../linux/drivers/media/dvb/ttpci/av7110.c' > create symbolic link `av7110-ci.h' to > `../linux/drivers/media/dvb/ttpci/av7110-ci.h' > create symbolic link `av7110-hw.c' to > `../linux/drivers/media/dvb/ttpci/av7110-hw.c' > create symbolic link `av7110-ir.c' to > `../linux/drivers/media/dvb/ttpci/av7110-ir.c' > create symbolic link `av7110-osd.h' to > `../linux/drivers/media/dvb/ttpci/av7110-osd.h' > create symbolic link `ttpci-eeprom.c' to > `../linux/drivers/media/dvb/ttpci/ttpci-eeprom.c' > create symbolic link `av7110.h' to > `../linux/drivers/media/dvb/ttpci/av7110.h' > create symbolic link `av7110-hw.h' to > `../linux/drivers/media/dvb/ttpci/av7110-hw.h' > create symbolic link `av7110-v4l.c' to > `../linux/drivers/media/dvb/ttpci/av7110-v4l.c' > create symbolic link `av7110-av.c' to > `../linux/drivers/media/dvb/ttpci/av7110-av.c' > create symbolic link `av7110-ci.c' to > `../linux/drivers/media/dvb/ttpci/av7110-ci.c' > create symbolic link `ttpci-eeprom.h' to > `../linux/drivers/media/dvb/ttpci/ttpci-eeprom.h' > create symbolic link `av7110-av.h' to > `../linux/drivers/media/dvb/ttpci/av7110-av.h' > find: ../../dvb-kernel//linux/drivers/media/common: No such file or > directory > find: ../../dvb-kernel//linux/include/media/: No such file or directory > create symbolic link `vbi.c' to > `../linux/drivers/media/dvb/dvb-core/vbi.c' > create symbolic link `ringbuffer.c' to > `../linux/drivers/media/dvb/dvb-core/ringbuffer.c' > create symbolic link `device.c' to > `../linux/drivers/media/dvb/dvb-core/device.c' > create symbolic link `sw-recording.c' to > `../linux/drivers/media/dvb/dvb-core/sw-recording.c' > create symbolic link `functions.c' to > `../linux/drivers/media/dvb/dvb-core/functions.c' > create symbolic link `debug.h' to > `../linux/drivers/media/dvb/dvb-core/debug.h' > create symbolic link `sw-memory-input.c' to > `../linux/drivers/media/dvb/dvb-core/sw-memory-input.c' > create symbolic link `sw-demux.c' to > `../linux/drivers/media/dvb/dvb-core/sw-demux.c' > create symbolic link `mixer.c' to > `../linux/drivers/media/dvb/dvb-core/mixer.c' > create symbolic link `spdif.c' to > `../linux/drivers/media/dvb/dvb-core/spdif.c' > create symbolic link `video.c' to > `../linux/drivers/media/dvb/dvb-core/video.c' > create symbolic link `audio.c' to > `../linux/drivers/media/dvb/dvb-core/audio.c' > create symbolic link `dvb-dummy.c' to > `../linux/drivers/media/dvb/dvb-core/dvb-dummy.c' > create symbolic link `demux.c' to > `../linux/drivers/media/dvb/dvb-core/demux.c' > create symbolic link `frontend.c' to > `../linux/drivers/media/dvb/dvb-core/frontend.c' > create symbolic link `memory-input.c' to > `../linux/drivers/media/dvb/dvb-core/memory-input.c' > create symbolic link `stv0299.c' to > `../linux/drivers/media/dvb/frontends/stv0299.c' > create symbolic link `ves1820.c' to > `../linux/drivers/media/dvb/frontends/ves1820.c' > create symbolic link `ves1x93.c' to > `../linux/drivers/media/dvb/frontends/ves1x93.c' > make -C /lib/modules/`uname -r`/build M=`pwd` > make[1]: Entering directory `/lib/modules/2.6.9-1.667/build' > LD /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/built-in.o > CC [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/audio.o > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/audio.c:22:29: > media/dvb/audio.h: No such file or directory > fixdep: /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/.audio.o.d is empty > CC [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/spdif.o > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/spdif.c: In function > `open': > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/spdif.c:36: warning: ISO > C90 forbids mixed declarations and code > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/spdif.c:22:29: > media/dvb/audio.h: No such file or directory > fixdep: /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/.spdif.o.d is empty > CC [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/mixer.o > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/mixer.c: In function > `set_output_level': > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/mixer.c:130: warning: ISO > C90 forbids mixed declarations and code > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/mixer.c:22:29: > media/dvb/audio.h: No such file or directory > fixdep: /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/.mixer.o.d is empty > CC [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/video.o > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/video.c: In function > `open': > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/video.c:40: warning: ISO > C90 forbids mixed declarations and code > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/video.c:22:29: > media/dvb/video.h: No such file or directory > fixdep: /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/.video.o.d is empty > CC [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/vbi.o > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/vbi.c:22:27: > media/dvb/vbi.h: No such file or directory > fixdep: /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/.vbi.o.d is empty > CC [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/demux.o > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/demux.c:1467:2: warning: > #warning FIXME: CRC32 > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/demux.c:1463: warning: > 'dvb_crc32' defined but not used > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/demux.c:22:29: > media/dvb/demux.h: No such file or directory > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/demux.c:23:29: > media/dvb/audio.h: No such file or directory > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/demux.c:24:29: > media/dvb/video.h: No such file or directory > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/demux.c:25:27: > media/dvb/vbi.h: No such file or directory > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/demux.c:1467:2: warning: > #warning FIXME: CRC32 > fixdep: /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/.demux.o.d is empty > CC [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/device.o > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/device.c:25:30: > media/dvb/device.h: No such file or directory > fixdep: /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/.device.o.d is > empty > CC [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/ringbuffer.o > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/ringbuffer.c:27:34: > media/dvb/ringbuffer.h: No such file or directory > fixdep: /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/.ringbuffer.o.d is > empty > CC [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/memory-input.o > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/memory-input.c:22:36: > media/dvb/memory-input.h: No such file or directory > fixdep: /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/.memory-input.o.dis empty > CC [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/frontend.o > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/frontend.c: In function > `frontend_thread': > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/frontend.c:269: warning: > implicit declaration of function `refrigerator' > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/frontend.c: In function > `open': > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/frontend.c:688: warning: > ISO C90 forbids mixed declarations and code > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/frontend.c:26:32: > media/dvb/frontend.h: No such file or directory > fixdep: /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/.frontend.o.d is > empty > CC [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/functions.o > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/functions.c:22:30: > media/dvb/device.h: No such file or directory > fixdep: /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/.functions.o.d is > empty > LD [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/dvb-core.o > CC [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/stv0299.o > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/stv0299.c:45:41: > media/dvb/frontends/stv0299.h: No such file or directory > fixdep: /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/.stv0299.o.d is > empty > Building modules, stage 2. > MODPOST > CC /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/dvb-core.mod.o > LD [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/dvb-core.ko > CC /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/stv0299.mod.o > LD [M] /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/stv0299.ko > make[1]: Leaving directory `/lib/modules/2.6.9-1.667/build' > [fisherj@localhost build-2.6]$ ll > total 3048 > lrwxrwxrwx 1 fisherj fisherj 43 Sep 16 15:34 audio.c -> > ../linux/drivers/media/dvb/dvb-core/audio.c > -rw-rw-r-- 1 fisherj fisherj 95465 Sep 16 15:34 audio.o > lrwxrwxrwx 1 fisherj fisherj 44 Sep 16 15:34 av7110-av.c -> > ../linux/drivers/media/dvb/ttpci/av7110-av.c > lrwxrwxrwx 1 fisherj fisherj 44 Sep 16 15:34 av7110-av.h -> > ../linux/drivers/media/dvb/ttpci/av7110-av.h > lrwxrwxrwx 1 fisherj fisherj 41 Sep 16 15:34 av7110.c -> > ../linux/drivers/media/dvb/ttpci/av7110.c > lrwxrwxrwx 1 fisherj fisherj 44 Sep 16 15:34 av7110-ci.c -> > ../linux/drivers/media/dvb/ttpci/av7110-ci.c > lrwxrwxrwx 1 fisherj fisherj 44 Sep 16 15:34 av7110-ci.h -> > ../linux/drivers/media/dvb/ttpci/av7110-ci.h > lrwxrwxrwx 1 fisherj fisherj 41 Sep 16 15:34 av7110.h -> > ../linux/drivers/media/dvb/ttpci/av7110.h > lrwxrwxrwx 1 fisherj fisherj 44 Sep 16 15:34 av7110-hw.c -> > ../linux/drivers/media/dvb/ttpci/av7110-hw.c > lrwxrwxrwx 1 fisherj fisherj 44 Sep 16 15:34 av7110-hw.h -> > ../linux/drivers/media/dvb/ttpci/av7110-hw.h > lrwxrwxrwx 1 fisherj fisherj 44 Sep 16 15:34 av7110-ir.c -> > ../linux/drivers/media/dvb/ttpci/av7110-ir.c > lrwxrwxrwx 1 fisherj fisherj 45 Sep 16 15:34 av7110-osd.h -> > ../linux/drivers/media/dvb/ttpci/av7110-osd.h > lrwxrwxrwx 1 fisherj fisherj 45 Sep 16 15:34 av7110-v4l.c -> > ../linux/drivers/media/dvb/ttpci/av7110-v4l.c > -rw-rw-r-- 1 fisherj fisherj 8 Sep 16 15:34 built-in.o > drwxrwxr-x 2 fisherj fisherj 4096 Sep 14 14:58 CVS > lrwxrwxrwx 1 fisherj fisherj 43 Sep 16 15:34 debug.h -> > ../linux/drivers/media/dvb/dvb-core/debug.h > lrwxrwxrwx 1 fisherj fisherj 43 Sep 16 15:34 demux.c -> > ../linux/drivers/media/dvb/dvb-core/demux.c > -rw-rw-r-- 1 fisherj fisherj 134871 Sep 16 15:34 demux.o > lrwxrwxrwx 1 fisherj fisherj 44 Sep 16 15:34 device.c -> > ../linux/drivers/media/dvb/dvb-core/device.c > -rw-rw-r-- 1 fisherj fisherj 73309 Sep 16 15:34 device.o > -rw-rw-r-- 1 fisherj fisherj 918649 Sep 16 15:34 dvb-core.ko > -rw-rw-r-- 1 fisherj fisherj 1830 Sep 16 15:34 dvb-core.mod.c > -rw-rw-r-- 1 fisherj fisherj 30740 Sep 16 15:34 dvb-core.mod.o > -rw-rw-r-- 1 fisherj fisherj 889020 Sep 16 15:34 dvb-core.o > lrwxrwxrwx 1 fisherj fisherj 47 Sep 16 15:34 dvb-dummy.c -> > ../linux/drivers/media/dvb/dvb-core/dvb-dummy.c > -rw-rw-r-- 1 fisherj fisherj 972 Mar 23 2004 fdump.c > lrwxrwxrwx 1 fisherj fisherj 46 Sep 16 15:34 frontend.c -> > ../linux/drivers/media/dvb/dvb-core/frontend.c > -rw-rw-r-- 1 fisherj fisherj 84691 Sep 16 15:34 frontend.o > lrwxrwxrwx 1 fisherj fisherj 47 Sep 16 15:34 functions.c -> > ../linux/drivers/media/dvb/dvb-core/functions.c > -rw-rw-r-- 1 fisherj fisherj 55883 Sep 16 15:34 functions.o > -rwxrwxr-x 1 fisherj fisherj 1090 Apr 8 2004 getlinks > drwxrwxr-x 4 fisherj fisherj 4096 Sep 14 14:58 include > -rwxrwxr-x 1 fisherj fisherj 2407 Apr 12 02:58 insmod.sh > -rw-rw-r-- 1 fisherj fisherj 788 Aug 30 01:11 Kbuild > -rw-rw-r-- 1 fisherj fisherj 310 Mar 3 2005 Makefile > lrwxrwxrwx 1 fisherj fisherj 50 Sep 16 15:34 memory-input.c -> > ../linux/drivers/media/dvb/dvb-core/memory-input.c > -rw-rw-r-- 1 fisherj fisherj 68451 Sep 16 15:34 memory-input.o > lrwxrwxrwx 1 fisherj fisherj 43 Sep 16 15:34 mixer.c -> > ../linux/drivers/media/dvb/dvb-core/mixer.c > -rw-rw-r-- 1 fisherj fisherj 84033 Sep 16 15:34 mixer.o > -rw-rw-r-- 1 fisherj fisherj 219 Feb 13 2004 README > lrwxrwxrwx 1 fisherj fisherj 48 Sep 16 15:34 ringbuffer.c -> > ../linux/drivers/media/dvb/dvb-core/ringbuffer.c > -rw-rw-r-- 1 fisherj fisherj 59637 Sep 16 15:34 ringbuffer.o > lrwxrwxrwx 1 fisherj fisherj 43 Sep 16 15:34 spdif.c -> > ../linux/drivers/media/dvb/dvb-core/spdif.c > -rw-rw-r-- 1 fisherj fisherj 82164 Sep 16 15:34 spdif.o > lrwxrwxrwx 1 fisherj fisherj 46 Sep 16 15:34 stv0299.c -> > ../linux/drivers/media/dvb/frontends/stv0299.c > -rw-rw-r-- 1 fisherj fisherj 113322 Sep 16 15:34 stv0299.ko > -rw-rw-r-- 1 fisherj fisherj 901 Sep 16 15:34 stv0299.mod.c > -rw-rw-r-- 1 fisherj fisherj 29084 Sep 16 15:34 stv0299.mod.o > -rw-rw-r-- 1 fisherj fisherj 85428 Sep 16 15:34 stv0299.o > lrwxrwxrwx 1 fisherj fisherj 46 Sep 16 15:34 sw-demux.c -> > ../linux/drivers/media/dvb/dvb-core/sw-demux.c > lrwxrwxrwx 1 fisherj fisherj 53 Sep 16 15:34 sw-memory-input.c -> > ../linux/drivers/media/dvb/dvb-core/sw-memory-input.c > lrwxrwxrwx 1 fisherj fisherj 50 Sep 16 15:34 sw-recording.c -> > ../linux/drivers/media/dvb/dvb-core/sw-recording.c > lrwxrwxrwx 1 fisherj fisherj 47 Sep 16 15:34 ttpci-eeprom.c -> > ../linux/drivers/media/dvb/ttpci/ttpci-eeprom.c > lrwxrwxrwx 1 fisherj fisherj 47 Sep 16 15:34 ttpci-eeprom.h -> > ../linux/drivers/media/dvb/ttpci/ttpci-eeprom.h > lrwxrwxrwx 1 fisherj fisherj 41 Sep 16 15:34 vbi.c -> > ../linux/drivers/media/dvb/dvb-core/vbi.c > -rw-rw-r-- 1 fisherj fisherj 73270 Sep 16 15:34 vbi.o > lrwxrwxrwx 1 fisherj fisherj 46 Sep 16 15:34 ves1820.c -> > ../linux/drivers/media/dvb/frontends/ves1820.c > lrwxrwxrwx 1 fisherj fisherj 46 Sep 16 15:34 ves1x93.c -> > ../linux/drivers/media/dvb/frontends/ves1x93.c > lrwxrwxrwx 1 fisherj fisherj 43 Sep 16 15:34 video.c -> > ../linux/drivers/media/dvb/dvb-core/video.c > -rw-rw-r-- 1 fisherj fisherj 104056 Sep 16 15:34 video.o > > Running the ./insmod.sh load and ./insmod.sh reload script produced the > following (which I'm sure is not right!) > > [root@localhost build-2.6]# ./insmod.sh load > Inserting av7110 modules into kernel > insmod: error inserting './dvb-core.ko': -1 File exists > insmod: error inserting './stv0299.ko': -1 File exists > insmod: can't read './ves1820.ko': No such file or directory > insmod: can't read './saa7146.ko': No such file or directory > insmod: can't read './saa7146_vv.ko': No such file or directory > insmod: can't read './dvb-sw-emul.ko': No such file or directory > insmod: can't read './dvb-eeprom.ko': No such file or directory > insmod: can't read './dvb-av7110.ko': No such file or directory > > [root@localhost build-2.6]# ./insmod.sh reload > Deleting av7110 modules from kernel > ERROR: Module ves1820 is in use > ERROR: Module saa7146_vv is in use by budget_av,dvb_ttpci > ERROR: Module saa7146 is in use by > budget_av,budget_ci,budget,budget_core,dvb_ttpci,saa7146_vv > ERROR: Module video_buf is in use by saa7146_vv > ERROR: Module v4l2_common is in use by saa7146_vv > ERROR: Module v4l1_compat is in use by saa7146_vv > ERROR: Module dvb_core is in use by > skystar2,ttusb_dec,budget,budget_core,dvb_ttpci,mt312,cx24110,grundig_29504_491,grundig_29504_401,ves1820,alps_tdmb7 > ERROR: Module videodev is in use by saa7146_vv > > Inserting av7110 modules into kernel > insmod: error inserting './dvb-core.ko': -1 File exists > insmod: can't read './ves1820.ko': No such file or directory > insmod: can't read './saa7146.ko': No such file or directory > insmod: can't read './saa7146_vv.ko': No such file or directory > insmod: can't read './dvb-sw-emul.ko': No such file or directory > insmod: can't read './dvb-eeprom.ko': No such file or directory > insmod: can't read './dvb-av7110.ko': No such file or directory > > (Sorry for the large copies, but I thought it better to include as much as > possible). > > btw, I'm working on a TS analysis tool, and need the V4 API to read TS > packets (not just section data & PES data). > > James. > > On 15/09/05, hunold@xxxxxxxxxxx <hunold@xxxxxxxxxxx> wrote: > > > > Hello James, > > > > > I'm trying to build the V4 API drivers using Fedora FC3, but running > > 'make' > > > produces the following errors. The code is the latest from the CVS > > archive, > > > but I get the feeling I'm simply missing something. Can anyone help? > > > > I checked in some updates yesterday, but forgot to check-in 2 header > > files. > > Although this did not cause your problems most likely, please update. > > > > I was able to compile v4 on my FC machine: > > Linux elmc18 2.6.12-1.1376_FC3 #1 Fri Aug 26 23:27:26 EDT 2005 i686 i686 > > i386 GNU/Linux > > > > > make[1]: Entering directory `/lib/modules/2.6.9-1.667/build' > > > /home/fisherj/core/DVB/dvb-kernel-v4/build-2.6/Makefile:2: Kbuild: No > > such > > > file or directory > > > make[2]: *** No rule to make target `Kbuild'. Stop. > > > > This is strange. "Kbuild" should be inside the build-2.6 directory and > > holds > > the make dependencies. > > > > Is the Kbuild file in your directory? > > > > Regards > > Michael. > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20050920/0327d345/attachment-0001.html