Changeset 2020
- Timestamp:
- 08/14/07 20:47:48 (1 year ago)
- Files:
-
- branches/minimal/Makefile (modified) (6 diffs)
- branches/minimal/doc/README (modified) (10 diffs)
- branches/minimal/doc/official-livecd.txt (deleted)
- branches/minimal/isolinux/boot.msg (modified) (1 diff)
- branches/minimal/isolinux/isolinux.cfg (modified) (1 diff)
- branches/minimal/isolinux/options.msg (deleted)
- branches/minimal/isolinux/options1.msg (copied) (copied from trunk/isolinux/options1.msg)
- branches/minimal/isolinux/options2.msg (copied) (copied from trunk/isolinux/options2.msg)
- branches/minimal/isolinux/options3.msg (copied) (copied from trunk/isolinux/options3.msg)
- branches/minimal/isolinux/options4.msg (copied) (copied from trunk/isolinux/options4.msg)
- branches/minimal/packages/LFS-BOOK/Makefile (modified) (1 diff)
- branches/minimal/packages/binutils/Makefile (modified) (1 diff)
- branches/minimal/packages/glibc/Makefile (modified) (3 diffs)
- branches/minimal/packages/glibc/glibc-2.5-supported_locales-1.patch (deleted)
- branches/minimal/packages/glibc/glibc-2.5.1-supported_locales-1.patch (copied) (copied from trunk/packages/glibc/glibc-2.5.1-supported_locales-1.patch)
- branches/minimal/packages/lfs-bootscripts/Makefile (modified) (1 diff)
- branches/minimal/packages/lfs-bootscripts/lfs-bootscripts-20070420-livecd-1.patch (deleted)
- branches/minimal/packages/lfs-bootscripts/lfs-bootscripts-20070730-livecd-1.patch (copied) (copied from trunk/packages/lfs-bootscripts/lfs-bootscripts-20070730-livecd-1.patch)
- branches/minimal/packages/lfs-bootscripts/lfs-bootscripts-livecd-1.patch (copied) (copied from trunk/packages/lfs-bootscripts/lfs-bootscripts-livecd-1.patch)
- branches/minimal/packages/libaal/Makefile (modified) (1 diff)
- branches/minimal/packages/linux-headers/Makefile (modified) (1 diff)
- branches/minimal/packages/linux/Makefile (modified) (1 diff)
- branches/minimal/packages/linux32 (copied) (copied from trunk/packages/linux32)
- branches/minimal/packages/linux64/Makefile (modified) (1 diff)
- branches/minimal/packages/man-pages/Makefile (modified) (1 diff)
- branches/minimal/packages/reiser4progs/Makefile (modified) (1 diff)
- branches/minimal/packages/syslinux/Makefile (modified) (1 diff)
- branches/minimal/packages/udev/Makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/minimal/Makefile
r2005 r2020 28 28 29 29 # Machine architecure, LiveCD version, and specific arch variables. 30 # When building a 32-bit CD from a 64-bit multilib host, 31 # please use "linux32 make" instead of plain "make". 30 32 #============================================================================== 31 33 … … 40 42 endif 41 43 42 ifeq ($(CD_AR H),x86_64)44 ifeq ($(CD_ARCH),x86_64) 43 45 export 64bit = true 44 export LFS_TARGET ?= $(MACHTYPE)46 export LFS_TARGET ?= x86_64-unknown-linux-gnu 45 47 export LINKER := ld-linux-x86-64.so.2 46 48 endif … … 173 175 touch $(MKTREE) 174 176 ifdef 64bit 175 -if [ ! -L $(MP)/lib64 ] ; then ln -s lib $(MP)/lib64 ; fi 176 -if [ ! -L $(MP)/usr/lib64 ] ; then ln -s lib $(MP)/usr/lib64 ; fi 177 -ln -nsf lib $(WD)/lib64 178 -ln -nsf lib $(MP)/lib64 179 -ln -nsf lib $(MP)/usr/lib64 177 180 endif 178 181 … … 280 283 ch-blfs-bootscripts ch-oui-data ch-hibernate-script ch-slang ch-mc \ 281 284 ch-fuse ch-dosfstools ch-ntfsprogs ch-libaal ch-reiser4progs \ 282 ch-bin86 ch-lilo ch-syslinux ch-scsi-firmware ch-net-firmware ch-initramfs 285 ch-bin86 ch-lilo ch-syslinux ch-scsi-firmware ch-net-firmware ch-initramfs ch-linux32 283 286 ifeq ($(CD_ARCH),x86) 284 287 make ch-grub … … 388 391 @install -m644 isolinux/{isolinux.cfg,*.msg,splash.lss} $(MP)/boot/isolinux 389 392 ifeq ($(CD_ARCH),x86_64) 390 @sed -i -e '/linux64/d' -e 's/ 32-bit//' $(MP)/boot/isolinux/options .msg393 @sed -i -e '/linux64/d' -e 's/ 32-bit//' $(MP)/boot/isolinux/options?.msg 391 394 @sed -i '/linux64/,$$d' $(MP)/boot/isolinux/isolinux.cfg 392 395 endif … … 434 437 435 438 scrub: clean 436 @ -rm lfslivecd-$(VERSION).iso439 @rm -f lfslivecd-$(VERSION).iso lfslivecd-$(VERSION)-nosrc.iso 437 440 438 441 mount: $(MKTREE) branches/minimal/doc/README
r1890 r2020 15 15 * lynx (text web browser) 16 16 * w3m (text web browser) 17 * irssi (console irc client , unstable version)17 * irssi (console irc client) 18 18 * seamonkey (graphical web browser, mail and news reader and irc client) 19 19 * xchat (x-based irc client) … … 26 26 Text Editors 27 27 * vim 28 * nano (unstable version)28 * nano 29 29 * joe 30 30 … … 32 32 * SSH server & client 33 33 * NFS server & client 34 * Samba (client only)34 * Samba server & client 35 35 * Subversion 36 36 * cvs … … 71 71 Makefiles that can download, check and build each LFS package for you.) 72 72 73 VMWARE ISSUE 74 =========================== 75 This CD does not detect virtual SCSI disks connected to a virtual machine in 76 VMware Workstation 5.x or earlier or VMware Server 1.0.x or earlier. This is 77 a known VMware bug. The solution is to upgrade to VMware Workstation 6.x, or 78 to choose "BusLogic" as the virtual SCSI controller type instead of the 79 default "LSI Logic". 80 81 The same issue will be present on an LFS system built from this CD. 82 73 83 CONFIGURING NET CONNECTION 74 84 =========================== … … 78 88 in your location, or if you want to use dialup or GPRS connection, run the 79 89 "net-setup" command. 90 91 If you don't want the CD to start dhcpcd on the detected network cards, 92 type "linux nodhcp" at the boot loader prompt. This may be required for 93 wireless connections that utilize WEP or WPA encryption. 80 94 81 95 CONFIGURING X … … 121 135 VertRefresh 56-86 # because an 85 Hz mode has been requested 122 136 # the Modeline may also be pasted here 137 Option "PreferredMode" "1280x1024_85.00" # only for the "intel" driver 123 138 EndSection 124 139 … … 130 145 131 146 When you are finished editing /etc/X11/xorg.conf, run startx. 147 148 PROPRIETARY VIDEO DRIVERS 149 ========================= 150 151 The CD contains pre-built proprietary video drivers in the /drivers directory 152 (if you loaded the CD contents to RAM, you have to mount the CD and look into 153 /media/cdrom/drivers instead). They are never selected by default by the 154 autoconfiguration process. Here is how to enable them: 155 156 NVIDIA: 157 158 cd /drivers 159 tar -C / -xf NVIDIA-Linux-[userspace_arch]-[version]-glx.tgz 160 tar -C / -xf NVIDIA-Linux-[kernel_arch]-[version]-kernel-[kernel_version].tgz 161 depmod -ae 162 ldconfig 163 vim /etc/X11/xorg.conf # use the "nvidia" driver instead of "vesa" or "nv" 164 165 FGLRX: 166 167 cd /drivers 168 tar -C / -xf fglrx-x710-[version]-[userspace_arch]-1.tgz 169 tar -C / -xf fglrx-module-[version]-[kernel_arch]-1_kernel_[kernel_version].tgz 170 depmod -ae 171 ldconfig 172 vim /etc/X11/xorg.conf # use the "fglrx" driver instead of "vesa" or "ati" 132 173 133 174 CUSTOMIZING THE CD CONTENTS … … 245 286 Known non-working cases: 246 287 All CP1251-based locales (no CP1251 Braille table in brltty) 288 All UTF-8 locales (kernel deficiency) 247 289 zh_TW (configuration instructions available in Chinese only). If you use 248 290 this locale, please email livecd@linuxfromscratch.org and help us add … … 336 378 # echo 254:3 >/sys/power/resume 337 379 338 In the case of the first boot, this will print an error, but store the device 339 numbers to be used for hibernation. Ignore the error and hibernate when needed. 340 341 On the second boot (i.e., after hibernating), this "echo" command will restore 342 the computer state from the swap device. 380 In the case of the first boot, this will store the device numbers to be used 381 for hibernation. On the second boot (i.e., after hibernating), this "echo" 382 command will restore the computer state from the swap device. 343 383 344 384 AUTOMATING THE BUILD … … 358 398 the build. 359 399 400 LOADING CD CONTENTS TO RAM 401 =========================== 402 The CD works much faster if you load all its contents to RAM. As a bonus, you 403 will be able to eject the CD immediately and use the CD-ROM drive for other 404 purposes (e.g., for watching a DVD while compiling LFS). 405 406 To load the CD contents to RAM, type "linux toram" at the boot prompt. 407 408 The minimum required amount of RAM is 512 MB. If you have less than 768 MB of 409 RAM, add swap when the CD boot finishes. 410 411 Note: in order to save RAM, sources and proprietary drivers are not loaded 412 there. In order to access them, please mount this CD and look into 413 /media/cdrom/sources and /media/cdrom/drivers. 414 415 BOOTING FROM ISO IMAGE 416 =========================== 417 If you want to boot this CD on a computer without a CD-ROM drive, follow 418 the steps below: 419 420 1) Store the ISO image of this CD as a file on a partition formatted with 421 one of the following filesystems: 422 vfat, ntfs, ext2, ext3, ext4, reiserfs, reiser4, xfs 423 2) Copy the boot/isolinux/{linux,initramfs_data.cpio.gz} files from the CD 424 to your hard disk 425 3) Configure the boot loader to load "linux" as a kernel image and 426 "initramfs_data.cpio.gz" as an initrd. The following parameters have to 427 be passed to the kernel: 428 429 rw root=iso:/dev/XXX:/path/to/lfslivecd.iso rootfstype=[fs_type] 430 431 where /dev/XXX is a partition where you stored the LiveCD image, and 432 [fs_type] is the type of the filesystem on that partition. You may 433 also want to add rootflags=... option if mounting this partition requires 434 special flags. 435 436 If there is only Windows on the target computer, please use grub4dos as a boot 437 loader. It is available from http://sourceforge.net/projects/grub4dos 438 439 MAKING A BOOTABLE USB DRIVE 440 =========================== 441 Install GRUB on a flash drive, then follow instructions in the 442 "BOOTING FROM ISO IMAGE" above, using a partition on your flash drive. 443 The following tips will ensure that the flash drive is bootable in any 444 computer: 445 446 * Use the persistent symlink such as /dev/disk/by-uuid/890C-F46A to identify 447 the target partition. 448 * Add "rootdelay=20" to the kernel arguments. 449 360 450 THANKS 361 451 =========================== branches/minimal/isolinux/boot.msg
r2001 r2020 2 2 splash.lss 3 3 07This is the Official LFS LiveCD, Version: 4 07Press [Enter] to boot, F1 for basicoptions4 07Press [Enter] to boot, F1 - F4 for available options 5 5 branches/minimal/isolinux/isolinux.cfg
r1994 r2020 3 3 timeout 600 4 4 display boot.msg 5 F1 options.msg 5 F1 options1.msg 6 F2 options2.msg 7 F3 options3.msg 8 F4 options4.msg 6 9 7 10 label linux branches/minimal/packages/LFS-BOOK/Makefile
r1994 r2020 11 11 #SHA-$(FILE)= 729bcf04d8e4ed0af3c58daf0d289e94d6385052 12 12 13 REV= 8 25013 REV= 8319 14 14 REVPARM= -r $(REV) 15 15 16 16 ifeq ($(CD_ARCH),x86) 17 URL= svn://svn.linuxfromscratch.org/LFS/ trunk/BOOK17 URL= svn://svn.linuxfromscratch.org/LFS/branches/6.3/BOOK 18 18 endif 19 19 ifeq ($(CD_ARCH),x86_64) branches/minimal/packages/binutils/Makefile
r1994 r2020 19 19 compile-pass1: 20 20 # --disable-shared overrides unsuitable default from config.site 21 unset CFLAGS ; CC="gcc -B/usr/bin/" ../$(DIR)/configure --prefix=$(WD) --disable-nls --disable-shared 21 unset CFLAGS ; CC="gcc -B/usr/bin/" ../$(DIR)/configure \ 22 --prefix=$(WD) --disable-nls --disable-shared --disable-werror 22 23 unset CFLAGS ; make 23 24 unset CFLAGS ; make install branches/minimal/packages/glibc/Makefile
r1994 r2020 2 2 3 3 NM= glibc 4 VRS= 2.5 4 VRS= 2.5.1 5 5 DIR= $(NM)-$(VRS) 6 6 7 7 FILE= $(DIR).tar.bz2 8 URL-$(FILE)= $(HTTP)/$(NM)/$(FILE)9 SHA-$(FILE)= ec9a007c4875062099a4701ac9137fcdb5a714478 URL-$(FILE)= http://ftp.gnu.org/gnu/glibc/$(FILE) 9 SHA-$(FILE)= 2b7da136df025bb8c787be3351cba58374226d9c 10 10 11 FILE2= $(NM)-libidn-$(VRS).tar.bz2 12 URL-$(FILE2)= $(HTTP)/$(NM)/$(FILE2) 13 SHA-$(FILE2)= ee7e019e01aa338e28db1eeb34abb2cb09d2f30a 14 15 PATCH1= $(DIR)-branch_update-3.patch 16 URL-$(PATCH1)= http://www.linuxfromscratch.org/patches/lfs/development/$(PATCH1) 17 SHA-$(PATCH1)= 3af17e283bf76659c189ee05f2ae56f19a88478c 11 FILE2= $(NM)-libidn-$(VRS).tar.gz 12 URL-$(FILE2)= http://ftp.gnu.org/gnu/glibc/$(FILE2) 13 SHA-$(FILE2)= 816f410835a8d4ecbccdfed2d86ccc6284c2fa92 18 14 19 15 PATCH50= $(DIR)-supported_locales-1.patch … … 23 19 include $(ROOT)/scripts/functions 24 20 25 stage1: $(FILE) $(FILE2) $(PATCH1)21 stage1: $(FILE) $(FILE2) 26 22 $(sep_dir_build) 27 23 28 24 compile-stage1: 29 cd ../$(DIR) ; patch -Np1 -i ../$(PATCH1)30 25 # --enable-static overrides the unsuitable default in config.site 31 26 ../$(DIR)/configure --prefix=$(WD) --disable-profile \ … … 43 38 'cd $(ROOT) && make ch-$(NM) $(chbash-pre-bash)' 44 39 45 stage2: $(FILE) $(FILE2) $(PATCH1)40 stage2: $(FILE) $(FILE2) 46 41 $(sep_dir_build) 47 42 touch $@ 48 43 49 44 compile-stage2: 50 cd ../$(DIR) ; patch -Np1 -i ../$(PATCH1)51 45 cd ../$(DIR) ; unpack ../$(FILE2) ; mv glibc-libidn-$(VRS) libidn 52 46 sed -i \ branches/minimal/packages/lfs-bootscripts/Makefile
r1851 r2020 2 2 3 3 NM= lfs-bootscripts 4 VRS= 20070 4204 VRS= 20070813 5 5 DIR= $(NM)-$(VRS) 6 6 7 7 FILE= $(DIR).tar.bz2 8 8 URL-$(FILE)= http://www.linuxfromscratch.org/lfs/downloads/development/$(FILE) 9 SHA-$(FILE)= 59c9c4443c85b1e6dd903036c24845944775c36b9 SHA-$(FILE)= ab777ce44476494caba80518be9ced4f724a89d5 10 10 11 PATCH1= $( DIR)-livecd-1.patch11 PATCH1= $(NM)-livecd-1.patch 12 12 13 13 # Targets branches/minimal/packages/libaal/Makefile
r2003 r2020 21 21 22 22 compile-stage2: 23 ./configure --prefix=/usr 23 ./configure --prefix=/usr --enable-static 24 24 make 25 25 make install branches/minimal/packages/linux-headers/Makefile
r1973 r2020 2 2 3 3 NM= linux 4 VRS= 2.6.22. 14 VRS= 2.6.22.2 5 5 DIR= $(NM)-$(VRS) 6 6 7 7 FILE= $(DIR).tar.bz2 8 8 URL-$(FILE)= http://www.kernel.org/pub/linux/kernel/v2.6/$(FILE) 9 SHA-$(FILE)= 7aa119f88768c3070f96a48562ea68b2ecd8a2ef9 SHA-$(FILE)= e2606e42a3b40e16f65f750f1dd7cf6a580ea71a 10 10 11 11 # Targets branches/minimal/packages/linux/Makefile
r2003 r2020 2 2 3 3 NM= linux 4 VRS= 2.6.22. 14 VRS= 2.6.22.2 5 5 DIR= $(NM)-$(VRS) 6 6 7 7 FILE= $(DIR).tar.bz2 8 8 URL-$(FILE)= http://www.kernel.org/pub/linux/kernel/v2.6/$(FILE) 9 SHA-$(FILE)= 7aa119f88768c3070f96a48562ea68b2ecd8a2ef9 SHA-$(FILE)= e2606e42a3b40e16f65f750f1dd7cf6a580ea71a 10 10 11 11 PATCH1= reiser4-for-2.6.22-2.patch.gz branches/minimal/packages/linux64/Makefile
r2001 r2020 2 2 3 3 NM= linux 4 VRS= 2.6.22. 14 VRS= 2.6.22.2 5 5 DIR= $(NM)-$(VRS) 6 6 7 7 FILE= $(DIR).tar.bz2 8 8 URL-$(FILE)= http://www.kernel.org/pub/linux/kernel/v2.6/$(FILE) 9 SHA-$(FILE)= 7aa119f88768c3070f96a48562ea68b2ecd8a2ef9 SHA-$(FILE)= e2606e42a3b40e16f65f750f1dd7cf6a580ea71a 10 10 11 11 PATCH1= reiser4-for-2.6.22-2.patch.gz branches/minimal/packages/man-pages/Makefile
r1973 r2020 2 2 3 3 NM= man-pages 4 VRS= 2.6 24 VRS= 2.63 5 5 DIR= $(NM)-$(VRS) 6 6 7 7 FILE= $(DIR).tar.bz2 8 8 URL-$(FILE)= http://www.kernel.org/pub/linux/docs/manpages/Archive/$(FILE) 9 SHA-$(FILE)= e75dacd3d330a882f0baa7f61828b898b514fb429 SHA-$(FILE)= 025d341ad9d197bd16108cbe80182c1c23369f58 10 10 11 11 # Targets branches/minimal/packages/reiser4progs/Makefile
r2003 r2020 6 6 7 7 FILE= $(DIR).tar.gz 8 URL-$(FILE)= http://ftp.namesys.com/pub/reiser4progs/$(FILE) 8 URL-$(FILE)= http://ftp.namesys.com/pub/reiser4progs/$(FILE) 9 9 SHA-$(FILE)= 9acc4f829c5760ee159cb3f507e58478e578990d 10 10 branches/minimal/packages/syslinux/Makefile
r1945 r2020 21 21 22 22 compile-stage2: 23 mkdir -p /boot/isolinux 23 24 cp -v isolinux.bin /boot/isolinux 24 25 cp -v $(ROOT)/isolinux/{isolinux.cfg,*.msg,splash.lss} /boot/isolinux branches/minimal/packages/udev/Makefile
r1945 r2020 3 3 NM= udev 4 4 VRS= 113 5 CONFVRS= 20070 3045 CONFVRS= 20070731 6 6 DIR= $(NM)-$(VRS) 7 7 CONFDIR=$(NM)-config-$(CONFVRS) … … 13 13 FILE1= $(CONFDIR).tar.bz2 14 14 URL-$(FILE1)= http://www.linuxfromscratch.org/lfs/downloads/development/$(FILE1) 15 SHA-$(FILE1)= 22264702f2de999c513e43af04c8ef9262a1534315 SHA-$(FILE1)= f2163c98f3cae0312ec13e4efbbbe9a9af4a8d19 16 16 17 17 # Targets
