Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[FAQF] KC11: Kernel compiling for the beginner.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Fri Mar 30, 2007 8:37 pm    Post subject: Reply with quote

Most of that script isn't needed.

If I do "make install" after "make modules_install" it will copy the kernel to /boot. It'll also make symlinks called /boot/vmlinuz and /boot/vmlinuz.old

/boot/vmlinuz will now point to the kernel you just installed. And if you already had a /boot/vmlinuz previously, vmlinuz.old will now point to that kernel old kernel.

And the nvidia-kernel and glx steps aren't needed because this means you'd have to do that for each kernel modules. Instead you do:
(before running the script) do "emerge module-rebuild"
Then in the script do "module-rebuild rebuild"
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Mar 31, 2007 3:10 am    Post subject: Reply with quote

I will translate this thread for the French Forum. Is there any objections before I start ?
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Apr 27, 2007 1:38 pm    Post subject: Reply with quote

I have just translated this howto in French here : https://forums.gentoo.org/viewtopic-t-555623.html
Back to top
View user's profile Send private message
Southernman
n00b
n00b


Joined: 19 Jul 2007
Posts: 16
Location: Mississippi

PostPosted: Sun Jul 22, 2007 6:25 am    Post subject: Reply with quote

To Wynn and all other contributors of this FAQ! *bows to the gods*

Thank you! I'll be giving this another shot in the next couple of days.
The tips and tricks you showed us will definately help out!

Although... I don't recall who said it, someone made mention with
machine specs being what they are today, having a lean,
mean kernel build isn't as important as what it used to be.

Being a nOOb at kernel configuring.. it's something I aim to do regardless!

PS. The flash at the end of the FAQ was pretty cool.
Kinda fast for us old farts though... ;)
_________________
~Steve
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Jul 23, 2007 11:24 am    Post subject: Reply with quote

Yeah, this flash thing is pretty impressive :)
Back to top
View user's profile Send private message
jseymour
Apprentice
Apprentice


Joined: 23 Jun 2006
Posts: 202
Location: Gainesville Florida

PostPosted: Mon Nov 12, 2007 5:01 am    Post subject: Reply with quote

Just a quick note, the Kernel configuration slideshow has moved to a different url. You can find it at this URL:

http://tutorialmasters.com/node/3


Sorry for anyone who may have missed it, but moved my site to drupal so the address had to change.

Update: Fixed with a 301 redirect/ :)
_________________
WebServerMasters
Gentoo Installation Flash Tutorials
Back to top
View user's profile Send private message
nikolavp1
n00b
n00b


Joined: 01 Feb 2007
Posts: 18

PostPosted: Wed Dec 05, 2007 6:36 pm    Post subject: Reply with quote

Here is something i use for my kernel updates...
Code:
#!/bin/bash
LOADER_ROOT_PARTITION="hd0,6"
KERNEL_PARAMETERS="root=/dev/hda7 vga=0x315 quiet"
if [[ -d /usr/src/linux ]];then
        echo "Cleaning the old sources"
else
        echo "You don't have a symbolic link or a directory /usr/src/linux and the script depends on that"
        exit 3
fi
#Get the VERSION from the symbolic link
VERSION=$(readlink /usr/src/linux)
#Entering the sources dir
cd /usr/src/linux
make mrproper
if [[ -f /proc/config.gz ]];then
        zcat /proc/config.gz > ./.config
else
        "There isn't /proc/config.gz and the script depend on it"
        eixt 3
fi
#If you want to edit the old options, comment "make oldconfig" and uncomment "make menuconfig"
###############################################################################
#make menuconfig
make oldconfig
make -j2
make modules_install
mv /usr/src/linux/arch/i386/boot/bzImage /boot/"${VERSION%/}"
#Making the menu.lst configuration; some versions of grub have grub.conf instead so you can change it if
#there isn't a symbolic link(there should be).
#TODO: Make a sed hack that edit the default parameter and put the new section as default
#section_number=$(grep title /boot/grub/menu.lst | wc -l)
echo "" >> /boot/grub/menu.lst
echo "title=${VERSION%/}" >> /boot/grub/menu.lst
echo "root(${LOADER_ROOT_PARTITION})" >> /boot/grub/menu.lst
echo "kernel /boot/${VERSION%/} ${KERNEL_PARAMETERS}" >> /boot/grub/menu.lst
If a sed master can make the sed command for the section_number implementation i would be glad to see it :)

P.S. This is for Grub ^_^
_________________
2 hours reading books save 2 days working with a computer :).The pinguins are the only fishes that can fly :D
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Dec 06, 2007 12:47 pm    Post subject: Reply with quote

Why do you use this command ? :
Code:
make -j2


If you have MAKEOPTS= '-j2' in your /etc/make.conf, you don't have to pass this variable to make.
Back to top
View user's profile Send private message
nikolavp1
n00b
n00b


Joined: 01 Feb 2007
Posts: 18

PostPosted: Thu Dec 06, 2007 4:58 pm    Post subject: Reply with quote

d2_racing wrote:
Why do you use this command ? :
Code:
make -j2


If you have MAKEOPTS= '-j2' in your /etc/make.conf, you don't have to pass this variable to make.
Actually you have to ;) /etc/make.conf is only "sourced" by portage, as far as i know.
_________________
2 hours reading books save 2 days working with a computer :).The pinguins are the only fishes that can fly :D
Back to top
View user's profile Send private message
techprophet
n00b
n00b


Joined: 11 Jun 2008
Posts: 17

PostPosted: Wed Dec 10, 2008 2:38 am    Post subject: Reply with quote

Just a tip: make sure you build your hard drive driver into the kernel as well as the driver for your motherboard's SATA/PATA/ATA driver. It cause me lots of headaches trying to figure out what was wrong before seeing that.
_________________
Grouping is inevitable, Stereotyping is avoidable.
Allah is a demon
Back to top
View user's profile Send private message
aramis_qc
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2006
Posts: 106
Location: Québec - Canada

PostPosted: Tue Sep 08, 2009 10:57 am    Post subject: Reply with quote

This is a great how-to for a beginner. Thank's to d2_racing who dropped me an e-mail to tell me about its existence.

As I'm rewriting French installation documentation on Gentoo-Québec web site (from PDF to Mediawiki format), this wynn's how-to will greatly help me. Most of all, my approach is quite similar to the one of this tutorial. Can you read French ? So just look at this wiki still in the work :

http://gentoo-quebec.org/wiki/index.php/100-Installation:Gentoo_classique_unstable#Configuration_du_noyau

I have a question somehow. The how-to shows how to use udevinfo. It seems that udevinfo and other commands such like undevmonitor and the likes are now replaced by udevadm. Is it possible that someone updates the tutorial in order to tell about the usage of udevadm ?
_________________
Profil et systèmes
Back to top
View user's profile Send private message
sconte
n00b
n00b


Joined: 06 Feb 2011
Posts: 1

PostPosted: Wed Feb 09, 2011 7:26 am    Post subject: Reply with quote

Please capitalize "i" of "bzimage" in
Quote:

Codice:
cp -pv arch/i386/boot/bzimage /boot/kernel-2.6.19-gentoo-r5

Hi, s.
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 572
Location: Scotland

PostPosted: Tue Apr 19, 2011 12:30 am    Post subject: Reply with quote

Quote:
To find the chipset driver (or drivers) for /dev/sda, runCode:
udevinfo -a -p /sys/block/sda | grep DRIVERS


Sorry, this command does not work.
Code:
# udevinfo -a -p /sys/block/sdb | grep DRIVERS
-su: udevinfo: command not found
#


Am I doing something wrong, or is it time to update this helpful guide?
_________________
Whatever you do, do it properly!
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Sun Apr 24, 2011 5:54 am    Post subject: Reply with quote

Most udev commands have moved to udevadm. So, now you should run
Code:
udevadm info ...

_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
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
Goto page Previous  1, 2
Page 2 of 2

 
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