Difference between pages "Package:Boot-Update" and "Install/pt-br/Kernel"

(Difference between pages)
 
 
Line 1: Line 1:
{{Ebuild
+
<noinclude>
|Summary=Funtoo Core Boot Framework for global boot loader configuration
+
{{InstallPart|Kernel Installation}}
|CatPkg=sys-boot/boot-update
+
</noinclude>
|Maintainer=Drobbins
+
=== Kernel ===
|Repository=Funtoo Overlay
+
|Organization=Funtoo Technologies
+
|Overlay=Funtoo
+
}}
+
Funtoo boot-update provides a unified mechanism for configuring the GRUB 1.9x ({{Package|sys-boot/grub}}) and GRUB 0.97 ({{Package|sys-boot/grub-legacy}}) boot loaders. It is the recommended, official way to configure Funtoo Linux systems for booting.
+
  
== Current Version ==
+
Starting mid-May 2015, 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:
  
* {{Package|sys-boot/boot-update}}
+
{{console|body=
 +
(chroot) # ##i##emerge -s debian-sources
 +
Searching...   
 +
[ Results for search key : ##b##debian-sources##!b## ]
 +
[ Applications found : ##b##1##!b## ]
  
== Man Pages ==
+
*  ##b##sys-kernel/debian-sources##!b##
Consult the following man pages for detailed, up-to-date information on configuration file settings and command-line arguments:
+
      ##g##Latest version available:##!g## 3.19.3
 +
      ##g##Latest version installed:##!g## 3.19.3
 +
      ##g##Size of files:##!g## 81,292 kB
 +
      ##g##Homepage:##!g##      http://www.debian.org
 +
      ##g##Description:##!g##  Debian Sources (and optional binary kernel)
 +
      ##g##License:##!g##      GPL-2
 +
}}
  
* boot-update(8)
+
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]].
* boot.conf(5)
+
  
{{:Install/BootLoader}}
+
==== Building the Kernel ====
  
=== GRUB 0.97 (grub-legacy) Quick Start ===
+
If you need to build a kernel for Funtoo Linux, please follow these steps:
  
If using <code>sys-boot/grub-legacy-0.97</code>, perform the following steps:
+
{{Fancynote|1=
 +
See [[Funtoo Linux Kernels]] for a full list of kernels supported in Funtoo Linux. We recommend <code>debian-sources</code> for new users.}}
  
* Partition disk using MBR partitions '''(GPT not supported)'''
+
{{fancyimportant|1=
* Install kernel/initrd to <code>/boot</code>
+
<code>debian-sources</code> with <code>binary</code> USE flag requires at least 14GB free in <code>/var/tmp</code> and takes around 1 hour to build on a Intel Core i7 Processor.}}
 +
 
 +
Let's emerge our kernel:
  
 
<console>
 
<console>
###i## emerge sys-boot/boot-update
+
(chroot) # ##i##emerge debian-sources
###i## emerge ">=sys-boot/grub-legacy-0.97-r11"
+
###i## grub-install-legacy /dev/sda
+
</console>
+
Due to an issue with <code>grub-legacy</code>, you may see the following message:
+
<console>
+
###i## grub-install-legacy /dev/sda
+
The file /boot/grub-legacy/stage1 not read correctly.
+
</console>
+
Should you receive this message, you will have to install <code>grub-legacy</code> from the grub shell.
+
Assuming <code>/boot</code> is the partition <code>/dev/sda1</code> and you want to install grub to the MBR, you would run the following:
+
<console>
+
###i## grub-legacy
+
root (hd0,0)
+
setup (hd0)
+
quit
+
</console>
+
When adjusting to fit your setup, remember 'root' is the location of your boot partition, 'setup' is where you want to install grub, and don't forget about grub's unique naming conventions for hard drives / partitions. For more information run:
+
<console>
+
###i## info grub-legacy
+
 
</console>
 
</console>
  
Ensure that <code>/etc/fstab</code> is correct, and edit <code>/etc/boot.conf</code> to reflect your installation.
+
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.
Ensure a <code>generate grub-legacy</code> setting in the <code>boot</code> section. Then run:
+
 
+
<console>
+
###i## boot-update
+
</console>
+
This will auto-generate the <code>/boot/grub-legacy/grub.conf</code> required for booting. Note that <code>grub-legacy-0.97-r11</code> and later stores <code>grub.conf</code> in the <code>/boot/grub-legacy</code> directory.
+
  
Re-run <code>boot-update</code> every time your available kernels / initrds or <code>/etc/boot.conf</code> configuration changes.
+
{{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>.}}
  
[[Category:Projects]]
+
{{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.}}
[[Category:Funtoo features]]
+
{{EbuildFooter}}
+

Revision as of 19:06, May 28, 2015


Note

This is a template that is used as part of the Installation instructions which covers: Kernel Installation. Templates are being used to allow multiple variant install guides that use most of the same re-usable parts.


Kernel

Starting mid-May 2015, Funtoo Linux stage3's include a pre-built debian-sources kernel to make installation faster and easier. To see if debian-sources is installed, type:

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

*  sys-kernel/debian-sources
      Latest version available: 3.19.3
      Latest version installed: 3.19.3
      Size of files: 81,292 kB
      Homepage:      http://www.debian.org
      Description:   Debian Sources (and optional binary kernel)
      License:       GPL-2


If a version is listed under 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 section.

Building the Kernel

If you need to build a kernel for Funtoo Linux, please follow these steps:

Note

See Funtoo Linux Kernels for a full list of kernels supported in Funtoo Linux. We recommend debian-sources for new users.

Important

debian-sources with binary USE flag requires at least 14GB free in /var/tmp and takes around 1 hour to build on a Intel Core i7 Processor.

Let's emerge our kernel:

(chroot) # emerge debian-sources

Once emerge completes, you'll have a brand new kernel and initramfs installed to /boot, plus kernel headers installed in /usr/src/linux, and you'll be ready to configure the boot loader to load these to boot your Funtoo Linux system.

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/.

Note

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 genkernel would be useful. Also be sure to see hardware compatibility information.