LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Heeelp: Redhat 9 Kernel Update2.4.20-8 to 2.4.22 (http://www.linuxquestions.org/questions/linux-newbie-8/heeelp-redhat-9-kernel-update2-4-20-8-to-2-4-22-a-89156/)

kadalz 09-04-2003 07:58 AM

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

h/w 09-04-2003 08:40 AM

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.

kadalz 09-04-2003 11:04 AM

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

h/w 09-04-2003 12:07 PM

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.

h/w 09-04-2003 12:10 PM

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.

kadalz 09-04-2003 12:28 PM

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

kadalz 09-04-2003 12:32 PM

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?

h/w 09-04-2003 12:34 PM

i think it was the initrd img which was smallee=r in size.

yes, ls -l , to see the folder contents and their sizes.

kadalz 09-04-2003 12:55 PM

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

h/w 09-04-2003 01:10 PM

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

h/w 09-04-2003 01:12 PM

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 09:07 AM.