Re: compiling older kernel on newer machine

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

 



Hi Anuz,

It works perfectly fine for me. My local machine looks like:

# cat /etc/redhat-release
Fedora release 11 (Leonidas)
# uname -a
Linux kratos 2.6.30.9-96.fc11.i686.PAE #1 SMP Tue Nov 3 23:41:33 EST
2009 i686 i686 i386 GNU/Linux

I have 2.6.22 kernel source on this machine
I did:
# make mrproper
# make headers_check
# make INSTALL_HDR_PATH=dest headers_install

All steps work fine. Can you please provide the error log that you are
getting? If you are getting an error "scripts/unifdef.c:209: error:
conflicting types for 'getline'", you need to apply the following
patch:
http://patchwork.kernel.org/patch/11166/

This will fix the issue.
HTH.

Have fun,
Regards
Mayur

On Tue, Dec 29, 2009 at 1:25 PM, Anuz Pratap Singh Tomar
<chambilkethakur@xxxxxxxxx> wrote:
> Hi all,
> in order to build a cross toolchain, as a first step I was trying to
> compile kernel headers to be installed on my local machine.
> I have chosen an older kernel 2.622, but my machine has native kernel
> 2.6.29 and hence compilation fails due to incompatible headers.
>
> I know, it always recommended to use latest kernel, but _IF_ i want to
> compile an older kernel, I need to install headers for the same, so I
> did this:
> #make arch=i386 headers_check
>
> but even to compile this, i need corresponding headers.
> What is way around this, in order to compile older kernels on new
> native machine.
>
> Regards
> Anuz
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux