cvs commit: hints initrd.txt

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Sun Feb 15 15:04:26 PST 2004


tushar      04/02/15 16:04:26

  Modified:    .        initrd.txt
  Log:
  Updated: initrd.txt
  
  Revision  Changes    Path
  1.15      +47 -63    hints/initrd.txt
  
  Index: initrd.txt
  ===================================================================
  RCS file: /home/cvsroot/hints/initrd.txt,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -u -r1.14 -r1.15
  --- initrd.txt	3 Dec 2003 18:35:54 -0000	1.14
  +++ initrd.txt	15 Feb 2004 23:04:26 -0000	1.15
  @@ -1,6 +1,6 @@
   AUTHOR:         Jim Gifford <lfs-hints at jg555.com>
   
  -DATE: 		2003-12-01
  +DATE: 		2004-02-14
   
   LICENSE: 	GNU Free Documentation License Version 1.2
   
  @@ -10,14 +10,11 @@
   		for your LFS system
   
   PREREQUISITES:  SCSI and USB Modules must be in modules.conf
  -		Linux built with modules and the following options.
  -		<*> SCSI support
  -		<*> ATA/IDE/MFM/RLL support
  -		<*> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
  -		Root Filesystem must be compiled in
  -		Initrd FileSystem must be compiled in (romfs or ext2)
  -		Busybox-1.00-pre3
  -		genromfs 0.5.1
  +		Linux 2.4/2.6 built with modules.
  +			Ram disk support compiled in
  +			initrd selected
  +			Root Filesystem must be compiled in
  +		Busybox-1.00-pre7
   HINT:
   
   Introduction to Initial RAMDisk
  @@ -39,7 +36,7 @@
   	Files have been downloaded.
   
   ---
  -Kernel Configuration
  +Kernel Configuration for 2.4
   
   	You will need to make sure the following items are configured
   	in your kernel. With out these, the initrd will not work 
  @@ -51,61 +48,43 @@
   		(4096)   Default RAM disk size
   		[*]   Initial RAM disk (initrd) support
   
  -	If IDE support
  +	The root and initrd file systems must be compiled into the kernel.
   
  -	ATA/IDE/MFM/RLL support  ---> 
  -		<*> ATA/IDE/MFM/RLL support 
  -		<*> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
  +---
  +Kernel Configuration for 2.6
   
  -	If SCSI support
  -	
  -	SCSI support  --->
  -		<*> SCSI support
  -		<*>   SCSI disk support 
  +	You will need to make sure the following items are configured
  +	in your kernel. With out these, the initrd will not work 
  +	properly.
   
  -	The root and initrd file systems must be compiled into
  -	the kernel.
  -	
  -	The default initrd file system for the script is
  -	romfs, but ext2, ext3, and cramfs also can be used.
  +	Device Drivers  --->
  +		Block devices  --->
  +			<M> Loopback device support (or <*>)
  +			<*> RAM disk support
  +			(4096)   Default RAM disk size
  +			[*]   Initial RAM disk (initrd) support
   
  +	The root and initrd file systems must be compiled into the kernel.
  +	
   ---
   File Systems
   
  -	The new script has 4 choices of file systems.
  -	ext2, ext3, romfs, and cramfs.
  +	The new script has 3 choices of file systems.
  +	ext2, ext3, and cramfs.
   
  -	romfs and cramfs will give you a smaller initrd.
  -	My initrd with romfs was only 392k. Compressed
  -	with gzip -9.
  -	
   	ext2 and ext3 are the most common file systems
   	in use, but the initrd is usually bigger.
  -	My initrd with ext3 was only 425k. Compressed with
  +	My initrd with ext3 was only 412k. Compressed with
   	gzip -9
   
   ---
   Needed Programs
   	
  -	genromfs 0.5.1
  +	busybox 1.00-pre7
   	----
   
   	Download From
  -	http://umn.dl.sourceforge.net/sourceforge/romfs/genromfs-0.5.1.tar.gz
  -
  -	Information
  -	http://romfs.sourceforge.net
  -
  -	Build instructions
  -	
  -	make &&
  -	make install	
  -
  -	busybox 1.00-pre3
  -	----
  -
  -	Download From
  -	http://busybox.net/downloads/busybox-1.00-pre3.tar.bz2	
  +	http://busybox.net/downloads/busybox-1.00-pre7.tar.bz2	
   
   	Information
   	http://busybox.net
  @@ -118,25 +97,27 @@
   	will add to the size of your initrd.
   
   	General Configuration --->
  -		[*] Support for devfs NOTE - only if you using devfs
  +		[*] Support for devfs
  +			 NOTE - only if you using devfs
   	Build Options  --->
   		[*] Build BusyBox as a static binary (no shared libs)
   	Coreutils  --->
   		[*] echo (basic SUSv3 version taking no options
  -		[*] mkdir
   	Linux Module Utilities  ---> 
   		[*] insmod
  +		[*]     Support version 2.1.x to 2.4.x Linux kernels
  +			NOTE - only if your using a 2.4 kernel
  +		[*]     Support version 2.6.x Linux kernels
  +			NOTE - only if your using a 2.6 kernel
   	Another Bourne-like Shell  --->
  -		[*]     Enable alias support
   		[*]     Optimize for size instead of speed
  +		[*]     Enable alias support
   		(0) history size
   	Linux System Utilities  --->
   		[*] pivot_root
   		[*] mount
  -		[*] umount
  -		[*]     Support for loop devices
   
  -	The build size on my system was 507k, considerably smaller than
  +	The build size on my system was 502k, considerably smaller than
   	bash.
   
   	After running make menuconfig you will need to run the
  @@ -169,9 +150,6 @@
   
   	Required
           --kernel_version={version} = use kernel version
  -	Root Change Method - one must be selected"
  -	[--change-root] -- Old Method
  -	[--pivot-root] -- New Method
   
   	Optional
   	--ide = remove ide modules
  @@ -179,7 +157,8 @@
   	--usb = remove usb modules
   	--cdrom = remove cdrom modules
   	--ide-scsi = remove ide-scsi module
  -	--initrdfs={romfs|ext2|ext3|cramfs} = use either romfs,ext2,ext3, or cramfs
  +	--devfs = remove devfs settings from initrd
  +	--initrdfs={ext2|ext3|cramfs} = use either ext2,ext3, or cramfs
           --remove-module={module} = remove module
           --add-module={module} = add module
   
  @@ -212,8 +191,10 @@
   		then
         		umount /initrd/dev
      	fi
  -   	umount /initrd
  -   	/sbin/blockdev --flushbufs /dev/ram0
  +
  +	umount /initrd/proc
  +	umount /initrd
  +	blockdev --flushbufs /dev/ram0
   
   # End $rc_base/init.d/initrd
   		
  @@ -256,19 +237,22 @@
   	In order to use the initrd.img file is to add the
   	following to syslinux.cfg file.
   
  -	append root=/dev/ram0 initrd=initrd-2.4.23.img
  +	append initrd=initrd-2.4.23.img
   
   	So your syslinux.cfg should look something like this.
   
   	label test
   	kernel vmlinuz
  -	append root=/dev/ram0 initrd=initrd.img
  +	append initrd=initrd.img
   
   ---
   
  -VERSION:        2.4
  +VERSION:        2.7
   
  -CHANGELOG:     	2.4 Added a choice of the Change_Root Method
  +CHANGELOG:     	2.7 Updated Configurations
  +		2.6 More 2.6 Updates -- removed romfs
  +		2.5 Updated for 2.6 Kernel
  +		2.4 Added a choice of the Change_Root Method
   		    and the pivot_root method.
   		2.3 Fixed Typos
   		2.2 Fixed Typos
  
  
  



More information about the hints mailing list