LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   kernel upgrade 2.4 > 2.6, how do i use old hw configuration (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-upgrade-2-4-2-6-how-do-i-use-old-hw-configuration-270595/)

abbasakhtar 12-26-2004 06:20 PM

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 ??

whipermr5 12-26-2004 10:19 PM

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.

abbasakhtar 12-27-2004 07:40 AM

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,

whipermr5 12-27-2004 07:49 AM

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.

abbasakhtar 12-27-2004 10:06 AM

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 ??

whipermr5 12-27-2004 09:59 PM

Yes. It should work. Good luck ! :)


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