Re: Grub Hangs
Success! Grub no longer hangs. I reformatted the hard disk, installed Vector Linux 5.9 Light, ran zcat on /proc/config.gz, copied the resulting file to a USB flash drive formatted with the ext3 file system, reformatted the hard disk, and redid the LFS project (I took the opportunity to write some scripts to automate the process). When I reached Chapter 8.3 (Linux-2.6.16.27, which is actually Linux-2.6.16.38), I copied the configuration file from the USB stick to /usr/src/linux/.config and, at the make menuconfig step, chose from the kernel configuration menu the Load an Alternate Configuration File option. I still do not what caused Grub to hang, but compiling the kernel with the known-good configuration file solved the problem. Thank you for all your help. Edward Ken Moffat wrote: On Tue, Mar 11, 2008 at 10:15:59AM -0600, Wehner y Asociados wrote: Ken, I forgot to mention that I'm working with the Live CD; I don't have a host system. I've been thinking that perhaps my best option is to start over again. (That's not discouraging; I consider it part of the learning experience.) I could: I'm reluctant to recommend that, because 6.3 has been out for some little time, so I conclude that building on your machine is very slow. That doesn't surprise me. So, if you can preserve what you have, all well and good. 1. Install Vector Linux 5.8 Standard, which is the distro that has best worked on my machine. 2. Run zcat on /proc/config.gz to obtain a known-good config file. You assume they build the kernel with the option to save the config in /proc/config.gz. Maybe they do, maybe they don't. The previous way was to save a config in a file somewhere. A quick attempt to see what is available suggests they have been hacked, and only their forums are currently available. 3. Copy the config file to a USB memory stick. [This, because the CD-ROM will be tied up with the Live CD. (My USB memory stick worked flawlessly with LFS 6.2.)] 4. Uninstall Vector Linux and start the LFS project anew, perhaps with Ver. 6.3, this time. (I could go the host system route, but prefer the Live CD method.) I think building from a host which has everything on the disk instead of the CD might be slightly less slow. OTOH, old machines had tiny disks. 5. When I reach the kernel compilation step, copy the config file from the USB stick to, for example, /usr/src/linux/ and compile by running “make oldconfig,” as I learned from you. Is it possible to back up what I have done so far to a USB memory stick? (The CD-ROM is not only tied up with the Live CD, it is read-only, so the USB stick is my only storage option.) If this is possible, I might even be able to rescue my present 6.2 project. Probably. If the kernel understands the filesystem (vfat, I suppose) just mount it somewhere and tar up the filesystem to it - vfat lacks permissions and might have problems with similar-named files (longer than 8.3, but identical in the first 11 or whatever characters), but wrapped in a tarball it will only be the tarball name that can be damaged. If the kernel doesn't, I suppose you could format the stick for e2fs. Also consider what Wit suggested, if you are able. ĸen -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub hangs without error message on mac mini
On Monday, 28. April 2008, 22:21, Jeremy Huntwork (as JH) wrote: JH: Andreas, you may want to try to track down what differences there are JH: between Ubuntu's grub and what LFS installs. Ok, I patched grub with the files from Ubuntu, didn't help. So I bzipped all my files, installed Ubuntu, deleted all Ubuntu but grub and bunzipped my files back to the harddisk and everything is working now. But I feel a bit uneasy because I'll be lost, I have have to fix something on the mac mini. Thanks, Andreas -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub hangs without error message on mac mini
On Monday, 28. April 2008, 23:39, [EMAIL PROTECTED] (as ) wrote: : Just to make sure, I installed ubuntu (7.04) on the very same : computer (they use grub too) and the system starts, without problem. : So the Mac Mini does start some Linux with grub, it's just my : installation. I have a MacBook running with LFS and grub, I think : this is some similar hardware and there isn't a problem either. : : : So, why is grub hanging there (I rebooted after 10 minutes)? What : might I do to solve the problem? What is grub waiting for? As I have to re-install the boot loader anyway, has somebody some information on grub2? All I saw, grub2 doesn't have the same syntax as grub legacy. There is a converter file for my menu file but what commands do I have to use to load grub into MBR? Thanks, Andreas -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub hangs without error message on mac mini
I've just installed LFS SVN-20080423 on a new Mac Mini (Intel) but the computer doesn't start (no OSX, only one partition for Linux). All I see is: GRUB Loading stage1.5. GRUB loading, please wait... There is no error message, nothing. I'm a little bit puzzled, as this is not the first LFS system I install, but the first time I don't know what to do. I use grub-0.97 with the disk_geometry and the 256byte_inode patches from the development page. The partition to boot from is /dev/sda1 and in my grub menu is default 0 timeout 10 title LFS root (hd0,0) kernel /boot/lfskernel root=/dev/sda1 The file does exist and I installed grub in the grub shell with root (hd0,0) and setup (hd0). Just to make sure, I installed ubuntu (7.04) on the very same computer (they use grub too) and the system starts, without problem. So the Mac Mini does start some Linux with grub, it's just my installation. I have a MacBook running with LFS and grub, I think this is some similar hardware and there isn't a problem either. So, why is grub hanging there (I rebooted after 10 minutes)? What might I do to solve the problem? What is grub waiting for? Thanks for any help, Andreas Just a thought - have you copied over to the /boot/grub/ directory the correct 1.5 file in relation to the file system that you are using. They are all file system specific. Richard Melville -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub hangs without error message on mac mini
On Tuesday, 29. April 2008, 10:38, Richard Melville (as RM) wrote: RM: Just to make sure, I installed ubuntu (7.04) on the very same RM: computer (they use grub too) and the system starts, without RM: problem. So the Mac Mini does start some Linux with grub, it's RM: just my installation. I have a MacBook running with LFS and grub, RM: I think this is some similar hardware and there isn't a problem RM: either. RM: RM: Just a thought - have you copied over to the /boot/grub/ directory RM: the correct 1.5 file in relation to the file system that you are RM: using. They are all file system specific. Yes, I copied stage1 and 2 and the stage1_5 for ext2. And just to be sure, I copied all the other files as well. The devices.map file seems correct and the kernel file in the menu is available at the indicated location. Thanks, Andreas -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
grub hangs without error message on mac mini
Hi I've just installed LFS SVN-20080423 on a new Mac Mini (Intel) but the computer doesn't start (no OSX, only one partition for Linux). All I see is: GRUB Loading stage1.5. GRUB loading, please wait... There is no error message, nothing. I'm a little bit puzzled, as this is not the first LFS system I install, but the first time I don't know what to do. I use grub-0.97 with the disk_geometry and the 256byte_inode patches from the development page. The partition to boot from is /dev/sda1 and in my grub menu is default 0 timeout 10 title LFS root (hd0,0) kernel /boot/lfskernel root=/dev/sda1 The file does exist and I installed grub in the grub shell with root (hd0,0) and setup (hd0). Just to make sure, I installed ubuntu (7.04) on the very same computer (they use grub too) and the system starts, without problem. So the Mac Mini does start some Linux with grub, it's just my installation. I have a MacBook running with LFS and grub, I think this is some similar hardware and there isn't a problem either. So, why is grub hanging there (I rebooted after 10 minutes)? What might I do to solve the problem? What is grub waiting for? Thanks for any help, Andreas -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
RE: grub hangs without error message on mac mini
The file does exist and I installed grub in the grub shell with root (hd0,0) and setup (hd0). I just looked the script I mentioned up. To achieve the same effect using manual grub instructions, use : grub --no-floppy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
RE: grub hangs without error message on mac mini
Hi I've just installed LFS SVN-20080423 on a new Mac Mini (Intel) but the computer doesn't start (no OSX, only one partition for Linux). All I see is: GRUB Loading stage1.5. GRUB loading, please wait... There is no error message, nothing. I'm a little bit puzzled, as this is not the first LFS system I install, but the first time I don't know what to do. I use grub-0.97 with the disk_geometry and the 256byte_inode patches from the development page. The partition to boot from is /dev/sda1 and in my grub menu is default 0 timeout 10 title LFS root (hd0,0) kernel /boot/lfskernel root=/dev/sda1 The file does exist and I installed grub in the grub shell with root (hd0,0) and setup (hd0). Just to make sure, I installed ubuntu (7.04) on the very same computer (they use grub too) and the system starts, without problem. So the Mac Mini does start some Linux with grub, it's just my installation. I have a MacBook running with LFS and grub, I think this is some similar hardware and there isn't a problem either. So, why is grub hanging there (I rebooted after 10 minutes)? What might I do to solve the problem? What is grub waiting for? Thanks for any help, Andreas -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page When you installed the bootsector, did you specify --no-floppy? I forget how LFS does it, but in Gentoo, I use the command : grub-install --no-floppy /dev/sda I don't know if that script works in LFS, but it's worth a shot... Also, how did you create your mtab? I use: grep -v rootfs /proc/mounts /etc/mtab from a chroot. Run this before you re-install your grub bootsector. Also, did you compile the OS for the correct arch? How did you partition your hard drive? Is the whole OS on /dev/sda1, or is the root filesystem on another partition (i.e. is /dev/sda1 mounted on /boot?) -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub hangs without error message on mac mini
Does GRUB work with Open Firmware? The Mac Mini may be Intel-based, but it doesn't have a PC BIOS (which is what you would normally use with GRUB). It uses Open Firmware. I would think that you would need to use yaboot. - Jon On Apr 28, 2008, at 3:39 PM, [EMAIL PROTECTED] wrote: Hi I've just installed LFS SVN-20080423 on a new Mac Mini (Intel) but the computer doesn't start (no OSX, only one partition for Linux). All I see is: GRUB Loading stage1.5. GRUB loading, please wait... There is no error message, nothing. I'm a little bit puzzled, as this is not the first LFS system I install, but the first time I don't know what to do. I use grub-0.97 with the disk_geometry and the 256byte_inode patches from the development page. The partition to boot from is /dev/sda1 and in my grub menu is default 0 timeout 10 title LFS root (hd0,0) kernel /boot/lfskernel root=/dev/sda1 The file does exist and I installed grub in the grub shell with root (hd0,0) and setup (hd0). Just to make sure, I installed ubuntu (7.04) on the very same computer (they use grub too) and the system starts, without problem. So the Mac Mini does start some Linux with grub, it's just my installation. I have a MacBook running with LFS and grub, I think this is some similar hardware and there isn't a problem either. So, why is grub hanging there (I rebooted after 10 minutes)? What might I do to solve the problem? What is grub waiting for? Thanks for any help, Andreas -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub hangs without error message on mac mini
Jon Fullmer wrote: Does GRUB work with Open Firmware? The Mac Mini may be Intel-based, but it doesn't have a PC BIOS (which is what you would normally use with GRUB). It uses Open Firmware. I would think that you would need to use yaboot. Careful what 'facts' you spread around here. With the switch to Intel machines, Apple also changed their firmware and boot manager. If your mac is intel it uses EFI, not Open Firmware. Yaboot is not the answer. Also note that he already tested grub on the machine using ubuntu and claims that it does work with their version. Andreas, you may want to try to track down what differences there are between Ubuntu's grub and what LFS installs. Or, you could consider using Lilo instead. :) I use Lilo on my Intel macs (mostly because I build a 64-bit system) and it works great. Also, if you ever feel like dual (or triple booting) your mac with OS X check out http://refit.sourceforge.net. It's a really useful tool. -- JH -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub hangs without error message on mac mini
Jeremy, thanks for the correction. I use LFS on a lot of Macs, but none that new. ;-) - Jon On Apr 28, 2008, at 8:21 PM, Jeremy Huntwork wrote: Jon Fullmer wrote: Does GRUB work with Open Firmware? The Mac Mini may be Intel-based, but it doesn't have a PC BIOS (which is what you would normally use with GRUB). It uses Open Firmware. I would think that you would need to use yaboot. Careful what 'facts' you spread around here. With the switch to Intel machines, Apple also changed their firmware and boot manager. If your mac is intel it uses EFI, not Open Firmware. Yaboot is not the answer. Also note that he already tested grub on the machine using ubuntu and claims that it does work with their version. Andreas, you may want to try to track down what differences there are between Ubuntu's grub and what LFS installs. Or, you could consider using Lilo instead. :) I use Lilo on my Intel macs (mostly because I build a 64-bit system) and it works great. Also, if you ever feel like dual (or triple booting) your mac with OS X check out http://refit.sourceforge.net. It's a really useful tool. -- JH -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub hangs without error message on mac mini
Jon Fullmer wrote: Jeremy, thanks for the correction. I use LFS on a lot of Macs, but none that new. ;-) No problem. Sorry if it sounded gruff. It's been a wet rainy day today and I haven't been feeling well. I take it you use LFS on PowerPCs then? More help testing the JH branch which includes support for PowerPC would be helpful. (http://www.linuxfromscratch.org/~jhuntwork/lfs-JH/) Also, I need to get a yaboot and lilo section into that branch. -- JH -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub hangs without error message on mac mini
On Monday, 28. April 2008, 22:21, Jeremy Huntwork (as JH) wrote: JH: Careful what 'facts' you spread around here. With the switch to JH: Intel machines, Apple also changed their firmware and boot manager. JH: If your mac is intel it uses EFI, not Open Firmware. Yaboot is not JH: the answer. I have an older Mac mini with a G4 processor. This boots with yaboot. But as you mention, the new Intel should boot with grub. JH: Also note that he already tested grub on the machine using ubuntu JH: and claims that it does work with their version. I saw it with my own eyes :-) JH: Andreas, you may want to try to track down what differences there JH: are between Ubuntu's grub and what LFS installs. Or, you could JH: consider using Lilo instead. :) I use Lilo on my Intel macs (mostly JH: because I build a 64-bit system) and it works great. If I don't find an answer within reasonable time, I'll try it. As far as I remember from earlier times, Lilo has to be reinstalled after each Kernel update, is this still the case? JH: Also, if you ever feel like dual (or triple booting) your mac with JH: OS X check out http://refit.sourceforge.net. It's a really useful JH: tool. I already tried rEFIt, just to make sure, but I couldn't use it, even though I can't remember the reason anymore. And no, I don't need dual boot. Thanks, I'll try Lilo if everything else fails. Andreas -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub hangs without error message on mac mini
On Monday, 28. April 2008, 19:22, Jon Fullmer (as JF) wrote: JF: Does GRUB work with Open Firmware? The Mac Mini may be Intel-based, JF: but it doesn't have a PC BIOS (which is what you would normally use JF: with GRUB). It uses Open Firmware. I would think that you would JF: need to use yaboot. - I use grub on my MacBook (Santa Rosa) without problem - Ubuntu boots with grub on the very same Mac mini Thanks anyway, Andreas -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Grub Hangs
On Mon, Mar 10, 2008 at 01:40:47PM +, Richard Melville wrote: Why not just use the latest stable kernel? I'm using 2.6.24 with LFS 6.2 and it works well. I do so hope you mean 2.6.24.2 or greater. OK, not everyone has untrusted users, but why build something with a known vulnerability. OK, I know that the latest stable was .3 last time I looked, but that fails headers_check because of a bogus change. Apart from regressions between kernel versions, particularly on less-common equipment, there is also the need to update a working config. Somewhere after 2.6.16, the IDE config details changed (people using libata can refer to /dev/sda instead of /dev/hda) which can make it interesting when you want to be able to boot both old and new kernels (typically, mount by label - still need to pass the correct root= in the bootargs). In general, I totally agree that people should update to a newer stable kernel, but until they have a config which works, it probably isn't the most productive thing to attempt. Even then, it can sometimes go wrong (new options get wrongly used/ignored, or there are new regressions). ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Grub Hangs
Ken Moffat wrote: On Mon, Mar 10, 2008 at 01:40:47PM +, Richard Melville wrote: Why not just use the latest stable kernel? I'm using 2.6.24 with LFS 6.2 and it works well. I do so hope you mean 2.6.24.2 or greater. OK, not everyone has untrusted users, but why build something with a known vulnerability. OK, I know that the latest stable was .3 last time I looked, but that fails headers_check because of a bogus change. Apart from regressions between kernel versions, particularly on less-common equipment, there is also the need to update a working config. Somewhere after 2.6.16, the IDE config details changed (people using libata can refer to /dev/sda instead of /dev/hda) which can make it interesting when you want to be able to boot both old and new kernels (typically, mount by label - still need to pass the correct root= in the bootargs). In general, I totally agree that people should update to a newer stable kernel, but until they have a config which works, it probably isn't the most productive thing to attempt. Even then, it can sometimes go wrong (new options get wrongly used/ignored, or there are new regressions). ĸen Ken, I forgot to mention that I'm working with the Live CD; I don't have a host system. I've been thinking that perhaps my best option is to start over again. (That's not discouraging; I consider it part of the learning experience.) I could: 1. Install Vector Linux 5.8 Standard, which is the distro that has best worked on my machine. 2. Run zcat on /proc/config.gz to obtain a known-good config file. 3. Copy the config file to a USB memory stick. [This, because the CD-ROM will be tied up with the Live CD. (My USB memory stick worked flawlessly with LFS 6.2.)] 4. Uninstall Vector Linux and start the LFS project anew, perhaps with Ver. 6.3, this time. (I could go the host system route, but prefer the Live CD method.) 5. When I reach the kernel compilation step, copy the config file from the USB stick to, for example, /usr/src/linux/ and compile by running “make oldconfig,” as I learned from you. Is it possible to back up what I have done so far to a USB memory stick? (The CD-ROM is not only tied up with the Live CD, it is read-only, so the USB stick is my only storage option.) If this is possible, I might even be able to rescue my present 6.2 project. Thank you Edward -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Grub Hangs
Wehner y Asociados wrote: Ken Moffat wrote: On Mon, Mar 10, 2008 at 01:40:47PM +, Richard Melville wrote: snip Is it possible to back up what I have done so far to a USB memory stick? (The CD-ROM is not only tied up with the Live CD, it is read-only, so the USB stick is my only storage option.) If this is possible, I might even be able to rescue my present 6.2 project. WAIT! Memory stick is *not* your only option. Save what you have done in another partition on the hard disk, while running from the Live CD. Presuming the your HD is *not* full, you can re-partition, if you need to, chopping some off the end of the partition and using the resize2fs utility to shrink the file system *before* modifying the partition. Then add the new partition, mke2fs on it, copy stuff over and voila! Thank you Edward HTH -- Wit -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Grub Hangs
Ken Moffat wrote: On Tue, Mar 11, 2008 at 10:15:59AM -0600, Wehner y Asociados wrote: Ken, I forgot to mention that I'm working with the Live CD; I don't have a host system. I've been thinking that perhaps my best option is to start over again. (That's not discouraging; I consider it part of the learning experience.) I could: I'm reluctant to recommend that, because 6.3 has been out for some little time, so I conclude that building on your machine is very slow. That doesn't surprise me. So, if you can preserve what you have, all well and good. 1. Install Vector Linux 5.8 Standard, which is the distro that has best worked on my machine. 2. Run zcat on /proc/config.gz to obtain a known-good config file. You assume they build the kernel with the option to save the config in /proc/config.gz. Maybe they do, maybe they don't. The previous way was to save a config in a file somewhere. A quick attempt to see what is available suggests they have been hacked, and only their forums are currently available. 3. Copy the config file to a USB memory stick. [This, because the CD-ROM will be tied up with the Live CD. (My USB memory stick worked flawlessly with LFS 6.2.)] 4. Uninstall Vector Linux and start the LFS project anew, perhaps with Ver. 6.3, this time. (I could go the host system route, but prefer the Live CD method.) I think building from a host which has everything on the disk instead of the CD might be slightly less slow. OTOH, old machines had tiny disks. 5. When I reach the kernel compilation step, copy the config file from the USB stick to, for example, /usr/src/linux/ and compile by running “make oldconfig,” as I learned from you. Is it possible to back up what I have done so far to a USB memory stick? (The CD-ROM is not only tied up with the Live CD, it is read-only, so the USB stick is my only storage option.) If this is possible, I might even be able to rescue my present 6.2 project. Probably. If the kernel understands the filesystem (vfat, I suppose) just mount it somewhere and tar up the filesystem to it - vfat lacks permissions and might have problems with similar-named files (longer than 8.3, but identical in the first 11 or whatever characters), but wrapped in a tarball it will only be the tarball name that can be damaged. If the kernel doesn't, I suppose you could format the stick for e2fs. Also consider what Wit suggested, if you are able. ĸen Thank you Ken and Wit for your help and suggestions. You have offered several avenues for me to explore and learn from. I hope to have good news to relay some time soon. Edward -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Grub Hangs
On Sun, Mar 09, 2008 at 10:53:09PM -0600, Wehner y Asociados wrote: Thank you Ken and Jeremy for your help. 1. When Grub hangs, the screen freezes. None of the keys, including PgUp, let me scroll up. 2. No, I don't have a .config file for the machine. (I didn't know what you meant by .config, zcat, /proc/congif.gz and make oldconfig. After doing my homework, I have now learned how to configure the kernel using an old configuration file. I also noticed along the way that my kernel was set for an Athlon processor. I recompiled for Pentium MMX, but the problem persists, so tweaking does indeed seem tangential to it.) At least you are now one step nearer (it's pretty much guaranteed to oops on an early pentium if you optimise it for an Athlon or anything else newer than what is installed). If you don't have a known-good config, what host system did you use to build LFS ? Can you use that to derive a config which works ? Distro kernels often have initrds or similar - you need to build-in (not modules) everything which is needed to boot (particularly, filesystems and the controllers for your disk/CD (and floppy, I suppose - I didn't think recent kernels could still be booted that way). Perhaps you could go back to the host system, and use that to try to build a kernel, then copy the config over once it boots. Identifying the correct options is always a long and tedious process - the first time, you really need to look at the help in menuconfig (sometimes the help is useful), and probably build-in a lot more than is strictly necessary. Horrible thought: do you mean you compiled on a different machine ? If that's the case, there is a possibility that everything is built for the machine you compiled on (specifically, I think Pentium MMX was i586 and didn't support all the i686 opcodes, but it's been so long since I dealt with that hardware...) 3. The kernel version is 2.6.16.27. Would it be worthwhile trying Adrian Bunk's version 2.6.16.60? Is there anything I have to do to avoid a conflict with what I have done so far with 2.6.16.27, or can I simply unpack his version and follow the compilation steps as if starting from scratch? I haven't followed the details of the later 2.6.16 kernels - in general, it should be worthwhile upgrading once you have a system which boots. 2.6.16.27 itself had a degree of testing for the book, so I don't think the changes are likely to help on old hardware. For the practicalities - either use the tarball, or a patch. If you use a patch, from 2.6.16.27 you first need to revert (patch -p1 -R) patch-2.6.16.27, and then apply patch-2.6.16.60. Check the first few lines of the Makefile to confirm the version information after that - modules will install to the directory derived from the kernel version, for the kernel itself give it a different name (preferably, include the version in the name). ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Grub Hangs
l 1. When Grub hangs, the screen freezes. None of the keys, including PgUp, let me scroll up. 2. No, I don't have a .config file for the machine. (I didn't know what you meant by .config, zcat, /proc/congif.gz and make oldconfig. After doing my homework, I have now learned how to configure the kernel using an old configuration file. I also noticed along the way that my kernel was set for an Athlon processor. I recompiled for Pentium MMX, but the problem persists, so tweaking does indeed seem tangential to it.) 3. The kernel version is 2.6.16.27. Would it be worthwhile trying Adrian Bunk's version 2.6.16.60? Is there anything I have to do to avoid a conflict with what I have done so far with 2.6.16.27, or can I simply unpack his version and follow the compilation steps as if starting from scratch? Edward Why not just use the latest stable kernel? I'm using 2.6.24 with LFS 6.2 and it works well. Richard Melville -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Grub Hangs
LFS 6.2 HP Omnibook 2100 (laptop) Pentium II (MMX) 32 MB (RAM), expanded to maximum of 160 MB using memory modules 4.1 GB (HD) 3-Com 10/100 LAN+ 56K Cardbus Modem (Floppy drive OR the CD-ROM drive connects to a plug-in module bay.) Hello, I am a newbie who has finally reached Section 9.3 (Rebooting the System) of LFS 6.2. I followed the book's suggestion to install Lynx, GPM and Dhcpcd, did the umounts, and proceeded to reboot with “shutdown -r now” As the machine shuts down, I get two messages that may or may not be part of the problem: “Stopping dhcpcd on the eth0 interface - LEASEINFO Test Failed! - dhcpcd is not running [WARN]” “No reboot fixup found for your hardware” GRUB then starts and, after printing out a few lines that I am unable to pause to read, hangs at: Call Trace: [c012bf49] get_page_from_freelist+0x221/0x28e [c012c004] __alloc_pages+0x4e/0x27e [c012c265] get_zeroed_page+0x31/0x4c [c03da534] pidmap_init+0xb/0x36 [c03d026c] start_kernel+0xe1/0x24f Code: 89 c7 b8 00 e0 ff ff 21 e0 f7 40 14 00 ff ff 0f 74 0c 31 c0 b9 00 04 00 00 fc f3 ab eb 3e e8 05 a4 f6 ff 0f ef c0 b8 40 00 00 00 0f e7 07 0f e7 47 08 0f e7 47 10 0f e7 47 18 0f e7 47 20 0f e7 0Kernel panic – not syncing: Attempted to kill the idle task! I have tried the following unsuccessful ideas: 1. Recompiling the kernel to include PCCard (PCMCIA/CardBus) support. 2. Removing the 3-Com card from the machine and recompiling to exclude PCCard support. 3. Recompiling the kernel to include Advanced Power Management (APM) support. 4. Disabling APM support in the BIOS and recompiling the kernel to not include APM. 5. Rebooting with the floppy drive inserted, instead of the CD-ROM drive. I have Googled, searched threads, etc., but am still stuck, so would be most grateful if someone could give me some ideas about what might be the problem or point me to a source of information that could help. Thank you Edward -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Grub Hangs
On Sun, Mar 09, 2008 at 11:17:23AM -0600, Wehner y Asociados wrote: LFS 6.2 HP Omnibook 2100 (laptop) Pentium II (MMX) 32 MB (RAM), expanded to maximum of 160 MB using memory modules 4.1 GB (HD) 3-Com 10/100 LAN+ 56K Cardbus Modem (Floppy drive OR the CD-ROM drive connects to a plug-in module bay.) Hello, I am a newbie who has finally reached Section 9.3 (Rebooting the System) of LFS 6.2. I followed the book's suggestion to install Lynx, GPM and Dhcpcd, did the umounts, and proceeded to reboot with “shutdown -r now” As the machine shuts down, I get two messages that may or may not be part of the problem: “Stopping dhcpcd on the eth0 interface - LEASEINFO Test Failed! - dhcpcd is not running [WARN]” Not relevant, you were in chroot so this is from the host system's initscripts, and anyway it isn't a problem. “No reboot fixup found for your hardware” A quick exploration on google suggests that is a kernel warning. I've never seen it, perhaps because my boxes shut down or reboot before I have time to read it, or maybe it. Dunno. I'm fairly sure that if a Pentium II machine needed a fixup, the kernel would know, so this is just a diagnostic message. GRUB then starts and, after printing out a few lines that I am unable to pause to read, hangs at: Call Trace: [c012bf49] get_page_from_freelist+0x221/0x28e [c012c004] __alloc_pages+0x4e/0x27e [c012c265] get_zeroed_page+0x31/0x4c [c03da534] pidmap_init+0xb/0x36 [c03d026c] start_kernel+0xe1/0x24f Code: 89 c7 b8 00 e0 ff ff 21 e0 f7 40 14 00 ff ff 0f 74 0c 31 c0 b9 00 04 00 00 fc f3 ab eb 3e e8 05 a4 f6 ff 0f ef c0 b8 40 00 00 00 0f e7 07 0f e7 47 08 0f e7 47 10 0f e7 47 18 0f e7 47 20 0f e7 0Kernel panic – not syncing: Attempted to kill the idle task! I have tried the following unsuccessful ideas: 1. Recompiling the kernel to include PCCard (PCMCIA/CardBus) support. 2. Removing the 3-Com card from the machine and recompiling to exclude PCCard support. 3. Recompiling the kernel to include Advanced Power Management (APM) support. 4. Disabling APM support in the BIOS and recompiling the kernel to not include APM. 5. Rebooting with the floppy drive inserted, instead of the CD-ROM drive. I have Googled, searched threads, etc., but am still stuck, so would be most grateful if someone could give me some ideas about what might be the problem or point me to a source of information that could help. Thank you Edward I'm no longer familiar with 6.2, but here's my take on what is happening: Grub finds the kernel, loads it, and transfers control to it. The kernel then does something wrong which causes it to report what was happening and panic. Probably, this isn't a grub problem (we can't say for certain that grub is passing the correct detaisl to the kernel until init starts, but so far the grub side all looks ok). Perhaps, you might manage to use the PgUp key to scroll back to the start of the disagnostics ? Do you have a working 2.6 .config for this machine ? If so, did you use it for this kernel (i.e. copy it to .config, or zcat from /proc/config.gz, and then 'make oldconfig') ? Unless you can manage to identify where the kernel blew up, it's hard to know what to recommend. Tweaking the config for your hardware is good, but probably tangential to this problem. Which kernel version ? The book was released with 2.6.16.27, but Adrian Bunk has done long-term maintenance of 2.6.16 and the current version seems to be 2.6.16.60. If you aren't on a recent version, I recommend you to upgrade after you have fixed the current problem. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Grub Hangs
Ken Moffat wrote: On Sun, Mar 09, 2008 at 11:17:23AM -0600, Wehner y Asociados wrote: “Stopping dhcpcd on the eth0 interface - LEASEINFO Test Failed! - dhcpcd is not running [WARN]” Not relevant, you were in chroot so this is from the host system's initscripts, and anyway it isn't a problem. “No reboot fixup found for your hardware” Yeah, in my experience, this is a pretty harmless message. I used to see it on the Intel Macs using 2.6.16 kernels or so. Essentially, the kernel didn't know how to send a reboot command for the machine, meaning you'd have to power it off manually and power it on again. IIRC, sometimes the reboot would actually succeed, even though the kernel obviously didn't think it could do it. ;) It's since been fixed (at least for the Macs). -- JH -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Grub Hangs
Ken Moffat wrote: On Sun, Mar 09, 2008 at 11:17:23AM -0600, Wehner y Asociados wrote: LFS 6.2 HP Omnibook 2100 (laptop) Pentium II (MMX) 32 MB (RAM), expanded to maximum of 160 MB using memory modules 4.1 GB (HD) 3-Com 10/100 LAN+ 56K Cardbus Modem (Floppy drive OR the CD-ROM drive connects to a plug-in module bay.) Hello, I am a newbie who has finally reached Section 9.3 (Rebooting the System) of LFS 6.2. I followed the book's suggestion to install Lynx, GPM and Dhcpcd, did the umounts, and proceeded to reboot with “shutdown -r now” As the machine shuts down, I get two messages that may or may not be part of the problem: “Stopping dhcpcd on the eth0 interface - LEASEINFO Test Failed! - dhcpcd is not running [WARN]” Not relevant, you were in chroot so this is from the host system's initscripts, and anyway it isn't a problem. “No reboot fixup found for your hardware” A quick exploration on google suggests that is a kernel warning. I've never seen it, perhaps because my boxes shut down or reboot before I have time to read it, or maybe it. Dunno. I'm fairly sure that if a Pentium II machine needed a fixup, the kernel would know, so this is just a diagnostic message. GRUB then starts and, after printing out a few lines that I am unable to pause to read, hangs at: Call Trace: [c012bf49] get_page_from_freelist+0x221/0x28e [c012c004] __alloc_pages+0x4e/0x27e [c012c265] get_zeroed_page+0x31/0x4c [c03da534] pidmap_init+0xb/0x36 [c03d026c] start_kernel+0xe1/0x24f Code: 89 c7 b8 00 e0 ff ff 21 e0 f7 40 14 00 ff ff 0f 74 0c 31 c0 b9 00 04 00 00 fc f3 ab eb 3e e8 05 a4 f6 ff 0f ef c0 b8 40 00 00 00 0f e7 07 0f e7 47 08 0f e7 47 10 0f e7 47 18 0f e7 47 20 0f e7 0Kernel panic – not syncing: Attempted to kill the idle task! I have tried the following unsuccessful ideas: 1. Recompiling the kernel to include PCCard (PCMCIA/CardBus) support. 2. Removing the 3-Com card from the machine and recompiling to exclude PCCard support. 3. Recompiling the kernel to include Advanced Power Management (APM) support. 4. Disabling APM support in the BIOS and recompiling the kernel to not include APM. 5. Rebooting with the floppy drive inserted, instead of the CD-ROM drive. I have Googled, searched threads, etc., but am still stuck, so would be most grateful if someone could give me some ideas about what might be the problem or point me to a source of information that could help. Thank you Edward I'm no longer familiar with 6.2, but here's my take on what is happening: Grub finds the kernel, loads it, and transfers control to it. The kernel then does something wrong which causes it to report what was happening and panic. Probably, this isn't a grub problem (we can't say for certain that grub is passing the correct detaisl to the kernel until init starts, but so far the grub side all looks ok). Perhaps, you might manage to use the PgUp key to scroll back to the start of the disagnostics ? Do you have a working 2.6 .config for this machine ? If so, did you use it for this kernel (i.e. copy it to .config, or zcat from /proc/config.gz, and then 'make oldconfig') ? Unless you can manage to identify where the kernel blew up, it's hard to know what to recommend. Tweaking the config for your hardware is good, but probably tangential to this problem. Which kernel version ? The book was released with 2.6.16.27, but Adrian Bunk has done long-term maintenance of 2.6.16 and the current version seems to be 2.6.16.60. If you aren't on a recent version, I recommend you to upgrade after you have fixed the current problem. ĸen Thank you Ken and Jeremy for your help. 1. When Grub hangs, the screen freezes. None of the keys, including PgUp, let me scroll up. 2. No, I don't have a .config file for the machine. (I didn't know what you meant by .config, zcat, /proc/congif.gz and make oldconfig. After doing my homework, I have now learned how to configure the kernel using an old configuration file. I also noticed along the way that my kernel was set for an Athlon processor. I recompiled for Pentium MMX, but the problem persists, so tweaking does indeed seem tangential to it.) 3. The kernel version is 2.6.16.27. Would it be worthwhile trying Adrian Bunk's version 2.6.16.60? Is there anything I have to do to avoid a conflict with what I have done so far with 2.6.16.27, or can I simply unpack his version and follow the compilation steps as if starting from scratch? Edward -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page