Changes

Jump to: navigation, search

Install/Kernel

3,641 bytes removed, 5 years ago
Configuring and installing the Linux kernel
{{InstallPart|Kernel Installation}}
</noinclude>
=== Configuring and installing the Linux kernel Kernel ===
Now itStarting mid-May 2015, Funtoo Linux stage3's time include a pre-built {{c|debian-sources}} kernel to build make installation faster and install a Linux kernel, which is the heart of any Funtoo Linux systemeasier. The kernel To see if debian-sources is loaded by the boot loader, and interfaces directly with your system's hardwareinstalled, and allows regular (userspace) programs to run.type:
A kernel must be configured properly for your system'{{console|body=(chroot) # ##i##emerge -s hardware, so that it supports your hard drives, file systems, network cards, and so on. More experienced Linux users can choose to install kernel debian-sources and configure and install their own kernelSearching. If you don't know how to do this, we provide ebuilds that will automatically build a "univeral" kernel, modules and initramfs for booting your system that supports all hardware. This is an extremely simple way of building a kernel that will get your system booted. [ Results for search key : debian-sources ][ Applications found : 1 ]
What is our goal? To build a * sys-kernel that will recognize all the hardware in your system necessary for booting/debian-sources ##g##Latest version available:##!g## 3.19.3 ##g##Latest version installed:##!g## 3.19.3 ##g##Size of files:##!g## 81, so that you will be greeted by a friendly login prompt after installation is complete292 kB ##g##Homepage:##!g## http://www. These instructions will guide you through the process of installing a debian.org ##g##Description:##!g## Debian Sources (and optional binary kernel the "easy" way -) ##g##License:##!g## GPL- without requiring user configuration, by using a "universal" kernel.2}}
==== Package Sets ====If a version is listed under {{c|Latest version installed}}, then debian-sources is already pre-built for you and you can proceed to the next section.
Before we install a kernel, we're going to cover a feature of Portage called package sets. Portage, the package manager/ports system for Funtoo Linux, will keep track of system packages as well as packages you have installed by calling <code>emerge</code> directly. These packages that are part of the base system are considered part of the "system" package set, while packages that you have installed by typing them on the command line (such as "gnome" in <code>emerge gnome</code>) will be added to the "world" package set. This provides an easy way to update your entire system. However, sometimes it's nice to be able to update the kernel all by itself, or leave a kernel update out of your regular whole system update. To do this, we will create a new package set called "kernel". ==== Building the Kernel Package Set ==== To create the kernel package set, perform the following steps: <console>(chroot) # ##i##mkdir /etc/portage/sets(chroot) # ##i##echo sys-kernel/debian-sources > /etc/portage/sets/kernel</console> Now, we'll want to set a USE variable to tell <code>debian-sources</code> to build a "universal" kernel and initramfs for us, to take the guess-work out of getting Funtoo Linux booted. To do this, we're going to set the <code>binary</code> USE variable for <code>debian-sources</code>, as follows: <console>(chroot) # ##i##echo "sys-kernel/debian-sources binary" >> /etc/portage/package.use</console>
If USE variables are new to you, you'll be getting a lot more familiar with them as you use Funtoo Linux. At their essence, they are "switches" that you can set to configure options that can be built in to various packages. They're used to customize your Funtoo Linux system to meet your exact needs. We added support for a <code>binary</code> USE flag need to the <code>debian-sources</code> ebuilds, as well as build a few other of our kernel ebuilds, to make it easier for new users to get Funtoo Linux up and running. Now, when we just want to update our system's packages, we'll type <code>emerge -auDN @world</code>, and it will update our world set, leaving out the kernel. Likewise, when we just want to update our kernel, we'll type <code>emerge -au @kernel</code>, and it will update our kernel, leaving out the world set. ==== Building the Kernel ====please follow these steps:
{{Fancynote|1=
<console>
(chroot) # ##i##emerge debian-1 @kernelsources
</console>
{{Important|Right now, the Once <code>-1emerge</code> option is required completes, you'll have a brand new kernel and initramfs installed to not add our <code>@kernel</code> set to <code>world-setsboot</code>. This allows you to emerge it independently from @world. If you forget to use this option, edit plus kernel headers installed in <code>/varusr/libsrc/portage/world-setslinux</code> and remove the <code>@kernel</code> line. This will prevent kernel updates from being included in @world updates.}} Note that while use of the <code>binary</code> USE flag makes installing a working kernel extremely simple, it is one part of Funtoo Linux that takes a ''very'' long time to build from source, because it is building a kernel that supports ''all'' hardware that Linux supports! So, get the build started, and then let your machine compile. Slower machines can take up to several hours to build the kernel, and you'll want be ready to make sure that you've set <code>MAKEOPTS</code> in <code>/etc/portage/make.conf</code> configure the boot loader to load these to the number of processing cores/threads (plus one) in boot your Funtoo Linux system before starting to build it as quickly as possible -- see the [[#/etc/portage/make.conf|/etc/portage/make.conf section]] if you forgot to do this.
{{fancynote|NVIDIA card users: the <code>binary</code> USE flag installs the Nouveau drivers which cannot be loaded at the same time as the proprietary drivers, and cannot be unloaded at runtime because of KMS. You need to blacklist it under <code>/etc/modprobe.d/</code>.}}
{{fancynote|For an overview of other kernel options for Funtoo Linux, see [[Funtoo Linux Kernels]]. There may be modules that the Debian kernel doesn't include, a situation where [http://www.funtoo.org/wiki/Funtoo_Linux_Kernels#Using_Debian-Sources_with_Genkernel genkernel] would be useful. Also be sure to see [[:Category:Hardware Compatibility|hardware compatibility]] information.}}
 
Once <code>emerge</code> completes, you'll have a brand new kernel and initramfs installed to <code>/boot</code>, plus kernel headers installed in <code>/usr/src/linux</code>, and you'll be ready to configure the boot loader to load these to boot your Funtoo Linux system.
Bureaucrats, Administrators, wiki-admins, wiki-staff
6,343
edits

Navigation menu