View previous topic :: View next topic |
Author |
Message |
dman777 Veteran

Joined: 10 Jan 2007 Posts: 1004
|
Posted: Sun Feb 24, 2008 6:59 am Post subject: Kernel Compileing Questions |
|
|
I plan on using the gentoo-source kernel and I will use genkernel to compile it. I have a few questions I was wondering if anyone could answer, please:
1). I have a dual core system. Will it automatically detect it and set the Symmetric multi-processing support?
2). Will it automatically compile the NTFS-3G driver with it?
3). Will it compile the necessary driver/module to be able to start a virtual machine for Virtual Box? |
|
Back to top |
|
 |
mark_alec Bodhisattva


Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Sun Feb 24, 2008 9:01 am Post subject: |
|
|
Moved from Installing Gentoo to Kernel & Hardware. _________________ www.gentoo.org.au || #gentoo-au |
|
Back to top |
|
 |
didymos Advocate


Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Sun Feb 24, 2008 9:23 am Post subject: |
|
|
Genkernel is kind of pointless if you ask me. Just emerge gentoo-sources, run make menuconfig, configure everything to your liking, and do:
Code: |
make all modules_install install
|
Then just set the kernel in grub.conf to "/vmlinuz". Next time you update the kernel, it automatically backs up the previous one and creates a symlink to it: vmlinuz.old. Add a second grub entry for that and you can easily revert to the last working kernel if something breaks.
Anyway, by itself, genkernel will just go with the current config, but often you have to adjust things anyway since options get added, dropped, and renamed as the kernel progresses. The solution: tell genkernel you want to do a menuconfig via a command line option. Wow, what a timesaver. If you're using a boot splash theme, genkernel is moderately convenient, but you can just use the tools that come with splashutils yourself, since genkernel basically just acts a front-end to those too. _________________ Thomas S. Howard |
|
Back to top |
|
 |
schachti Advocate


Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Sun Feb 24, 2008 10:24 am Post subject: Re: Kernel Compileing Questions |
|
|
dman777 wrote: | 2). Will it automatically compile the NTFS-3G driver with it?
3). Will it compile the necessary driver/module to be able to start a virtual machine for Virtual Box? |
This has nothing to do with the kernel - these are standalone packages that are not included in the kernel, so just emerge them by hand. _________________ Never argue with an idiot. He brings you down to his level, then beats you with experience.
How-To: Daten verschlüsselt auf DVD speichern. |
|
Back to top |
|
 |
dman777 Veteran

Joined: 10 Jan 2007 Posts: 1004
|
Posted: Tue Feb 26, 2008 12:53 am Post subject: |
|
|
Are you sure? Someone told me I need to enable FUSE in the kernel to use NTFS-3G. If this is true, would it be enabled automatically in genkernel?
I know if I don't use genkernel I'm going to forget something because I'm not that experienced with it. What should I do? |
|
Back to top |
|
 |
Jaglover Watchman


Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Tue Feb 26, 2008 3:22 am Post subject: |
|
|
Quote: | I know if I don't use genkernel I'm going to forget something because I'm not that experienced with it. What should I do? | Configure, build, install, configure, build, install ... experience is not sold in Wal-Mart.
FUSE is filesystem in userspace, you need it if you want to use external drivers. |
|
Back to top |
|
 |
billydv l33t


Joined: 22 Dec 2006 Posts: 911 Location: Mount Vernon, NY
|
Posted: Wed Feb 27, 2008 2:25 pm Post subject: |
|
|
You can enable fuse in the kernel when you compile your kernel. If its compiled in or was compiled as a module with your kernel, when you emerge fuse it will tell you its skipping the kernel part because its already built in. _________________ Billy DeVincentis |
|
Back to top |
|
 |
djinnZ Advocate


Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Wed Feb 27, 2008 5:28 pm Post subject: Re: Kernel Compileing Questions |
|
|
dman777 wrote: | 1). I have a dual core system. Will it automatically detect it and set the Symmetric multi-processing support? | no, you need to use genkernel with the --menuconfig option (or you can edit the /etc/genkernel.conf file to have on default the menu or to not launch a make mproper and so other) to select the correct processor type, genkernel will only insert a generical configuration to easy refine it, the simmetric multiprocessing support is added by default but is an intel pentium II o something so, I not remember esactly. Do a look to the genkernel documentation.
dman777 wrote: | 2). Will it automatically compile the NTFS-3G driver with it?
3). Will it compile the necessary driver/module to be able to start a virtual machine for Virtual Box? | no, but you can use sys-kernel/module-rebuild
In fact I like to use genkernel because there is nothing to learn in repeating the same operations every time I must recompile the kernel. Better simply launch a Code: | module-rebuild populate ; genkernel kernel ; module-rebuild rebuild | as I start to use a new kernel version or a Code: | genkernel --noclean kernel ; module-rebuild rebuild | as I need only to change the configuration, obliviously my genkernel is configured to start automatically the menuconfig.
ntfs-3g has his own version of fuse module included (needed to work with old kernels) so if you are not compiled it and is not the standalone fuse installed will be added automatically to the modules.
If you are using a kernel version >= 2.6.21 is better to use the kernel fuse builtin IMHO. _________________ scita et risus abundant in ore stultorum sed etiam semper severi insani sunt
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist  |
|
Back to top |
|
 |
billydv l33t


Joined: 22 Dec 2006 Posts: 911 Location: Mount Vernon, NY
|
Posted: Wed Feb 27, 2008 9:29 pm Post subject: |
|
|
Dman, you are a bit new to this so let me give you some newbie advice with regards to genkernel. For starters here is the command to build a kernel and initramfs. This assumes that you will use the lovely gentoo framebuffer splash and uvesafb. Packages that must be emerged prior to this are splashutils (media/gfx), splash-themes-gentoo (media/gfx), genkernel, gentoo-sources, klibc (dev/libs), and v86d. There is a read up on the uvesafb at http://dev.gentoo.org/~spock/projects/uvesafb/ and the fbsplash at http://fbsplash.berlios.de/wiki/doku.php?id=docs:distros:gentoo and http://dev.gentoo.org/~spock/projects/fbcondecor/
genkernel --menuconfig --install kernel --splash=livecd-2007.0 initrd
Prior to running this in terminal but after emerging above packages be sure to set the symlink to your newest gentoo sources by running eselect kernel list and then eselect kernel set (the number shown in previous command)
This will now give you a kernel config menu
This website will give you some help in choosing things
http://ubuntuforums.org/showpost.php?p=1174954&postcount=507
press esc twice and enter and your kernel will build
after its done in /boot you will find kernel, initramfs, and system map, rename them like in my grub entry below (remove the genkernel part) and you then must emerge things like nvidia-drivers, ati-drivers, vmware modules and fuse.
title Gentoo X86 2.6.24-gentoo-r3
root (hd1,2)
kernel /boot/kernel-2.6.24-gentoo-r3 pci=nommconf root=/dev/ram0 init=/linuxrc ramdisk_size=8192 real_root=/dev/sda3 quiet splash=silent,fadein,fadeout,theme:livecd-2007.0 video=uvesafb:1024x768-32,mtrr:3,ywrap console=tty1
initrd /boot/initramfs-2.6.24-gentoo-r3 _________________ Billy DeVincentis |
|
Back to top |
|
 |
|
|
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
|
|