LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-18-2002, 10:55 PM   #1
minor
Member
 
Registered: May 2001
Location: HK
Distribution: Mandrake
Posts: 68

Rep: Reputation: 15
Unhappy hang after kernel upgrade


Hi everybody,

My Linux box hang after kernel upgrade! What can I work fine with 2.4.17 kernal? I would like to upgrade kernel to 2.4.17 and using MOSIX? My procedure are as following

1. patch -p0 < /root/MOSIX-1.5.7/patches.2.4.13
2. make menuconfig( I just set the MOSIX part
3. make dep
4. make clean
5. make bzImage
6. copy bzImage to /boot/
7. config lilo.conf

image= /boot/bzImage
label= Linux_2.4.17
root= /dev/hda1

8. lilo
9. reboot

After reboot, I choose the new kernal to run and reult is
"Loading Linux_2.4.17.............."

What wrong occur in my upgrading? Did I need do more step? What is the meaning of "initrd"? It is because I found that word in my lilo.conf and the statement is "initrd=/boot/initrd.suse"!



:smash:
 
Old 03-18-2002, 11:10 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
initrd can be made with mkinitrd $filename $version

replace $filename with the filename you want for the image

replace $version with the version of the kernel

like this

mkinitrd /boot/initrd-2.4.17.img 2.4.17


it will look in /lib/modules for the 2.4.17 folder so if you did not run


make modules
make modules_install

it will not work
 
Old 03-19-2002, 10:53 PM   #3
minor
Member
 
Registered: May 2001
Location: HK
Distribution: Mandrake
Posts: 68

Original Poster
Rep: Reputation: 15
Unhappy I can't find mkinitrd in my linux box

Thanks DavidPhillips,

I would like to do kernel image, and I can't mkinitrd in /sbin. But I checked one command mk_initrd and I try this. But the error came from this:

stor:/boot # mk_initrd /boot/initrd-2.4.17.img 2.4.17
ls: : No such file or directory
/sbin/mk_initrd: [: : integer expression expected
root device is LVM
usage: mk_initrd [root_dir]

What problem came from? It make me very confuse!

Thanks for your help!
 
Old 03-20-2002, 09:04 AM   #4
neeyo
LQ Newbie
 
Registered: Oct 2001
Location: Some hole I dug.
Distribution: Gentoo
Posts: 22

Rep: Reputation: 15
Don't forget that all those make param's can go on one line... saves having to wait until step 2 is done to do step 3, and so forth.

i.e.,

make dep clean bzImage modules modules_install <enter>

Then just sit back and ... pray.
 
Old 03-20-2002, 07:03 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Quote:
make dep clean bzImage modules modules_install <enter>
you can but makes it harder to check for errors.



I don't have mk_initrd, the args are probably different

try mk_initrd --help or man mk_initrd


maybe it just needs to know where /boot is.

It will probably create a file named initrd in /boot using the kernel you have linked to /boot/vmlinuz

you could always rename the image

Last edited by DavidPhillips; 03-20-2002 at 07:04 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
booting the kernel *hang* ANewbie Linux - Newbie 7 12-07-2005 01:00 AM
Help!!! hang up when i upgrade kernel harlemno1 Linux - Newbie 1 03-07-2005 10:32 AM
booting kernel hang mrweirdo Fedora 4 04-27-2004 10:23 PM
please help with a kernel hang p4yb4ck Linux - Newbie 2 02-14-2004 01:16 PM
kernel hang!!! p4yb4ck Red Hat 1 02-04-2004 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:31 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
Open Source Consulting | Domain Registration