I'm building binutils in Ch6 and can't make binutils because there are no
ptys.  I've checked the things in the FAQ, and most seem OK.  I depart
from the book by installing /dev on the real FS, rather than a tempfs.

#ls $LFS/dev/p* -l
crw-rw-rw-    1 root     tty        5,   2 Jul  9 17:09 /mnt/lfs/dev/ptmx
        <-- OK?
/mnt/lfs/dev/pts:               <-- OK?
total 0

#ls $LFS/dev/shm -l
/mnt/lfs/dev/shm:               <-- OK?
total 0

#cat /etc/fstab
# Begin /etc/fstab
#filesystem     mount-point     fs-type options
/dev/hda1       /boot           ext2    defaults        1 2
/dev/hda6       /               ext2    defaults        1 2
/dev/hda2       /mnt/lfs        ext2    defaults        1 2
/dev/hda3       /usr/local/src  ext2    defaults        1 2
/dev/hda5       swap            swap    defaults        0 0
/dev/cdrom      /mnt/cdrom      iso9660 noauto,user,ro  0
0
/dev/fd0        /mnt/floppy     auto    noauto,user     0 0
none            /proc           proc    defaults        0 0
none            /dev/pts        devpts  gid=4,mode=620  0
0       <-- OK?
# End /etc/fstab

But I find one thing wrong that I don't know how to fix: CONFIG_DEVPTS is
not available.  The host is a LFS-4.1/2.4.31.  That is too old, so to
build Ch5 I took the linux-2.6.11.12 kernel in 6.1.1, and compiled that
without modules as a "test" kernel.  That's taken me this far.  8-)

With the new kernel in it's own branch I ran make menuconfig, and what
I've got is:
#cat /usr/local/src/linux-2.6.11.12/.config
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.11.12
# Tue Jul 11 22:21:13 2006
#
...8<...
#
# File systems
#
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
# CONFIG_EXT2_FS_POSIX_ACL is not set
# CONFIG_EXT2_FS_SECURITY is not set
# CONFIG_EXT3_FS is not set
# CONFIG_JBD is not set
CONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set

#
# XFS support
...8<...
#
# CD-ROM/DVD Filesystems
...8<...
#
# DOS/FAT/NT Filesystems
...8<...
#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
CONFIG_DEVPTS_FS_XATTR=y        <-- Where is CONFIG_DEVPTS=y ????
# CONFIG_DEVPTS_FS_SECURITY is not set
CONFIG_TMPFS=y
CONFIG_TMPFS_XATTR=y
# CONFIG_TMPFS_SECURITY is not set
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y

#
# Miscellaneous filesystems
...8<...

Is make menuconfig somehow getting confused?  Why don't I get to set
DEVPTS?  The issues mentioned in the FAQ seem OK, but I'm not sure about
this kernel.  Any suggestions?

FWIW, I get into the chroot with:
#!/bin/bash -e
# Prepare & enter the build environment for a session
# Q&D test to see if this is the first time
if [ ! -d $LFS/proc ] ; then
  mkdir -vp $LFS/{proc,sys,dev} &&
#PGR git needs /dev/null
  mknod -m 666 $LFS/dev/null c 1 3
fi &&
if ! grep $LFS/proc /proc/self/mounts >/dev/null ; then
  mount -vt proc proc $LFS/proc 
fi
if ! grep $LFS/sys /proc/self/mounts >/dev/null ; then
  mount -vt sysfs sysfs $LFS/sys 
fi
chroot "$LFS" /tools/bin/env -i \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
    /tools/bin/bash --login +h


Paul Rogers  ([EMAIL PROTECTED])
http://www.xprt.net/~pgrogers/
http://www.geocities.com/paulgrogers/
Rogers' Second Law: "Everything you do communicates."
(I do not personally endorse any additions after this line. TANSTAAFL 
:-)

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to