注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Install/Kernel"

From Funtoo
Jump to navigation Jump to search
Line 9: Line 9:


<!--T:32-->
<!--T:32-->
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:
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-->
<!--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## ]


<!--T:19-->
<!--T:19-->
*  ##b##sys-kernel/debian-sources##!b##
*  ##b##sys-kernel/debian-sources##!b##
       ##g##Latest version available:##!g## 3.19.3
       ##g##Latest version available:##!g## 4.9.130
       ##g##Latest version installed:##!g## 3.19.3
       ##g##Latest version installed:##!g## 4.9.130
       ##g##Size of files:##!g## 81,292 kB
       ##g##Size of files:##!g## 95,022 kB
       ##g##Homepage:##!g##      http://www.debian.org
       ##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
}}
}}
<!--T:20-->
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]].


<!--T:21-->
<!--T:21-->
{{Important|1=
{{Important|1=
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 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.}}
==== Building the Kernel ==== <!--T:22-->
<!--T:23-->
If you need to build a kernel for Funtoo Linux, please follow these steps:
<!--T:24-->
{{Note|1=
See [[Funtoo Linux Kernels]] for a full list of kernels supported in Funtoo Linux. We recommend <code>debian-sources</code> for new users.}}
<!--T:26-->
Let's emerge our kernel:
<!--T:27-->
{{console|body=
(chroot) # ##i##emerge debian-sources
}}
<!--T:28-->
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.
<!--T:29-->
{{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.}}


<!--T:30-->
<!--T:30-->
{{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|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>.}}
</translate>
</translate>

Revision as of 03:17, November 23, 2018

Other languages:

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
      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
   Important

At this point it is wise to emerge 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 not present.

   Note

NVIDIA card users: the binary 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 /etc/modprobe.d/.