LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-13-2005, 08:47 AM   #1
webazoid
Member
 
Registered: Jun 2004
Posts: 224

Rep: Reputation: 30
help updating mdk 10.0 to kernel 2.6.11.9


Hi,

I just freshly installed mdk10.0 w/ 2.6.3 ( i think) kernel on my dell inspiron 1100 w/ 2.2 celeron, 384 mb of ram.

I tried updating the to most recent kernel from source.

from various guides, I:
decompressed it into /usr/src
su
make mrproper
make oldconfig (clicked No like 50 times after that command)
make bzImage
make modules

Sorry I forgot which step messed up but it was either at make bzImage (most likely) or MODULES where after I typed in the command, I left the computer on for 3-4 hrs and when I came back, it was still compiling so I canceled. Does it take hours to compile?

Any ideas on how to to update the kernel? I guess it could be as easy as getting 10.1 or 10.2, but I'd like to learn how to do it.

On a side note, I wanted to update the kernel since i heard 2.6.6+ was necessary to use wireless. I try ndiswrapper and it simply won't work.

I can get this far:
ndiswrapper -l gives me the name of driver/hardware detected
modprobe ndiswrapper
iwconfig

at iwconfig, it gives me something like lo, eth0, sit0 - no wireless detected. lights don't go on.

thanks.

p.s. is there a way to upgrade kernel w/ rpm?

Last edited by webazoid; 05-13-2005 at 08:57 AM.
 
Old 05-13-2005, 09:05 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Moved: This thread is more suitable in Linux - Distributions > Mandriva and has been moved accordingly to help your thread/question get the exposure it deserves.

Last edited by jtshaw; 05-13-2005 at 09:11 AM.
 
Old 05-13-2005, 09:21 AM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
there a way to update kernel throught RPM and but it's just wrong at my opinion... RH/Mandrake RPMed kernel is a big bloated generic kernel with tons of modules and stuff you won't need. Nothing worth a very small optimized kernel compiled from source.

About your update :
-Don't use "make mrproper". This clean out the kernel configuration, unless you want to start over, you usually don't need this.
-make oldconfig tries to make a default base config based on your actual kernel configuration.
- at this point, you probably want to take a look at the config to add/change some options. type "make menuconfig" (or make xconfig if you are in X). You will get a menu with tons of options. Don't panic, even the uber geek down here don't know every single options. Just go with your general feeling, it's generally safe to add too much thing, just make sure you aren't missing anything. If you are in doubt, look at the "help" dialog. With some practice you will compile very small, efficient kernels.
- You should not type make bzImage right now. Since you are compiling a 2.6 kernel (it's way easier than 2.4) just type "make all". It will build the kernel and then run make bzImage by itself. Easy.
- Once it is done (make sure there is no mistake) you have to copy the kernel image you just build in your /boot and to edit your boot loader (/boot/grub.conf or /etc/lilo.conf) to point to this new file. The kernel image is in /usr/src/linux-XXX/arch/i386/boot/bzImage. Rename it the way you want and make sure to ajust the boot loader.
Depending your boot loader configuration, you might want to copy /usr/src/linux-XXX/System.map too.
- Now, you have to type "make modules_install" to install all new modules you compiled. Once this is done you can risk a reboot.

- Ps 1 : Make sure to keep an entry in the boot loader that point to the "old" kernel, the one that was working already. You will probably need few try to get your kernel working, so you better keep a way to boot the old working one. In worst case, you can use your installation CD to boot into your system, if you broke something.
- Ps 2 : Time... Compiling a kernel take some time but I am really surprised it took you that long. It takes around 4 hours on my P166, so it should take you really less time. On my 1Ghz, it takes around 25 mins, so it,s not that bad. Note the first time you compile it will take much more time (because then it wont recompile part that don't need too).
- Ps 3: Compiling kernel from source can be hard, hazardous, annoying, long BUT it's one of the best thing you can do to learn about linux and how it manages hardwares. Plus most hardwares problems (like "My XXXX device is not working") can be solved by recompiling the kernel (instead of relying on default one). You might not see it right now but it's really something usefull that you need to learn
 
Old 05-13-2005, 03:53 PM   #4
webazoid
Member
 
Registered: Jun 2004
Posts: 224

Original Poster
Rep: Reputation: 30
hi,

thanks for your comments.

anyways, i followed ur instructions, did 'make all'...and after a whopping 5 hrs, it finished.

I then copy /usr/src/linux-XXX/arch/i386/boot/bzImage (1.5 mb) to /boot/. - note: the original boot files had name.img and were about 900kb...this one didn't have an extension.

I then copy /usr/src/linux-XXX/System.map to /boot/

I then edited lilo.conf (sorry I forgot to include a copy...dual booting xp/mdk so can't access the file) so that the first line (vmlinuz...or something like that): it had originally directed to some file w/ init*.img so i deleted that and replaced it w/ "/boot/bzImage".

I then do the 'make modules_install".

Then i reboot. It has no problem booting up, but i dunno if it's the new or old kernel?

How do i know what version of the kernel is runining?

when i tried to 'make install' ndiswrapper .12, it says it can't find the source for 2.6.3-7 kernel. looks like the new kernel wasn't running.
 
Old 05-13-2005, 06:25 PM   #5
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
sorry I forgot 2 things.

1-once you are done with lilo.conf, type "lilo". It will install the "new" lilo configuration.
Again, make sure you have an entry about your old kernel.

2-To know which kernel you a running, use "uname -a"
 
Old 05-13-2005, 06:44 PM   #6
webazoid
Member
 
Registered: Jun 2004
Posts: 224

Original Poster
Rep: Reputation: 30
well, i got it to boot fine to 2.6.11 now. thanks a bunch!

Last edited by webazoid; 05-13-2005 at 08:11 PM.
 
  


Reply



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
error updating glibc on MDK 9.x MidniteHex Linux - Software 2 07-22-2005 04:44 PM
problem updating KDE to 3.4 on MDK 10.1 Lenny420 Linux - Software 0 06-09-2005 07:18 PM
MDK 10.1 kernel from MDK 10.2 devel wasabi82 Mandriva 1 03-27-2005 05:15 PM
How to prevent MDK 10 from updating /etc/resolv.conf on every boot Ph0enix2003 Mandriva 0 06-18-2004 09:16 AM
Problems updating MDK 10.0 merixon Mandriva 1 04-08-2004 06:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:27 PM.

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
Open Source Consulting | Domain Registration