--- Alireza Saleh <[EMAIL PROTECTED]> wrote:
> Dear Friends
> I have read more that 10 document about compiling the kernel to add some
> features into it, but I have mane many problems yet.
> Most of times I get error on the screen somthing like "error
> entering/leaving  /net directory and my compiling stops."
> most of times when I want to compile modules I get error messages and stop
> compiling , I face to new problem now. when I start ro compile kernel , it
> reboots automatically and I don't know why.
> the steps I use to compile is :
> 1-copying kernel-2.4.3-12.i686.config file from /configs directory to
> src/linux-2.4 directory as .config
> 2- make menuconfig and add some thing
> 3-make dep
> 4-make clean
> 5-make bzImage
> 6-make modules
> 7-make modules_install
> 8-make install
> but the last 2 steps never start because I got fail on previous steps.
> Thanx for your helps in advance.
> Alireza


Hello;
    if you are going to use the same directory as the original then you need to
get rid of the old modules. 
( mv /lib/modules/2.4.3-12 /lib/modules/2.4.3-12-old )

I have a directory called 'updates' that I use for new kernels

copy kernel source and patches:
cp linux-2.4.13.tar.bz2 /updates
cp patch-2.4.13-ac2.bz2 /updates
cd /updates

unzip both files:
bunzip2 *.bz2

untar the kernel source:
tar -xvf *.tar

now we have a 'linux' directory
move the patch file into it and rename it:
mv *ac2 linux
mv linux 2.4.13-ac2

ok now patch the source:
cd 2.4.13-ac2
cat *ac2 | patch -p1

clean start:
make mrproper
cp /usr/src/linux-2.4/configs/*686.config .config (check this - from memory)
make menuconfig
make dep
make clean
make bzImage

edit /etc/lilo.conf or /boot/grub/grub.conf

add 'vmlinuz-2.4.13-ac2' stanza

make modules
make modules_install
make install  ( this will run lilo at the end)

I like to re-run lilo with -v -v ( lilo -v -v ) to check for errors
reboot


I have 5 different kernel trees in /updates, and 5 sets of modules in
/lib/modules.

Mick



=====
"just a guy in a garage - south of Seattle" 
Reg Linux User #105295 - http://counter.li.org/

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to