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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-04-2003, 07:58 AM
|
#1
|
LQ Newbie
Registered: Aug 2003
Posts: 12
Rep:
|
Heeelp: Redhat 9 Kernel Update2.4.20-8 to 2.4.22
I newbie in Linux, I tried to update kernel in Redhat Linux 9.0 version 2.4.20-8 to 2.4.22 with ACPI enable in my ASUS M3N. Here the following steps I did:
- I get linux-2.4.22.tar.bz2 and acpi-dsdt-initrd-patch-v0.3-2.4.22.diff
- I extract linux-2.4.22.tar.bz2 in /usr/src/linux-2.4.22 and patch it with acpi-dsdt-initrd-patch-v0.3-2.4.22.diff
- And then here are the commands I used:
# make menuconfig
Without change any other settings, I made some following changes:
# enable (y = compile with kernel, m = module, n = no/blank)
* 'Block device' section
y = Ramdisk support
y = Initial ramdisk support
* 'General Setup --> ACPI Support' section
y = ACPI support
y = Read DSDT from initrd
m = AC_Adapter
m = Battery
m = Button
m = Fan
m = Processor
m = Thermal
m = ASUS Laptop extras
# make dep
# make clean
# make bzImage
# make modules
# make modules_install
# make install
- lilo.conf automatically updated, and then I run lilo, before reboot it.
Well, everything smooth, but when it start to reboot, after few step running/initialization with new kernel, then the screen went blank and nothing happen.
Please be adviced, is there anything wrong with my steps? Any help would be appreciated
Thankz,
Kadalz
|
|
|
09-04-2003, 08:40 AM
|
#2
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
at the step where u did "make install" :
check if ur vmlinuz-xxx is under /boot.
check if ur System.map under /boot points to ur new System.map-2.4.xxx after it was to be copied (if it has been copied).
also check if bzImage was copied from arch/i386/boot" to "/boot"
check /etc/lilo.conf to see if the parameters passed are right after above two.
|
|
|
09-04-2003, 11:04 AM
|
#3
|
LQ Newbie
Registered: Aug 2003
Posts: 12
Original Poster
Rep:
|
Quote:
Originally posted by h/w
at the step where u did "make install" :
check if ur vmlinuz-xxx is under /boot.
check if ur System.map under /boot points to ur new System.map-2.4.xxx after it was to be copied (if it has been copied).
also check if bzImage was copied from arch/i386/boot" to "/boot"
check /etc/lilo.conf to see if the parameters passed are right after above two.
|
I have vmlinuz-2.4.22 under /boot.
There is System.map and System.map-2.4.22, but how do I know that System.map pointed to System.map-2.4.22? It seems the System.map didn't updated.
I have bzImage under /boot
And in lilo.conf, I have the additional lines, as follwoing:
image=/boot/vmlinuz-2.4.22
label=2.4.22
initrd=/boot/initrd-2.4.22.img
read-only
append="hdc=ide-scsi root=LABEL=/"
Any suggestions?
Kadalz
|
|
|
09-04-2003, 12:07 PM
|
#4
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
hmm, to chk if System.map is pointing to ur new one, do an 'ls -l'
im not sure if u need the initrd.
check for the izes of the files.
i remeber, when i was using rh, when the img created was realllly smaller than the images of my previous kernels - maybe sometihng went wrong someplace.
|
|
|
09-04-2003, 12:10 PM
|
#5
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
i cant think of anything else, cos i just got my kernel upgrade workin last night.
i did the same steps as u (there are no variants anyway), except for the "make install" part. i copied the files and edited lilo.conf myself instead of having it done, and gettin some error (as i had gotten earlier).
good luck.
|
|
|
09-04-2003, 12:28 PM
|
#6
|
LQ Newbie
Registered: Aug 2003
Posts: 12
Original Poster
Rep:
|
Quote:
Originally posted by h/w
i cant think of anything else, cos i just got my kernel upgrade workin last night.
i did the same steps as u (there are no variants anyway), except for the "make install" part. i copied the files and edited lilo.conf myself instead of having it done, and gettin some error (as i had gotten earlier).
good luck.
|
Could you give me step by step (in detail) on how you upgrade the kernel? Especially what did you do to make ACPI enable, bzImage being copied under /boot as it is, and what kind of modification in lilo.conf (sample of modification of lilo.conf you made)? Is there anything else which I have to do manually?
Thankz,
Kadalz
|
|
|
09-04-2003, 12:32 PM
|
#7
|
LQ Newbie
Registered: Aug 2003
Posts: 12
Original Poster
Rep:
|
Quote:
Originally posted by h/w
hmm, to chk if System.map is pointing to ur new one, do an 'ls -l'
im not sure if u need the initrd.
check for the izes of the files.
i remeber, when i was using rh, when the img created was realllly smaller than the images of my previous kernels - maybe sometihng went wrong someplace.
|
What do you mean with 'ls -l'? Isn't that just to see the folder content? Like dir command in DOS?
I tried without initrd, and ended up with the same error.
Which img do you mean? bzImage?
|
|
|
09-04-2003, 12:34 PM
|
#8
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
i think it was the initrd img which was smallee=r in size.
yes, ls -l , to see the folder contents and their sizes.
|
|
|
09-04-2003, 12:55 PM
|
#9
|
LQ Newbie
Registered: Aug 2003
Posts: 12
Original Poster
Rep:
|
Quote:
Originally posted by h/w
i think it was the initrd img which was smallee=r in size.
yes, ls -l , to see the folder contents and their sizes.
|
If I don't use make install command, then how I create initrd img? When I read the instruction manual, just do make bzImage, copy it to /boot, edit lilo.conf -- what should I put in lilo.conf?, run lilo, and reboot.
For me as newbie, this far from complete. Am I missing something?
For System.map, then how I know that it points out to the new one (one of what?), initrd? bzImage? or anything else? Should I edit it manually, and what should I put in it.
Kadalz
|
|
|
09-04-2003, 01:10 PM
|
#10
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
i wuda shown u my files, but am not on my lin partition.
try this for a guide:
http://tldp.org/HOWTO/Kernel-HOWTO/index.html
|
|
|
09-04-2003, 01:12 PM
|
#11
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
as for how to make the initrd, i think there was a command called "mkinitrd" or some?
|
|
|
All times are GMT -5. The time now is 04:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|