LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Kernel Upgrade - HOWTO needed (https://www.linuxquestions.org/questions/linux-general-1/kernel-upgrade-howto-needed-132758/)

DrOzz 01-09-2004 11:42 AM

try this solution

the error makes absolutely no sense to me, cause i don't see where /var/temp is coming from, but in any case, just try and see if passing them aruguments to mkintrd will work ...

or maybe it just needs the -o argument
so like
/sbin/mkinitrd -o /boot/initrd-2.6.0.img 2.6.0

but like i said i have no idea, i never seen that before, so the best you can do is try different things, and see if you can get it to work, by passing switches to mkinitrd or whatever else you can come up with ..

i am not sure, all i can say is just try different things ;-)

SILVERPENGUIN 01-09-2004 12:03 PM

Actually, anyone's help would do at this point. I'm on a time-line. :(

SILVERPENGUIN 01-09-2004 12:24 PM

Oh...there you are! ;) Thanks...I'll try that! Sorry, didn't see that it had flipped to the second page. Started to get worried that you wouldn't be on until later this afternoon.

No go! I don't know where the heck, the var came from either! :(

:cry: :cry: :cry: :D

SILVERPENGUIN 01-09-2004 12:43 PM

Where is this man thing they speak of?

Hmmmm...Sounds kinky! :D :scratch:


Also....Why doesn't the Sourceforge link in Yast work for updating? I've tried it multiple times and have always had to result to using a server from Germany.

DrOzz 01-09-2004 12:59 PM

man is a command that you type in command line .... you use to to get a man page or manual for whatever your searching for ...
when you fire up a terminal and type stuff like
man ls
man rm
man fdisk
or whatever you wish, it gives details on that command/program that you need info on, or need to know what different arguments that you can pass to the command/program..

SILVERPENGUIN 01-09-2004 01:02 PM

Oh!

It still doesn't tell me why that var/tmp thing shows up. :(

Leave it to me to have an unusual problem! It seems to be my lot in life. :jawa:

SILVERPENGUIN 01-09-2004 01:19 PM

Ok....is there another way to accomplish the same thing? Like a long version?

DrOzz 01-09-2004 01:52 PM

well when you tried both ways, one which i mentioned, and the one from the other thread that the guy used 3 different arguments, do you get the exact same error? anything different?

SILVERPENGUIN 01-09-2004 02:08 PM

Yes.....as long as I'm supose to put it where you had the -o
No, nothing different

Whitehat 01-09-2004 02:14 PM

Quote:

Originally posted by rberry88
1) download kernel
2) cp kernel.tar.gz /usr/src/
3) tar -xzvf <kernel>
4) make menuconfig
5) make dep <-- in Gentoo I use 'make all
6) make bzImage
7) make modules
8) make modules_install
9) cp /usr/src/<kernel>/arch/i386/boot/bzImage /boot/bzImage (rename bzImage if desired when copying to boot)
10) edit grub/lilo
11) reboot & cross fingers

rberry88

LOL. This is about the most exact and quick HOW-TO I have ever seen. Funny thing is, it's right on! This is exactly how I do my Kernel compiles. Only diff is that on step 4 I use "make oldconfig" after I've copied my .config file over to my new source directory.

Schweet. Oh..and I have an additional step between 7 and 8. It is "Go get a glass of wine and relax". :D

Nice work rberry88!

Peace,
Whitehat

rberry88 01-09-2004 02:31 PM

Quote:

Originally posted by Whitehat
LOL. This is about the most exact and quick HOW-TO I have ever seen. Funny thing is, it's right on! This is exactly how I do my Kernel compiles. Only diff is that on step 4 I use "make oldconfig" after I've copied my .config file over to my new source directory.

Schweet. Oh..and I have an additional step between 7 and 8. It is "Go get a glass of wine and relax". :D

Nice work rberry88!

Peace,
Whitehat

Thanks, I was scouring the web for the 1st month or two that I was using Linux and getting used to everything and basically got fed up with having to wade through pages and pages of kernel compilation docs so I streamlined it for myself. I printed it and laminated it on a 4x6 card that is stuck to my desk.

rberry88 :cool:

SILVERPENGUIN 01-09-2004 02:54 PM

Except I don't exactly know how to do nine and ten. I'm sure when I've done it once...I'll have no problem in the future. Other than that...it's more like a foreign tongue to me right now.

:newbie:

Whitehat 01-09-2004 03:08 PM

Quote:

Originally posted by SILVERPENGUIN
Except I don't exactly know how to do nine and ten. I'm sure when I've done it once...I'll have no problem in the future. Other than that...it's more like a foreign tongue to me right now.

:newbie:

9) cp /usr/src/<kernel>/arch/i386/boot/bzImage /boot/bzImage (rename bzImage if desired when copying to boot)

10) edit grub/lilo

-------------------------------------

Ok. For 9 you need to do exactly as the command says. cp is for copying.
So, it's just copying your kernel image from the /usr/src/whateverkernelyouhave/arch/i386/boot folder over to the /boot folder.

For 10. you need to use a text editor like vi, or pico (l love pico). and make sure that down at the bottom where it says something like:

image=/boot/bzImage
label=Linux
root=/dev/hda2
read-only

you need to edit the image= part so that it points to the image you just created. In your case it would probably just say image=/boot/bzImage

you also need to edit the root= part to make sure it points to your proper HD for the / (root) partition.

Check out this thread too. It's a kernel compile for Slackware 2.4.23, but you can see the part at the bottom about editing lilo and such.

http://www.linuxquestions.org/questi...threadid=49035


Peace,
Whitehat

SILVERPENGUIN 01-09-2004 03:12 PM

This is what I have in my grub.conf file.

root (hd1,1)
install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd1,1)/boot/grub/menu.lst
quit

rberry88 01-09-2004 03:30 PM

Quote:

Originally posted by SILVERPENGUIN
This is what I have in my grub.conf file.

root (hd1,1)
install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd1,1)/boot/grub/menu.lst
quit

Ouch that hurts my eyes.

Edit your /boot/grub/menu.lst file to add this:

Code:

title Linux 2.6.0
root (hdx,x)
kernel (hdx,x)/boot/what-you-named-the-kernel root=/dev/hdx ro

Replace the x's with the proper locations of your root partition.

rberry88


All times are GMT -5. The time now is 07:31 PM.