wutiejun / workspace

My workspace.
7 stars 3 forks source link

Linux From Scratch #5

Open wutiejun opened 8 years ago

wutiejun commented 8 years ago

Linux From Scratch

http://www.linuxfromscratch.org/lfs/index.html

Build log and problems!!!

Beyond Linux From Scratch

http://www.linuxfromscratch.org/blfs/view/svn/index.html

file list

http://download.savannah.gnu.org/releases/acl/acl-2.2.52.src.tar.gz

http://download.savannah.gnu.org/releases/attr/attr-2.4.47.src.tar.gz

http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz

http://ftp.gnu.org/gnu/automake/automake-1.15.tar.xz

http://ftp.gnu.org/gnu/bash/bash-4.3.30.tar.gz

http://alpha.gnu.org/gnu/bc/bc-1.06.95.tar.bz2

http://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.bz2

http://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.xz

http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz

http://sourceforge.net/projects/check/files/check/0.10.0/check-0.10.0.tar.gz

http://ftp.gnu.org/gnu/coreutils/coreutils-8.25.tar.xz

http://ftp.gnu.org/gnu/dejagnu/dejagnu-1.5.3.tar.gz

http://ftp.gnu.org/gnu/diffutils/diffutils-3.3.tar.xz

http://dev.gentoo.org/~blueness/eudev/eudev-3.1.5.tar.gz

http://downloads.sourceforge.net/project/e2fsprogs/e2fsprogs/v1.42.13/e2fsprogs-1.42.13.tar.gz

http://prdownloads.sourceforge.net/expat/expat-2.1.0.tar.gz

http://prdownloads.sourceforge.net/expect/expect5.45.tar.gz

ftp://ftp.astron.com/pub/file/file-5.25.tar.gz

http://ftp.gnu.org/gnu/findutils/findutils-4.6.0.tar.gz

http://prdownloads.sourceforge.net/flex/flex-2.6.0.tar.xz

http://ftp.gnu.org/gnu/gawk/gawk-4.1.3.tar.xz

http://ftp.gnu.org/gnu/gcc/gcc-5.3.0/gcc-5.3.0.tar.bz2

http://ftp.gnu.org/gnu/gdbm/gdbm-1.11.tar.gz

http://ftp.gnu.org/gnu/gettext/gettext-0.19.7.tar.xz

http://ftp.gnu.org/gnu/glibc/glibc-2.23.tar.xz

http://ftp.gnu.org/gnu/gmp/gmp-6.1.0.tar.xz

http://ftp.gnu.org/gnu/gperf/gperf-3.0.4.tar.gz

http://ftp.gnu.org/gnu/grep/grep-2.23.tar.xz

http://ftp.gnu.org/gnu/groff/groff-1.22.3.tar.gz

http://alpha.gnu.org/gnu/grub/grub-2.02~beta2.tar.xz

http://ftp.gnu.org/gnu/gzip/gzip-1.6.tar.xz

http://anduin.linuxfromscratch.org/LFS/iana-etc-2.30.tar.bz2

http://ftp.gnu.org/gnu/inetutils/inetutils-1.9.4.tar.xz

http://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz

https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-4.4.0.tar.xz

https://www.kernel.org/pub/linux/utils/kbd/kbd-2.0.3.tar.xz

https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-22.tar.xz

http://www.greenwoodsoftware.com/less/less-481.tar.gz

http://www.linuxfromscratch.org/lfs/downloads/7.9/lfs-bootscripts-20150222.tar.bz2

https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.25.tar.xz

http://download.savannah.gnu.org/releases/libpipeline/libpipeline-1.4.1.tar.gz

http://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.xz

https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.4.2.tar.xz

http://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.xz

http://ftp.gnu.org/gnu/make/make-4.1.tar.bz2

http://download.savannah.gnu.org/releases/man-db/man-db-2.7.5.tar.xz

https://www.kernel.org/pub/linux/docs/man-pages/man-pages-4.04.tar.xz

http://www.multiprecision.org/mpc/download/mpc-1.0.3.tar.gz

http://www.mpfr.org/mpfr-3.1.3/mpfr-3.1.3.tar.xz

http://ftp.gnu.org/gnu//ncurses/ncurses-6.0.tar.gz

http://ftp.gnu.org/gnu/patch/patch-2.7.5.tar.xz

http://www.cpan.org/src/5.0/perl-5.22.1.tar.bz2

http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.tar.gz

http://sourceforge.net/projects/procps-ng/files/Production/procps-ng-3.3.11.tar.xz

http://downloads.sourceforge.net/project/psmisc/psmisc/psmisc-22.21.tar.gz

http://ftp.gnu.org/gnu/readline/readline-6.3.tar.gz

http://ftp.gnu.org/gnu/sed/sed-4.2.2.tar.bz2

http://pkg-shadow.alioth.debian.org/releases/shadow-4.2.1.tar.xz

http://www.infodrom.org/projects/sysklogd/download/sysklogd-1.5.1.tar.gz

http://download.savannah.gnu.org/releases/sysvinit/sysvinit-2.88dsf.tar.bz2

http://ftp.gnu.org/gnu/tar/tar-1.28.tar.xz

http://sourceforge.net/projects/tcl/files/Tcl/8.6.4/tcl-core8.6.4-src.tar.gz

http://ftp.gnu.org/gnu/texinfo/texinfo-6.1.tar.xz

http://www.iana.org/time-zones/repository/releases/tzdata2016a.tar.gz

http://anduin.linuxfromscratch.org/LFS/udev-lfs-20140408.tar.bz2

https://www.kernel.org/pub/linux/utils/util-linux/v2.27/util-linux-2.27.1.tar.xz

ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2

http://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-2.44.tar.gz

http://tukaani.org/xz/xz-5.2.2.tar.xz

http://www.zlib.net/zlib-1.2.8.tar.xz

http://www.linuxfromscratch.org/patches/lfs/7.9/bash-4.3.30-upstream_fixes-3.patch

http://www.linuxfromscratch.org/patches/lfs/7.9/bc-1.06.95-memory_leak-1.patch

http://www.linuxfromscratch.org/patches/lfs/7.9/binutils-2.26-upstream_fix-2.patch

http://www.linuxfromscratch.org/patches/lfs/7.9/bzip2-1.0.6-install_docs-1.patch

http://www.linuxfromscratch.org/patches/lfs/7.9/coreutils-8.25-i18n-2.patch

http://www.linuxfromscratch.org/patches/lfs/7.9/glibc-2.23-fhs-1.patch

http://www.linuxfromscratch.org/patches/lfs/7.9/kbd-2.0.3-backspace-1.patch

http://www.linuxfromscratch.org/patches/lfs/7.9/mpfr-3.1.3-upstream_fixes-2.patch

http://www.linuxfromscratch.org/patches/lfs/7.9/readline-6.3-upstream_fixes-3.patch

http://www.linuxfromscratch.org/patches/lfs/7.9/sysvinit-2.88dsf-consolidated-1.patch
wutiejun commented 8 years ago

初始化系统:

  1. 在VBOX上安装Ubuntu服务器版本, 设置两个网络, 一个NAT, 用于链接外网, 另一个HOSTONLY, 做于本地链接主机;
  2. 在VBox上挂一个新的分区;
  3. 格式化新的分区为EXT4;
jimmy@ubuntu-jimmy:/LFS$ ll
total 20
drwxr-xr-x  5 jimmy jimmy 4096 Jun 28 05:19 ./
drwxr-xr-x 22 root  root  4096 Jun 28 05:17 ../
drwxrwxr-x  2 jimmy jimmy 4096 Jun 28 05:19 boot/
drwxrwxr-x  3 jimmy jimmy 4096 Jun 28 05:19 build/
drwxrwxr-x  2 jimmy jimmy 4096 Jun 28 05:19 home/
wutiejun commented 8 years ago

Part II. Preparing for the Build

  1. set evn
export LFS=/mnt/lfs
jimmy@ubuntu-jimmy:/LFS/build$ echo $LFS
/LFS
jimmy@ubuntu-jimmy:/LFS/build$
  1. Mounting the New Partition
# LFS示例:
mkdir -pv $LFS
mount -v -t ext4 /dev/<xxx> $LFS

# 在root下mount新的分区
root@ubuntu-jimmy:~# mount -t ext4 /dev/sdb /LFS/

# 修改权限
root@ubuntu-jimmy:~# chown jimmy:jimmy -R /LFS/
root@ubuntu-jimmy:~#

# 退出root
root@ubuntu-jimmy:~# logout
jimmy@ubuntu-jimmy:~/LFS_Build$
  1. Packages and Patches
mkdir -v $LFS/sources
chmod -v a+wt $LFS/sources
wget --input-file=wget-list --continue --directory-prefix=$LFS/sources
pushd $LFS/sources
md5sum -c md5sums
popd