Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How I update my kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Tue Oct 01, 2002 8:36 pm    Post subject: How I update my kernel Reply with quote

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
View user's profile Send private message
biroed
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2002
Posts: 147
Location: Amsterdam

PostPosted: Wed Oct 02, 2002 8:01 am    Post subject: Reply with quote

make mrproper before make menuconfig should give less errors.
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Wed Oct 02, 2002 8:41 am    Post subject: Reply with quote

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
View user's profile Send private message
biroed
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2002
Posts: 147
Location: Amsterdam

PostPosted: Wed Oct 02, 2002 10:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum