View previous topic :: View next topic |
Author |
Message |
slycordinator Advocate


Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Fri Mar 30, 2007 8:37 pm Post subject: |
|
|
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 |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sat Mar 31, 2007 3:10 am Post subject: |
|
|
I will translate this thread for the French Forum. Is there any objections before I start ? |
|
Back to top |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
|
Back to top |
|
 |
Southernman n00b

Joined: 19 Jul 2007 Posts: 16 Location: Mississippi
|
Posted: Sun Jul 22, 2007 6:25 am Post subject: |
|
|
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 |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Mon Jul 23, 2007 11:24 am Post subject: |
|
|
Yeah, this flash thing is pretty impressive  |
|
Back to top |
|
 |
jseymour Apprentice


Joined: 23 Jun 2006 Posts: 202 Location: Gainesville Florida
|
|
Back to top |
|
 |
nikolavp1 n00b

Joined: 01 Feb 2007 Posts: 18
|
Posted: Wed Dec 05, 2007 6:36 pm Post subject: |
|
|
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  |
|
Back to top |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Dec 06, 2007 12:47 pm Post subject: |
|
|
Why do you use this command ? :
If you have MAKEOPTS= '-j2' in your /etc/make.conf, you don't have to pass this variable to make. |
|
Back to top |
|
 |
nikolavp1 n00b

Joined: 01 Feb 2007 Posts: 18
|
Posted: Thu Dec 06, 2007 4:58 pm Post subject: |
|
|
d2_racing wrote: | Why do you use this command ? :
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  |
|
Back to top |
|
 |
techprophet n00b

Joined: 11 Jun 2008 Posts: 17
|
Posted: Wed Dec 10, 2008 2:38 am Post subject: |
|
|
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 |
|
 |
aramis_qc Tux's lil' helper


Joined: 24 Sep 2006 Posts: 106 Location: Québec - Canada
|
Posted: Tue Sep 08, 2009 10:57 am Post subject: |
|
|
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 |
|
 |
sconte n00b

Joined: 06 Feb 2011 Posts: 1
|
Posted: Wed Feb 09, 2011 7:26 am Post subject: |
|
|
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 |
|
 |
Thistled Guru


Joined: 06 Jan 2011 Posts: 572 Location: Scotland
|
Posted: Tue Apr 19, 2011 12:30 am Post subject: |
|
|
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 |
|
 |
ppurka Advocate

Joined: 26 Dec 2004 Posts: 3256
|
Posted: Sun Apr 24, 2011 5:54 am Post subject: |
|
|
Most udev commands have moved to udevadm. So, now you should run _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
 |
|