Difference between pages "UEFI Install Guide" and "Form:CreateAccount"

From Funtoo
(Difference between pages)
Jump to: navigation, search
(Mention /sys/firmware/efi)
 
(fixing required fields -> mandatory. Used wrong keyword.)
 
Line 1: Line 1:
This tutorial will show you how to install Funtoo on a UEFI system. UEFI, also known as the [[Wikipedia:Unified Extensible Firmware Interface|Unified Extensible Firmware Interface]], is a new firmware interface that is used on some newer computers as a replacement for the traditional PC BIOS. It has an integrated boot loader, so setting up booting is different.
+
<noinclude>
 +
This is the 'Person' form.
 +
To add a page with this form, enter the page name below;
 +
if a page with that name already exists, you will be sent to a form to edit that page.
  
This tutorial is meant to be an "overlay" over the Regular Funtoo Installation. Follow the normal installation and only follow steps in this tutorial when dealing with partitioning and configuring the boot loader (GRUB). All steps are otherwise identical to the regular installation process.
+
{{#forminput:Person}}
  
== What Are We Doing? ==
+
</noinclude><includeonly>
 +
{{#signupfields:}}
  
This guide will show you how to set up your UEFI system to load the GRUB boot loader, which will then load your Funtoo Linux kernel and initramfs. This is the "UEFI + GRUB" method as described on the [[Boot Methods]] page.
+
== Your Funtoo Information ==
 +
__NOTITLE__
 +
'''This form allows you to enter your personal information, so that you have an official presence in the Funtoo Universe.'''
  
== First Steps ==
+
{{{for template|Person}}}
 +
=== Your Name, Email, etc. ===
  
To install Funtoo Linux on a UEFI system, first you need to boot SysRescueCD in UEFI mode. To do this, enable UEFI in your BIOS, and if necessary disable legacy booting. After some fiddling, you should be able to boot SysRescueCD and get a black and white text menu instead of the traditional aqua/cyan-colored menu. The black and white menu indicates that you booted SysRescueCD in UEFI mode. Once you've accomplished this, you're ready to continue with your Funtoo Linux installation and partition your drive. See below for details.
+
'''Please enter your full name:'''
  
'''If the <tt>/sys/firmware/efi</tt> directory exists, then you have successfully booted in EFI mode and will be able to configure your Funtoo system to boot in EFI mode. If the directory doesn't exist, fix this first. It is a requirement for setting up EFI booting.'''
+
{{{field|Full name|mandatory}}}
  
== Partitioning ==
+
Email: {{{field|Email|mandatory}}}
 +
IRC Nick: {{{field|Nick}}}
  
To set up your partitions for UEFI booting, you will create a ~500MB FAT32 partition on <tt>/dev/sda1</tt>, and set it to type <tt>EF00</tt> using <tt>gdisk</tt>.
+
=== Geographic Location ===
  
<console>
+
Please enter your geographic location. The following form can be used to look up the geographic coordinates for your city.
Command: ##i##n ↵
+
Partition Number: ##i##1 ↵
+
First sector: ##i##↵
+
Last sector: ##i##+500M ↵
+
Hex Code: ##i##EF00
+
</console>
+
  
This partition will serve as your Funtoo <tt>/boot</tt> filesystem as well as the partition that the UEFI firmware can read to load GRUB. Then you will set up swap on <tt>/dev/sda2</tt> and your root filesystem on <tt>/dev/sda3</tt>. To create the FAT32 filesystem, type:
+
{{{
 +
field
 +
| Geoloc
 +
| input type=googlemaps
 +
| height=300
 +
| width=100%
 +
| autozoom=off
 +
| zoom=2
 +
}}}
  
<console>
+
=== Location Name ===
# ##i##mkfs.vfat -F 32 /dev/sda1
+
</console>
+
  
Your <tt>/etc/fstab</tt> entry for this filesystem will also differ, and will look like this:
+
Now, please enter your location name, in ''City, State/Province, Country'' format. Please use full country names such as "United States of America."
  
<pre>
+
'''Location name'''
/dev/sda1 /boot vfat noatime 1 2
+
{{{field|Location name|mandatory|list}}}
</pre>
+
  
Make sure you add VFAT support to your kernel if you are building it manually.
+
=== Funtoo Roles ===
  
== Boot Loader ==
+
Below, you can define your role in the Funtoo Linux Universe. Are you a user, contributor or developer? You can also enter a role description as well as beginning and end dates, which are useful if your role has changed over time. A role with no end date specified indicates an active role.
  
=== Emerging GRUB ===
+
'''Click "Add Role" to add a role: '''
  
You will still use GRUB as a boot loader, but before emerging grub, you will need to enable EFI booting. To do this,
+
{{{field|Roles|holds template}}}
add the following line to <tt>/etc/portage/make.conf</tt>:
+
  
<pre>
+
=== Ebuilds Maintained ===
GRUB_PLATFORMS="efi-64"
+
</pre>
+
  
Then, <tt>emerge grub</tt>. You will notice <tt>efibootmgr</tt> getting pulled in as a dependency. This is expected and good.
+
{{{field|Maintains|holds template}}}
  
=== Installing GRUB ===
+
=== Blogs ===
  
Now, for the magic of getting everything in place for booting. You should copy your kernel and initramfs (if you have one -- you will if you are following the default install) to <tt>/boot</tt>. GRUB will boot those. But how do we get UEFI to boot GRUB? Well, we need to run the following command:
+
This feature, not yet enabled, will allow you to manage your blog syndication from your user page.
  
<console>
+
{{{field|Blogs|holds template}}}
# ##i##grub-install --target=x86_64-efi --efi-directory=/boot /dev/sda
+
</console>
+
This command will simply install all the stuff to <tt>/boot/EFI</tt> and <tt>/boot/grub</tt> that your system needs to boot. In particular, the <tt>/boot/EFI/grub/grubx64.efi</tt> file will be created. This is the GRUB boot image that UEFI will load and start.
+
=== Configuring GRUB ===
+
  
OK, now UEFI has the GRUB image it needs to boot. But we still need to configure GRUB itself so it finds and boots your kernel and initramfs. This is done by performing the following steps. Since boot-update doesn't yet support UEFI, we will not use boot-update directly and will create a <tt>/boot/grub/grub.cfg</tt> file manually that looks like this:
+
{{{end template}}}
  
<pre>
+
{{{for template|Role|multiple|add button text=Add Role|embed in field=Person[Roles]}}}
set timeout=3
+
'''Role type:''' {{{field|Role type|mandatory|input type=dropdown}}}
set gfxmode=auto
+
'''Role desc/special powers:''' {{{field|Role desc|mandatory}}}
insmod efi_gop
+
'''Start date:''' {{{field|Start date|input type=datepicker|date format=d M yy}}}
insmod efi_uga
+
'''End date:''' {{{field|End date|input type=datepicker|date format=d M yy}}}
 +
{{{end template}}}
  
menuentry "Funtoo Linux genkernel - kernel-debian-sources-x86_64-3.2.35-2" {
+
{{{for template|Ebuild|multiple|add button text=Add ebuild|embed in field=Person[Maintains]}}}
    insmod part_gpt
+
'''Ebuild:''' {{{field|Ebuild|property=Ebuild|values from namespace=Ebuild|mandatory}}}
    insmod fat 
+
'''Overlay:''' {{{field|Overlay|property=Overlay|mandatory|input type=dropdown|values from namespace=Overlay}}}
    set root=(hostdisk//dev/sda,gpt1) 
+
{{{end template}}}
    search --no-floppy --fs-uuid --set __REPLACE_UUID_OF_SDA1__
+
    linux /kernel-debian-sources-x86_64-3.2.35-2 real_root=/dev/sda3
+
    initrd /initramfs-debian-sources-x86_64-3.2.35-2 
+
    set gfxpayload=keep
+
}
+
set default=0
+
</pre>
+
  
Note the <tt>search</tt> line where it says <tt>__REPLACE_UUID_OF_SDA1__</tt> above. You will need to run <tt>blkid /dev/sda1</tt> and use the UUID value that is displayed. For example, on my system, I need to use <tt>C34B-19CF</tt>. You can also change the <tt>menuentry</tt> line text in quotes to say whatever you want, and the <tt>linux</tt> and <tt>initrd</tt> lines should reference your kernel versions in <tt>/boot</tt>. As above, use the path <tt>/</tt> instead of <tt>/boot</tt> as the path should be relative to the root of the VFAT filesystem.
+
{{{for template|Blog|multiple|add button text=Add blog|embed in field=Person[Blogs]}}}
 +
'''Name:''' {{{field|Name|mandatory}}}
 +
'''URL:''' {{{field|URL|mandatory}}}
 +
'''Syndicate on:''' {{{field|Syndicate||list|input type=checkboxes}}}
 +
{{{end template}}}
  
== Known Issues ==
+
'''Your personal wiki text''' -- this is where you can enter free-form information about yourself, using MediaWiki syntax. You can also edit this via the "Edit" button after you save your page.
With pure UEFI boot mode, with legacy mode disabled, following error expected:
+
* video driver not supported, boot hangs, hard reboot required.
+
Choose UEFI first, next legacy driver. It depends on motherboard vendor and efi bios version.
+
In UEFI bios choose grub option, if your succeeded with above guide, additional menu should appear in Boot Menu, otherwise it boots into EFI shell:
+
* grub:NAME of you hard drive
+
  
=== Done! ===
+
{{{standard input|free text|rows=20}}}
  
Remember to follow all other steps in the regular Funtoo Install Guide. Assuming you did everything correctly, your system should now boot via UEFI! We will be adding UEFI support to boot-update soon to make this process easier.
+
{{{standard input|summary}}}
 +
 
 +
{{{standard input|minor edit}}} {{{standard input|watch}}}
 +
 
 +
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
 +
</includeonly>

Revision as of 15:27, 8 July 2013

This is the 'Person' form. To add a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.