Re: Fwd: Re: Fwd: DVB-T and Linux updated.

2013-11-28 Thread Oleg Goldshmidt
geoffrey mendelson geoffreymendel...@gmail.com writes:

 Is it possible to install the kernel module from 3.11 on an older
 kernel (say 3.8)? If so how, the last time I compiled a kernel module,
 I had to compile the entire kernel.

Hi Geoff,

You can try and compile the module against an older version of the
kernel, assuming you have the kernel headers and config files used to
build the target kernel installed. Depending on your distro, the headers
may be in a separate package, not bundled with the kernel package
itself.  They normally live under /lib/modules/`uname -r`/build, at
least that's what I am used to. In any case, compiling the whole kernel
is not needed.

The how is in Documentation/kbuild/modules.txt in the kernel sources
(you can use LXR if the documentation is not installed on your system).
It should boil down to

make -C /lib/modules/`uname -r`/build M=`pwd`

or equivalent (then repeat with modules_install target).

In principle, there is no guarantee that it will build or work
correctly, but you know that.
 
-- 
Oleg Goldshmidt | p...@goldshmidt.org

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Re: Fwd: DVB-T and Linux updated.

2013-11-28 Thread Shlomi Fish
Hi Geoffrey,


On Thu, Nov 28, 2013 at 8:46 AM, geoffrey mendelson 
geoffreymendel...@gmail.com wrote:




 On 11/25/2013 4:16 PM, Erez D wrote:

 you can get the r820T version. on eithed dx.com or ebay for around 13 usd.



 Is it possible to install the kernel module from 3.11 on an older kernel
 (say 3.8)? If so how, the last time
 I compiled a kernel module, I had to compile the entire kernel.


You can try backporting its source, but note that the Linux kernel does not
maintain backward-compatibility for internal kernel APIs (including those
used
for writing drivers) between kernel versions, so it may a bit of work.

It is possible to build a kernel module standalone using some GNU make
tricks,
maybe see:

http://mxhaard.free.fr/download.html

Or:

https://bitbucket.org/shlomif/ip-noise/src/5283225de39338345cba5372607cc26d3766d1d5/C/ker_ipq/Makefile?at=default

(The latter was written by my partner and by me and may be out of date.)

Regards,

Shlomi Fish

-- 
--
Shlomi Fish http://www.shlomifish.org/

Electrical Engineering studies. In the Technion. Been there. Done that.
Forgot a lot. Remember too much.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il