cvs commit: hints kernel-2.6-how-to.txt

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Tue Jan 27 20:38:43 PST 2004


tushar      04/01/27 21:38:43

  Added:       .        kernel-2.6-how-to.txt
  Log:
  Added kernel-2.6-how-to.txt
  
  Revision  Changes    Path
  1.1                  hints/kernel-2.6-how-to.txt
  
  Index: kernel-2.6-how-to.txt
  ===================================================================
  AUTHOR: zippo zippo752001 at comcast.net or #lfs-support
  DATE: 2004-01-25
  LICENSE: GNU General Public License
  SYNOPSIS: Build LFS with the 2.6.* kernel
  Primary URL: zippo01.ath.cx
  DESCRIPTION: This is a most wonder How-to for LFS users that want the new 2.6.0
  Kernel from build. If you want it but don't want the hassile just build
  it with the 2.4.* kernel and upgrade to the 2.6.0 kernel. 
  
  PREREQUISITES:
  
  First you will need a few different things.
  The kernel: www.kernel.org
  
  Nice clean headers: Here you can make our own or use the ones on my
  http."they might or might not be up todate".
  
  http://zippo01.ath.cx/glibc-kernelheaders
  
  To make them: 
  
  get: http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS
  you will need the glibc-kernheaders-* file. 
  get: http://www.iagora.com/~espel/rpm2cpio 
  run: perl rpm2cpio glib* > glibc-kernelheaders.tmp //converts the
  src.rpm to a cpio
  Then run: cpio -d -i < ./glibc-kernelheaders.tmp //makes it into a nice bz2
  file
  All you will need is the glibc-kernelheaders.tar.bz2 file
  
  Modules-utils: ftp://ftp.kernel.org/pub/linux/kernel/people/rusty/modules/
  
  thats all you will need.
  
  HINT:
  
  Chapter 5 -- Installing 2.6 kernel
  Use "make include/asm" instead of "make symlinks"
  
  Chapter 6 -- Installing 2.6 kernel
  	make mrproper &&
  	make include/linux/version.h &&
          make include/asm &&
          mkdir /usr/src/glibcheaders &&
          cp -HR include/asm /usr/src/glibcheaders &&
          cp -R include/asm-generic /usr/src/glibcheaders &&
          cp -R include/linux /usr/src/glibcheaders &&
          touch /usr/src/glibcheaders/linux/autoconf.h
  
  Chapter 6 -- Installing Glibc
  Use this to configure the Glibc
  	../glibc-2.3.2/configure --prefix=/usr \
  	--disable-profile --enable-add-ons \
  	--libexecdir=/usr/lib --with-headers=/usr/src/glibcheaders
  
  Chapter 6 -- Installing sanitized kernel headers
  After you install the glibc you should do this.
  	tar jxvf glibc-kernelheaders.tar.bz2
  	cd usr/include
  	***NOTE*** if your arch is something other then i386 then you
  should change the next line to fit. EX. asm-ppc, to see all possible
  ones just ls. :-p	
  	cp -R asm-i386 /usr/include/asm    
  	cp -R linux /usr/include
  
  Chapter 6 -- Installing Modutils
  Instead of Modutils we will use Module-init-tools
  	./configure --prefix=/
  	make
  	make install
  Other then that Follow the book.
  
  Acknowledgements: J_MAN!!!	
  
  CHANGELOG:
  
  	1/27/04 0.0.2
  		*fixed format
  		*added how-to for different arches
  
  	1/25/04 0.0.1
  
  
  



More information about the hints mailing list