unable to boot from lfs 6.2 after kernel compilation
dear list,
- i have successfully compiled all the modules as mentioned in lfs 6.2 book. - the kernel is successfully compiled with few warnings. - i have the following partitions hda1 - fc3 host hda2 - swap hda4 - extended hd5 - lfs hd6 - /usr (lfs target /usr) - i have modified the fedora grub.conf as following root (hd0,0) kernel /vmlinuz(fedora 3) initrd /initrd.img root (hd0, 4) kernel /lfskernel-2.6.16.27 root=/dev/hda5 - i have no clue why my lfs would not boot. in the boot up process the kernel is unable to uncompress the bzImage (which is previously produced by the compilation of source kernel). as mentioned by the lfs book, i have copied this bzImage into the lfs directory /boot. - after failing to uncompress the bzImage of the target lfs system, my machine reboots and again grub appears. i dont have any error message displayed like kernel panic as it seems I am struck in a too early starge. please SOS. thanks in anticipation. ----------- host FC3 vga - S3 chrome monitor - generic 600 x 800 hdd - 80 gb seagate 512 mb ram |
Is it possible that the decompression tools reside in /usr/bin (which would not be available so early in a boot) as opposed to /bin?
|
unable to boot from lfs 6.2 after kernel compilation
dear daws,
many thanks for your help. as suggested i have copied bzunzip from /bin to /usr/bin. still my kernel never seems to uncompress. besides i am not sure about the problem, as its based on my assumption. could there be any other reason besides this. any pointers. thanks once again. best regards |
Hmm ok.
You say Quote:
so the kernel line would become: Code:
kernel (hd0,4)/boot/lfskernel-2.6.16.27 root=/dev/hda5 |
unable to boot from lfs 6.2 after kernel compilation
dear daws,
as mentioned in the beginning of this thread i have pointed the full path in my /boot/grub/menu.lst could there be anything else, i have to check. kindly advise. best regards |
Quote:
|
This is true, I didn't notice that. But I think something else is going on. grub seems to find the kernel alright, otherwise it would be a different error, not "unable to decompress".
Oh I found something else. Apparently all kernels are compressed with gzip, bzImage does not mean bzip2 compressed (apparently it gets put into "High memory" or something, went straight over my head anyway). So make sure all gzip related tools are in /bin not /usr/bin. Code:
mv -v /usr/bin/gzip /bin |
unable to boot from lfs 6.2 after kernel compilation
To
Vitalie Ciubotaru - For your kind attention to this thread Daws - For your patience and continous attention Together sorry for this long message Why we want LFS --------------- - We need our own custom kernel without distribution specific images, logo and availablity of OS commands - We have a specific slow but new hardware for mass production - the hardware is 8" chinese b/w monitor, SChrome VIA Vga Card, VIA PC 1500 barebone problem in reproducing the code ------------------------------- my fc3 vga is a little bit shaky making the system hang if too many scrolling is done (in firefox, etc and whatever), making me impossible to cut and paste my menu.lst or grub.conf. what i have tried to do is reproduce the code here. forgive me if they are not exact. (dear vitalie, in my menu.lst there is no white space, its only in my mail. sorry for the not typing exactly as it appeared.) what we did differently other than what is mentioned in lfs book --------------------------------------------------------------- - i have two seperate partitions one for / for target lfs in hda5 and another for /usr in hda6. hd5 and hd6 resides in extended partition hd4. hd1 for fc3 and hd2 for swap. hd3 is not represented by any partition. anything looked strange ? ------------------------- - except kernel compilation which had few warnings there was no other noticable error or warning for cause of concern during the entire lfs unpack, configure and make process. - kernel was recompiled after removing the source/linux-2.6.16.27 directory completely after unsuccessful booting and rebooting of lfs output during boot process (not exact representation) ----------------------------------------------------- Quote:
best regards |
Dear Daws,
In a hurry to finish the message, i have forgotten to mention that I have done as what you have said. Quote:
Quote:
Quote:
gzip exists gzip exists gzip exists the last one successfully created gunzip link. Sorry for my impatience once again. |
Quote:
I understand what you mean now, where the system hangs at Uncompressing kernel ... The problem may lie in the configuration of the kernel. It is possible that you have forgotten to compile in support for something key in the system. Maybe the filesystem (which should not be a module), or support for the chipset, or you have enabled some experimental code (what I did) by accident... The list goes on. I'm afraid you have to go through the configuration again, recompile and hopefully, after some trial and error, you will find what went wrong. Sorry I couldn't be more specific. Hope it works out... |
Quote:
I understand what you mean now, where the system hangs at Quote:
Quote:
i have noted some warnings in my compilation and again this is not an exact representation of the output. fs/bio.c - in function bio_alloc_bioset warning idx may be used uninitialized in this function fs/eventpoll.c - in function ............. fs/isofs/namei.c fs/nfsd/nfsctl.c fs/udf/balloc.c fs/udf/super.c ipc/msg.c ip/sem.c sound/core/oss/route.c i368/math-enu/fpu_entry.c i have an interesting output when i compiled bzimage and module seperately. the output is Quote:
Quote:
Reverting ... after a diff of .config Best Regards |
Post verbatim (and in [[code] tags) your grub.lst, output of 'ls -l /boot' on hda5, output of 'fdisk -l /dev/hda', and your kernel configuration.
|
Dear Daws + List,
I have recompiled and reduced my warnings during compile to a bare minimum. I have read in the redhat manual that certain older bios will not support booting of linux if the hdd cylider is above 1024. So i have backed up the lfs to a new hdd (hdc) in the beginning cylinder. however, i am unable to boot as my grub is not able to find the stage1 located in /boot/grub/ i entered the chroot environment and my grub output is below when i type setup (hd1,0). Code:
checking if "/boot/grub/stage1" exists ... no any pointers. |
Run
strace -o log grub , do the same things and post contents of file log. |
OK this is getting a bit beyond my ability now, all I could offer is guesses. However I do suggest that you ask a mod nicely to move this thread (maybe rename it too) to a different forum, maybe Linux - Kernel or Linux - General. Both forums receive more traffic than the LFS forum and perhaps regulars there will be able to help.
Quote:
PS. raskin seems to know what he is talking about so it would be in your best interests to follow his advice and post the infomation he and others request if you can. Good Luck. I hope you get it sorted. |
All times are GMT -5. The time now is 07:57 AM. |