LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 02-04-2011, 04:34 AM   #1
AnushKumar
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
Question Downgrade kernel to 2.6.21


Hi all,

I need help regarding installing an older kernel on my fedora box currently running a 2.6.33 kernel (FC13).
I am in need to install an older kernel as i have to develop PCI drivers for the 2.6.21 kernel.

I tried to compile the kernel source from kernel.org but it fails at some point. Tried to fix the errors but ended up with more errors (Guess im not good at it).
Tried to patch it too, still unsuccessful compilation.

I tried to compile a 2.6.36 kernel just to make sure im doing the right steps and i succeeded without errors and worked fine. Was even able to remove the kernel 2.6.36 properly and completely once i was done.

But now i am in dire need of the 2.6.21 kernel so please suggest me a solution.

In case anyone was wondering wat errors i got when compiling the 2.6.21 kernel from kernel.org...
Im posting it here

Code:
 
HOSTCC  scripts/unifdef
scripts/unifdef.c:209: error: conflicting types for ‘getline’
/usr/include/stdio.h:673: note: previous declaration of ‘getline’ was here
make[2]: *** [scripts/unifdef] Error 1
make[1]: *** [headers_install] Error 2
make: *** [vmlinux] Error 2
Was not sure if i patched the kernel properly so tried with 2.6.21.7.
Got the same error with the 2.6.21.7 kernel.

Followed the instructions on this link to compile the kernel...
digitalhermit.com/linux/Kernel-Build-HOWTO.html
 
Old 02-04-2011, 05:33 AM   #2
prodev05
Member
 
Registered: Jul 2009
Location: Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
You are compiling version(2.6.21) source with version(2.6.36) source. Instead of compiling this. Download the exact kernel rpm and install it. Remember you should not do upgrade. You should do only install.
 
Old 02-05-2011, 12:28 AM   #3
AnushKumar
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Hey Arun,

Thanks for replying...

I managed to compile the 2.6.21 Kernel on my PC.

I didnt quite understand wat u meant by this...
Quote:
Originally Posted by prodev05 View Post
You are compiling version(2.6.21) source with version(2.6.36) source.
Just to be clear I had downloaded three kernel sources 2.6.21, 2.6.21.7 and 2.6.36
I compiled 2.6.36 with no errors whatsoever and installed it... Worked like a charm...
But when i tried to compile the 2.6.21 or 2.6.21.7 Kernels I got above errors.
In all the cases I was compiling on the default 2.6.33 PAE kernel that comes along with Fedora 13...
Besides the kernel I am compiling should not make any difference as its the GCC and GLIBC versions that cause problems when compiling (If I am right).

Anyways, I managed to clear the error by renaming the getline function to some other name where ever it was used...
I finished compiling the kernel but I am yet to install it.
I post here if I face any more problems. (Which I will )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FC6 kernel issue, how to downgrade kernel? ACDII Fedora 10 03-21-2007 09:08 AM
ACX100 TI chipset WIFI card 2.6.14 Kernel, downgrade kernel? fieldyweb Linux - Wireless Networking 1 02-11-2006 03:56 AM
Kernel Downgrade dlc2000 Linux - General 2 10-24-2005 10:42 AM
Downgrade kernel ,dual kernel boot beep_beep Linux - Software 0 08-17-2004 01:25 AM
kernel downgrade Pleun Linux - Newbie 3 12-16-2003 06:09 AM


All times are GMT -5. The time now is 01:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration