Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: kernel 2.4.20-28.7 RedHat 7.3 problem



Hello,

Andrej Surkov wrote: 
> 
>  Hello!
> 
>  I've got a problem: linuxtv-1.0.1 won't compile proper on my
>  kernel 2.4.20-28.7 RedHat 7.3 box.
>  Can anybody help?
> 
>  cheers,
>  Andrej

This is the way it worked for me:

- install the kernelsource matching the running kernel
    e.g. rpm -Uhv kernel-source-2.4.20-28.7.i386.rpm
- copy the matching configuration of the running kernel
    e.g. cp /boot/config-2.4.20-28.7 /usr/src/linux-2.4/.config
- extract the driver source
    e.g. tar -xzf linux-dvb-1.0.1.tar.gz
- apply the patch
    e.g. cp compat.h.patch linux-dvb-1.0.1/driver/
         cd linux-dvb-1.0.1/driver/
         patch < config.h.patch
- make the driver
    e.g. make
- make the device nodes
    e.g. ./makedev.napi
- test the driver
    e.g. make insmod

HTH

Tjuess
  Heino
--- compat.h.org	2003-02-07 13:22:51.000000000 +0100
+++ compat.h	2003-08-26 17:14:23.000000000 +0200
@@ -66,7 +66,7 @@
 extern struct page * vmalloc_to_page(void *addr);
 #endif
 
-
+/*
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
 
 #if defined(MODVERSIONS)
@@ -79,7 +79,7 @@
 	remap_page_range(from,to,size,prot)
 #endif
 #endif
-
+*/
 
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
 extern u32 crc32_le (u32 crc, unsigned char const *p, size_t len);

Home | Main Index | Thread Index