View previous topic :: View next topic |
Author |
Message |
garo Bodhisattva


Joined: 15 Jul 2002 Posts: 860 Location: Edegem,BELGIUM
|
Posted: Tue Oct 01, 2002 8:36 pm Post subject: How I update my kernel |
|
|
I Put this in a script and execute it as root:
with alsa and nvidia:
Code: | #!/bin/bash
cp /boot/bzImage /boot/OLDbzImage && cp /usr/src/linux/.config /root/.config && emerge -C alsa-driver nvidia-glx nvidia-kernel vanilla-sources && rm -rf /usr/src/linux* && emerge vanilla-sources && cd /usr/src/linux && make menuconfig && make dep && echo "clean error" > /root/kernel && make clean && echo "bzImage error" > /root/kernel && make bzImage && echo "modules error" > /root/kernel && make modules && echo "modules_install error" > /root/kernel && make modules_install && rm /root/kernel && cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage && emerge alsa-driver && emerge nvidia-glx && opengl-update nvidia && echo "PERFECT" |
without alsa and nvidia: Code: | #!/bin/bash
cp /boot/bzImage /boot/OLDbzImage && cp /usr/src/linux/.config /root/.config && emerge -C vanilla-sources && rm -rf /usr/src/linux* && emerge vanilla-sources && cd /usr/src/linux && make menuconfig && make dep && echo "clean error" > /root/kernel && make clean && echo "bzImage error" > /root/kernel && make bzImage && echo "modules error" > /root/kernel && make modules && echo "modules_install error" > /root/kernel && make modules_install && rm /root/kernel && cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage && echo "PERFECT" |
If you don't see "PERFECT" and /root/kernel doesn't exist : error in "make dep"
If you don't see "PERFECT" and /root/kernel exist : read it to see the error
Last edited by garo on Wed Dec 18, 2002 4:05 pm; edited 1 time in total |
|
Back to top |
|
 |
biroed Tux's lil' helper


Joined: 16 Aug 2002 Posts: 147 Location: Amsterdam
|
Posted: Wed Oct 02, 2002 8:01 am Post subject: |
|
|
make mrproper before make menuconfig should give less errors. |
|
Back to top |
|
 |
garo Bodhisattva


Joined: 15 Jul 2002 Posts: 860 Location: Edegem,BELGIUM
|
Posted: Wed Oct 02, 2002 8:41 am Post subject: |
|
|
Quote: | make mrproper before make menuconfig should give less errors. |
Remember, i removed and re-emerged the kernel, so /usr/src/linux is already as clean as clean can be. |
|
Back to top |
|
 |
biroed Tux's lil' helper


Joined: 16 Aug 2002 Posts: 147 Location: Amsterdam
|
Posted: Wed Oct 02, 2002 10:33 am Post subject: |
|
|
garo wrote: |
Remember, i removed and re-emerged the kernel, so /usr/src/linux is already as clean as clean can be. |
you're right, make mrproper is one of the things i always do before recompiling. But since you remove /usr/src/linux it's not nesesary. |
|
Back to top |
|
 |
|