[Click] click kernel module compile for Debian Lenny

Adam Greenhalgh a.greenhalgh at cs.ucl.ac.uk
Fri Oct 17 11:15:20 EDT 2008


hi,

if you search the mailing list there are patches for linux-2.6.24.7 .
I'm not sure if they are in the git tree yet.

Adam

2008/10/17 Stephen Pink <spink007 at yahoo.com>:
> Kevin,
>
> Thanks for  your advice.  I was not able to successfully build a kernel with 2.6.19.2 sources, as the error that I get below (with the PDA) seems to come from using a later version of gcc and binutils (according to what I read in the linux forums).  So I brought over the most recent sources: 2.6.27.1 and I was able to build a (pre-patched) kernel which runs just fine.
>
> Problem now is that there is no Click patch for this newest distribution and the kernel sources (include files) have changed rather a lot since the older 2.6.19.2, so I am unable to make a click kernel module without having to "port" the patch to this new distribution.
>
> If you know a shortcut on how to do this, I would appreciate hearing about it.
>
>
> Steve
>
> --- On Thu, 10/16/08, springbo at cs.wisc.edu <springbo at cs.wisc.edu> wrote:
> From: springbo at cs.wisc.edu <springbo at cs.wisc.edu>
> Subject: Re: [Click] click kernel module compile for Debian Lenny
> To: "Stephen Pink" <spink007 at yahoo.com>
> Cc: "Eddy Kohler" <kohler at cs.ucla.edu>, click at amsterdam.lcs.mit.edu
> Date: Thursday, October 16, 2008, 8:34 PM
>
> Hi Steve,
>
> Kernel configuration options differ significantly from one version to the
> next. So you cannot simply use one kernel's .config to build another
> kernel. Configuration options not assigned a value are not compiled (See
> Documentation/kbuild/makefiles.txt). Configuration option renames and
> removals from one version to the next will likely cause module
> dependencies to not be satisfied.
>
> If you really want to use the 2.6.26 .config try 'make oldconfig'. This
> will attempt to use as much of the old(new) config as possible. Another
> option would be to configure the kernel using one of the other targets
> ('make menuconfig', see 'make help' for more options)
>
> I would recommend configuring and testing a stock 2.6.19.2 kernel before
> worrying about the click patches.
>
> Hope this helps,
> Kevin Springborn
>
>> Hi,
>>
>> I have installed the latest Debian testing system (Lenny) and I'm
> trying
>> to follow your Installation instructions for making a new kernel (I
>> downloaded the 2.6.19.2 sources from
>> www.kernel.org and applied your click kernel patch for this distribution
>> and everything went fine.
>>
>> I followed the kernel build instructions in it blew up in make bzImage:
>>
>> LD      init/built-in.o
>> LD      .tmp_vmlinux1
>> arch/x86_64/kernel/built-in.o: In function `dump_task_regs':
>> (.text+0x22f): undefined reference to `_proxy_pda'
>> arch/x86_64/kernel/built-in.o: In function `affinity_set':
>> mce_amd.c:(.text+0xb6cc): undefined reference to `_proxy_pda'
>> arch/x86_64/kernel/built-in.o: In function `smp_apic_timer_interrupt':
>> (.text+0x110ee): undefined reference to
>>  `_proxy_pda'
>> arch/x86_64/kernel/built-in.o: In function `do_nmi':
>> (.text+0x11587): undefined reference to `_proxy_pda'
>> arch/x86_64/mm/built-in.o: In function `pgtable_bad':
>> fault.c:(.text+0x76f): undefined reference to `_proxy_pda'
>> arch/x86_64/ia32/built-in.o:(.text+0x2650): more undefined references to
>> `_proxy_pda' follow
>> make: *** [.tmp_vmlinux1] Error 1
>>
>> I used the config file that was in my boot directory:
>>
>> /boot/config-2.6.26-1-amd64
>>
>> as my .config
>>
>> What am I doing wrong?
>>
>> Thanks,
>>
>> Steve
>>
>>
>> _______________________________________________
>> click mailing list
>> click at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>
>
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>


More information about the click mailing list