Hi,

after some problems with glibc and dosemu I successfully compiled a new
linuxboot. And cause this seems to be a problem for more users I wrote
some lines to explain my steps.

My system was a fresh installation of ubuntu 8.10 and latest patches.


1. install needed tools and kernel-headers:

aptitude install cvs build-essential bison flex libncurses-dev mkisofs gawk 
linux-headers-$(uname -r)


2. get cvs-source of unattended (about 2G in directory unattended and 200MB in 
/var/tmp needed to compile linuxboot)

cvs -d:pserver:anonym...@unattended.cvs.sourceforge.net:/cvsroot/unattended co 
unattended
cd unattended/linuxboot
make download


3. install gcc-4.1 (compiling dosemu with gcc-4.3 failed) and symlink it to gcc

apt-get install gcc-4.1
ln -sv --force gcc-4.1 /usr/bin/gcc


4. modify Makefile, edit glibc version to 2.9 (glibc=glibc-2.9) and replace 
##glibc section with:

> GLIBCCFLAGS="-O2 -mtune=i686 -pipe -U_FORTIFY_SOURCE -fno-stack-protector"
> ## glibc
> build-$(glibc)/libc.so: $(linux)/arch/x86/boot/bzImage
>       mkdir -p build-$(glibc)
>       cd build-$(glibc) && CFLAGS=$(GLIBCCFLAGS) CHOST=$(CHOST) CC=$(CC) 
> $(cwd)/$(glibc)/configure    \
>               --prefix=/usr                                   \
>               --without-gd --without-cvs                      \
>               --enable-kernel=2.6.9                           \
>               --without-selinux                               \
>               --disable-nls                                   \
>               --disable-stackguard-randomization              \
>               --enable-old-ssp-compat                         \
>               --enable-add-ons                                \
>               --enable-bind-now                               \
>               --includedir=$(cwd)/$(linux)/dest/include       \
>               --with-headers=$(cwd)/$(linux)/dest/include     \
>               --build=i686-linux                              \
>               --host=i686-linux                               \
>               --enable-all-warnings                           \
>       && find . -name \*.d -print0 | xargs -0 -r rm -f        \
>       && $(MAKE)
>       touch -c $@


5. make tftpboot with

make tftpboot

Thats all. Kernel and initrd now in tftpboot/.


-- 
Regards and Happy Easter!
Sven



------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to