Difference between revisions of "Install/Kernel"

From Funtoo
Jump to: navigation, search
(Building the Kernel)
(Marked this version for translation)
 
(23 intermediate revisions by 4 users not shown)
Line 1: Line 1:
=== Kernel ===  
+
<translate>
 +
<includeonly>
 +
== Prepare Disk == <!--T:1-->
 +
</includeonly><noinclude><languages/>
 +
= Install Guide: Install a Kernel =
  
Funtoo Linux stage3's include a pre-built {{c|debian-sources}} kernel to make installation faster and easier. To see if debian-sources is installed, type:
+
<!--T:2-->
 +
{{InstallNavigation|num=13|prev=Introducing Portage|next=Bootloader}}</noinclude>
  
 +
<!--T:32-->
 +
Funtoo Linux stage3's include a pre-built {{c|debian-sources-lts}} kernel to make installation faster and easier. To see what kernel version is pre-installed, type:
 +
 +
<!--T:18-->
 
{{console|body=
 
{{console|body=
(chroot) # ##i##emerge -s debian-sources
+
%chroot% ##i##emerge -s debian-sources-lts
 
Searching...     
 
Searching...     
[ Results for search key : ##b##debian-sources##!b## ]
+
[ Results for search key : ##b##debian-sources-lts##!b## ]
 
[ Applications found : ##b##1##!b## ]
 
[ Applications found : ##b##1##!b## ]
  
*  ##b##sys-kernel/debian-sources##!b##
+
<!--T:19-->
       ##g##Latest version available:##!g## 3.19.3
+
*  ##b##sys-kernel/debian-sources-lts##!b##
       ##g##Latest version installed:##!g## 3.19.3
+
       ##g##Latest version available:##!g## 4.9.130
       ##g##Size of files:##!g## 81,292 kB
+
       ##g##Latest version installed:##!g## 4.9.130
       ##g##Homepage:##!g##      http://www.debian.org
+
       ##g##Size of files:##!g## 95,022 kB
 +
       ##g##Homepage:##!g##      https://packages.debian.org/stable/kernel/linux-image-4.9.0-6-amd64
 
       ##g##Description:##!g##  Debian Sources (and optional binary kernel)
 
       ##g##Description:##!g##  Debian Sources (and optional binary kernel)
 
       ##g##License:##!g##      GPL-2
 
       ##g##License:##!g##      GPL-2
 
}}
 
}}
  
If a version is listed under {{c|Latest version installed}}, then debian-sources is already pre-built for you and you can skip the rest of the Kernel section, and proceed to the [[#Installing a Bootloader|Installing a Bootloader section]].
+
=== Firmware === <!--T:33-->
  
{{Important|1=
+
<!--T:34-->
At this point it is wise to emerge latest {{c|sys-kernel/linux-firmware}} package, because various drivers rely on firmware blobs and instructions. Hardware like wi-fi cards, graphic cards, network cards, and others will not work properly or at all if firmware not present.}}
+
At this point it is wise to emerge the latest {{c|sys-kernel/linux-firmware}} package, because various drivers rely on firmware blobs and instructions. Hardware like Wi-Fi cards, graphic cards, network cards, and others will not work properly or at all if firmware is not available. If using the ''{{c|stage3}}'' image, perform the following to install it. {{c|linux-firmware}} will be already installed if using the ''{{c|gnome}}'' image:
  
==== Building the Kernel ====
+
<!--T:35-->
 +
{{console|body=
 +
%chroot% ##i##emerge -av linux-firmware
 +
}}
  
If you need to build a kernel for Funtoo Linux, please follow these steps:
+
=== Modern Intel Chipsets === <!--T:36-->
  
{{Note|1=
+
<!--T:37-->
See [[Funtoo Linux Kernels]] for a full list of kernels supported in Funtoo Linux. We recommend <code>debian-sources</code> for new users.}}
+
If you have a modern Intel system (Skylake, Coffee Lake or newer) then you may be better served by the newer {{c|debian-sources}} kernel
 +
as it will have support for more modern Intel WiFi and integrated graphics chipsets. To use this kernel, you will want to perform the following steps:
  
{{Important|1=
+
<!--T:38-->
<code>debian-sources</code> with <code>binary</code> USE flag requires at least 20GB free in <code>/var/tmp</code> and takes around 1 hour to build on a Intel Core i7 Processor.}}
+
{{console|body=
 
+
%chroot% ##i##echo "sys-kernel/debian-sources binary" > /etc/portage/package.use
Let's emerge our kernel:
+
%chroot% ##i##emerge -av debian-sources
 
+
}}
<console>
 
(chroot) # ##i##emerge debian-sources
 
</console>
 
 
 
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.
 
 
 
{{warning|If you have a RAID in your machine, the kernel installation will pull in the <code>mdadm</code> tool as a dependency. It is important to edit the <code>/etc/mdadm.conf</code> file prior to rebooting the machine so the RAID is properly recognised and set up before the kernel attempts to mount it in the tree. Failing to do so can result in an unusable or even unbootable system! For specific details, consult the mdadm man page <code>man mdadm</code> or the [[Package:Mdadm|mdadm]] ebuild page.}}
 
 
 
{{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.}}
+
<!--T:39-->
 +
Then, when you configure {{c|/etc/boot.conf}} in the next section, you will want to ensure that {{c|debian-sources}} (not {{c|debian-sources-lts}}) is selected as your default kernel.
 +
</translate>
 +
<noinclude>{{InstallNavigation|num=13|prev=Introducing Portage|next=Bootloader|align=right}}</noinclude>

Latest revision as of 22:05, October 10, 2019

Other languages:
English • ‎español • ‎português do Brasil • ‎русский

Install Guide: Install a Kernel

Install Guide, Chapter 13 < Prev Next >

Funtoo Linux stage3's include a pre-built debian-sources-lts kernel to make installation faster and easier. To see what kernel version is pre-installed, type:

chroot # emerge -s debian-sources-lts
Searching...    
[ Results for search key : debian-sources-lts ]
[ Applications found : 1 ]

*  sys-kernel/debian-sources-lts
      Latest version available: 4.9.130
      Latest version installed: 4.9.130
      Size of files: 95,022 kB
      Homepage:      https://packages.debian.org/stable/kernel/linux-image-4.9.0-6-amd64
      Description:   Debian Sources (and optional binary kernel)
      License:       GPL-2

Firmware

At this point it is wise to emerge the latest sys-kernel/linux-firmware package, because various drivers rely on firmware blobs and instructions. Hardware like Wi-Fi cards, graphic cards, network cards, and others will not work properly or at all if firmware is not available. If using the stage3 image, perform the following to install it. linux-firmware will be already installed if using the gnome image:

chroot # emerge -av linux-firmware

Modern Intel Chipsets

If you have a modern Intel system (Skylake, Coffee Lake or newer) then you may be better served by the newer debian-sources kernel as it will have support for more modern Intel WiFi and integrated graphics chipsets. To use this kernel, you will want to perform the following steps:

chroot # echo "sys-kernel/debian-sources binary" > /etc/portage/package.use
chroot # emerge -av debian-sources

Then, when you configure /etc/boot.conf in the next section, you will want to ensure that debian-sources (not debian-sources-lts) is selected as your default kernel.

Install Guide, Chapter 13 < Prev Next >