[pvrusb2] New driver snapshot: pvrusb2-mci-20100424

devsk funtoos at yahoo.com
Sat Apr 24 18:39:33 CDT 2010


If you are compiling for the current kernel, just 'cd driver && make' should suffice. No need to set any variables.

You may run into issues if you don't have the all the defines in .config which pvrusb2 standalone package assumes. Just look at the output that it throws on the screen (the full 'make ...-C <path>/driver ...') like and tweak to your setup. If you didn't unselect stuff in kernel config, this is not required. Best way to find out is to do 'cd driver && make', modprobe -r pvrusb2, insmod the new module with full path and see if it works.

-devsk





________________________________
From: JE Geiger <james.e.geiger at gmail.com>
To: Communications nexus for pvrusb2 driver <pvrusb2 at isely.net>
Sent: Sat, April 24, 2010 4:19:13 PM
Subject: Re: [pvrusb2] New driver snapshot: pvrusb2-mci-20100424

Well, I thought I knew how to do this, but it appears that I do not.

I am attempting to use the existing 2.6.34-rc5 and compile the pvrusb2
snapshot module by itself.

I got your current snapshot.

Put it in a directory and ran the commands listed on the compilation
instructions.

export KREL=`uname -r`
export KDIR=/lib/modules/$KREL/source
make --directory driver


It appears that I have not provided the defines for kernel functions:
kmalloc, kfree, ......





[root at mythtv pvrusb2-mci-20100424]# export KREL=`uname -r`
[root at mythtv pvrusb2-mci-20100424]# export KDIR=/lib/modules/$KREL/source
[root at mythtv pvrusb2-mci-20100424]# make --directory driver
make: Entering directory `/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver'
make INSTALL_MOD_DIR=pvrusb2 -C /lib/modules/2.6.34-rc5/source
M=/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver
CONFIG_VIDEO_PVRUSB2=m CONFIG_VIDEO_PVRUSB2_24XXX=y
CONFIG_VIDEO_PVRUSB2_SYSFS=y CONFIG_VIDEO_PVRUSB2_DVB=y
CONFIG_VIDEO_PVRUSB2_DEBUGIFC=y CONFIG_VIDEO_ADV_DEBUG=y modules
make[1]: Entering directory `/usr/src/kernels/linux-2.6.34-rc5'
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-std.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-compat.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-ctrl.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-hdw.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-devattr.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-i2c-track.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-i2c-core.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-i2c-cmd-v4l2.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-i2c-cmd-v4l1.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-audio.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-audio-old.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-i2c-chips-all.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-encoder.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-video-v4l.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-video-ivtv.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-eeprom.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-tuner.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-demod.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-main.o
  CC [M]  /home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.o
/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c: In
function ‘pvr2_v4l2_destroy_no_lock’:
/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1150:
error: implicit declaration of function ‘kfree’
/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c: In
function ‘pvr2_v4l2_open’:
/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1274:
error: implicit declaration of function ‘kzalloc’
/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1274:
warning: assignment makes pointer from integer without a cast
/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1314:
warning: assignment makes pointer from integer without a cast
/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c: In
function ‘pvr2_v4l2_read’:
/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1403:
error: implicit declaration of function ‘kmalloc’
/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1403:
warning: assignment makes pointer from integer without a cast
/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c: In
function ‘pvr2_v4l2_create’:
/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1610:
warning: assignment makes pointer from integer without a cast
/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1618:
warning: assignment makes pointer from integer without a cast
/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.c:1623:
warning: assignment makes pointer from integer without a cast
make[2]: *** [/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver/pvrusb2-v4l2.o]
Error 1
make[1]: *** [_module_/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver]
Error 2
make[1]: Leaving directory `/usr/src/kernels/linux-2.6.34-rc5'
make: *** [modules] Error 2
make: Leaving directory `/home/geiger/Desktop/p/pvrusb2-mci-20100424/driver'


On Sat, Apr 24, 2010 at 4:43 PM, Mike Isely <isely at isely.net> wrote:
>
> A new pvrusb2 driver snapshot is available.  The changes are:
_______________________________________________
pvrusb2 mailing list
pvrusb2 at isely.net
http://www.isely.net/cgi-bin/mailman/listinfo/pvrusb2



      


More information about the pvrusb2 mailing list