LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Share my lfs system. (http://www.linuxquestions.org/questions/linux-from-scratch-13/share-my-lfs-system-4175433173/)

xinglp 10-20-2012 12:30 AM

Share my lfs system.
 
http://sourceforge.net/projects/smar...les/lfs_linux/

This is a lfs system with some blfs packages.
It can be "live boot", or manually install to local disk.

More infomation in the readme file.

xinglp 11-05-2012 08:59 AM

Nobody interesting ?

re_nelson 11-12-2012 01:43 PM

Quote:

Originally Posted by xinglp (Post 4822593)
Nobody interesting?

I'm not at my system console right now (so I can't yet provide the precise error message) but I did want to note that I did try the images provided. As best I recall, the initial ramdisk did decompress and the rootfs evidently did, as indicated by the sequence of dots. But then, the root filesystem failed to mount. Until I get access to the system, here's my GRUB2 entry and some additional background information:

Code:

menuentry '18: lfs-xinglp' {
    set root='(hd0,msdos3)'
    linux  /boot/2012-10-13-3.6.2-x86_64/vmlinuz-3.6.2 root=/dev/sda3:/boot/2012-10-13-3.6.2-x86_64/root.squashfs
    initrd  /boot/2012-10-13-3.6.2-x86_64/initrd.img-3.6.2.xz
}

Note that used the 2012-10-13-3.6.2-x86_64.tar tarball which was the current version from a few weeks back. All of the contents were untarred into the /boot directory on the third partition of a 500 GB SATA drive, thus /dev/sda3 and (hd0,msdos3). In the absence of a full error message, that probably gives you little to go on but I did want you to know that I did give it a try. There were no errors at all in the early userspace environment until the procedure to mount the root filesystem occurred. The host platform is a 64-bit unit equipped with an Intel(R) Core(TM) i5-2380P processor.

Later tonight, when I have access to the computer, I'll post a complete error report. And, I'll also use the more recent tarball of 2012-11-05.

re_nelson 11-12-2012 10:04 PM

Here's the followup I promised concerning the failure to mount the root filesystem. This error occurs with 2012-11-05-3.6.6-x86_64.tar. The kernel loads and the processing of /init is faultless until do_mount_root is called. Here's where things go wrong:

Code:

crypto_algapi: Unknown symbol: crypto_alg_sem
[...]
Unknown filesystem type: ext4

Since ext4 is dependent upon the crypto modules shown here, the mounting of root fails:

Code:

kernel/fs/ext4/ext4.ko: kernel/lib/crc16.ko
                        kernel/fs/jbd2/jbd2.ko
                        kernel/crypto/crypto_hash.ko
                        kernel/crypto/crypto_algapi.ko
                        kernel/fs/mbcache.ko


xinglp 11-13-2012 12:35 AM

Quote:

Originally Posted by re_nelson (Post 4828015)
Here's the followup I promised concerning the failure to mount the root filesystem. This error occurs with 2012-11-05-3.6.6-x86_64.tar. The kernel loads and the processing of /init is faultless until do_mount_root is called. Here's where things go wrong:

Code:

crypto_algapi: Unknown symbol: crypto_alg_sem
[...]
Unknown filesystem type: ext4

Since ext4 is dependent upon the crypto modules shown here, the mounting of root fails:

Code:

kernel/fs/ext4/ext4.ko: kernel/lib/crc16.ko
                        kernel/fs/jbd2/jbd2.ko
                        kernel/crypto/crypto_hash.ko
                        kernel/crypto/crypto_algapi.ko
                        kernel/fs/mbcache.ko


Thanks for report. try the below fix . (replace the original initrd)
http://sf.net/projects/smartutils/fi...d.img-3.6.6.xz

re_nelson 11-13-2012 01:17 AM

Quote:

Originally Posted by xinglp (Post 4828082)
Thanks for report. try the below fix . (replace the original initrd)
http://sf.net/projects/smartutils/fi...d.img-3.6.6.xz

That modification was effective and I appreciate the rapid turnaround on this. Due to time constraints, I didn't explore your shared system as much as I would have liked. That will be done later this week. I did see that the software was based on the 2012-11-03 SVN version with many of the newest applications, notably GCC-4.7.2 and other up-to-date apps.

Through the years, LFS still remains my favorite of the Linux platforms because of its infinite customization possibilities. It's probably the most personal of the Linux systems which is why your shared system fascinated me so much.

Again, thanks not only for the fix but for making your LFS system available for all of us.

xinglp 12-27-2012 08:10 AM

update to glibc-2.17 and update some other packages.

re_nelson 12-27-2012 01:08 PM

Quote:

Originally Posted by xinglp (Post 4857713)
update to glibc-2.17...

Did you use the glibc-2.16.0 LFS instructions unchanged for the just-released glibc-2.17 library or were some customizations required? I'm about to pull the trigger and replace my 2.16 library over the weekend and was hoping to get any "gotchas" before I make that move.

xinglp 12-27-2012 03:38 PM

Quote:

Originally Posted by re_nelson (Post 4857869)
Did you use the glibc-2.16.0 LFS instructions unchanged for the just-released glibc-2.17 library or were some customizations required? I'm about to pull the trigger and replace my 2.16 library over the weekend and was hoping to get any "gotchas" before I make that move.

Disable the two patches of glibc-2.16.

Use the below command after "tar -xvf ../udev-lfs-196-3.tar.bz2" for udev build.

Code:

sed -i -e 's/HAVE___SECURE_GETENV/HAVE_SECURE_GETENV/' udev-lfs-196-3/cfg.h
Because glibc-2.17 use secure_getenv() instead of __secure_getenv() by now.

And finally, the official lfs book will be updated in the near future.
Many packages update were assgined , including glibc-2.17.
See here http://wiki.linuxfromscratch.org/lfs/timeline

dpak.verma.maa@gmail.com 01-14-2013 10:07 AM

@xinglp hi,
"http://sourceforge.net/projects/smar...les/lfs_linux/"
what is the version on lfs and is it a GUI system, coz i wanna try a lfs without GUI

xinglp 01-15-2013 05:26 AM

Quote:

Originally Posted by dpak.verma.maa@gmail.com (Post 4869729)
@xinglp hi,
"http://sourceforge.net/projects/smar...les/lfs_linux/"
what is the version on lfs and is it a GUI system, coz i wanna try a lfs without GUI

The "2013-01-12" version is based on lfs-book SVN-20130111 (r10094) with the kernel updated to 3.7.2, (You can get these informations from Changelog.)

It is a NO GUI system.

dpak.verma.maa@gmail.com 01-15-2013 09:11 AM

@xinglp
i have downloaded it. there are 3 files
BOOT
I386
X86_64
can you help me on installing in my local drive, i don't know how to install the already built LFS on system. I'll be thank full to you.

xinglp 01-15-2013 06:29 PM

Quote:

Originally Posted by dpak.verma.maa@gmail.com (Post 4870596)
@xinglp
i have downloaded it. there are 3 files
BOOT
I386
X86_64
can you help me on installing in my local drive, i don't know how to install the already built LFS on system. I'll be thank full to you.

This is the very old version you download. And I don't remember the layout of it.

First you should find the loader config file, and then you will know where it the kernel image, initrd, and root image.

Prepare a free partion, (reiserfs or ext3, or maybe only reiserfs, I can't remember), extract the root image' files into it.

Intall grub (or some else boot loader). configure it to load the kernel and initrd, also the root=xxx.

And I suggest you to use the latest .tar version. It can be install on usb drive with fat, ntfs, ext2/3/4, reiserfs formated.

dpak.verma.maa@gmail.com 01-16-2013 08:26 AM

@xinglp HI,
Very happy that you replied, actually i downloaded your image file which contains all three and i directly used on VMware ,it was running , i actually wanted to build BLFS. is it possible to extend it further? i mean i want your lfs to be built BLFS with GUI.
please reply .

xinglp 01-16-2013 09:37 AM

Quote:

Originally Posted by dpak.verma.maa@gmail.com (Post 4871349)
@xinglp HI,
Very happy that you replied, actually i downloaded your image file which contains all three and i directly used on VMware ,it was running , i actually wanted to build BLFS. is it possible to extend it further? i mean i want your lfs to be built BLFS with GUI.
please reply .

Yes u can.

But just make sure you are running the extracted files from the image, not the image when you build BLFS on it. The later one will lost everythings after reboot.

And , welcome to the lfs bllfs mailist.


All times are GMT -5. The time now is 09:51 PM.