LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   starting BLFS when finished LFS in Slackware & Please help me! (https://www.linuxquestions.org/questions/linux-from-scratch-13/starting-blfs-when-finished-lfs-in-slackware-and-please-help-me-4175435210/)

Forget-Me-Not 11-04-2012 01:55 AM

I posted "adding a new system to the Slackware LILO boot loader" on Slackware-SubForum as you suggest

http://www.linuxquestions.org/questi...me-4175435521/

While waiting Slackware-SubForum's help. I'm worrying that will take a long time for giving the answer. Might I do it with SupperGrub2Disk?
http://www.supergrubdisk.org/super-grub2-disk/

I mean I will uninstall LILO of Slackware and install SupperGrub2Disk on the LFS. However I will research about SupperGrub2Disk, I don't know how to use it before.

Hope you help me! Thank you very much!

stoat 11-04-2012 06:07 AM

Quote:

Originally Posted by Forget-Me-Not

I posted "adding a new system to the Slackware LILO boot loader" on Slackware-SubForum...

Somebody has replied in your Slackware thread. Now try to fix your Slackware boot loader to boot LFS.

Quote:

Originally Posted by Forget-Me-Not

I mean I will uninstall LILO of Slackware and install SupperGrub2Disk on the LFS.

Once and for all, the Super Grub 2 Disk is not something that you install. It is merely a utility for emergency booting a system whose GRUB 2 boot loader is broken. IMO, everyone who uses GRUB should have some kind of emergency boot disk. The Super Grub 2 Disk is such a thing.

Forget-Me-Not 11-04-2012 09:00 AM

Like(facebook). :D

stoat 11-05-2012 08:45 AM

Okay. So I saw your post in the Slackware forum. It's trying to boot now. I don't want to post over there. But I recommend against that guy's idea to create an initial ramdisk for drivers. That is possible (there is a hint article about it), but the classic LFS way to handle that is by building in things that the kernel needs to boot. And today one guy over there referred you to the v6.5 LFS book as the newest version. Uh, maybe we should continue on here until you need Slackware boot loader help again.

The kernel is loading and starting its message spew, then stops very early. I recommend that you review your kernel config for file system and storage device support at this point. And it should be built in (* or =y), not modules (M or =m). That is the kind of stuff that can stop it from booting early. Another common error these days (I made it, too) is to forget to build in support for devtmpfs. Your LFS system will not boot without that. Not everything has to be built in. I have lots of modules, too. But this stuff needed for booting has to be built in.

Here, only as an example of what I mean, are some snippets from my kernel menuconfig notes regarding these kinds of filesystem and storage device things. I don't mean for you to mindlessly copy this stuff. Just review yours and make sure it accommodates your filesystem and hardware. A good idea for the hardware stuff is to examine the drivers in use by your host system, then see to it that the ones needed before the filesystem is mounted are built in to your LFS kernel...
Code:

                        |
                        |
                        |
                        |...Device Drivers --->
                        |    |
                        |    |...    Generic Driver Options --->
                        |    |        |
devtmpfs (enable)        |    |        |...[*] Maintain a devtmpfs filesystem to mount at /dev (CONFIG_DEVTMPFS=y)
                        |    |        |...[ ]  Automount devtmpfs at /dev, after the kernel mounted the rootfs (CONFIG_DEVTMPFS_MOUNT is not set)
                        |    |        |
                        |    |
                        |    |
                        |    |
SCSI drivers                |    |...    SCSI device support --->
                        |    |        |
                        |    |        |...-*- SCSI device support (CONFIG_SCSI=y, module=scsi_mod)
                        |    |        |...<*> SCSI disk support (CONFIG_BLK_DEV_SD=y, module=sd_mod)
                        |    |        |...<*> SCSI CDROM support (CONFIG_BLK_DEV_SR=y, module=sr_mod)
                        |    |        |...<*> SCSI generic support (CONFIG_CHR_DEV_SG=y, module=sg)
                        |    |        |
                        |    |
                        |    |
                        |    |
SATA/PATA drivers        |    |...<*> Serial ATA and Parallel ATA drivers ---> (CONFIG_ATA=y)
                        |    |        |
                        |    |        |...[*] ATA ACPI Support (CONFIG_ATA_ACPI=y)
                        |    |        |...<*> AHCI SATA support (CONFIG_SATA_AHCI=y)
                        |    |        |...[*] ATA SFF support (CONFIG_ATA_SFF=y)
                        |    |        |...[*] ATA BMDMA support (CONFIG_ATA_BMDMA=y)
                        |    |        |...<*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support (CONFIG_ATA_PIIX=y)
                        |    |        |...<*> Marvell PATA support via legacy mode (CONFIG_PATA_MARVELL=y)
                        |    |        |...<*> Intel PATA old PIIX support (CONFIG_PATA_OLDPIIX=y)
                        |    |        |...<*> Intel SCH PATA support (CONFIG_PATA_SCH=y)
                        |    |        |...<*> Intel PATA MPIIX support (CONFIG_PATA_MPIIX=y)
                        |    |        |...<*> Generic ATA support (CONFIG_ATA_GENERIC=y)
                        |    |        |
                        |
                        |
                        |
                        |...File systems --->
                        |    |
ext3 filesystem                |    |...<*> Ext3 journalling file system support (CONFIG_EXT3_FS=y, module=ext3)
                        |    |...[ ]  Default to 'data=ordered' in ext3 (CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set)
                        |    |...[ ]  Ext3 extended attributes (CONFIG_EXT3_FS_XATTR is not set)
ext4 filesystem                |    |...<*> The Extended 4 (ext4) filesystem (CONFIG_EXT4_FS=y, module=ext4)
                        |    |...[ ]  Use ext4 for ext2/ext3 filesystems (CONFIG_EXT4_USE_FOR_EXT23 is not set)
                        |    |...[ ]  Ext4 extended attributes (CONFIG_FS_XATTR is not set)
                        |    |...[ ]  Ext4 debugging support (CONFIG_EXT4_DEBUG is not set)
                        |    |
                        |
                        |

And if you get past this stuff, it may not be over. Brace for more of it that may need work after it boots. I spent days on video driver and firmware issues. I probably recompiled my first LFS kernel thirty times (not joking about that). I don't mean to sound discouraging, but there's no use in pretending at this point either.

P.S.: No promises for any of this. You may have a lot more work to do. But that stuff you're getting in the Slackware forum today will just have you wandering off into the tall weeds. I promise you that.

Forget-Me-Not 11-16-2012 09:00 AM

Thank you so much stoat!


All times are GMT -5. The time now is 11:22 AM.