By the way, and for the record, when I build kernels here, I usually do:

1. I always build using vanilla kernels from kernel.org (not 
distro-modified kernels).

2. I generally try to configure the kernel as flexibly as possible.  So 
I try to enable everything and configure as modules.  The resulting 
kernel therefore still isn't too large, and if there's something I later 
discover that I need, then it's usually ready to load from a nearby 
module.

Building everything as modules can of course result in a LARGE tree of 
modules, but it's just disk space and these days disk space is cheap.  
There's zero performance penalty in enabling something as a module that 
never actually gets used.

  -Mike


On Sat, 24 Apr 2010, devsk wrote:

> 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 <[email protected]>
> To: Communications nexus for pvrusb2 driver <[email protected]>
> 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, ......
> 
> 
> 
> 
> 
> [r...@mythtv pvrusb2-mci-20100424]# export KREL=`uname -r`
> [r...@mythtv pvrusb2-mci-20100424]# export KDIR=/lib/modules/$KREL/source
> [r...@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 <[email protected]> wrote:
> >
> > A new pvrusb2 driver snapshot is available.  The changes are:
> _______________________________________________
> pvrusb2 mailing list
> [email protected]
> http://www.isely.net/cgi-bin/mailman/listinfo/pvrusb2
> 
> 
> 
>       
> _______________________________________________
> pvrusb2 mailing list
> [email protected]
> http://www.isely.net/cgi-bin/mailman/listinfo/pvrusb2
> 

-- 

Mike Isely
isely @ isely (dot) net
PGP: 03 54 43 4D 75 E5 CC 92 71 16 01 E2 B5 F5 C1 E8
_______________________________________________
pvrusb2 mailing list
[email protected]
http://www.isely.net/cgi-bin/mailman/listinfo/pvrusb2

Reply via email to