LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2004, 06:20 PM   #1
abbasakhtar
Member
 
Registered: Sep 2003
Posts: 89

Rep: Reputation: 15
kernel upgrade 2.4 > 2.6, how do i use old hw configuration


iv upgraded my kernel from 2.4.27 to 2.6.something

i edited my lilo.conf so i could access my old kernel and new one,

thing is in my new kernel, i can't access the net or sound card, it say somehi about compiling modules or missing modules, and iv tried to get my net drivers working, which wont load, i read the readme and they havent did any drivers for anything above 2.5 (meaning 2.4) so my question is

is there anyway for me to use my old hardware configuration on my new one 2.6 im using kernel 2.4.27 just now which gives me net access and sound is working ??
 
Old 12-26-2004, 10:19 PM   #2
whipermr5
Member
 
Registered: Dec 2004
Location: Singapore
Distribution: Fedora Core 5 Linux
Posts: 202

Rep: Reputation: 30
What's your distro? The thing is, 2.6 kernels require that you add tons of modifications to a redhat system. You should try the 2.4.28 kernel first, it really has almost all of the 2.6 kernel features.
 
Old 12-27-2004, 07:40 AM   #3
abbasakhtar
Member
 
Registered: Sep 2003
Posts: 89

Original Poster
Rep: Reputation: 15
well, im running 2.4.27 just now, how am i to upgrade to 2.4.28 and keep my original hardware configuration isnt there a way to just uhat's your distro? The thing is, 2.6 kernels require that you add tons of modifications to a redhat system. You should try the 2.4.28 kernel first, it really has almost all of the 2.6 kernpdate the kernel ? and let the hardware work as its working in 2.4.27 ??

im using knoppix hard drive debian multi user install, im not even sure how to use apt-get properly, someone guided me through it on irc (thanku whoever u r, my nickname was free86) but when i login to kernel 2.6 no hardware works, my sound doesnt work, my internet card wont be recognized,
 
Old 12-27-2004, 07:49 AM   #4
whipermr5
Member
 
Registered: Dec 2004
Location: Singapore
Distribution: Fedora Core 5 Linux
Posts: 202

Rep: Reputation: 30
How did you install the new kernel? If you got it and installed from rpm, than i don't know what your problem is, but if you compiled from source, you can boot back to the old kernel, and than go into /usr/src/linux-$(uname -r), do make mrproper, and this step is important: cp /boot/config-$(uname -r) ./.config . This copies the config from your old kernel to the new kernel config. Then, do a make oldconfig and answer the questions. These questions are to configure the new kernel on things that weren't included in the previous kernel, since we are using an old kernel's config. After that, do a make bzImage && make modules && make modules_install && make install . That should do the trick. The next time you boot, you should see the new kernel in your bootloader.
 
Old 12-27-2004, 10:06 AM   #5
abbasakhtar
Member
 
Registered: Sep 2003
Posts: 89

Original Poster
Rep: Reputation: 15
ok so













boot into kernel 2.4.27

cd /usr/src/linux-2.4.27
make mrproper


the next step, is that done in the new kernel (2.6)

cd /usr/src/linux-2.6.6
cp /boot/config-2.4.27 ./.config
make oldconfig
bzImage && make modules && make modules_install && make install

this correct ??
 
Old 12-27-2004, 09:59 PM   #6
whipermr5
Member
 
Registered: Dec 2004
Location: Singapore
Distribution: Fedora Core 5 Linux
Posts: 202

Rep: Reputation: 30
Yes. It should work. Good luck !
 
  


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
What first upgrade kernel or upgrade slack 10.0 to current Kelean Slackware 7 01-16-2005 06:54 PM
A configuration to make Debian upgrade it self regularly? brynjarh Debian 1 01-15-2005 06:16 PM
How to upgrade kernel but preserve configuration? Avatar Mandriva 8 12-30-2004 06:33 AM
New FAQ topic: Should I edit my kernel configuration?/Should I build a custom kernel? chort *BSD 10 09-10-2004 11:15 PM
Preserving Configuration thru Version Upgrade stevho Linux - General 0 01-01-2002 05:28 AM


All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration