
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.funtoo.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.funtoo.org/api.php?action=feedcontributions&amp;user=Jeanfrancis&amp;feedformat=atom</id>
		<title>Funtoo Linux - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.funtoo.org/api.php?action=feedcontributions&amp;user=Jeanfrancis&amp;feedformat=atom"/>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Special:Contributions/Jeanfrancis"/>
		<updated>2013-05-21T22:15:34Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.20.4</generator>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-05-03T17:18:41Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Kernel and modules */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Cross-compiler installation ==&lt;br /&gt;
&lt;br /&gt;
To compile a suitable Linux kernel and bootloader for the ODROID U2, you need to install an ARMv7a hardfloat toolchain on your system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##emerge crossdev&lt;br /&gt;
# ##i##crossdev -v -t armv7a-hardfloat-linux-gnueabi&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|In the following sections, replace /dev/sdX with the actual device node of your SD card.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== U-boot bootloader ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs U-boot as a bootloader. The ODROID U2 vendor provides a git repository with all what is needed to build and install U-boot on the SD-card that will be used to boot the device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir ~/odroid_u2&lt;br /&gt;
# ##i##cd ~/odroid_u2&lt;br /&gt;
# ##i##git clone https://github.com/hardkernel/u-boot.git&lt;br /&gt;
# ##i##cd u-boot&lt;br /&gt;
# ##i##make smdk4412_config&lt;br /&gt;
# ##i##make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi-&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If U-boot does not build with your ARM toolchain, see the troubleshooting section. It may happen that U-boot does not build with a recent toolchain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, the following will install U-boot on the beginning sectors of your SD card.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd sd_fuse&lt;br /&gt;
# ##i##./sd_fusing.sh /dev/sdX&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Partitionning ==&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader takes a bit more space than usual. You must keep about 5 MB (10240 sectors for example) of free space before the first partition.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You may now partition your SD card to fit your needs. However, U-boot expects to find a FAT32 boot partition (first or second). Also, U-boot needs free space before the first partition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdX&lt;br /&gt;
&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0       10239*     0#      10240*Free Space           None&lt;br /&gt;
 1 Primary       10240*     215039*     0      204800*W95 FAT32 (0B)       None&lt;br /&gt;
 2 Primary      215040*    2214599*     0     1999560*Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2214600*   15269887*     0    13055288*Linux (83)           None&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, format your partitions, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkfs.vfat /dev/sdX1&lt;br /&gt;
# ##i##mkswap /dev/sdX2&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdX3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo Linux Installation on ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel and modules ===&lt;br /&gt;
&lt;br /&gt;
The ODROID U2 vendor provides kernel sources and default .config files for the ODROID U2. In this example, we clone the git repository, use the default branch, and build the default ubuntu kernel config. Note that other branches exist, some of them provide default configurations for the U2, others not.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|As in [[Funtoo Linux Installation on ARM]], we consider that the root partition is mounted in /mnt/SD_root. Also, we consider that the boot partition is /dev/sdX1.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd ~/odroid_u2&lt;br /&gt;
# ##i##git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i##cd linux&lt;br /&gt;
# ##i##ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i##ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i##mount /dev/sdX1 /mnt/SD_root/boot&lt;br /&gt;
# ##i##ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
# ##i##cp arch/arm/boot/zImage /mnt/SD_root/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
You now have a kernel in /mnt/SD_root/boot. The only missing part is a file named ''boot.scr'', which will be read by U-boot.&lt;br /&gt;
&lt;br /&gt;
First, create a ''boot.txt'' file on the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd /mnt/SD_root/boot&lt;br /&gt;
# ##i##touch boot.txt&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify this file to contain the following :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
setenv initrd_high &amp;quot;0xffffffff&amp;quot;&lt;br /&gt;
setenv fdt_high &amp;quot;0xffffffff&amp;quot;&lt;br /&gt;
setenv fb_x_res &amp;quot;1920&amp;quot;&lt;br /&gt;
setenv fb_y_res &amp;quot;1080&amp;quot;&lt;br /&gt;
setenv hdmi_phy_res &amp;quot;1080&amp;quot;&lt;br /&gt;
setenv bootcmd &amp;quot;fatload mmc 0:1 0x40008000 zImage; bootm 0x40008000&amp;quot;&lt;br /&gt;
setenv bootargs &amp;quot;console=tty1 console=ttySAC1,115200n8 fb_x_res=${fb_x_res} fb_y_res=${fb_y_res} hdmi_phy_res=${hdmi_phy_res} root=/dev/mmcblk0p3 rootwait ro mem=2047M&amp;quot;&lt;br /&gt;
boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|Modify the screen resolution to fit your needs. Also, modify ''/dev/mmcblk0p3'' for the correct device of your root partition. ''/dev/mmcblk0p3'' is the third partition of the SD-card. Modify the last digit to fit your partitioning scheme.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, install u-boot-tools that provides ''mkimage'' and create ''boot.scr''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##emerge u-boot-tools&lt;br /&gt;
# ##i##mkimage -A arm -T script -C none -n &amp;quot;Boot.scr for odroid-u2&amp;quot; -d boot.txt boot.scr&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Further configuration ==&lt;br /&gt;
&lt;br /&gt;
=== fstab ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/dev/mmcblk0p1		/boot		vfat		noauto,noatime	1 2&lt;br /&gt;
/dev/mmcblk0p2		none		swap		sw		0 0&lt;br /&gt;
/dev/mmcblk0p3		/		ext4		noatime		0 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: We disable fsck checking of some devices as it may fail because of the missing hardware clock on the device.&lt;br /&gt;
&lt;br /&gt;
=== inittab ===&lt;br /&gt;
&lt;br /&gt;
If you have USB/UART debugging hardware, you may want to change /etc/inittab the following way :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# SERIAL CONSOLESs0:12345:respawn:/sbin/agetty 115200 ttySAC1 vt100&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Error: selected processor does not support ARM mode `smc 0' ===&lt;br /&gt;
&amp;lt;pre&amp;gt;--- board/samsung/smdk4212/smc.c.orig	2013-04-30 17:34:16.556093458 -0400&lt;br /&gt;
+++ board/samsung/smdk4212/smc.c	2013-04-30 17:34:50.422095103 -0400&lt;br /&gt;
@@ -90,6 +90,7 @@&lt;br /&gt;
 	register u32 reg3 __asm__(&amp;quot;r3&amp;quot;) = arg3;&lt;br /&gt;
&lt;br /&gt;
  	__asm__ volatile (&lt;br /&gt;
+		&amp;quot;.arch_extension sec\n&amp;quot;&lt;br /&gt;
 		&amp;quot;smc	0\n&amp;quot;&lt;br /&gt;
 		: &amp;quot;+r&amp;quot;(reg0), &amp;quot;+r&amp;quot;(reg1), &amp;quot;+r&amp;quot;(reg2), &amp;quot;+r&amp;quot;(reg3) &lt;br /&gt;
&lt;br /&gt;
@@ -104,6 +105,7 @@&lt;br /&gt;
 	register u32 reg1 __asm__(&amp;quot;r1&amp;quot;) = 0;&lt;br /&gt;
  	__asm__ volatile (&lt;br /&gt;
+		&amp;quot;.arch_extension sec\n&amp;quot; 		&amp;quot;smc	0\n&amp;quot;&lt;br /&gt;
 		: &amp;quot;+r&amp;quot;(reg0), &amp;quot;+r&amp;quot;(reg1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Source :http://forum.insignal.co.kr/viewtopic.php?f=10&amp;amp;t=118&lt;br /&gt;
&lt;br /&gt;
=== armv7a-hardfloat-linux-gnueabi-ld: error: /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.7.2/libgcc.a(bpabi.o) uses VFP register arguments, u-boot does not ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
--- arch/arm/cpu/armv7/config.mk.orig	2013-04-30 17:40:20.842111160 -0400&lt;br /&gt;
+++ arch/arm/cpu/armv7/config.mk	2013-04-30 17:40:52.368112692 -0400&lt;br /&gt;
@@ -20,7 +20,7 @@ &lt;br /&gt;
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,&lt;br /&gt;
 # MA 02111-1307 USA&lt;br /&gt;
 #&lt;br /&gt;
-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float&lt;br /&gt;
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -mfloat-abi=hard -mfpu=vfpv3  &lt;br /&gt;
&lt;br /&gt;
 # Make ARMv5 to allow more compilers to work, even though its v7a.&lt;br /&gt;
 PLATFORM_CPPFLAGS += -march=armv7-a&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Source :&lt;br /&gt;
https://code.google.com/p/chromium/issues/detail?id=213120&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-05-03T17:18:29Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Cross-compiler installation ==&lt;br /&gt;
&lt;br /&gt;
To compile a suitable Linux kernel and bootloader for the ODROID U2, you need to install an ARMv7a hardfloat toolchain on your system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##emerge crossdev&lt;br /&gt;
# ##i##crossdev -v -t armv7a-hardfloat-linux-gnueabi&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|In the following sections, replace /dev/sdX with the actual device node of your SD card.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== U-boot bootloader ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs U-boot as a bootloader. The ODROID U2 vendor provides a git repository with all what is needed to build and install U-boot on the SD-card that will be used to boot the device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir ~/odroid_u2&lt;br /&gt;
# ##i##cd ~/odroid_u2&lt;br /&gt;
# ##i##git clone https://github.com/hardkernel/u-boot.git&lt;br /&gt;
# ##i##cd u-boot&lt;br /&gt;
# ##i##make smdk4412_config&lt;br /&gt;
# ##i##make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi-&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If U-boot does not build with your ARM toolchain, see the troubleshooting section. It may happen that U-boot does not build with a recent toolchain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, the following will install U-boot on the beginning sectors of your SD card.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd sd_fuse&lt;br /&gt;
# ##i##./sd_fusing.sh /dev/sdX&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Partitionning ==&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader takes a bit more space than usual. You must keep about 5 MB (10240 sectors for example) of free space before the first partition.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You may now partition your SD card to fit your needs. However, U-boot expects to find a FAT32 boot partition (first or second). Also, U-boot needs free space before the first partition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdX&lt;br /&gt;
&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0       10239*     0#      10240*Free Space           None&lt;br /&gt;
 1 Primary       10240*     215039*     0      204800*W95 FAT32 (0B)       None&lt;br /&gt;
 2 Primary      215040*    2214599*     0     1999560*Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2214600*   15269887*     0    13055288*Linux (83)           None&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, format your partitions, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkfs.vfat /dev/sdX1&lt;br /&gt;
# ##i##mkswap /dev/sdX2&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdX3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo Linux Installation on ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel and modules ===&lt;br /&gt;
&lt;br /&gt;
The ODROID U2 vendor provides kernel sources and default .config files for the ODROID U2. In this example, we clone the git repository, use the default branch, and build the default ubuntu kernel config. Note that other branches exist, some of them provide default configurations for the U2, others not.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|As in [[Funtoo Linux Installation on ARM]], we consider that the root partition is mounted in /mnt/SD_root. Also, we consider that the boot partition is /dev/sdX1.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd ~/odroid_u2&lt;br /&gt;
# ##i##git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i##cd linux&lt;br /&gt;
# ##i##ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i##ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i##mount /dev/sdX1 /mnt/SD_root/boot# ##i##ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
# ##i##cp arch/arm/boot/zImage /mnt/SD_root/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
You now have a kernel in /mnt/SD_root/boot. The only missing part is a file named ''boot.scr'', which will be read by U-boot.&lt;br /&gt;
&lt;br /&gt;
First, create a ''boot.txt'' file on the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd /mnt/SD_root/boot&lt;br /&gt;
# ##i##touch boot.txt&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify this file to contain the following :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
setenv initrd_high &amp;quot;0xffffffff&amp;quot;&lt;br /&gt;
setenv fdt_high &amp;quot;0xffffffff&amp;quot;&lt;br /&gt;
setenv fb_x_res &amp;quot;1920&amp;quot;&lt;br /&gt;
setenv fb_y_res &amp;quot;1080&amp;quot;&lt;br /&gt;
setenv hdmi_phy_res &amp;quot;1080&amp;quot;&lt;br /&gt;
setenv bootcmd &amp;quot;fatload mmc 0:1 0x40008000 zImage; bootm 0x40008000&amp;quot;&lt;br /&gt;
setenv bootargs &amp;quot;console=tty1 console=ttySAC1,115200n8 fb_x_res=${fb_x_res} fb_y_res=${fb_y_res} hdmi_phy_res=${hdmi_phy_res} root=/dev/mmcblk0p3 rootwait ro mem=2047M&amp;quot;&lt;br /&gt;
boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|Modify the screen resolution to fit your needs. Also, modify ''/dev/mmcblk0p3'' for the correct device of your root partition. ''/dev/mmcblk0p3'' is the third partition of the SD-card. Modify the last digit to fit your partitioning scheme.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, install u-boot-tools that provides ''mkimage'' and create ''boot.scr''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##emerge u-boot-tools&lt;br /&gt;
# ##i##mkimage -A arm -T script -C none -n &amp;quot;Boot.scr for odroid-u2&amp;quot; -d boot.txt boot.scr&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Further configuration ==&lt;br /&gt;
&lt;br /&gt;
=== fstab ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/dev/mmcblk0p1		/boot		vfat		noauto,noatime	1 2&lt;br /&gt;
/dev/mmcblk0p2		none		swap		sw		0 0&lt;br /&gt;
/dev/mmcblk0p3		/		ext4		noatime		0 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: We disable fsck checking of some devices as it may fail because of the missing hardware clock on the device.&lt;br /&gt;
&lt;br /&gt;
=== inittab ===&lt;br /&gt;
&lt;br /&gt;
If you have USB/UART debugging hardware, you may want to change /etc/inittab the following way :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# SERIAL CONSOLESs0:12345:respawn:/sbin/agetty 115200 ttySAC1 vt100&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Error: selected processor does not support ARM mode `smc 0' ===&lt;br /&gt;
&amp;lt;pre&amp;gt;--- board/samsung/smdk4212/smc.c.orig	2013-04-30 17:34:16.556093458 -0400&lt;br /&gt;
+++ board/samsung/smdk4212/smc.c	2013-04-30 17:34:50.422095103 -0400&lt;br /&gt;
@@ -90,6 +90,7 @@&lt;br /&gt;
 	register u32 reg3 __asm__(&amp;quot;r3&amp;quot;) = arg3;&lt;br /&gt;
&lt;br /&gt;
  	__asm__ volatile (&lt;br /&gt;
+		&amp;quot;.arch_extension sec\n&amp;quot;&lt;br /&gt;
 		&amp;quot;smc	0\n&amp;quot;&lt;br /&gt;
 		: &amp;quot;+r&amp;quot;(reg0), &amp;quot;+r&amp;quot;(reg1), &amp;quot;+r&amp;quot;(reg2), &amp;quot;+r&amp;quot;(reg3) &lt;br /&gt;
&lt;br /&gt;
@@ -104,6 +105,7 @@&lt;br /&gt;
 	register u32 reg1 __asm__(&amp;quot;r1&amp;quot;) = 0;&lt;br /&gt;
  	__asm__ volatile (&lt;br /&gt;
+		&amp;quot;.arch_extension sec\n&amp;quot; 		&amp;quot;smc	0\n&amp;quot;&lt;br /&gt;
 		: &amp;quot;+r&amp;quot;(reg0), &amp;quot;+r&amp;quot;(reg1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Source :http://forum.insignal.co.kr/viewtopic.php?f=10&amp;amp;t=118&lt;br /&gt;
&lt;br /&gt;
=== armv7a-hardfloat-linux-gnueabi-ld: error: /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.7.2/libgcc.a(bpabi.o) uses VFP register arguments, u-boot does not ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
--- arch/arm/cpu/armv7/config.mk.orig	2013-04-30 17:40:20.842111160 -0400&lt;br /&gt;
+++ arch/arm/cpu/armv7/config.mk	2013-04-30 17:40:52.368112692 -0400&lt;br /&gt;
@@ -20,7 +20,7 @@ &lt;br /&gt;
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,&lt;br /&gt;
 # MA 02111-1307 USA&lt;br /&gt;
 #&lt;br /&gt;
-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float&lt;br /&gt;
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -mfloat-abi=hard -mfpu=vfpv3  &lt;br /&gt;
&lt;br /&gt;
 # Make ARMv5 to allow more compilers to work, even though its v7a.&lt;br /&gt;
 PLATFORM_CPPFLAGS += -march=armv7-a&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Source :&lt;br /&gt;
https://code.google.com/p/chromium/issues/detail?id=213120&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-05-03T17:17:34Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Cross-compiler installation ==&lt;br /&gt;
&lt;br /&gt;
To compile a suitable Linux kernel and bootloader for the ODROID U2, you need to install an ARMv7a hardfloat toolchain on your system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##emerge crossdev&lt;br /&gt;
# ##i##crossdev -v -t armv7a-hardfloat-linux-gnueabi&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|In the following sections, replace /dev/sdX with the actual device node of your SD card.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== U-boot bootloader ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs U-boot as a bootloader. The ODROID U2 vendor provides a git repository with all what is needed to build and install U-boot on the SD-card that will be used to boot the device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir ~/odroid_u2&lt;br /&gt;
# ##i##cd ~/odroid_u2&lt;br /&gt;
# ##i##git clone https://github.com/hardkernel/u-boot.git&lt;br /&gt;
# ##i##cd u-boot&lt;br /&gt;
# ##i##make smdk4412_config&lt;br /&gt;
# ##i##make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi-&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If U-boot does not build with your ARM toolchain, see the troubleshooting section. It may happen that U-boot does not build with a recent toolchain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, the following will install U-boot on the beginning sectors of your SD card.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd sd_fuse&lt;br /&gt;
# ##i##./sd_fusing.sh /dev/sdX&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Partitionning ==&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader takes a bit more space than usual. You must keep about 5 MB (10240 sectors for example) of free space before the first partition.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You may now partition your SD card to fit your needs. However, U-boot expects to find a FAT32 boot partition (first or second). Also, U-boot needs free space before the first partition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdX&lt;br /&gt;
&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0       10239*     0#      10240*Free Space           None&lt;br /&gt;
 1 Primary       10240*     215039*     0      204800*W95 FAT32 (0B)       None&lt;br /&gt;
 2 Primary      215040*    2214599*     0     1999560*Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2214600*   15269887*     0    13055288*Linux (83)           None&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, format your partitions, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkfs.vfat /dev/sdX1&lt;br /&gt;
# ##i##mkswap /dev/sdX2&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdX3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo Linux Installation on ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel and modules ===&lt;br /&gt;
&lt;br /&gt;
The ODROID U2 vendor provides kernel sources and default .config files for the ODROID U2. In this example, we clone the git repository, use the default branch, and build the default ubuntu kernel config. Note that other branches exist, some of them provide default configurations for the U2, others not.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|As in [[Funtoo Linux Installation on ARM]], we consider that the root partition is mounted in /mnt/SD_root. Also, we consider that the boot partition is /dev/sdX1.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd ~/odroid_u2# ##i##git clone https://github.com/hardkernel/linux.git# ##i##cd linux# ##i##ARCH=arm make odroidu2_ubuntu_defconfig# ##i##ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i##mount /dev/sdX1 /mnt/SD_root/boot# ##i##ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root# ##i##cp arch/arm/boot/zImage /mnt/SD_root/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
You now have a kernel in /mnt/SD_root/boot. The only missing part is a file named ''boot.scr'', which will be read by U-boot.&lt;br /&gt;
&lt;br /&gt;
First, create a ''boot.txt'' file on the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd /mnt/SD_root/boot&lt;br /&gt;
# ##i##touch boot.txt&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify this file to contain the following :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
setenv initrd_high &amp;quot;0xffffffff&amp;quot;&lt;br /&gt;
setenv fdt_high &amp;quot;0xffffffff&amp;quot;&lt;br /&gt;
setenv fb_x_res &amp;quot;1920&amp;quot;&lt;br /&gt;
setenv fb_y_res &amp;quot;1080&amp;quot;&lt;br /&gt;
setenv hdmi_phy_res &amp;quot;1080&amp;quot;&lt;br /&gt;
setenv bootcmd &amp;quot;fatload mmc 0:1 0x40008000 zImage; bootm 0x40008000&amp;quot;&lt;br /&gt;
setenv bootargs &amp;quot;console=tty1 console=ttySAC1,115200n8 fb_x_res=${fb_x_res} fb_y_res=${fb_y_res} hdmi_phy_res=${hdmi_phy_res} root=/dev/mmcblk0p3 rootwait ro mem=2047M&amp;quot;&lt;br /&gt;
boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|Modify the screen resolution to fit your needs. Also, modify ''/dev/mmcblk0p3'' for the correct device of your root partition. ''/dev/mmcblk0p3'' is the third partition of the SD-card. Modify the last digit to fit your partitioning scheme.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, install u-boot-tools that provides ''mkimage'' and create ''boot.scr''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##emerge u-boot-tools&lt;br /&gt;
# ##i##mkimage -A arm -T script -C none -n &amp;quot;Boot.scr for odroid-u2&amp;quot; -d boot.txt boot.scr&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Further configuration ==&lt;br /&gt;
&lt;br /&gt;
=== fstab ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/dev/mmcblk0p1		/boot		vfat		noauto,noatime	1 2&lt;br /&gt;
/dev/mmcblk0p2		none		swap		sw		0 0&lt;br /&gt;
/dev/mmcblk0p3		/		ext4		noatime		0 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: We disable fsck checking of some devices as it may fail because of the missing hardware clock on the device.&lt;br /&gt;
&lt;br /&gt;
=== inittab ===&lt;br /&gt;
&lt;br /&gt;
If you have USB/UART debugging hardware, you may want to change /etc/inittab the following way :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# SERIAL CONSOLESs0:12345:respawn:/sbin/agetty 115200 ttySAC1 vt100&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Error: selected processor does not support ARM mode `smc 0' ===&lt;br /&gt;
&amp;lt;pre&amp;gt;--- board/samsung/smdk4212/smc.c.orig	2013-04-30 17:34:16.556093458 -0400&lt;br /&gt;
+++ board/samsung/smdk4212/smc.c	2013-04-30 17:34:50.422095103 -0400&lt;br /&gt;
@@ -90,6 +90,7 @@&lt;br /&gt;
 	register u32 reg3 __asm__(&amp;quot;r3&amp;quot;) = arg3;&lt;br /&gt;
&lt;br /&gt;
  	__asm__ volatile (&lt;br /&gt;
+		&amp;quot;.arch_extension sec\n&amp;quot;&lt;br /&gt;
 		&amp;quot;smc	0\n&amp;quot;&lt;br /&gt;
 		: &amp;quot;+r&amp;quot;(reg0), &amp;quot;+r&amp;quot;(reg1), &amp;quot;+r&amp;quot;(reg2), &amp;quot;+r&amp;quot;(reg3) &lt;br /&gt;
&lt;br /&gt;
@@ -104,6 +105,7 @@&lt;br /&gt;
 	register u32 reg1 __asm__(&amp;quot;r1&amp;quot;) = 0;&lt;br /&gt;
  	__asm__ volatile (&lt;br /&gt;
+		&amp;quot;.arch_extension sec\n&amp;quot; 		&amp;quot;smc	0\n&amp;quot;&lt;br /&gt;
 		: &amp;quot;+r&amp;quot;(reg0), &amp;quot;+r&amp;quot;(reg1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Source :http://forum.insignal.co.kr/viewtopic.php?f=10&amp;amp;t=118&lt;br /&gt;
&lt;br /&gt;
=== armv7a-hardfloat-linux-gnueabi-ld: error: /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.7.2/libgcc.a(bpabi.o) uses VFP register arguments, u-boot does not ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
--- arch/arm/cpu/armv7/config.mk.orig	2013-04-30 17:40:20.842111160 -0400&lt;br /&gt;
+++ arch/arm/cpu/armv7/config.mk	2013-04-30 17:40:52.368112692 -0400&lt;br /&gt;
@@ -20,7 +20,7 @@ &lt;br /&gt;
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,&lt;br /&gt;
 # MA 02111-1307 USA&lt;br /&gt;
 #&lt;br /&gt;
-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float&lt;br /&gt;
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -mfloat-abi=hard -mfpu=vfpv3  &lt;br /&gt;
&lt;br /&gt;
 # Make ARMv5 to allow more compilers to work, even though its v7a.&lt;br /&gt;
 PLATFORM_CPPFLAGS += -march=armv7-a&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Source :&lt;br /&gt;
https://code.google.com/p/chromium/issues/detail?id=213120&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-05-03T17:16:14Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Cross-compiler installation ==&lt;br /&gt;
&lt;br /&gt;
To compile a suitable Linux kernel and bootloader for the ODROID U2, you need to install an ARMv7a hardfloat toolchain on your system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##emerge crossdev&lt;br /&gt;
# ##i##crossdev -v -t armv7a-hardfloat-linux-gnueabi&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== U-boot bootloader ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs U-boot as a bootloader. The ODROID U2 vendor provides a git repository with all what is needed to build and install U-boot on the SD-card that will be used to boot the device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir ~/odroid_u2&lt;br /&gt;
# ##i##cd ~/odroid_u2&lt;br /&gt;
# ##i##git clone https://github.com/hardkernel/u-boot.git&lt;br /&gt;
# ##i##cd u-boot&lt;br /&gt;
# ##i##make smdk4412_config&lt;br /&gt;
# ##i##make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi-&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If U-boot does not build with your ARM toolchain, see the troubleshooting section. It may happen that U-boot does not build with a recent toolchain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, the following will install U-boot on the beginning sectors of your SD card.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|In the following sections, replace /dev/sdX with the actual device node of your SD card.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd sd_fuse&lt;br /&gt;
# ##i##./sd_fusing.sh /dev/sdX&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Partitionning ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader takes a bit more space than usual. You must keep about 5 MB (10240 sectors for example) of free space before the first partition.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You may now partition your SD card to fit your needs. However, U-boot expects to find a FAT32 boot partition (first or second). Also, U-boot needs free space before the first partition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdX&lt;br /&gt;
&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0       10239*     0#      10240*Free Space           None&lt;br /&gt;
 1 Primary       10240*     215039*     0      204800*W95 FAT32 (0B)       None&lt;br /&gt;
 2 Primary      215040*    2214599*     0     1999560*Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2214600*   15269887*     0    13055288*Linux (83)           None&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, format your partitions, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkfs.vfat /dev/sdX1&lt;br /&gt;
# ##i##mkswap /dev/sdX2&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdX3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo Linux Installation on ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel and modules ===&lt;br /&gt;
&lt;br /&gt;
The ODROID U2 vendor provides kernel sources and default .config files for the ODROID U2. In this example, we clone the git repository, use the default branch, and build the default ubuntu kernel config. Note that other branches exist, some of them provide default configurations for the U2, others not.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|As in [[Funtoo Linux Installation on ARM]], we consider that the root partition is mounted in /mnt/SD_root. Also, we consider that the boot partition is /dev/sdX1.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd ~/odroid_u2# ##i##git clone https://github.com/hardkernel/linux.git# ##i##cd linux# ##i##ARCH=arm make odroidu2_ubuntu_defconfig# ##i##ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i##mount /dev/sdX1 /mnt/SD_root/boot# ##i##ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root# ##i##cp arch/arm/boot/zImage /mnt/SD_root/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
You now have a kernel in /mnt/SD_root/boot. The only missing part is a file named ''boot.scr'', which will be read by U-boot.&lt;br /&gt;
&lt;br /&gt;
First, create a ''boot.txt'' file on the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd /mnt/SD_root/boot&lt;br /&gt;
# ##i##touch boot.txt&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify this file to contain the following :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
setenv initrd_high &amp;quot;0xffffffff&amp;quot;&lt;br /&gt;
setenv fdt_high &amp;quot;0xffffffff&amp;quot;&lt;br /&gt;
setenv fb_x_res &amp;quot;1920&amp;quot;&lt;br /&gt;
setenv fb_y_res &amp;quot;1080&amp;quot;&lt;br /&gt;
setenv hdmi_phy_res &amp;quot;1080&amp;quot;&lt;br /&gt;
setenv bootcmd &amp;quot;fatload mmc 0:1 0x40008000 zImage; bootm 0x40008000&amp;quot;&lt;br /&gt;
setenv bootargs &amp;quot;console=tty1 console=ttySAC1,115200n8 fb_x_res=${fb_x_res} fb_y_res=${fb_y_res} hdmi_phy_res=${hdmi_phy_res} root=/dev/mmcblk0p3 rootwait ro mem=2047M&amp;quot;&lt;br /&gt;
boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|Modify the screen resolution to fit your needs. Also, modify ''/dev/mmcblk0p3'' for the correct device of your root partition. ''/dev/mmcblk0p3'' is the third partition of the SD-card. Modify the last digit to fit your partitioning scheme.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, install u-boot-tools that provides ''mkimage'' and create ''boot.scr''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##emerge u-boot-tools&lt;br /&gt;
# ##i##mkimage -A arm -T script -C none -n &amp;quot;Boot.scr for odroid-u2&amp;quot; -d boot.txt boot.scr&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Further configuration ==&lt;br /&gt;
&lt;br /&gt;
=== fstab ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/dev/mmcblk0p1		/boot		vfat		noauto,noatime	1 2&lt;br /&gt;
/dev/mmcblk0p2		none		swap		sw		0 0&lt;br /&gt;
/dev/mmcblk0p3		/		ext4		noatime		0 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: We disable fsck checking of some devices as it may fail because of the missing hardware clock on the device.&lt;br /&gt;
&lt;br /&gt;
=== inittab ===&lt;br /&gt;
&lt;br /&gt;
If you have USB/UART debugging hardware, you may want to change /etc/inittab the following way :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# SERIAL CONSOLESs0:12345:respawn:/sbin/agetty 115200 ttySAC1 vt100&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Error: selected processor does not support ARM mode `smc 0' ==&lt;br /&gt;
&amp;lt;pre&amp;gt;--- board/samsung/smdk4212/smc.c.orig	2013-04-30 17:34:16.556093458 -0400&lt;br /&gt;
+++ board/samsung/smdk4212/smc.c	2013-04-30 17:34:50.422095103 -0400&lt;br /&gt;
@@ -90,6 +90,7 @@&lt;br /&gt;
 	register u32 reg3 __asm__(&amp;quot;r3&amp;quot;) = arg3;&lt;br /&gt;
&lt;br /&gt;
  	__asm__ volatile (&lt;br /&gt;
+		&amp;quot;.arch_extension sec\n&amp;quot;&lt;br /&gt;
 		&amp;quot;smc	0\n&amp;quot;&lt;br /&gt;
 		: &amp;quot;+r&amp;quot;(reg0), &amp;quot;+r&amp;quot;(reg1), &amp;quot;+r&amp;quot;(reg2), &amp;quot;+r&amp;quot;(reg3) &lt;br /&gt;
&lt;br /&gt;
@@ -104,6 +105,7 @@&lt;br /&gt;
 	register u32 reg1 __asm__(&amp;quot;r1&amp;quot;) = 0;&lt;br /&gt;
  	__asm__ volatile (&lt;br /&gt;
+		&amp;quot;.arch_extension sec\n&amp;quot; 		&amp;quot;smc	0\n&amp;quot;&lt;br /&gt;
 		: &amp;quot;+r&amp;quot;(reg0), &amp;quot;+r&amp;quot;(reg1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Source :http://forum.insignal.co.kr/viewtopic.php?f=10&amp;amp;t=118&lt;br /&gt;
&lt;br /&gt;
=== armv7a-hardfloat-linux-gnueabi-ld: error: /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.7.2/libgcc.a(bpabi.o) uses VFP register arguments, u-boot does not ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
--- arch/arm/cpu/armv7/config.mk.orig	2013-04-30 17:40:20.842111160 -0400&lt;br /&gt;
+++ arch/arm/cpu/armv7/config.mk	2013-04-30 17:40:52.368112692 -0400&lt;br /&gt;
@@ -20,7 +20,7 @@ &lt;br /&gt;
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,&lt;br /&gt;
 # MA 02111-1307 USA&lt;br /&gt;
 #&lt;br /&gt;
-PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float&lt;br /&gt;
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -mfloat-abi=hard -mfpu=vfpv3  &lt;br /&gt;
&lt;br /&gt;
 # Make ARMv5 to allow more compilers to work, even though its v7a.&lt;br /&gt;
 PLATFORM_CPPFLAGS += -march=armv7-a&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Source :&lt;br /&gt;
https://code.google.com/p/chromium/issues/detail?id=213120&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-02-03T22:10:03Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Funtoo Linux Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*    4263935*     0     4194304*Linux (83)           None&lt;br /&gt;
   Pri/Log     4263936*   15661055*     0    11397120*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not really &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. Create a root partition as the second partition, starting at sector 69632. In the following example, there is also a 1GB swap partition at the end.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*   13654922*     0    13585291*Linux (83)           None&lt;br /&gt;
 3 Primary    13654923*   15661055*     0     2006133*Linux swap / So (82) None&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb2&lt;br /&gt;
# ##i##mkswap /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo_Linux_Installation_on_ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
=== Modules ===&lt;br /&gt;
&lt;br /&gt;
To be continued...&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
Mount the boot partition (/dev/sdb1) in /mnt/SD_root/boot (created in the last section). It should contain the following files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
boot&lt;br /&gt;
├── board.dtb&lt;br /&gt;
├── boot&lt;br /&gt;
├── boot-hdmi1080.scr&lt;br /&gt;
├── boot-hdmi1080.txt&lt;br /&gt;
├── boot-hdmi720.scr&lt;br /&gt;
├── boot-hdmi720.txt&lt;br /&gt;
├── boot.ini&lt;br /&gt;
├── boot.scr&lt;br /&gt;
├── boot.scr.orig&lt;br /&gt;
├── boot.txt&lt;br /&gt;
├── boot.txt.orig&lt;br /&gt;
├── config.3.0.51&lt;br /&gt;
├── uInitrd.orig&lt;br /&gt;
├── zImage&lt;br /&gt;
└── zImage.3.0.51.orig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More information to come about how to personalize the boot process.&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
# ##i## cp arch/arm/boot/zImage /mnt/SD_root/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Gentoo SD-card Image ===&lt;br /&gt;
[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
Using this image, kripton created [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|Gentoo SD-card image]. We will use this image to provide a start point for Funtoo users.&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*    4263935*     0     4194304*Linux (83)           None&lt;br /&gt;
   Pri/Log     4263936*   15661055*     0    11397120*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68631 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdb of=uboot_and_boot_partition.img bs=512 count=68631&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-02-03T22:02:55Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Boot partition setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*    4263935*     0     4194304*Linux (83)           None&lt;br /&gt;
   Pri/Log     4263936*   15661055*     0    11397120*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not really &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. Create a root partition as the second partition, starting at sector 69632. In the following example, there is also a 1GB swap partition at the end.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*   13654922*     0    13585291*Linux (83)           None&lt;br /&gt;
 3 Primary    13654923*   15661055*     0     2006133*Linux swap / So (82) None&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb2&lt;br /&gt;
# ##i##mkswap /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo_Linux_Installation_on_ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
Mount the boot partition (/dev/sdb1) in /mnt/SD_root/boot (created in the last section). It should contain the following files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
boot&lt;br /&gt;
├── board.dtb&lt;br /&gt;
├── boot&lt;br /&gt;
├── boot-hdmi1080.scr&lt;br /&gt;
├── boot-hdmi1080.txt&lt;br /&gt;
├── boot-hdmi720.scr&lt;br /&gt;
├── boot-hdmi720.txt&lt;br /&gt;
├── boot.ini&lt;br /&gt;
├── boot.scr&lt;br /&gt;
├── boot.scr.orig&lt;br /&gt;
├── boot.txt&lt;br /&gt;
├── boot.txt.orig&lt;br /&gt;
├── config.3.0.51&lt;br /&gt;
├── uInitrd.orig&lt;br /&gt;
├── zImage&lt;br /&gt;
└── zImage.3.0.51.orig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More information to come about how to personalize the boot process.&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
# ##i## cp arch/arm/boot/zImage /mnt/SD_root/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Gentoo SD-card Image ===&lt;br /&gt;
[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
Using this image, kripton created [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|Gentoo SD-card image]. We will use this image to provide a start point for Funtoo users.&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*    4263935*     0     4194304*Linux (83)           None&lt;br /&gt;
   Pri/Log     4263936*   15661055*     0    11397120*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68631 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdb of=uboot_and_boot_partition.img bs=512 count=68631&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-02-03T22:02:27Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Boot partition setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*    4263935*     0     4194304*Linux (83)           None&lt;br /&gt;
   Pri/Log     4263936*   15661055*     0    11397120*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not really &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. Create a root partition as the second partition, starting at sector 69632. In the following example, there is also a 1GB swap partition at the end.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*   13654922*     0    13585291*Linux (83)           None&lt;br /&gt;
 3 Primary    13654923*   15661055*     0     2006133*Linux swap / So (82) None&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb2&lt;br /&gt;
# ##i##mkswap /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo_Linux_Installation_on_ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
Mount the boot partition (/dev/sdb1) in /mnt/SD_root/boot (created in the last section). It should contain the following files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
boot├── board.dtb├── boot├── boot-hdmi1080.scr├── boot-hdmi1080.txt├── boot-hdmi720.scr├── boot-hdmi720.txt├── boot.ini├── boot.scr├── boot.scr.orig├── boot.txt├── boot.txt.orig├── config.3.0.51├── uInitrd.orig├── zImage└── zImage.3.0.51.orig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More information to come about how to personalize the boot process.&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
# ##i## cp arch/arm/boot/zImage /mnt/SD_root/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Gentoo SD-card Image ===&lt;br /&gt;
[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
Using this image, kripton created [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|Gentoo SD-card image]. We will use this image to provide a start point for Funtoo users.&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*    4263935*     0     4194304*Linux (83)           None&lt;br /&gt;
   Pri/Log     4263936*   15661055*     0    11397120*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68631 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdb of=uboot_and_boot_partition.img bs=512 count=68631&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-02-03T21:59:30Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Micro-SD Card Preparation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*    4263935*     0     4194304*Linux (83)           None&lt;br /&gt;
   Pri/Log     4263936*   15661055*     0    11397120*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not really &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. Create a root partition as the second partition, starting at sector 69632. In the following example, there is also a 1GB swap partition at the end.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*   13654922*     0    13585291*Linux (83)           None&lt;br /&gt;
 3 Primary    13654923*   15661055*     0     2006133*Linux swap / So (82) None&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb2&lt;br /&gt;
# ##i##mkswap /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo_Linux_Installation_on_ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
Mount the boot partition (/dev/sdb1) in /mnt/SD_root/boot (created in the last section). It should contain the following files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
├── board.dtb&lt;br /&gt;
├── boot&lt;br /&gt;
├── boot-hdmi1080.scr&lt;br /&gt;
├── boot-hdmi1080.txt&lt;br /&gt;
├── boot-hdmi720.scr&lt;br /&gt;
├── boot-hdmi720.txt&lt;br /&gt;
├── boot.ini&lt;br /&gt;
├── boot.scr&lt;br /&gt;
├── boot.txt&lt;br /&gt;
├── uInitrd&lt;br /&gt;
└── zImage&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change the video mode that will be used by default, simply copy boot-hdmi[your_resolution].scr and .txt over boot.scr and boot.txt. You can backup the original files before.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## mv boot.txt boot-orig.txt&lt;br /&gt;
# ##i## mv boot.scr boot-orig.scr&lt;br /&gt;
# ##i## cp boot-hdmi1080.scr boot.scr&lt;br /&gt;
# ##i## cp boot-hdmi1080.txt boot.txt&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Those boot files define some of the kernel arguments that will be passed. One of them is the root filesystem's UUID. To avoid modifying those, the root filesystem's UUID can be changed to have the value defined in boot.* :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## tune2fs -U e139ce78-9841-40fe-8823-96a304a09859 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
# ##i## cp arch/arm/boot/zImage /mnt/SD_root/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Gentoo SD-card Image ===&lt;br /&gt;
[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
Using this image, kripton created [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|Gentoo SD-card image]. We will use this image to provide a start point for Funtoo users.&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*    4263935*     0     4194304*Linux (83)           None&lt;br /&gt;
   Pri/Log     4263936*   15661055*     0    11397120*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68631 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdb of=uboot_and_boot_partition.img bs=512 count=68631&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-02-03T21:58:52Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Micro-SD Card Preparation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb               First       Last # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag-- ------- ----------- ----------- ------ ----------- -------------------- ----   Pri/Log           0        3071*     0#       3072*Free Space           None 1 Primary        3072*      68607*     0       65536*Linux (83)           None   Pri/Log       68608*      69631*     0        1024*Free Space           None 2 Primary       69632*    4263935*     0     4194304*Linux (83)           None   Pri/Log     4263936*   15661055*     0    11397120*Free Space           None------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not really &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. Create a root partition as the second partition, starting at sector 69632. In the following example, there is also a 1GB swap partition at the end.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb               First       Last # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag-- ------- ----------- ----------- ------ ----------- -------------------- ----   Pri/Log           0        3071*     0#       3072*Free Space           None 1 Primary        3072*      68607*     0       65536*Linux (83)           None   Pri/Log       68608*      69631*     0        1024*Free Space           None 2 Primary       69632*   13654922*     0    13585291*Linux (83)           None 3 Primary    13654923*   15661055*     0     2006133*Linux swap / So (82) None&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb2&lt;br /&gt;
# ##i##mkswap /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo_Linux_Installation_on_ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
Mount the boot partition (/dev/sdb1) in /mnt/SD_root/boot (created in the last section). It should contain the following files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
├── board.dtb&lt;br /&gt;
├── boot&lt;br /&gt;
├── boot-hdmi1080.scr&lt;br /&gt;
├── boot-hdmi1080.txt&lt;br /&gt;
├── boot-hdmi720.scr&lt;br /&gt;
├── boot-hdmi720.txt&lt;br /&gt;
├── boot.ini&lt;br /&gt;
├── boot.scr&lt;br /&gt;
├── boot.txt&lt;br /&gt;
├── uInitrd&lt;br /&gt;
└── zImage&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change the video mode that will be used by default, simply copy boot-hdmi[your_resolution].scr and .txt over boot.scr and boot.txt. You can backup the original files before.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## mv boot.txt boot-orig.txt&lt;br /&gt;
# ##i## mv boot.scr boot-orig.scr&lt;br /&gt;
# ##i## cp boot-hdmi1080.scr boot.scr&lt;br /&gt;
# ##i## cp boot-hdmi1080.txt boot.txt&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Those boot files define some of the kernel arguments that will be passed. One of them is the root filesystem's UUID. To avoid modifying those, the root filesystem's UUID can be changed to have the value defined in boot.* :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## tune2fs -U e139ce78-9841-40fe-8823-96a304a09859 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
# ##i## cp arch/arm/boot/zImage /mnt/SD_root/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Gentoo SD-card Image ===&lt;br /&gt;
[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
Using this image, kripton created [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|Gentoo SD-card image]. We will use this image to provide a start point for Funtoo users.&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*    4263935*     0     4194304*Linux (83)           None&lt;br /&gt;
   Pri/Log     4263936*   15661055*     0    11397120*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68631 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdb of=uboot_and_boot_partition.img bs=512 count=68631&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-02-03T21:28:15Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Bootstrapping a Funtoo installation using an Gentoo SD-card Image */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not really &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. In the following example, there is a 1GB swap partition and the remaining space is used as an ext4 root partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*    2074741*     0     2006134 Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2074742*   15661055*     0    13586314*Linux (83)           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkswap /dev/sdb2&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo_Linux_Installation_on_ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
Mount the boot partition (/dev/sdb1) in /mnt/SD_root/boot (created in the last section). It should contain the following files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
├── board.dtb&lt;br /&gt;
├── boot&lt;br /&gt;
├── boot-hdmi1080.scr&lt;br /&gt;
├── boot-hdmi1080.txt&lt;br /&gt;
├── boot-hdmi720.scr&lt;br /&gt;
├── boot-hdmi720.txt&lt;br /&gt;
├── boot.ini&lt;br /&gt;
├── boot.scr&lt;br /&gt;
├── boot.txt&lt;br /&gt;
├── uInitrd&lt;br /&gt;
└── zImage&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change the video mode that will be used by default, simply copy boot-hdmi[your_resolution].scr and .txt over boot.scr and boot.txt. You can backup the original files before.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## mv boot.txt boot-orig.txt&lt;br /&gt;
# ##i## mv boot.scr boot-orig.scr&lt;br /&gt;
# ##i## cp boot-hdmi1080.scr boot.scr&lt;br /&gt;
# ##i## cp boot-hdmi1080.txt boot.txt&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Those boot files define some of the kernel arguments that will be passed. One of them is the root filesystem's UUID. To avoid modifying those, the root filesystem's UUID can be changed to have the value defined in boot.* :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## tune2fs -U e139ce78-9841-40fe-8823-96a304a09859 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
# ##i## cp arch/arm/boot/zImage /mnt/SD_root/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Gentoo SD-card Image ===&lt;br /&gt;
[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
Using this image, kripton created [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|Gentoo SD-card image]. We will use this image to provide a start point for Funtoo users.&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
   Pri/Log       68608*      69631*     0        1024*Free Space           None&lt;br /&gt;
 2 Primary       69632*    4263935*     0     4194304*Linux (83)           None&lt;br /&gt;
   Pri/Log     4263936*   15661055*     0    11397120*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68631 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdb of=uboot_and_boot_partition.img bs=512 count=68631&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-02-03T21:27:29Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Bootstrapping a Funtoo installation using an Gentoo SD-card Image */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not really &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. In the following example, there is a 1GB swap partition and the remaining space is used as an ext4 root partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*    2074741*     0     2006134 Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2074742*   15661055*     0    13586314*Linux (83)           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkswap /dev/sdb2&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo_Linux_Installation_on_ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
Mount the boot partition (/dev/sdb1) in /mnt/SD_root/boot (created in the last section). It should contain the following files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
├── board.dtb&lt;br /&gt;
├── boot&lt;br /&gt;
├── boot-hdmi1080.scr&lt;br /&gt;
├── boot-hdmi1080.txt&lt;br /&gt;
├── boot-hdmi720.scr&lt;br /&gt;
├── boot-hdmi720.txt&lt;br /&gt;
├── boot.ini&lt;br /&gt;
├── boot.scr&lt;br /&gt;
├── boot.txt&lt;br /&gt;
├── uInitrd&lt;br /&gt;
└── zImage&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change the video mode that will be used by default, simply copy boot-hdmi[your_resolution].scr and .txt over boot.scr and boot.txt. You can backup the original files before.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## mv boot.txt boot-orig.txt&lt;br /&gt;
# ##i## mv boot.scr boot-orig.scr&lt;br /&gt;
# ##i## cp boot-hdmi1080.scr boot.scr&lt;br /&gt;
# ##i## cp boot-hdmi1080.txt boot.txt&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Those boot files define some of the kernel arguments that will be passed. One of them is the root filesystem's UUID. To avoid modifying those, the root filesystem's UUID can be changed to have the value defined in boot.* :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## tune2fs -U e139ce78-9841-40fe-8823-96a304a09859 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
# ##i## cp arch/arm/boot/zImage /mnt/SD_root/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Gentoo SD-card Image ===&lt;br /&gt;
[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
Using this image, kripton created [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|Gentoo SD-card image]. We will use this image to provide a start point for Funtoo users.&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb               First       Last # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag-- ------- ----------- ----------- ------ ----------- -------------------- ----   Pri/Log           0        3071*     0#       3072*Free Space           None 1 Primary        3072*      68607*     0       65536*Linux (83)           None   Pri/Log       68608*      69631*     0        1024*Free Space           None 2 Primary       69632*    4263935*     0     4194304*Linux (83)           None   Pri/Log     4263936*   15661055*     0    11397120*Free Space           None------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68631 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdb of=uboot_and_boot_partition.img bs=512 count=68631&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM</id>
		<title>Funtoo Linux Installation on ARM</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM"/>
				<updated>2013-01-19T20:50:36Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Funtoo now provides [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/ stage3 images] for arm platform. At this time are only armv6j_hardfp and armv7a_hardfp stages available. If you would like us to support other processors (see the list below), please fill a bug report on [http://bugs.funtoo.org].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== List of ARM processor &amp;quot;flavors&amp;quot; ==&lt;br /&gt;
* armv4l-unknown-linux-gnu (Rebel NetWinder, HP Armada and other devices having an ARMv4 processor, which is only capable of running the old ABI. Nevertheless it should work on newer CPUs)&lt;br /&gt;
* armv4tl-softfloat-linux-gnueabi (OpenMoko FreeRunner and other devices using an ARMv4T processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv5tel-softfloat-linux-gnueabi (almost all ARM NAS, devices based on the Marvell Orion and Marvell Kirkwood, Marvell Sheevaplug, Marvell OpenRD, Guruplug, Dreamplug, QNAP TS109/TS209/TS409/TS119/TS219/TS419, Buffalo Linkstation/Kurobox PRO, HP mv2120, HP iPAQ, Linksys NSLU2 and other devices using an ARMv5TE processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv6j-unknown-linux-gnueabi ([[Raspberry Pi]], Nokia N800/N810, Smart Q7, OMAP2-based devices and other multimedia devices using an ARMv6 CPU and VFP. Uses the new ARM EABI and hardware floating point by default)&lt;br /&gt;
* armv7a-unknown-linux-gnueabi (OMAP3-based devices(Beagleboard, IGEPv2, Devkit8000, AlwaysInnovating Touchbook, [[Nokia N900]]), OMAP4-based devices([[Pandaboard]]), Freescale i.MX515-based devices([[Efika MX]], Babbage Board, Lange Board…) Marvell Dove/Armada, Nvidia Tegra2-based devices(Toshiba AC100, Toshiba Folio), ST-Ericsson NOVA A9500-based devices(Snowball), Exynos 4412 ([[Odroid-X]], Odroid-Q, [[ODROID U2]]) and other devices using an ARMv7-A processor. Uses the new ARM EABI and generic(not NEON) hardware floating point by default&lt;br /&gt;
* armv7a-hardfloat-linux-gnueabi (The same as armv7a-unknown-linux-gnueabi, but this one uses hardfloat instead of softfp. Read more about it here: http://wiki.debian.org/ArmHardFloatPort)&lt;br /&gt;
&lt;br /&gt;
== Default installation of Funtoo on your platform/board ==&lt;br /&gt;
This document is not a complete installation tutorial. Basic information about Funtoo Linux installation can be found on [[Funtoo Linux Installation]]. The goal of this document is to provide general information about installing Funtoo Linux on an ARM device, and highlight differences with a x86 installation.&lt;br /&gt;
&lt;br /&gt;
The following notes are non-board specific. Other instructions can be found in the specific articles for the above mentioned devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
Most of the ARM boards come with a SD card slot, so you will need an empty SD card (4GB is enough to get you started), in most cases the boards are also equipped with debug port which can be used with USB-to-serial cables, if you have one, you can use it to login to the machine without the need of connecting keyboards or displays. You will need a network connection to be able to download stages, kernel and update your portage tree.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel and bootloader setup ===&lt;br /&gt;
Before you start you will need a kernel and a bootloader for your device. Some of the devices look for bootloader (in most cases U-Boot) on the SD along with the kernel.&lt;br /&gt;
&lt;br /&gt;
More information about the kernel and bootloader can be found on pages specific for your device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Funtoo (overview) ===&lt;br /&gt;
&lt;br /&gt;
The installation on these devices differs from the normal installation procedure of booting an installation environment and chrooting from there to your new root, and can be little bit easier, but in some cases tricky. &lt;br /&gt;
&lt;br /&gt;
Overview of the installation:&lt;br /&gt;
* Extract stage3 to the 2nd partition of the SD card&lt;br /&gt;
* Extract portage snapshot&lt;br /&gt;
* Setup fstab&lt;br /&gt;
* Setup root password&lt;br /&gt;
* Configure hostname and networking (optional, but recommended)&lt;br /&gt;
* Enable SSH access (optional, but recommended)&lt;br /&gt;
* Enable serial console access (optional, but recommended)&lt;br /&gt;
* Correct RTC &amp;quot;bug&amp;quot; with swclock&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Stage 3 tarball ====&lt;br /&gt;
&lt;br /&gt;
ARM stage3 tarballs can be found on [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/]. Use the subarchitecture that suits best your device.&lt;br /&gt;
&lt;br /&gt;
Mount the partition that will hold your rootfs of the SD card and extract the stage3 you have downloaded.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir /mnt/SD_root&lt;br /&gt;
# ##i##mount /dev/sdcard-device-px /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Extract the stage3 (it may take a while).&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf stage3-armv7a_hardfp-xxxx.tar.xz -C /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Extracting a portage snapshot ====&lt;br /&gt;
&lt;br /&gt;
Now, download the portage snapshot from [http://ftp.osuosl.org/pub/funtoo/funtoo-current/snapshots/], and extract it to your partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf portage-latest.tar.xz -C /mnt/SD_root/usr&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setup fstab ====&lt;br /&gt;
Edit the /mnt/SD_root/etc/fstab file to look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 /dev/mmcblk0p1		/boot		vfat		noauto,noatime	1 2&lt;br /&gt;
 /dev/mmcblk0p2		/		ext4		noatime		0 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adjust the partition devices and types to suit your needs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setting the default root password ====&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|Don't skip this step. This part differs from the standard installation procedure, as the root password must be set outside of a chroot environment. Skipping this step will result on an impossibility to login.}}&lt;br /&gt;
&lt;br /&gt;
Normally, for setting the password, one has to be able to run passwd. However that's not possible in this case since an x86 system can't run ARM binaries. Therefore, it is needed to modify the file that contains the passwords (/etc/shadow) to set a default root password.&lt;br /&gt;
&lt;br /&gt;
===== Clearing the root password =====&lt;br /&gt;
This will allow to login with a blank password for the root user.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify the line beginning by &amp;quot;root&amp;quot; to match the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root::10770:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|After initial login, remember to change the root password using the passwd command.}}&lt;br /&gt;
&lt;br /&gt;
===== Choosing a root password (alternative) =====&lt;br /&gt;
&lt;br /&gt;
First, generate a password. The output of this command will be used to modify the shadow file.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##openssl passwd -1&lt;br /&gt;
or&lt;br /&gt;
# ##i##python -c &amp;quot;import crypt, getpass, pwd; print crypt.crypt('password', '\$6\$SALTsalt\$')&amp;quot;&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, edit the shadow file and use the output of the last command to replace &amp;quot;YOUR_PASSWORD_MD5&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 root:YOUR_PASSWORD_MD5:14698:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Setup hostname and networking ====&lt;br /&gt;
&lt;br /&gt;
Please read the [[Funtoo Linux Networking]] to configure your network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Using swclock ====&lt;br /&gt;
One of the problems some of the devices have, is that they don't have a battery to save the clock time. To mitigate this, on Funtoo we have an option in our init system called swclock which sets the date of the system upon boot from a last modified date of a file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, add swclock to the boot runlevel.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/swclock /mnt/SD_root/etc/runlevels/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, remove hwclock from the startup because it sets the date from the RTC, which is 2000-01-01 upon startup and overrides swclock's date.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##rm /mnt/SD_root/etc/runlevels/boot/hwclock&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
swclock uses the /lib/rc/cache/shutdowntime's modification time to set the date, therefore we update it to have the current date and time.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##touch /mnt/SD_root/lib/rc/cache/shutdowntime&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although this doesn't fix the issue, at least helps to set a sane date and time.&lt;br /&gt;
Note: Consider using NTP, documented on the next chapter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling SSH access (optional) ====&lt;br /&gt;
Adding sshd to the default runlevel will enable access to the device using ssh (if network has been configured).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/sshd /mnt/SD_root/etc/runlevels/default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no network has been configured yet, it might be a good idea to add dhcpcd in the default runlevel as well.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/dhcpcd /mnt/SD_root/etc/runlevels/default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Enabling serial console access (optional) ====&lt;br /&gt;
By default the ttyS0 port is configured at 9600 bps. However, almost all of the ARM devices run the serial port at 115200 bps. Also, the port device names differ (ttyO2 for Pandaboard, ttySAC1 for Odroid-X ...). So edit your /etc/inittab file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/inittab&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(For example for Pandaboard: )&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0:12345:respawn:/sbin/agetty 115200 ttyO2 vt100&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Finishing the installation and booting up the new system ===&lt;br /&gt;
Let's unmount the SD card.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##umount /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have the card ready, put it into your device, and you should be able to boot it. If you have a debug port you will be able to see the boot process using minicom or similar program on another PC connected with the debug cable.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;br /&gt;
[[Category:ARM]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM</id>
		<title>Funtoo Linux Installation on ARM</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM"/>
				<updated>2013-01-19T19:34:31Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Enabling SSH access (optional) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Funtoo now provides [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/ stage3 images] for arm platform. At this time are only armv6j_hardfp and armv7a_hardfp stages available. If you would like us to support other processors (see the list below), please fill a bug report on [http://bugs.funtoo.org].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== List of ARM processor &amp;quot;flavors&amp;quot; ==&lt;br /&gt;
* armv4l-unknown-linux-gnu (Rebel NetWinder, HP Armada and other devices having an ARMv4 processor, which is only capable of running the old ABI. Nevertheless it should work on newer CPUs)&lt;br /&gt;
* armv4tl-softfloat-linux-gnueabi (OpenMoko FreeRunner and other devices using an ARMv4T processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv5tel-softfloat-linux-gnueabi (almost all ARM NAS, devices based on the Marvell Orion and Marvell Kirkwood, Marvell Sheevaplug, Marvell OpenRD, Guruplug, Dreamplug, QNAP TS109/TS209/TS409/TS119/TS219/TS419, Buffalo Linkstation/Kurobox PRO, HP mv2120, HP iPAQ, Linksys NSLU2 and other devices using an ARMv5TE processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv6j-unknown-linux-gnueabi ([[Raspberry Pi]], Nokia N800/N810, Smart Q7, OMAP2-based devices and other multimedia devices using an ARMv6 CPU and VFP. Uses the new ARM EABI and hardware floating point by default)&lt;br /&gt;
* armv7a-unknown-linux-gnueabi (OMAP3-based devices(Beagleboard, IGEPv2, Devkit8000, AlwaysInnovating Touchbook, [[Nokia N900]]), OMAP4-based devices([[Pandaboard]]), Freescale i.MX515-based devices([[Efika MX]], Babbage Board, Lange Board…) Marvell Dove/Armada, Nvidia Tegra2-based devices(Toshiba AC100, Toshiba Folio), ST-Ericsson NOVA A9500-based devices(Snowball), Exynos 4412 ([[Odroid-X]], Odroid-Q) and other devices using an ARMv7-A processor. Uses the new ARM EABI and generic(not NEON) hardware floating point by default&lt;br /&gt;
* armv7a-hardfloat-linux-gnueabi (The same as armv7a-unknown-linux-gnueabi, but this one uses hardfloat instead of softfp. Read more about it here: http://wiki.debian.org/ArmHardFloatPort)&lt;br /&gt;
&lt;br /&gt;
== Default installation of Funtoo on your platform/board ==&lt;br /&gt;
This document is not a complete installation tutorial. Basic information about Funtoo Linux installation can be found on [[Funtoo Linux Installation]]. The goal of this document is to provide general information about installing Funtoo Linux on an ARM device, and highlight differences with a x86 installation.&lt;br /&gt;
&lt;br /&gt;
The following notes are non-board specific. Other instructions can be found in the specific articles for the above mentioned devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
Most of the ARM boards come with a SD card slot, so you will need an empty SD card (4GB is enough to get you started), in most cases the boards are also equipped with debug port which can be used with USB-to-serial cables, if you have one, you can use it to login to the machine without the need of connecting keyboards or displays. You will need a network connection to be able to download stages, kernel and update your portage tree.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel and bootloader setup ===&lt;br /&gt;
Before you start you will need a kernel and a bootloader for your device. Some of the devices look for bootloader (in most cases U-Boot) on the SD along with the kernel.&lt;br /&gt;
&lt;br /&gt;
More information about the kernel and bootloader can be found on pages specific for your device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Funtoo (overview) ===&lt;br /&gt;
&lt;br /&gt;
The installation on these devices differs from the normal installation procedure of booting an installation environment and chrooting from there to your new root, and can be little bit easier, but in some cases tricky. &lt;br /&gt;
&lt;br /&gt;
Overview of the installation:&lt;br /&gt;
* Extract stage3 to the 2nd partition of the SD card&lt;br /&gt;
* Extract portage snapshot&lt;br /&gt;
* Setup fstab&lt;br /&gt;
* Setup root password&lt;br /&gt;
* Configure hostname and networking (optional, but recommended)&lt;br /&gt;
* Enable SSH access (optional, but recommended)&lt;br /&gt;
* Enable serial console access (optional, but recommended)&lt;br /&gt;
* Correct RTC &amp;quot;bug&amp;quot; with swclock&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Stage 3 tarball ====&lt;br /&gt;
&lt;br /&gt;
ARM stage3 tarballs can be found on [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/]. Use the subarchitecture that suits best your device.&lt;br /&gt;
&lt;br /&gt;
Mount the partition that will hold your rootfs of the SD card and extract the stage3 you have downloaded.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir /mnt/SD_root&lt;br /&gt;
# ##i##mount /dev/sdcard-device-px /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Extract the stage3 (it may take a while).&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf stage3-armv7a_hardfp-xxxx.tar.xz -C /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Extracting a portage snapshot ====&lt;br /&gt;
&lt;br /&gt;
Now, download the portage snapshot from [http://ftp.osuosl.org/pub/funtoo/funtoo-current/snapshots/], and extract it to your partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf portage-latest.tar.xz -C /mnt/SD_root/usr&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setup fstab ====&lt;br /&gt;
Edit the /mnt/SD_root/etc/fstab file to look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 /dev/mmcblk0p1		/boot		vfat		noauto,noatime	1 2&lt;br /&gt;
 /dev/mmcblk0p2		/		ext4		noatime		0 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adjust the partition devices and types to suit your needs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setting the default root password ====&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|Don't skip this step. This part differs from the standard installation procedure, as the root password must be set outside of a chroot environment. Skipping this step will result on an impossibility to login.}}&lt;br /&gt;
&lt;br /&gt;
Normally, for setting the password, one has to be able to run passwd. However that's not possible in this case since an x86 system can't run ARM binaries. Therefore, it is needed to modify the file that contains the passwords (/etc/shadow) to set a default root password.&lt;br /&gt;
&lt;br /&gt;
===== Clearing the root password =====&lt;br /&gt;
This will allow to login with a blank password for the root user.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify the line beginning by &amp;quot;root&amp;quot; to match the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root::10770:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|After initial login, remember to change the root password using the passwd command.}}&lt;br /&gt;
&lt;br /&gt;
===== Choosing a root password (alternative) =====&lt;br /&gt;
&lt;br /&gt;
First, generate a password. The output of this command will be used to modify the shadow file.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##openssl passwd -1&lt;br /&gt;
or&lt;br /&gt;
# ##i##python -c &amp;quot;import crypt, getpass, pwd; print crypt.crypt('password', '\$6\$SALTsalt\$')&amp;quot;&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, edit the shadow file and use the output of the last command to replace &amp;quot;YOUR_PASSWORD_MD5&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 root:YOUR_PASSWORD_MD5:14698:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Setup hostname and networking ====&lt;br /&gt;
&lt;br /&gt;
Please read the [[Funtoo Linux Networking]] to configure your network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Using swclock ====&lt;br /&gt;
One of the problems some of the devices have, is that they don't have a battery to save the clock time. To mitigate this, on Funtoo we have an option in our init system called swclock which sets the date of the system upon boot from a last modified date of a file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, add swclock to the boot runlevel.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/swclock /mnt/SD_root/etc/runlevels/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, remove hwclock from the startup because it sets the date from the RTC, which is 2000-01-01 upon startup and overrides swclock's date.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##rm /mnt/SD_root/etc/runlevels/boot/hwclock&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
swclock uses the /lib/rc/cache/shutdowntime's modification time to set the date, therefore we update it to have the current date and time.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##touch /mnt/SD_root/lib/rc/cache/shutdowntime&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although this doesn't fix the issue, at least helps to set a sane date and time.&lt;br /&gt;
Note: Consider using NTP, documented on the next chapter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling SSH access (optional) ====&lt;br /&gt;
Adding sshd to the default runlevel will enable access to the device using ssh (if network has been configured).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/sshd /mnt/SD_root/etc/runlevels/default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no network has been configured yet, it might be a good idea to add dhcpcd in the default runlevel as well.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/dhcpcd /mnt/SD_root/etc/runlevels/default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Enabling serial console access (optional) ====&lt;br /&gt;
By default the ttyS0 port is configured at 9600 bps. However, almost all of the ARM devices run the serial port at 115200 bps. Also, the port device names differ (ttyO2 for Pandaboard, ttySAC1 for Odroid-X ...). So edit your /etc/inittab file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/inittab&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(For example for Pandaboard: )&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0:12345:respawn:/sbin/agetty 115200 ttyO2 vt100&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Finishing the installation and booting up the new system ===&lt;br /&gt;
Let's unmount the SD card.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##umount /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have the card ready, put it into your device, and you should be able to boot it. If you have a debug port you will be able to see the boot process using minicom or similar program on another PC connected with the debug cable.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;br /&gt;
[[Category:ARM]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-01-19T19:14:58Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not really &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. In the following example, there is a 1GB swap partition and the remaining space is used as an ext4 root partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*    2074741*     0     2006134 Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2074742*   15661055*     0    13586314*Linux (83)           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkswap /dev/sdb2&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo_Linux_Installation_on_ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
Mount the boot partition (/dev/sdb1) in /mnt/SD_root/boot (created in the last section). It should contain the following files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
├── board.dtb&lt;br /&gt;
├── boot&lt;br /&gt;
├── boot-hdmi1080.scr&lt;br /&gt;
├── boot-hdmi1080.txt&lt;br /&gt;
├── boot-hdmi720.scr&lt;br /&gt;
├── boot-hdmi720.txt&lt;br /&gt;
├── boot.ini&lt;br /&gt;
├── boot.scr&lt;br /&gt;
├── boot.txt&lt;br /&gt;
├── uInitrd&lt;br /&gt;
└── zImage&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change the video mode that will be used by default, simply copy boot-hdmi[your_resolution].scr and .txt over boot.scr and boot.txt. You can backup the original files before.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## mv boot.txt boot-orig.txt&lt;br /&gt;
# ##i## mv boot.scr boot-orig.scr&lt;br /&gt;
# ##i## cp boot-hdmi1080.scr boot.scr&lt;br /&gt;
# ##i## cp boot-hdmi1080.txt boot.txt&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Those boot files define some of the kernel arguments that will be passed. One of them is the root filesystem's UUID. To avoid modifying those, the root filesystem's UUID can be changed to have the value defined in boot.* :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## tune2fs -U e139ce78-9841-40fe-8823-96a304a09859 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
# ##i## cp arch/arm/boot/zImage /mnt/SD_root/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Ubuntu SD-card Image ===&lt;br /&gt;
[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
The following steps are inspired by [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|the work of kripton that provides a Gentoo SD-card image].&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2]].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68607 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdc of=uboot_and_boot_partition.img bs=512 count=68607&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-01-19T19:12:51Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Boot partition setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not really &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. In the following example, there is a 1GB swap partition and the remaining space is used as an ext4 root partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*    2074741*     0     2006134 Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2074742*   15661055*     0    13586314*Linux (83)           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkswap /dev/sdb2&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo_Linux_Installation_on_ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
Mount the boot partition (/dev/sdb1) in /mnt/SD_root/boot (created in the last section). It should contain the following files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
├── board.dtb&lt;br /&gt;
├── boot&lt;br /&gt;
├── boot-hdmi1080.scr&lt;br /&gt;
├── boot-hdmi1080.txt&lt;br /&gt;
├── boot-hdmi720.scr&lt;br /&gt;
├── boot-hdmi720.txt&lt;br /&gt;
├── boot.ini&lt;br /&gt;
├── boot.scr&lt;br /&gt;
├── boot.txt&lt;br /&gt;
├── uInitrd&lt;br /&gt;
└── zImage&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change the video mode that will be used by default, simply copy boot-hdmi[your_resolution].scr and .txt over boot.scr and boot.txt. You can backup the original files before.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mv boot.txt boot-orig.txt&lt;br /&gt;
# ##i##mv boot.scr boot-orig.scr&lt;br /&gt;
# ##i##cp boot-hdmi1080.scr boot.scr&lt;br /&gt;
# ##i##cp boot-hdmi1080.txt boot.txt&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Those boot files define some of the kernel arguments that will be passed. One of them is the root filesystem's UUID. To avoid modifying those, the root filesystem's UUID can be changed to have the value defined in boot.* :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tune2fs -U e139ce78-9841-40fe-8823-96a304a09859 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Ubuntu SD-card Image ===&lt;br /&gt;
[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
The following steps are inspired by [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|the work of kripton that provides a Gentoo SD-card image].&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2]].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68607 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdc of=uboot_and_boot_partition.img bs=512 count=68607&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-01-18T22:54:44Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not really &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. In the following example, there is a 1GB swap partition and the remaining space is used as an ext4 root partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*    2074741*     0     2006134 Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2074742*   15661055*     0    13586314*Linux (83)           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkswap /dev/sdb2&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [[Funtoo_Linux_Installation_on_ARM]] to begin the installation of Funtoo on the root filesystem. Note that once you are finished, you will not be able to boot the ODROID U2 until you complete the next sections.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
Mount the boot partition (/dev/sdb1) in /mnt/SD_root/boot (created in the last section). It should contain the following files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.├── board.dtb├── boot├── boot-hdmi1080.scr├── boot-hdmi1080.txt├── boot-hdmi720.scr├── boot-hdmi720.txt├── boot.ini├── boot.scr├── boot.txt├── uInitrd└── zImage&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To be continued...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Ubuntu SD-card Image ===&lt;br /&gt;
[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
The following steps are inspired by [http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|the work of kripton that provides a Gentoo SD-card image].&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2]].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68607 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdc of=uboot_and_boot_partition.img bs=512 count=68607&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-01-18T04:43:57Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ]] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. In the following example, there is a 1GB swap partition and the remaining space is used as an ext4 root partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*    2074741*     0     2006134 Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2074742*   15661055*     0    13586314*Linux (83)           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkswap /dev/sdb2&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
To be continued...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [Funtoo_Linux_Installation_on_ARM] for &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Ubuntu SD-card Image ===&lt;br /&gt;
[[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2]] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
The following steps are inspired by [[http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|the work of kripton that provides a Gentoo SD-card image]].&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2]].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68607 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdc of=uboot_and_boot_partition.img bs=512 count=68607&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-01-18T04:43:28Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Micro-SD Card Preparation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ]] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. In the following example, there is a 1GB swap partition and the remaining space is used as an ext4 root partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*    2074741*     0     2006134 Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2074742*   15661055*     0    13586314*Linux (83)           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkswap /dev/sdb2&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
To be continued...&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [Funtoo_Linux_Installation_on_ARM] for &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Ubuntu SD-card Image ===&lt;br /&gt;
[[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2]] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
The following steps are inspired by [[http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|the work of kripton that provides a Gentoo SD-card image]].&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2]].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68607 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdc of=uboot_and_boot_partition.img bs=512 count=68607&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-01-18T04:43:09Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Micro-SD Card Preparation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ]] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb                                                                                                                                                                                                                             &amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. In the following example, there is a 1GB swap partition and the remaining space is used as an ext4 root partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*    2074741*     0     2006134 Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2074742*   15661055*     0    13586314*Linux (83)           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkswap /dev/sdb2&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
To be continued...&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [Funtoo_Linux_Installation_on_ARM] for &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Ubuntu SD-card Image ===&lt;br /&gt;
[[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2]] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
The following steps are inspired by [[http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|the work of kripton that provides a Gentoo SD-card image]].&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2]].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68607 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdc of=uboot_and_boot_partition.img bs=512 count=68607&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-01-18T04:40:08Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ]] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how a working Ubuntu SD-card image has been used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections contain a quite unusual way of getting Funtoo installed, but will be updated when missing software is available.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
As there is missing software from upstream, we need to start with a SD-card image containing the bootloader (u-boot), and a boot partition containing the files that are required at boot-time. To do this, we started with an Ubuntu SD-card for the ODROID-U2 (see the last section for details).&lt;br /&gt;
&lt;br /&gt;
First, download the [http://ftp.osuosl.org/pub/funtoo/distfiles/odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz u-boot and boot partition image].&lt;br /&gt;
&lt;br /&gt;
Then, extract it and copy it over your SD-card (we will use '''/dev/sdb''' for the rest of this document, '''adjust as needed''').&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##gunzip odroid_u2_uboot_and_boot_partition-2013-01-17.img.gz&lt;br /&gt;
# ##i##dd if=odroid_u2_uboot_and_boot_partition-2013-01-17.img of=/dev/sdb&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now have the following partition schema:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cfdisk -P s /dev/sdb                                                                                                                                                                                                                             &amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;Partition Table for /dev/sdb               First       Last # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag-- ------- ----------- ----------- ------ ----------- -------------------- ----   Pri/Log           0        3071*     0#       3072*Free Space           None 1 Primary        3072*      68607*     0       65536*Linux (83)           None 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Don't override this free space, as it is not &amp;quot;free&amp;quot;.}}&lt;br /&gt;
&lt;br /&gt;
The boot partition /dev/sdb1 is formatted as FAT32 and contains some files. The other partition appears as the partition table has been copied, but it is not formatted.&lt;br /&gt;
&lt;br /&gt;
Remove this partition (/dev/sdb2) and add other partitions to fit your needs. In the following example, there is a 1GB swap partition and the remaining space is used as an ext4 root partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdb               First       Last # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag-- ------- ----------- ----------- ------ ----------- -------------------- ----   Pri/Log           0        3071*     0#       3072*Free Space           None 1 Primary        3072*      68607*     0       65536*Linux (83)           None 2 Primary       68608*    2074741*     0     2006134 Linux swap / So (82) None 3 Primary     2074742*   15661055*     0    13586314*Linux (83)           None------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkswap /dev/sdb2&lt;br /&gt;
# ##i##mkfs.ext4 /dev/sdb3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Boot partition setup ==&lt;br /&gt;
To be continued...&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [Funtoo_Linux_Installation_on_ARM] for &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Personalized Kernel Compilation ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous ==&lt;br /&gt;
&lt;br /&gt;
=== Bootstrapping a Funtoo installation using an Ubuntu SD-card Image ===&lt;br /&gt;
[[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2]] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
The following steps are inspired by [[http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|the work of kripton that provides a Gentoo SD-card image]].&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2]].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68607 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdc of=uboot_and_boot_partition.img bs=512 count=68607&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-01-18T04:07:54Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Bootstrapping a Funtoo installation using Ubuntu */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ]] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how working Ubuntu was used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections are a work-in-progress and following them will fail to work. Please see the last section.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
First, create the partition structure to suit your needs. In this example, there is a 100 MB boot partition, a 1 GB swap partition, and the remaining partition is for the root filesystem.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Keep at least 10 MB free on the beginning of the device.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last # Type&lt;br /&gt;
              Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0       40959*     0#      40960*Free Space           None&lt;br /&gt;
 1 Primary       40960*     245759*     0      204800*W95 FAT32 (LBA) (0C) Boot&lt;br /&gt;
 2 Primary      245760*    2342911*     0     2097152*Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2342912*   15661055*     0    13318144*Linux (83)           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sdc1 is formatted as FAT32, sdc2 as swap and sdc3 as ext4.&lt;br /&gt;
&lt;br /&gt;
Note that the boot partition must be the first one, and that its filesystem should be FAT32 or ext2 (not tested).&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [Funtoo_Linux_Installation_on_ARM] for &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Kernel and Bootloader ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bootloader ===&lt;br /&gt;
The bootloader to use with the ODROID U2 is u-boot. Sources are not available yet. Source code present on hardkernel's github repository is not functional at the time of writing this page.&lt;br /&gt;
&lt;br /&gt;
To be continued... All repositories containing u-boot do not work. A binary version has been found, but not tested yet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bootstrapping a Funtoo installation using an Ubuntu SD-card Image ==&lt;br /&gt;
[[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2]] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
The following steps are inspired by [[http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|the work of kripton that provides a Gentoo SD-card image]].&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2]].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To provide a starting point for a Funtoo installation, we will reuse the first 68607 sectors if this installation to extract the boot loader and the boot partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##dd if=/dev/sdc of=uboot_and_boot_partition.img bs=512 count=68607&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is it! This file will be used to install Funtoo and have already u-boot and boot partition available.&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Download</id>
		<title>Download</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Download"/>
				<updated>2013-01-16T04:44:43Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTITLE__&lt;br /&gt;
= Download Funtoo Linux =&lt;br /&gt;
&lt;br /&gt;
Here are the steps you should follow to download Funtoo Linux stage3 tarball. If you need an install CD, please see [[Funtoo Linux Installation]] for Live Media recommendations. Funtoo Linux currently doesn't have its own LiveCD, but there are many that you can use for installation.&lt;br /&gt;
&lt;br /&gt;
== First, Pick a Mirror... ==&lt;br /&gt;
&lt;br /&gt;
Funtoo Linux can be downloaded at the following locations:&lt;br /&gt;
&lt;br /&gt;
* Main US mirror: [http://ftp.osuosl.org/pub/funtoo/ The Oregon State University Open Source Lab]&lt;br /&gt;
* Main EU mirror: [http://ftp.heanet.ie/mirrors/funtoo/ HEAnet]&lt;br /&gt;
&lt;br /&gt;
== Now... pick a build ==&lt;br /&gt;
&lt;br /&gt;
'''Now you'll first need to pick a ''build'' of Funtoo Linux to install.''' Builds are like different versions of Funtoo Linux. ''Our '''funtoo-current''' build is the most up-to-date and recommended build.'' We also offer '''funtoo-stable'''. Both current and stable share the use the same Portage tree (package repository), but newer packages are unmasked (made available for install) in '''funtoo-current'''.&lt;br /&gt;
&lt;br /&gt;
There is also a '''funtoo-experimental''', which contains our experimental development work. As you might guess, funtoo-experimental is for developers and testers only, and it has its own experimental Portage tree that is separate from the others.&lt;br /&gt;
&lt;br /&gt;
If you don't know which one to choose, pick '''funtoo-current'''.&lt;br /&gt;
&lt;br /&gt;
Picked one? Great! Open a mirror in a new window, and select the appropriate build directory from the list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Next... pick an arch ==&lt;br /&gt;
&lt;br /&gt;
'''Next, it's time to pick an ''architecture'''''. If you have a modern 64-bit PC-compatible desktop or server, you generally want '''x86-64bit'''.  If you have an older 32-bit PC-compatible desktop or server, you'll want to use '''x86-32bit'''. 32-bit is also an option for 64-bit x86 systems if you don't want or need 64-bit support.&lt;br /&gt;
&lt;br /&gt;
We also bundle virtualization directories alongside the architecture directories, so if you want to install an [[OpenVZ]] container of Funtoo Linux, select '''openvz''', then pick the correct ''architecture'' within. Likewise, if you're looking for a [[VagrantUp|Vagrant]] run image of Funtoo Linux, look in the '''vagrant''' directory.&lt;br /&gt;
&lt;br /&gt;
If you are installing Funtoo Linux on an ARM system, choose '''arm-32bit'''. Finally, if you are installing Funtoo Linux on a Sparc64 system, choose '''sparc-64bit'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt; x86-64bit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Now... select a sub-arch ==&lt;br /&gt;
&lt;br /&gt;
Now, you'll need to pick a ''sub-architecture'' of Funtoo Linux that suits your needs. A sub-architecture is a build of Funtoo Linux that is optimized for your particular CPU. &lt;br /&gt;
&lt;br /&gt;
If you are building a Linux-based appliance or grabbing an image for mass-deployment, you might want to choose a generic sub-architecture that will be compatible with a wide range of processors. Otherwise, choose the most optimized sub-architecture that your processor supports.&lt;br /&gt;
&lt;br /&gt;
Note that we offer the greatest number of choices for '''funtoo-current'''. Other builds will have a more limited number of sub-arches available.&lt;br /&gt;
&lt;br /&gt;
=== x86-64bit ===&lt;br /&gt;
&lt;br /&gt;
* Intel&lt;br /&gt;
** '''corei7''': Intel Core i3, Core i5 and Core i7 desktop processors or higher. Xeon 5500, 5600 and 7500 series server processors or higher. (Nehalem, Sandy Bridge) &lt;br /&gt;
** '''core2_64''': Intel Core 2 series or higher, which include the Core 2 Solo, Duo, Quad and Extreme. Also suitable for Nehalem.&lt;br /&gt;
** '''atom_64''': Intel Atom optimized. Compatible with Core 2 series.&lt;br /&gt;
* AMD&lt;br /&gt;
** '''amd64-k10''': AMD Phenom, Phenom II and compatible, or higher&lt;br /&gt;
** '''amd64-k8''': AMD Opteron or Athlon 64 processors, or higher&lt;br /&gt;
* Generic&lt;br /&gt;
** '''generic_64''' : Generic 64-bit Intel/AMD processor&lt;br /&gt;
&lt;br /&gt;
=== x86-32bit ===&lt;br /&gt;
&lt;br /&gt;
*'''core2_32''': Intel Core 2 series or compatible, which include the Core 2 Solo, Duo, Quad and Extreme. Also suitable for Nehalem.&lt;br /&gt;
*'''atom_32''': Intel Atom optimized. Compatible with Core 2 series.&lt;br /&gt;
*'''amd64-k8_32''': AMD Opteron or Athlon 64 processors, or higher.&lt;br /&gt;
*'''athlon-xp''': Athlon XP or Opteron/Athlon 64.&lt;br /&gt;
*'''i686''': Generic P6-class system (generic modern 32-bit)&lt;br /&gt;
*'''i486''': Intel 80486+ system (generic 32-bit)&lt;br /&gt;
&lt;br /&gt;
=== arm-32bit ===&lt;br /&gt;
&lt;br /&gt;
*'''armv6j_hardfp''': Hardware floating points ARMv6J architecture (Raspberry Pi, etc.).&lt;br /&gt;
*'''armv7a_hardfp''': Hardware floating points ARMv7A architecture (PandaBoard, ODROID-X2, ODROID-U2, etc.).&lt;br /&gt;
&lt;br /&gt;
You should now grab the most recent stage3 for the sub-architecture that you've chosen:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt; x86-64bit -&amp;gt; corei7 -&amp;gt; stage3-latest.tar.xz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Download</id>
		<title>Download</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Download"/>
				<updated>2013-01-16T04:40:24Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTITLE__&lt;br /&gt;
= Download Funtoo Linux =&lt;br /&gt;
&lt;br /&gt;
Here are the steps you should follow to download Funtoo Linux stage3 tarball. If you need an install CD, please see [[Funtoo Linux Installation]] for Live Media recommendations. Funtoo Linux currently doesn't have its own LiveCD, but there are many that you can use for installation.&lt;br /&gt;
&lt;br /&gt;
== First, Pick a Mirror... ==&lt;br /&gt;
&lt;br /&gt;
Funtoo Linux can be downloaded at the following locations:&lt;br /&gt;
&lt;br /&gt;
* Main US mirror: [http://ftp.osuosl.org/pub/funtoo/ The Oregon State University Open Source Lab]&lt;br /&gt;
* Main EU mirror: [http://ftp.heanet.ie/mirrors/funtoo/ HEAnet]&lt;br /&gt;
&lt;br /&gt;
== Now... pick a build ==&lt;br /&gt;
&lt;br /&gt;
'''Now you'll first need to pick a ''build'' of Funtoo Linux to install.''' Builds are like different versions of Funtoo Linux. ''Our '''funtoo-current''' build is the most up-to-date and recommended build.'' We also offer '''funtoo-stable'''. Both current and stable share the use the same Portage tree (package repository), but newer packages are unmasked (made available for install) in '''funtoo-current'''.&lt;br /&gt;
&lt;br /&gt;
There is also a '''funtoo-experimental''', which contains our experimental development work. As you might guess, funtoo-experimental is for developers and testers only, and it has its own experimental Portage tree that is separate from the others.&lt;br /&gt;
&lt;br /&gt;
If you don't know which one to choose, pick '''funtoo-current'''.&lt;br /&gt;
&lt;br /&gt;
Picked one? Great! Open a mirror in a new window, and select the appropriate build directory from the list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Next... pick an arch ==&lt;br /&gt;
&lt;br /&gt;
'''Next, it's time to pick an ''architecture'''''. If you have a modern 64-bit PC-compatible desktop or server, you generally want '''x86-64bit'''.  If you have an older 32-bit PC-compatible desktop or server, you'll want to use '''x86-32bit'''. 32-bit is also an option for 64-bit x86 systems if you don't want or need 64-bit support.&lt;br /&gt;
&lt;br /&gt;
We also bundle virtualization directories alongside the architecture directories, so if you want to install an [[OpenVZ]] container of Funtoo Linux, select '''openvz''', then pick the correct ''architecture'' within. Likewise, if you're looking for a [[VagrantUp|Vagrant]] run image of Funtoo Linux, look in the '''vagrant''' directory.&lt;br /&gt;
&lt;br /&gt;
If you are installing Funtoo Linux on an ARM system, choose '''arm-32bit'''. Finally, if you are installing Funtoo Linux on a Sparc64 system, choose '''sparc-64bit'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt; x86-64bit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Now... select a sub-arch ==&lt;br /&gt;
&lt;br /&gt;
Now, you'll need to pick a ''sub-architecture'' of Funtoo Linux that suits your needs. A sub-architecture is a build of Funtoo Linux that is optimized for your particular CPU. &lt;br /&gt;
&lt;br /&gt;
If you are building a Linux-based appliance or grabbing an image for mass-deployment, you might want to choose a generic sub-architecture that will be compatible with a wide range of processors. Otherwise, choose the most optimized sub-architecture that your processor supports.&lt;br /&gt;
&lt;br /&gt;
Note that we offer the greatest number of choices for '''funtoo-current'''. Other builds will have a more limited number of sub-arches available.&lt;br /&gt;
&lt;br /&gt;
=== x86-64bit ===&lt;br /&gt;
&lt;br /&gt;
* Intel&lt;br /&gt;
** '''corei7''': Intel Core i3, Core i5 and Core i7 desktop processors or higher. Xeon 5500, 5600 and 7500 series server processors or higher. (Nehalem, Sandy Bridge) &lt;br /&gt;
** '''core2_64''': Intel Core 2 series or higher, which include the Core 2 Solo, Duo, Quad and Extreme. Also suitable for Nehalem.&lt;br /&gt;
** '''atom_64''': Intel Atom optimized. Compatible with Core 2 series.&lt;br /&gt;
* AMD&lt;br /&gt;
** '''amd64-k10''': AMD Phenom, Phenom II and compatible, or higher&lt;br /&gt;
** '''amd64-k8''': AMD Opteron or Athlon 64 processors, or higher&lt;br /&gt;
* Generic&lt;br /&gt;
** '''generic_64''' : Generic 64-bit Intel/AMD processor&lt;br /&gt;
&lt;br /&gt;
=== x86-32bit ===&lt;br /&gt;
&lt;br /&gt;
*'''core2_32''': Intel Core 2 series or compatible, which include the Core 2 Solo, Duo, Quad and Extreme. Also suitable for Nehalem.&lt;br /&gt;
*'''atom_32''': Intel Atom optimized. Compatible with Core 2 series.&lt;br /&gt;
*'''amd64-k8_32''': AMD Opteron or Athlon 64 processors, or higher.&lt;br /&gt;
*'''athlon-xp''': Athlon XP or Opteron/Athlon 64.&lt;br /&gt;
*'''i686''': Generic P6-class system (generic modern 32-bit)&lt;br /&gt;
*'''i486''': Intel 80486+ system (generic 32-bit)&lt;br /&gt;
&lt;br /&gt;
=== arm-32bit ===&lt;br /&gt;
&lt;br /&gt;
*'''armv6j_hardfp''': Hardware floating points ARMv6J architecture (Raspberry Pi, etc.).&lt;br /&gt;
*'''armv6j_hardfp''': Hardware floating points ARMv7A architecture (PandaBoard, ODROID-X2, ODROID-U2, etc.).&lt;br /&gt;
&lt;br /&gt;
You should now grab the most recent stage3 for the sub-architecture that you've chosen:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt; x86-64bit -&amp;gt; corei7 -&amp;gt; stage3-latest.tar.xz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-01-15T05:04:33Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Bootstrapping a Funtoo installation using Ubuntu */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ]] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how working Ubuntu was used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections are a work-in-progress and following them will fail to work. Please see the last section.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
First, create the partition structure to suit your needs. In this example, there is a 100 MB boot partition, a 1 GB swap partition, and the remaining partition is for the root filesystem.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Keep at least 10 MB free on the beginning of the device.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last # Type&lt;br /&gt;
              Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0       40959*     0#      40960*Free Space           None&lt;br /&gt;
 1 Primary       40960*     245759*     0      204800*W95 FAT32 (LBA) (0C) Boot&lt;br /&gt;
 2 Primary      245760*    2342911*     0     2097152*Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2342912*   15661055*     0    13318144*Linux (83)           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sdc1 is formatted as FAT32, sdc2 as swap and sdc3 as ext4.&lt;br /&gt;
&lt;br /&gt;
Note that the boot partition must be the first one, and that its filesystem should be FAT32 or ext2 (not tested).&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [Funtoo_Linux_Installation_on_ARM] for &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Kernel and Bootloader ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bootloader ===&lt;br /&gt;
The bootloader to use with the ODROID U2 is u-boot. Sources are not available yet. Source code present on hardkernel's github repository is not functional at the time of writing this page.&lt;br /&gt;
&lt;br /&gt;
To be continued... All repositories containing u-boot do not work. A binary version has been found, but not tested yet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bootstrapping a Funtoo installation using Ubuntu ==&lt;br /&gt;
[[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2]] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
The following steps are inspired by [[http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|the work of kripton that provides a Gentoo SD-card image]].&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2]].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To be continued...&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-01-15T05:04:15Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ]] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
== Preliminary discussion ==&lt;br /&gt;
&lt;br /&gt;
The ODROID-U2 needs u-boot as a bootloader, and at the time of writing this document, the required sources are not available. Some forum posts seem to indicate that they were once available, but other posts say that it never worked.&lt;br /&gt;
&lt;br /&gt;
Some distributions (Ubuntu for example) already have SD-card images for the U2. This means that somebody has (or had) found the necessary information. To keep tracks, the last section will show how working Ubuntu was used to bootstrap this Funtoo installation. The other sections will be edited after a better solution is found.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The following sections are a work-in-progress and following them will fail to work. Please see the last section.}}&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
First, create the partition structure to suit your needs. In this example, there is a 100 MB boot partition, a 1 GB swap partition, and the remaining partition is for the root filesystem.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Keep at least 10 MB free on the beginning of the device.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last # Type&lt;br /&gt;
              Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0       40959*     0#      40960*Free Space           None&lt;br /&gt;
 1 Primary       40960*     245759*     0      204800*W95 FAT32 (LBA) (0C) Boot&lt;br /&gt;
 2 Primary      245760*    2342911*     0     2097152*Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2342912*   15661055*     0    13318144*Linux (83)           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sdc1 is formatted as FAT32, sdc2 as swap and sdc3 as ext4.&lt;br /&gt;
&lt;br /&gt;
Note that the boot partition must be the first one, and that its filesystem should be FAT32 or ext2 (not tested).&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [Funtoo_Linux_Installation_on_ARM] for &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Kernel and Bootloader ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bootloader ===&lt;br /&gt;
The bootloader to use with the ODROID U2 is u-boot. Sources are not available yet. Source code present on hardkernel's github repository is not functional at the time of writing this page.&lt;br /&gt;
&lt;br /&gt;
To be continued... All repositories containing u-boot do not work. A binary version has been found, but not tested yet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bootstrapping a Funtoo installation using Ubuntu ==&lt;br /&gt;
[[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2|Linaro Ubuntu for ODROID-U2]] is a port of Ubuntu working on the ODROID-U2. They provide a working SD-card image that already contains the necessary first bits of information (u-boot image) on the beginning of the SD-card, a fat32 boot partition with boot files, and an ext4 partition for Ubuntu root filesystem.&lt;br /&gt;
&lt;br /&gt;
The following steps are inspired by [[http://odroid.foros-phpbb.com/t2242-gentoo-hardfp-image-for-the-u2|the work of kripton that provides a Gentoo SD-card image]].&lt;br /&gt;
&lt;br /&gt;
We will use it to bootstrap a Funtoo installation, and try to find a better solution in the future.&lt;br /&gt;
&lt;br /&gt;
1. Download a SD-card image from [[http://odroid.foros-phpbb.com/t2005-linaro-ubuntu-1211-for-odroid-u2]].&lt;br /&gt;
2. Extract it if it's compressed.&lt;br /&gt;
3. Run dd if=name_of_image of=/dev/your_sd_card_device&lt;br /&gt;
&lt;br /&gt;
After a while, this should give you the following partition table:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last&lt;br /&gt;
 # Type       Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0        3071*     0#       3072*Free Space           None&lt;br /&gt;
 1 Primary        3072*      68607*     0       65536*Linux (83)           None&lt;br /&gt;
 2 Primary       68608*   11472895*     0    11404288*Linux (83)           None&lt;br /&gt;
   Pri/Log    11472896*   15661055*     0     4188160*Free Space           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-01-14T21:59:27Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Micro-SD Card Preparation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ]] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
First, create the partition structure to suit your needs. In this example, there is a 100 MB boot partition, a 1 GB swap partition, and the remaining partition is for the root filesystem.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|The bootloader requires some of the space that is available at the beginning of the device. Keep at least 10 MB free on the beginning of the device.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Partition Table for /dev/sdc&lt;br /&gt;
               First       Last # Type&lt;br /&gt;
              Sector      Sector   Offset    Length   Filesystem Type (ID) Flag&lt;br /&gt;
-- ------- ----------- ----------- ------ ----------- -------------------- ----&lt;br /&gt;
   Pri/Log           0       40959*     0#      40960*Free Space           None&lt;br /&gt;
 1 Primary       40960*     245759*     0      204800*W95 FAT32 (LBA) (0C) Boot&lt;br /&gt;
 2 Primary      245760*    2342911*     0     2097152*Linux swap / So (82) None&lt;br /&gt;
 3 Primary     2342912*   15661055*     0    13318144*Linux (83)           None&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sdc1 is formatted as FAT32, sdc2 as swap and sdc3 as ext4.&lt;br /&gt;
&lt;br /&gt;
Note that the boot partition must be the first one, and that its filesystem should be FAT32 or ext2 (not tested).&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [Funtoo_Linux_Installation_on_ARM] for &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Kernel and Bootloader ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bootloader ===&lt;br /&gt;
The bootloader to use with the ODROID U2 is u-boot. Sources are not available yet. Source code present on hardkernel's github repository is not functional at the time of writing this page.&lt;br /&gt;
&lt;br /&gt;
To be continued... All repositories containing u-boot do not work. A binary version has been found, but not tested yet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-01-14T06:43:16Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ]] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
First, create the partition structure to suit your needs. In this example, there is a 128 MB boot partition, a 1 GB swap partition, and the remaining partition is for the root filesystem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Disk /dev/sdb: 8018 MB, 8018460672 bytes&lt;br /&gt;
247 heads, 62 sectors/track, 1022 cylinders, total 15661056 sectors&lt;br /&gt;
Units = sectors of 1 * 512 = 512 bytes&lt;br /&gt;
Sector size (logical/physical): 512 bytes / 512 bytes&lt;br /&gt;
I/O size (minimum/optimal): 512 bytes / 512 bytes&lt;br /&gt;
Disk identifier: 0x000ea6e7&lt;br /&gt;
&lt;br /&gt;
   Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;
/dev/sdb1   *          62      245023      122481   83  Linux&lt;br /&gt;
/dev/sdb2          245024     2251157     1003067   82  Linux swap / Solaris&lt;br /&gt;
/dev/sdb3         2251158    15661055     6704949   83  Linux&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both sdb1 and sdb3 are formatted as ext4, and sdb2 is formatted as swap.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [Funtoo_Linux_Installation_on_ARM] for &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Kernel and Bootloader ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bootloader ===&lt;br /&gt;
The bootloader to use with the ODROID U2 is u-boot. Sources are not available yet. Source code present on hardkernel's github repository is not functional at the time of writing this page.&lt;br /&gt;
&lt;br /&gt;
To be continued... All repositories containing u-boot do not work. A binary version has been found, but not tested yet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/ODROID_U2</id>
		<title>ODROID U2</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/ODROID_U2"/>
				<updated>2013-01-14T01:20:55Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: Created page with &amp;quot;The  ODROID U2  is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contai...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[http://www.hardkernel.com/renewal_2011/products/prdt_info.php| ODROID U2 ]] is an ARM development board, featuring a 1.7 GHz quad-core CPU (ARMv7a). This document contains notes about installing Funtoo Linux on this device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Micro-SD Card Preparation ==&lt;br /&gt;
First, create the partition structure to suit your needs. In this example, there is a 128 MB boot partition, a 1 GB swap partition, and the remaining partition is for the root filesystem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Disk /dev/sdb: 8018 MB, 8018460672 bytes&lt;br /&gt;
247 heads, 62 sectors/track, 1022 cylinders, total 15661056 sectors&lt;br /&gt;
Units = sectors of 1 * 512 = 512 bytes&lt;br /&gt;
Sector size (logical/physical): 512 bytes / 512 bytes&lt;br /&gt;
I/O size (minimum/optimal): 512 bytes / 512 bytes&lt;br /&gt;
Disk identifier: 0x000ea6e7&lt;br /&gt;
&lt;br /&gt;
   Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;
/dev/sdb1   *          62      245023      122481   83  Linux&lt;br /&gt;
/dev/sdb2          245024     2251157     1003067   82  Linux swap / Solaris&lt;br /&gt;
/dev/sdb3         2251158    15661055     6704949   83  Linux&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both sdb1 and sdb3 are formatted as ext4, and sdb2 is formatted as swap.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Funtoo Linux Installation ==&lt;br /&gt;
Follow the guide from [Funtoo_Linux_Installation_on_ARM] for &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Kernel and Bootloader ==&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiler installation ===&lt;br /&gt;
In order to compile the Linux kernel for the ODROID U2, an ARMv7a hardfloat toolchain is needed. Install it using crossdev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## emerge crossdev&lt;br /&gt;
# ##i## crossdev -v -t armv7a-hardfloat-linux-gnueabi (also add -S if you want a stable toolchain)&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bootloader ===&lt;br /&gt;
The bootloader to use with the ODROID U2 is u-boot. Sources are not available yet.&lt;br /&gt;
&lt;br /&gt;
To be continued...&lt;br /&gt;
&lt;br /&gt;
=== Kernel Compilation an Installation ===&lt;br /&gt;
The kernel for the ODROID U2 can be directly compiled from the sources, given by hardkernel. Note that there are several branches (odroid-3.0.y, odroidx-3.6.y and odroid-next when this page was written), but we will stick with the default branch as it provides a defconfig for a simple start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i## cd ../odroid_u2&lt;br /&gt;
# ##i## git clone https://github.com/hardkernel/linux.git&lt;br /&gt;
# ##i## cd linux&lt;br /&gt;
# ##i## ARCH=arm make odroidu2_ubuntu_defconfig&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make -j8 (adapt depending on the number of cores available on the build machine)&lt;br /&gt;
# ##i## ARCH=arm CROSS_COMPILE=/usr/bin/armv7a-hardfloat-linux-gnueabi- make modules_install INSTALL_MOD_PATH=/mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM</id>
		<title>Funtoo Linux Installation on ARM</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM"/>
				<updated>2013-01-08T19:07:31Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* List of ARM processor &amp;quot;flavors&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Funtoo now provides [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/ stage3 images] for arm platform. At this time are only armv6j_hardfp and armv7a_hardfp stages available. If you would like us to support other processors (see the list below), please fill a bug report on [bugs.funtoo.org].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== List of ARM processor &amp;quot;flavors&amp;quot; ==&lt;br /&gt;
* armv4l-unknown-linux-gnu (Rebel NetWinder, HP Armada and other devices having an ARMv4 processor, which is only capable of running the old ABI. Nevertheless it should work on newer CPUs)&lt;br /&gt;
* armv4tl-softfloat-linux-gnueabi (OpenMoko FreeRunner and other devices using an ARMv4T processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv5tel-softfloat-linux-gnueabi (almost all ARM NAS, devices based on the Marvell Orion and Marvell Kirkwood, Marvell Sheevaplug, Marvell OpenRD, Guruplug, Dreamplug, QNAP TS109/TS209/TS409/TS119/TS219/TS419, Buffalo Linkstation/Kurobox PRO, HP mv2120, HP iPAQ, Linksys NSLU2 and other devices using an ARMv5TE processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv6j-unknown-linux-gnueabi ([[Raspberry Pi]], Nokia N800/N810, Smart Q7, OMAP2-based devices and other multimedia devices using an ARMv6 CPU and VFP. Uses the new ARM EABI and hardware floating point by default)&lt;br /&gt;
* armv7a-unknown-linux-gnueabi (OMAP3-based devices(Beagleboard, IGEPv2, Devkit8000, AlwaysInnovating Touchbook, [[Nokia N900]]), OMAP4-based devices([[Pandaboard]]), Freescale i.MX515-based devices([[Efika MX]], Babbage Board, Lange Board…) Marvell Dove/Armada, Nvidia Tegra2-based devices(Toshiba AC100, Toshiba Folio), ST-Ericsson NOVA A9500-based devices(Snowball), Exynos 4412 ([[Odroid-X]], Odroid-Q) and other devices using an ARMv7-A processor. Uses the new ARM EABI and generic(not NEON) hardware floating point by default&lt;br /&gt;
* armv7a-hardfloat-linux-gnueabi (The same as armv7a-unknown-linux-gnueabi, but this one uses hardfloat instead of softfp. Read more about it here: http://wiki.debian.org/ArmHardFloatPort)&lt;br /&gt;
&lt;br /&gt;
== Default installation of Funtoo on your platform/board ==&lt;br /&gt;
This document is not a complete installation tutorial. Basic information about Funtoo Linux installation can be found on [[Funtoo_Linux_Installation]]. The goal of this document is to provide general information about installing Funtoo Linux on an ARM device, and highlight differences with a x86 installation.&lt;br /&gt;
&lt;br /&gt;
The following notes are non-board specific. Other instructions can be found in the specific articles for the above mentioned devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
Most of the ARM boards come with a SD card slot, so you will need an empty SD card (4GB is enough to get you started), in most cases the boards are also equipped with debug port which can be used with USB-to-serial cables, if you have one, you can use it to login to the machine without the need of connecting keyboards or displays. You will need a network connection to be able to download stages, kernel and update your portage tree.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel and bootloader setup ===&lt;br /&gt;
Before you start you will need a kernel and a bootloader for your device. Some of the devices look for bootloader (in most cases U-Boot) on the SD along with the kernel.&lt;br /&gt;
&lt;br /&gt;
More information about the kernel and bootloader can be found on pages specific for your device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Funtoo (overview) ===&lt;br /&gt;
&lt;br /&gt;
The installation on these devices differs from the normal installation procedure of booting an installation environment and chrooting from there to your new root, and can be little bit easier, but in some cases tricky. &lt;br /&gt;
&lt;br /&gt;
Overview of the installation:&lt;br /&gt;
* Extract stage3 to the 2nd partition of the SD card&lt;br /&gt;
* Extract portage snapshot&lt;br /&gt;
* Setup fstab&lt;br /&gt;
* Setup root password&lt;br /&gt;
* Configure hostname and networking (optional, but recommended)&lt;br /&gt;
* Enable SSH access (optional, but recommended)&lt;br /&gt;
* Enable serial console access (optional, but recommended)&lt;br /&gt;
* Correct RTC &amp;quot;bug&amp;quot; with swclock&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Stage 3 tarball ====&lt;br /&gt;
&lt;br /&gt;
ARM stage3 tarballs can be found on [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/]. Use the subarchitecture that suits best your device.&lt;br /&gt;
&lt;br /&gt;
Mount the partition that will hold your rootfs of the SD card and extract the stage3 you have downloaded.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir /mnt/SD_root&lt;br /&gt;
# ##i##mount /dev/sdcard-device-px /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Extract the stage3 (it may take a while).&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf stage3-armv7a_hardfp-xxxx.tar.xz -C /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Extracting a portage snapshot ====&lt;br /&gt;
&lt;br /&gt;
Now, download the portage snapshot from [http://ftp.osuosl.org/pub/funtoo/funtoo-current/snapshots/], and extract it to your partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf portage-latest.tar.xz -C /mnt/SD_root/usr&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setup fstab ====&lt;br /&gt;
Edit the /mnt/SD_root/etc/fstab file to look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 /dev/mmcblk0p1		/boot		vfat		noauto,noatime	1 2&lt;br /&gt;
 /dev/mmcblk0p2		/		ext4		noatime		0 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adjust the partition devices and types to suit your needs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setting the default root password ====&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|Don't skip this step. This part differs from the standard installation procedure, as the root password must be set outside of a chroot environment. Skipping this step will result on an impossibility to login.}}&lt;br /&gt;
&lt;br /&gt;
Normally, for setting the password, one has to be able to run passwd. However that's not possible in this case since an x86 system can't run ARM binaries. Therefore, it is needed to modify the file that contains the passwords (/etc/shadow) to set a default root password.&lt;br /&gt;
&lt;br /&gt;
===== Clearing the root password =====&lt;br /&gt;
This will allow to login with a blank password for the root user.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify the line beginning by &amp;quot;root&amp;quot; to match the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root::10770:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|After initial login, remember to change the root password using the passwd command.}}&lt;br /&gt;
&lt;br /&gt;
===== Choosing a root password (alternative) =====&lt;br /&gt;
&lt;br /&gt;
First, generate a password. The output of this command will be used to modify the shadow file.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##openssl passwd -1&lt;br /&gt;
&amp;lt;/console&lt;br /&gt;
&lt;br /&gt;
Then, edit the shadow file and use the output of the last command to replace &amp;quot;YOUR_PASSWORD_MD5&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 root:YOUR_PASSWORD_MD5:14698:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setup hostname and networking ====&lt;br /&gt;
&lt;br /&gt;
Please read the [[Funtoo Linux Networking]] to configure your network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Using swclock ====&lt;br /&gt;
One of the problems some of the devices have, is that they don't have a battery to save the clock time. To mitigate this, on Funtoo we have an option in our init system called swclock which sets the date of the system upon boot from a last modified date of a file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, add swclock to the boot runlevel.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/swclock /mnt/SD_root/etc/runlevels/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, remove hwclock from the startup because it sets the date from the RTC, which is 2000-01-01 upon startup and overrides swclock's date.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##rm /mnt/SD_root/etc/runlevels/boot/hwclock&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
swclock uses the /lib/rc/cache/shutdowntime's modification time to set the date, therefore we update it to have the current date and time.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##touch /mnt/SD_root/lib/rc/cache/shutdowntime&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although this doesn't fix the issue, at least helps to set a sane date and time.&lt;br /&gt;
Note: Consider using NTP, documented on the next chapter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling SSH access (optional) ====&lt;br /&gt;
Adding sshd to the default runlevel will enable access to the device using ssh.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/sshd /mnt/SD_root/etc/runlevels/default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling serial console access (optional) ====&lt;br /&gt;
By default the ttyS0 port is configured at 9600 bps. However, almost all of the ARM devices run the serial port at 115200 bps. Also, the port device names differ (ttyO2 for Pandaboard, ttySAC1 for Odroid-X ...). So edit your /etc/inittab file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/inittab&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(For example for Pandaboard: )&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0:12345:respawn:/sbin/agetty 115200 ttyO2 vt100&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Finishing the installation and booting up the new system ===&lt;br /&gt;
Let's unmount the SD card.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##umount /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have the card ready, put it into your device, and you should be able to boot it. If you have a debug port you will be able to see the boot process using minicom or similar program on another PC connected with the debug cable.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;br /&gt;
[[Category:ARM]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Raspberry_Pi</id>
		<title>Raspberry Pi</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Raspberry_Pi"/>
				<updated>2013-01-08T19:02:49Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: FL-259: Raspberry Pi documentation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://raspberrypi.org| Raspberry Pi] is an ARM device (BCM2835, ARMv6).&lt;br /&gt;
&lt;br /&gt;
This document contains notes about getting Funtoo Linux up-and-running on the Raspberry Pi. Most information is already available on other documents, so this document mostly explains how to get the information needed to perform the installation.&lt;br /&gt;
&lt;br /&gt;
Please read [[Funtoo Linux Installation on ARM]] for general information about installing Funtoo Linux on ARM architecture.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Gentoo Linux's wiki already provide a complete installation manual for Gentoo Linux. To avoid duplicating information, only parts that are different for Funtoo Linux will be highlighted here.&lt;br /&gt;
&lt;br /&gt;
[http://wiki.gentoo.org/wiki/Raspberry_Pi_Quick_Install_Guide| Gentoo's Raspberry Pi Quick Install Guide]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Stage 3 ===&lt;br /&gt;
&lt;br /&gt;
Funtoo Linux Stage 3 tarballs for Raspberry Pi can be found on [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/armv6j_hardfp/].&lt;br /&gt;
&lt;br /&gt;
Extracting the tarball is done using ''tar xf'' instead of ''tar xjf''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Portage ===&lt;br /&gt;
&lt;br /&gt;
Funtoo Linux Portage tarballs can be found on [http://ftp.osuosl.org/pub/funtoo/funtoo-current/snapshots/].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Extracting the tarball is done using ''tar xf'' instead of ''tar xjf''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enabling networking on boot ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please consult [Funtoo Linux Networking] for informations regarding network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Select profile ===&lt;br /&gt;
&lt;br /&gt;
Funtoo Linux has a different profile than Gentoo. Correct ''arch'' and ''build'' will be already set. It is possible to change ''flavor'' or add ''mix-ins'' using eselect.&lt;br /&gt;
&lt;br /&gt;
More information can be found on [[Funtoo 1.0 Profile]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# eselect profile listCurrently available arch profiles:&lt;br /&gt;
[1]   funtoo/1.0/linux-gnu/arch/arm-32bit/armv7a_hardfp&lt;br /&gt;
[2]   funtoo/1.0/linux-gnu/arch/arm-32bit/armv6j_hardfp *&lt;br /&gt;
Currently available build profiles:  &lt;br /&gt;
[3]   funtoo/1.0/linux-gnu/build/stable  &lt;br /&gt;
[4]   funtoo/1.0/linux-gnu/build/current *  &lt;br /&gt;
[5]   funtoo/1.0/linux-gnu/build/experimental&lt;br /&gt;
Currently available flavor profiles:  &lt;br /&gt;
[6]   funtoo/1.0/linux-gnu/flavor/minimal  &lt;br /&gt;
[7]   funtoo/1.0/linux-gnu/flavor/core *  &lt;br /&gt;
[8]   funtoo/1.0/linux-gnu/flavor/desktop  &lt;br /&gt;
[9]   funtoo/1.0/linux-gnu/flavor/workstation&lt;br /&gt;
Currently available mix-ins profiles:  &lt;br /&gt;
[10]  funtoo/1.0/linux-gnu/mix-ins/audio  &lt;br /&gt;
[11]  funtoo/1.0/linux-gnu/mix-ins/console-extras  &lt;br /&gt;
[12]  funtoo/1.0/linux-gnu/mix-ins/dvd  &lt;br /&gt;
[13]  funtoo/1.0/linux-gnu/mix-ins/gnome  &lt;br /&gt;
[14]  funtoo/1.0/linux-gnu/mix-ins/kde  &lt;br /&gt;
[15]  funtoo/1.0/linux-gnu/mix-ins/media  &lt;br /&gt;
[16]  funtoo/1.0/linux-gnu/mix-ins/print  &lt;br /&gt;
[17]  funtoo/1.0/linux-gnu/mix-ins/python3-only  &lt;br /&gt;
[18]  funtoo/1.0/linux-gnu/mix-ins/rhel5-compat  &lt;br /&gt;
[19]  funtoo/1.0/linux-gnu/mix-ins/server-db  &lt;br /&gt;
[20]  funtoo/1.0/linux-gnu/mix-ins/server-mail  &lt;br /&gt;
[21]  funtoo/1.0/linux-gnu/mix-ins/server-web  &lt;br /&gt;
[22]  funtoo/1.0/linux-gnu/mix-ins/X  &lt;br /&gt;
[23]  funtoo/1.0/linux-gnu/mix-ins/xfce&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Funtoo_Linux_Installation</id>
		<title>Funtoo Linux Installation</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Funtoo_Linux_Installation"/>
				<updated>2013-01-08T18:36:03Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Additional Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This document briefly explains all of the steps required to set up a typical Funtoo Linux installation on a &amp;quot;PC compatible&amp;quot; computer system. If you've had previous experience installing Gentoo Linux then a lot of steps will be familiar, but you should still read through as there are a few differences.&lt;br /&gt;
&lt;br /&gt;
=== Additional Resources === &lt;br /&gt;
&lt;br /&gt;
This document was written to help you install Funtoo Linux as efficiently as possible, with a minimum number of distracting options regarding system configuration. &lt;br /&gt;
&lt;br /&gt;
Those who prefer a longer, more thorough tutorial-style installation may want to check out our beta [[Installation (Tutorial)|Installation Tutorial]] instead. It explores more installation possibilities and options such as encrypted filesystems, and includes screenshots.&lt;br /&gt;
&lt;br /&gt;
If you are installing Funtoo Linux on [[Funtoo Linux Installation on ARM|ARM]] architecture, please see [[Funtoo Linux Installation on ARM]] for notable differences regarding ARM support. An experimental Funtoo Linux build also exists for [[Funtoo Linux Installation on SPARC|SPARC]] platforms. See [[Funtoo Linux Installation on SPARC]]&lt;br /&gt;
&lt;br /&gt;
== Installation Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a basic overview of the Funtoo installation process:&lt;br /&gt;
&lt;br /&gt;
# [[#Live CD|Download and boot the live CD of your choice]].&lt;br /&gt;
# [[#Prepare Hard Disk|Prepare your disk]].&lt;br /&gt;
# [[#Creating filesystems|Create]] and [[#Mounting filesystems|mount]] filesystems.&lt;br /&gt;
# [[#Installing the Stage 3 tarball|Install the Funtoo stage tarball]] of your choice.&lt;br /&gt;
# [[#Chroot into Funtoo|Chroot into your new system]].&lt;br /&gt;
# [[#Downloading the Portage tree|Download the Portage tree]].&lt;br /&gt;
# [[#Configuring your system|Configure your system]] and [[#Configuring your network|network]].&lt;br /&gt;
# [[#Configuring and installing the Linux kernel|Install a kernel]].&lt;br /&gt;
# [[#Installing a Bootloader|Install a bootloader]].&lt;br /&gt;
# [[#Finishing Steps|Complete final steps]].&lt;br /&gt;
# [[#Restart your system|Reboot and enjoy]].&lt;br /&gt;
&lt;br /&gt;
=== Live CD ===&lt;br /&gt;
Funtoo doesn't provide an &amp;quot;official&amp;quot; Funtoo Live CD, but there are plenty of good ones out there to choose from. A great choice is the Gentoo-based [http://www.sysresccd.org/ SystemRescueCd] as it contains lots of tools and utilities and supports both 32-bit and 64-bit systems.&lt;br /&gt;
&lt;br /&gt;
It is also possible to install Funtoo Linux using many other Linux-based live CDs. Generally, any modern bootable Linux live CD or live USB media will work. See [[Requirements|requirements]] for an overview of what the Live Media must provide to allow a problem-free install of Funtoo Linux.&lt;br /&gt;
&lt;br /&gt;
To begin a Funtoo Linux installation, download and burn [http://www.sysresccd.org/ SystemRescueCd] or your preferred live media. Insert it into your disc drive, and boot from it. If using SystemRescueCd, '''be sure to select the &amp;lt;tt&amp;gt;rescue64&amp;lt;/tt&amp;gt; kernel at the boot menu if you are installing a 64-bit system'''. By default, SystemRescueCd boots in 32-bit mode.&lt;br /&gt;
&lt;br /&gt;
=== Prepare Hard Disk ===&lt;br /&gt;
==== Partitions ====&lt;br /&gt;
&lt;br /&gt;
Funtoo Linux fully supports traditional MBR partitions, as well as newer GPT/GUID partition formats. Funtoo Linux recommends the use of the GPT partitioning scheme, since it is newer and more flexible. Here are the various trade-offs between each partitioning scheme:&lt;br /&gt;
&lt;br /&gt;
===== GPT Partitions =====&lt;br /&gt;
&lt;br /&gt;
* Newer, preferred format for Linux systems&lt;br /&gt;
* Supports 2 TB+ hard drives for booting&lt;br /&gt;
* Supports hundreds of partitions per disk of any size&lt;br /&gt;
* Requires legacy BIOS boot partition (~32 MB) to be created if system does not use EFI&lt;br /&gt;
* Requires bootloader with support for GPT such as GRUB 2, EXTLINUX, or a patched version of GRUB Legacy&lt;br /&gt;
&lt;br /&gt;
===== MBR Partitions =====&lt;br /&gt;
&lt;br /&gt;
* Legacy, DOS partitioning scheme&lt;br /&gt;
* Only 4 primary partitions per disk; after that, you must use &amp;quot;logical&amp;quot; partitions&lt;br /&gt;
* Does not support 2 TB+ disks for booting&lt;br /&gt;
* Compatible with certain problematic systems (such as the HP ProBook 4520)&lt;br /&gt;
* Dual-boot with Windows for BIOS systems (Windows handle GPT only on true EFI systems, whatever version it is)&lt;br /&gt;
* Multiple boot loader options, e.g. GRUB 2, GRUB Legacy, lilo&lt;br /&gt;
&lt;br /&gt;
{{fancyimportant|If you plan to use partitions of 2 TB or greater, you ''must'' partition using the GPT/GUID format. Also note that there are small percentage of PCs that will not boot properly with GPT. For these systems, using MBR partitions or a primary drive with an MBR partition may be required in order to boot.}}&lt;br /&gt;
&lt;br /&gt;
==== Partitioning Using gdisk ====&lt;br /&gt;
&lt;br /&gt;
===== Notes Before We Begin =====&lt;br /&gt;
&lt;br /&gt;
These install instructions assume you are installing Funtoo Linux to an empty hard disk using GUID partition tables (GPT). If you are installing Funtoo Linux on a machine where another OS is installed, or there is an existing Linux distribution on your system that you want to keep, then you will need to adapt these instructions to suit your needs.&lt;br /&gt;
&lt;br /&gt;
If you are going to create a legacy MBR partition table instead of GUID/GPT, you will use the &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt; command instead of &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;, and you will not need to create the GRUB boot loader partition. See the table under [[#Partitioning Recommendations|Partitioning Recommendations]], in particular the &lt;br /&gt;
'''MBR Block Device (&amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;)''' and '''MBR Code''' columns. &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt; works just like &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;, but creates legacy MBR partition tables instead of the newer GPT/GUID partition tables.&lt;br /&gt;
&lt;br /&gt;
Advanced users may be interested in the following topics:&lt;br /&gt;
&lt;br /&gt;
* [[GUID Booting Guide]]&lt;br /&gt;
* [[Rootfs over encrypted lvm]]&lt;br /&gt;
* [[Rootfs over encrypted lvm over raid-1 on GPT]]&lt;br /&gt;
* '''NEW!''' '''[[ZFS Install Guide]]'''&lt;br /&gt;
* '''NEW!''' '''[[ZFS rootfs over encrypted container]]'''&lt;br /&gt;
&lt;br /&gt;
===== Using gdisk =====&lt;br /&gt;
&lt;br /&gt;
The first step after booting SystemRescueCd is to use &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; to create GPT (also known as GUID) partitions, specifying the disk you want to use, which is typically &amp;lt;tt&amp;gt;/dev/sda&amp;lt;/tt&amp;gt;, the first disk in the system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;# ##i##gdisk /dev/sda&amp;lt;/console&amp;gt;&lt;br /&gt;
You should find &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; very similar to &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;. Here is the partition table we want to end up with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;Command (? for help): ##i##p&lt;br /&gt;
Disk /dev/sda: 234441648 sectors, 111.8 GiB&lt;br /&gt;
Logical sector size: 512 bytes&lt;br /&gt;
Disk identifier (GUID): A4E5208A-CED3-4263-BB25-7147DC426931&lt;br /&gt;
Partition table holds up to 128 entries&lt;br /&gt;
First usable sector is 34, last usable sector is 234441614&lt;br /&gt;
Partitions will be aligned on 2048-sector boundaries&lt;br /&gt;
Total free space is 2014 sectors (1007.0 KiB)&lt;br /&gt;
&lt;br /&gt;
Number  Start (sector)    End (sector)  Size       Code  Name&lt;br /&gt;
   1            2048          206847   500.0 MiB   8300  Linux filesystem&lt;br /&gt;
   2          206848          272383   32.0 MiB    EF02  BIOS boot partition&lt;br /&gt;
   3          272384         8660991   4.0 GiB     8200  Linux swap&lt;br /&gt;
   4         8660992       234441614   107.7 GiB   8300  Linux filesystem&lt;br /&gt;
&lt;br /&gt;
Command (? for help): &amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Above, you'll see that we have a 500 MiB boot partition, a 32 MiB &amp;quot;BIOS boot partition&amp;quot; (also known as the GRUB boot loader partition), 4 GiB of swap, and the remaining disk used by a 107.7 GiB root partition.&lt;br /&gt;
&lt;br /&gt;
===== For new &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; users =====&lt;br /&gt;
&lt;br /&gt;
These partitions were created using the &amp;quot;&amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt;&amp;quot; command from within &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;. The &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; commands to create the partition table above are as follows. Adapt sizes as necessary, although these defaults will work for most users. The partition codes entered below can be found in the [[#Partitioning Recommendations|Partitioning Recommendations]] table below, in the GPT Code column.&lt;br /&gt;
&lt;br /&gt;
Within &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;, follow these steps:&lt;br /&gt;
&lt;br /&gt;
'''Create Partition 1''' (boot):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##n ↵&lt;br /&gt;
Partition Number: ##i##1 ↵&lt;br /&gt;
First sector: ##i##↵&lt;br /&gt;
Last sector: ##i##+500M ↵&lt;br /&gt;
Hex Code: ##i##↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Create Partition 2''' (GRUB):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##n ↵&lt;br /&gt;
Partition Number: ##i##2 ↵&lt;br /&gt;
First sector: ##i##↵&lt;br /&gt;
Last sector: ##i##+32M ↵&lt;br /&gt;
Hex Code: ##i##EF02 ↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Create Partition 3''' (swap):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##n ↵&lt;br /&gt;
Partition Number: ##i##3 ↵&lt;br /&gt;
First sector: ##i##↵&lt;br /&gt;
Last sector: ##i##+4G ↵&lt;br /&gt;
Hex Code: ##i##8200 ↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Create Partition 4''' (root):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##n ↵&lt;br /&gt;
Partition Number: ##i##4 ↵&lt;br /&gt;
First sector: ##i##↵&lt;br /&gt;
Last sector: ##i##↵##!i## (for rest of disk)&lt;br /&gt;
Hex Code: ##i##↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along the way, you can type &amp;quot;&amp;lt;tt&amp;gt;p&amp;lt;/tt&amp;gt;&amp;quot; and hit Enter to view your current partition table. If you make a mistake, you can type &amp;quot;&amp;lt;tt&amp;gt;d&amp;lt;/tt&amp;gt;&amp;quot; to delete an existing partition that you created. When you are satisfied with your partition setup, type &amp;quot;&amp;lt;tt&amp;gt;w&amp;lt;/tt&amp;gt;&amp;quot; to write your configuration to disk:&lt;br /&gt;
&lt;br /&gt;
'''Write Partition Table To Disk''':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##w ↵&lt;br /&gt;
Do you want to proceed? (Y/N): ##i##Y ↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The partition table will now be written to disk and &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; will close.&lt;br /&gt;
&lt;br /&gt;
Now, your GPT/GUID partitions have been created, and will show up as the following ''block devices'' under Linux:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;/dev/sda1&amp;lt;/tt&amp;gt;, which will be used to hold the &amp;lt;tt&amp;gt;/boot&amp;lt;/tt&amp;gt; filesystem, &lt;br /&gt;
* &amp;lt;tt&amp;gt;/dev/sda2&amp;lt;/tt&amp;gt;, which will be used directly by the new GRUB,&lt;br /&gt;
* &amp;lt;tt&amp;gt;/dev/sda3&amp;lt;/tt&amp;gt;, which will be used for swap space, and &lt;br /&gt;
* &amp;lt;tt&amp;gt;/dev/sda4&amp;lt;/tt&amp;gt;, which will hold your root filesystem.&lt;br /&gt;
&lt;br /&gt;
===== For Previous fdisk users =====&lt;br /&gt;
&lt;br /&gt;
If you have installed Gentoo Linux before, the one thing that is likely new to you here is the GRUB boot loader partition, which is listed as &amp;quot;BIOS boot partition&amp;quot; within &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;. This partition is required for GRUB 2 to boot GPT/GUID boot disks. What is it? In GRUB-speak, this partition is essentially the location of the meat of GRUB's boot loading code. If you've used GRUB Legacy in the past, this partition is where the new GRUB stores the equivalent of the &amp;lt;tt&amp;gt;stage1_5&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;stage2&amp;lt;/tt&amp;gt; files in legacy GRUB. Since GPT-based partition tables have less dead space at the beginning of the disk than their MBR equivalents, an explicitly defined partition of code &amp;lt;tt&amp;gt;EF02&amp;lt;/tt&amp;gt; is required to hold the guts of the boot loader.&lt;br /&gt;
&lt;br /&gt;
In all other respects, the partition table is similar to that which you might create for an MBR-based disk during a Gentoo Linux installation. We have a boot and a root partition with code &amp;lt;tt&amp;gt;0700&amp;lt;/tt&amp;gt;, and a Linux swap partition with code &amp;lt;tt&amp;gt;8200&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===== Partitioning Recommendations =====&lt;br /&gt;
&lt;br /&gt;
Below are our partitioning recommendations in table form. For GPT-based partitions, use the GPT Block Device and GPT Code columns with &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;. For legacy MBR-based partitions, use the MBR Block Device and MBR code columns with &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{| {{table}} &lt;br /&gt;
!Partition&lt;br /&gt;
!Size&lt;br /&gt;
!MBR Block Device (&amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;)&lt;br /&gt;
!GPT Block Device (&amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;)&lt;br /&gt;
!Filesystem&lt;br /&gt;
!MBR Code&lt;br /&gt;
!GPT Code&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/boot&amp;lt;/tt&amp;gt;&lt;br /&gt;
|500 MB&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda1&amp;lt;/tt&amp;gt;&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda1&amp;lt;/tt&amp;gt;&lt;br /&gt;
|ext2&lt;br /&gt;
|83&lt;br /&gt;
|8300&lt;br /&gt;
|-&lt;br /&gt;
|GRUB boot loader partition&lt;br /&gt;
|32 MB&lt;br /&gt;
| ''not required for MBR''&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda2&amp;lt;/tt&amp;gt;&lt;br /&gt;
|For GPT/GUID only, skip for MBR - no filesystem.&lt;br /&gt;
|''N/A''&lt;br /&gt;
|EF02&lt;br /&gt;
|-&lt;br /&gt;
|swap&lt;br /&gt;
|2x RAM for low-memory systems and production servers; otherwise 2GB.&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda2&amp;lt;/tt&amp;gt;&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda3&amp;lt;/tt&amp;gt;&lt;br /&gt;
|swap (default)&lt;br /&gt;
|82&lt;br /&gt;
|8200&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/&amp;lt;/tt&amp;gt; (root)&lt;br /&gt;
|Rest of the disk, minimum of 10GB.&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda3&amp;lt;/tt&amp;gt;&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda4&amp;lt;/tt&amp;gt;&lt;br /&gt;
|XFS recommended, alternatively ext4&lt;br /&gt;
|83&lt;br /&gt;
|8300&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/home&amp;lt;/tt&amp;gt; (optional)	&lt;br /&gt;
|User storage and media. Typically most of the disk.&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda4&amp;lt;/tt&amp;gt; (if created)&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda5&amp;lt;/tt&amp;gt; (if created)&lt;br /&gt;
|XFS recommended, alternatively ext4&lt;br /&gt;
|83&lt;br /&gt;
|8300&lt;br /&gt;
|-&lt;br /&gt;
| LVM (optional)&lt;br /&gt;
| If you want to create an LVM volume.&lt;br /&gt;
| &amp;lt;tt&amp;gt;/dev/sda4&amp;lt;/tt&amp;gt; (PV, if created)&lt;br /&gt;
| &amp;lt;tt&amp;gt;/dev/sda5&amp;lt;/tt&amp;gt; (PV, if created)&lt;br /&gt;
| LVM PV&lt;br /&gt;
| 8E&lt;br /&gt;
| 8E00&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Creating filesystems ====&lt;br /&gt;
&lt;br /&gt;
Before your newly-created partitions can be used, the block devices need to be initialized with filesystem ''metadata''. This process is known as ''creating a filesystem'' on the block devices. After filesystems are created on the block devices, they can be mounted and used to store files.&lt;br /&gt;
&lt;br /&gt;
You will not create a filesystem on your swap partition, but will initialize it using the &amp;lt;tt&amp;gt;mkswap&amp;lt;/tt&amp;gt; command so that it can be used as disk-based virtual memory. Then we'll run the &amp;lt;tt&amp;gt;swapon&amp;lt;/tt&amp;gt; command to make your newly-initialized swap space active within the live CD environment, in case it is needed during the rest of the install process.&lt;br /&gt;
&lt;br /&gt;
Note that we will not create a filesystem on the GRUB boot loader partition, as GRUB writes binary data directly to that partition when the boot loader is installed, which we'll do later.&lt;br /&gt;
&lt;br /&gt;
You can see the commands you will need to type below. Like the rest of this document, it assumes that you are using a GPT partitioning scheme. If you are using MBR, your root filesystem will likely be created on &amp;lt;tt&amp;gt;/dev/sda3&amp;lt;/tt&amp;gt; instead and you will need to adjust the target block devices. If you are following our recommendations, then simply do this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mke2fs -t ext2 /dev/sda1 &lt;br /&gt;
# ##i##mkfs.xfs /dev/sda4&lt;br /&gt;
# ##i##mkswap /dev/sda3&lt;br /&gt;
# ##i##swapon /dev/sda3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Mounting filesystems ====&lt;br /&gt;
&lt;br /&gt;
Mount the newly-created filesystems as follows, creating &amp;lt;tt&amp;gt;/mnt/funtoo&amp;lt;/tt&amp;gt; as the installation mount point:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir /mnt/funtoo&lt;br /&gt;
# ##i##mount /dev/sda4 /mnt/funtoo&lt;br /&gt;
# ##i##mkdir /mnt/funtoo/boot&lt;br /&gt;
# ##i##mount /dev/sda1 /mnt/funtoo/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Optionally, if you have a separate filesystem for &amp;lt;tt&amp;gt;/home&amp;lt;/tt&amp;gt; or anything else:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir /mnt/funtoo/home&lt;br /&gt;
# ##i##mount /dev/sda5 /mnt/funtoo/home&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;/var/tmp&amp;lt;/tt&amp;gt; on a separate filesystem, be sure to change the permissions of the mount point to be globally-writeable after mounting, as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##chmod 1777 /mnt/funtoo/tmp&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing the Stage 3 tarball ===&lt;br /&gt;
==== Stage 3 tarball ====&lt;br /&gt;
&lt;br /&gt;
After creating filesystems, the next step is downloading the initial Stage 3 tarball. The Stage 3 is a pre-compiled system used as a starting point to install Funtoo Linux. Visit the [[Download]] page and copy the URL to the Stage 3 tarball you want to use. We will download it soon.&lt;br /&gt;
&lt;br /&gt;
{{fancyimportant|If your system's date and time are too far off (typically by months or years,) then it may prevent Portage from properly downloading source tarballs. This is because some of our sources are downloaded via HTTPS, which use SSL certificates and are marked with an activation and expiration date.}}&lt;br /&gt;
&lt;br /&gt;
Now is a good time to verify the date and time are correctly set to UTC. Use the &amp;lt;tt&amp;gt;date&amp;lt;/tt&amp;gt; command to verify the date and time:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##date&lt;br /&gt;
Fri Jul 15 19:47:18 UTC 2011&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the date and/or time need to be corrected, do so using &amp;lt;tt&amp;gt;date MMDDhhmmYYYY&amp;lt;/tt&amp;gt;, keeping in mind &amp;lt;tt&amp;gt;hhmm&amp;lt;/tt&amp;gt; are in 24-hour format. The example below changes the date and time to &amp;quot;July 16th, 2011 @ 8:00PM&amp;quot; UTC:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##date 071620002011&lt;br /&gt;
Fri Jul 16 20:00:00 UTC 2011&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you are in your Funtoo Linux root filesystem, use &amp;lt;tt&amp;gt;wget&amp;lt;/tt&amp;gt; to download the Stage 3 tarball you have chosen from the [[Download]] page to use as the basis for your new Funtoo Linux system. It should be saved to the &amp;lt;tt&amp;gt;/mnt/funtoo&amp;lt;/tt&amp;gt; directory as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd /mnt/funtoo&lt;br /&gt;
# ##i##wget http://ftp.osuosl.org/pub/funtoo/funtoo-current/x86-64bit/generic_64/stage3-latest.tar.xz&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that 64-bit systems can run 32-bit or 64-bit stages, but 32-bit systems can only run 32-bit stages. Make sure that you select a Stage 3 build that is appropriate for your CPU. If you are not certain, it is a safe bet to choose the &amp;lt;tt&amp;gt;generic_64&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;generic_32&amp;lt;/tt&amp;gt; stage. Consult the [[Download]] page for more information.&lt;br /&gt;
&lt;br /&gt;
Once the stage is downloaded, extract the contents with the following command, substituting in the actual name of your stage 3 tarball:&lt;br /&gt;
&amp;lt;console&amp;gt;# ##i##tar xJpf stage3-latest.tar.xz&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancyimportant|It is very important to use &amp;lt;tt&amp;gt;tar&amp;lt;/tt&amp;gt;'s &amp;quot;&amp;lt;tt&amp;gt;p&amp;lt;/tt&amp;gt;&amp;quot; option when extracting the Stage 3 tarball - it tells &amp;lt;tt&amp;gt;tar&amp;lt;/tt&amp;gt; to ''preserve'' any permissions and ownership that exist within the archive. Without this option, your Funtoo Linux filesystem permissions will be incorrect.}}&lt;br /&gt;
&lt;br /&gt;
=== Chroot into Funtoo ===&lt;br /&gt;
Before chrooting into your new system, there's a few things that need to be done first. You will need to mount /proc and /dev inside your new system. Use the following commands:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd /mnt/funtoo&lt;br /&gt;
# ##i##mount --bind /proc proc&lt;br /&gt;
# ##i##mount --bind /dev dev&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll also want to copy over &amp;lt;tt&amp;gt;resolv.conf&amp;lt;/tt&amp;gt; in order to have proper DNS name resolution from inside the chroot:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cp /etc/resolv.conf etc&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can chroot into your new system. Use &amp;lt;tt&amp;gt;env&amp;lt;/tt&amp;gt; before &amp;lt;tt&amp;gt;chroot&amp;lt;/tt&amp;gt; to ensure that no environment variables from the installation media are used by your new system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##env -i HOME=/root TERM=$TERM chroot . bash -l&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancynote|Users of live CDs with 64-bit kernels: Some software may use &amp;lt;tt&amp;gt;uname -r&amp;lt;/tt&amp;gt; to check whether the system is 32 or 64-bit. You may want append linux32 to the chroot command as a workaround, but it's generally not needed.}}&lt;br /&gt;
{{fancyimportant|If you receive the error &amp;quot;&amp;lt;tt&amp;gt;chroot: failed to run command `/bin/bash': Exec format error&amp;lt;/tt&amp;gt;&amp;quot;, it is probably because you are running a 32-bit kernel and trying to execute 64-bit code. SystemRescueCd boots with a 32-bit kernel by default.}}&lt;br /&gt;
&lt;br /&gt;
It's also a good idea to change the default command prompt while inside the chroot. This will avoid confusion if you have to change terminals. Use this command:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##export PS1=&amp;quot;(chroot) $PS1&amp;quot;&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Congratulations! You are now chrooted inside a Funtoo Linux system. Now it's time to get Funtoo Linux properly configured so that Funtoo Linux will boot successfully when your system is restarted.&lt;br /&gt;
&lt;br /&gt;
=== Downloading the Portage tree ===&lt;br /&gt;
&lt;br /&gt;
Now it's time to install a copy of the Portage repository, which contains package scripts (ebuilds) that tell portage how to build and install thousands of different software packages. To create the Portage repository, simply run &amp;lt;tt&amp;gt;emerge --sync&amp;lt;/tt&amp;gt; from within the chroot. This will automatically clone the portage tree from [http://github.com/ GitHub]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##emerge --sync&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancynote|For an alternative way to do this, see [[Installing Portage From Snapshot]].}}&lt;br /&gt;
&lt;br /&gt;
=== Configuring your system ===&lt;br /&gt;
As is expected from a Linux distribution, Funtoo Linux has its share of configuration files. The one file you are absolutely required to edit in order to ensure that Funtoo Linux boots successfully is &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt;. The others are optional. Here are a list of files that you should consider editing:&lt;br /&gt;
&lt;br /&gt;
{| {{table}}&lt;br /&gt;
!File&lt;br /&gt;
!Do I need to change it?&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt;&lt;br /&gt;
|'''YES - required'''&lt;br /&gt;
|Mount points for all filesystems to be used at boot time. This file must reflect your disk partition setup. We'll guide you through modifying this file below.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/localtime&amp;lt;/tt&amp;gt;&lt;br /&gt;
|''Maybe - recommended''&lt;br /&gt;
|Your timezone, which will default to UTC if not set. This should be a symbolic link to something located under /usr/share/zoneinfo (e.g. /usr/share/zoneinfo/America/Montreal) &lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/make.conf&amp;lt;br/&amp;gt;/etc/portage/make.conf&amp;amp;nbsp;(new&amp;amp;nbsp;location)&amp;lt;/tt&amp;gt;&lt;br /&gt;
|''Maybe - recommended''&lt;br /&gt;
|Parameters used by gcc (compiler), portage, and make. It's a good idea to set MAKEOPTS. This is covered later in this document.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/conf.d/hostname&amp;lt;/tt&amp;gt;&lt;br /&gt;
|''Maybe - recommended''&lt;br /&gt;
|Used to set system hostname. Set to the fully-qualified (with dots) name. Defaults to &amp;lt;tt&amp;gt;localhost&amp;lt;/tt&amp;gt; if not set.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/hosts&amp;lt;/tt&amp;gt;&lt;br /&gt;
|''No''&lt;br /&gt;
| You no longer need to manually set the hostname in this file. This file is automatically generated by &amp;lt;tt&amp;gt;/etc/init.d/hostname&amp;lt;/tt&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/conf.d/keymaps&amp;lt;/tt&amp;gt;&lt;br /&gt;
|Optional&lt;br /&gt;
|Keyboard mapping configuration file (for console pseudo-terminals). Set if you have a non-US keyboard. See [[Funtoo Linux Localization]].&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/conf.d/hwclock&amp;lt;/tt&amp;gt;&lt;br /&gt;
|Optional&lt;br /&gt;
|How the time of the battery-backed hardware clock of the system is interpreted (UTC or local time). Linux uses the battery-backed hardware clock to initialize the system clock when the system is booted.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/conf.d/modules&amp;lt;/tt&amp;gt;&lt;br /&gt;
|Optional&lt;br /&gt;
|Kernel modules to load automatically at system startup. Typically not required. See [[Additional Kernel Resources]] for more info.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;profiles&amp;lt;/tt&amp;gt;&lt;br /&gt;
|Optional&lt;br /&gt;
|Some useful portage settings that may help speed up intial configuration.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If you're installing an English version of Funtoo Linux, you're in luck as most of the configuration files can be used as-is. If you're installing for another locale, don't worry. We will walk you through the necessary configuration steps on the [[Funtoo Linux Localization]] page, and if needed, there's always plenty of friendly, helpful support. (See [[#Community portal|Community]])&lt;br /&gt;
&lt;br /&gt;
Let's go ahead and see what we have to do. Use &amp;lt;tt&amp;gt;nano -w &amp;lt;name_of_file&amp;gt;&amp;lt;/tt&amp;gt; to edit files -- the &amp;quot;&amp;lt;tt&amp;gt;-w&amp;lt;/tt&amp;gt;&amp;quot; disables word-wrapping, which is handy when editing configuration files. You can copy and paste from the examples.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|It's important to edit your &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file before you reboot! You will need to modify both the &amp;quot;fs&amp;quot; and &amp;quot;type&amp;quot; columns to match the settings for your partitions and filesystems that you created with &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;. Skipping this step may prevent Funtoo Linux from booting successfully.}}&lt;br /&gt;
&lt;br /&gt;
==== /etc/fstab ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; is used by the &amp;lt;tt&amp;gt;mount&amp;lt;/tt&amp;gt; command which is ran when your system boots. Statements of this file inform &amp;lt;tt&amp;gt;mount&amp;lt;/tt&amp;gt; about partitions to be mounted and how they are mounted. In order for the system to boot properly, you must edit &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; and ensure that it reflects the partition configuration you used earlier:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##nano -w /etc/fstab&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can use arrow keys to move around and hit Control-X to exit. If you want to save your changes, type &amp;quot;&amp;lt;tt&amp;gt;Y&amp;lt;/tt&amp;gt;&amp;quot; when asked if you want to save the modified buffer, or hit Control-O before closing &amp;lt;tt&amp;gt;nano&amp;lt;/tt&amp;gt;. Otherwise your changes will be discarded.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# The root filesystem should have a pass number of either 0 or 1.&lt;br /&gt;
# All other filesystems should have a pass number of 0 or greater than 1.&lt;br /&gt;
#&lt;br /&gt;
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.&lt;br /&gt;
#&lt;br /&gt;
# See the manpage fstab(5) for more information.&lt;br /&gt;
#&lt;br /&gt;
# &amp;lt;fs&amp;gt;			&amp;lt;mountpoint&amp;gt;	&amp;lt;type&amp;gt;		&amp;lt;opts&amp;gt;		         &amp;lt;dump/pass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/dev/sda1		/boot		ext2		noatime  	         1 2&lt;br /&gt;
/dev/sda3		none		swap		sw		         0 0&lt;br /&gt;
/dev/sda4		/		xfs		noatime		         0 1&lt;br /&gt;
#/dev/cdrom		/mnt/cdrom	auto		noauto,ro	         0 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== /etc/localtime ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;/etc/localtime&amp;lt;/tt&amp;gt; is used to specify the timezone that your machine is in, and defaults to UTC. If you would like your Funtoo Linux system to use local time, you should replace &amp;lt;tt&amp;gt;/etc/localtime&amp;lt;/tt&amp;gt; with a symbolic link to the timezone that you wish to use. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(chroot) # ln -sf /usr/share/zoneinfo/America/Montreal /etc/localtime&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above sets the timezone to Eastern Time Canada. Go to &amp;lt;tt&amp;gt;/usr/share/zoneinfo&amp;lt;/tt&amp;gt; to see which values to use.&lt;br /&gt;
&lt;br /&gt;
==== /etc/portage/make.conf ====&lt;br /&gt;
&lt;br /&gt;
{{fancynote|This file may also be found at /etc/make.conf. /etc/portage/make.conf is the new location.}}&lt;br /&gt;
&lt;br /&gt;
MAKEOPTS can be used to define how many parallel compilations should occur when you compile a package, which can speed up compilation significantly. A rule of thumb is the number of CPUs (or CPU threads) in your system plus one. If for example you have a dual core processor without [[wikipedia:Hyper-threading|hyper-threading]], then you would set MAKEOPTS to 3:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MAKEOPTS=&amp;quot;-j3&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are unsure about how many processors/threads you have then use /proc/cpuinfo to help you.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##grep &amp;quot;processor&amp;quot; /proc/cpuinfo | wc -l&lt;br /&gt;
16&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set MAKEOPTS to this number plus one:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MAKEOPTS=&amp;quot;-j17&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
USE flags define what functionality is enabled when packages are built. It is not recommended to add a lot of them during installation; you should wait until you have a working, bootable system before changing your USE flags. A USE flag prefixed with a minus (&amp;quot;&amp;lt;tt&amp;gt;-&amp;lt;/tt&amp;gt;&amp;quot;) sign tells Portage not to use the flag when compiling.  A Funtoo guide to USE flags will be available in the future. For now, you can find out more information about USE flags in the [http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=2&amp;amp;chap=2 Gentoo Handbook].&lt;br /&gt;
&lt;br /&gt;
LINGUAS tells Portage which local language to compile the system and applications in (those who use LINGUAS variable like OpenOffice). It is not usually necessary to set this if you use English. If you want another language such as French (fr) or German (de), set LINGUAS appropriately:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LINGUAS=&amp;quot;fr&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== /etc/conf.d/hwclock ====&lt;br /&gt;
If you dual-boot with Windows, you'll need to edit this file and change '''clock''' to '''local''', because Windows will set your hardware clock to local time every time you boot Windows. Otherwise you normally wouldn't need to edit this file.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##nano -w /etc/conf.d/hwclock&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Localization ====&lt;br /&gt;
&lt;br /&gt;
By default, Funtoo Linux is configured with Unicode (UTF-8) enabled, and for the US English locale and keyboard. If you would like to configure your system to use a non-English locale or keyboard, see [[Funtoo Linux Localization]].&lt;br /&gt;
&lt;br /&gt;
==== Profiles ====&lt;br /&gt;
&lt;br /&gt;
[[Funtoo 1.0 Profile|Funtoo profiles]] are used to define defaults for Portage specific to your needs. There are 4 basic profile types: arch, build, [[Flavors and Mix-ins|flavor, and mix-ins]]:&lt;br /&gt;
&lt;br /&gt;
;arch: typically &amp;lt;tt&amp;gt;x86-32bit&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;x86-64bit&amp;lt;/tt&amp;gt;, this defines the processor type and support of your system. This is defined when your stage was built and should not be changed.&lt;br /&gt;
;build: defines whether your system is a &amp;lt;tt&amp;gt;current&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;stable&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;experimental&amp;lt;/tt&amp;gt; build. &amp;lt;tt&amp;gt;current&amp;lt;/tt&amp;gt; systems will have newer packages unmasked than &amp;lt;tt&amp;gt;stable&amp;lt;/tt&amp;gt; systems.&lt;br /&gt;
;flavor: defines the general type of system, such as &amp;lt;tt&amp;gt;server&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;desktop&amp;lt;/tt&amp;gt;, and will set default USE flags appropriate for your needs.&lt;br /&gt;
;mix-ins: define various optional settings that you may be interested in enabling.&lt;br /&gt;
&lt;br /&gt;
One arch, build and flavor must be set for each Funtoo Linux system, while mix-ins are optional and you can enable more than one if desired.&lt;br /&gt;
&lt;br /&gt;
Remember that profiles can often be inherited. For example, the &amp;lt;tt&amp;gt;desktop&amp;lt;/tt&amp;gt; flavor inherits the &amp;lt;tt&amp;gt;workstation&amp;lt;/tt&amp;gt; flavor settings, which in turn inherits the &amp;lt;tt&amp;gt;X&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;audio&amp;lt;/tt&amp;gt; mix-ins. You can view this by inspecting the &amp;lt;tt&amp;gt;parent&amp;lt;/tt&amp;gt; files defined in each profile, which can be found in &amp;lt;tt&amp;gt;/usr/portage/profiles/funtoo/1.0/linux-gnu&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##cd /usr/portage/profiles/funtoo/1.0/linux-gnu/&lt;br /&gt;
(chroot) # ##i##ls&lt;br /&gt;
arch/             eapi              make.defaults     package.use/      packages.build    use.force&lt;br /&gt;
build/            flavor/           mix-ins/          package.use.mask/ parent            &lt;br /&gt;
(chroot) # ##i##cat flavor/desktop/parent &lt;br /&gt;
../workstation&lt;br /&gt;
../../mix-ins/print&lt;br /&gt;
(chroot) # ##i##cat flavor/workstation/parent &lt;br /&gt;
../core&lt;br /&gt;
../../mix-ins/X&lt;br /&gt;
../../mix-ins/audio&lt;br /&gt;
../../mix-ins/dvd&lt;br /&gt;
../../mix-ins/media&lt;br /&gt;
../../mix-ins/console-extras&lt;br /&gt;
(chroot) # &lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To view installed profiles:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##eselect profile list&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change the profile flavor:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##eselect profile set-flavor 7&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add a mix-in:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##eselect profile add 10&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remember if you add by string; add a 'gentoo:' to the beginning of the profile name ie:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i## eselect profile add gentoo:funtoo/1.0/linux-gnu/mix-ins/console-extras&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring and installing the Linux kernel ===&lt;br /&gt;
&lt;br /&gt;
Now it's time to build and install a Linux kernel, which is the heart of any Funtoo Linux system. In the past, the process of creating a kernel that actually booted your system could be time-consuming and require a great deal of trial and error. Fortunately, Funtoo Linux offers an option to automatically build a kernel for you that will boot nearly all systems.&lt;br /&gt;
&lt;br /&gt;
If you are unfamiliar with how to manually configure your own kernel, or you simply want to get your system up and running quickly, you can emerge &amp;lt;tt&amp;gt;debian-sources&amp;lt;/tt&amp;gt; with the &amp;lt;tt&amp;gt;binary&amp;lt;/tt&amp;gt; USE flag set, which will automatically build the kernel and an initrd that will boot nearly all Funtoo Linux systems. This kernel is based on a linux-3.2 LTS official debian kernel package and is an easy way to get your system up and running relatively quickly.&lt;br /&gt;
&lt;br /&gt;
{{fancyimportant|&amp;lt;tt&amp;gt;debian-sources&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;binary&amp;lt;/tt&amp;gt; USE flag requires at least 12GB in /var/tmp}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##echo &amp;quot;sys-kernel/debian-sources binary&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.use&lt;br /&gt;
(chroot) # ##i##emerge debian-sources&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
All done!&lt;br /&gt;
&lt;br /&gt;
{{fancynote|NVIDIA card users: the &amp;lt;tt&amp;gt;binary&amp;lt;/tt&amp;gt; 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 &amp;lt;tt&amp;gt;/etc/modprobe.d/&amp;lt;/tt&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
For an overview of other kernel options for Funtoo Linux, see [[Funtoo Linux Kernels]]. Also be sure to see [[:Category:Hardware Compatibility|hardware compatibility]] information. We have compiled a very good reference for [[Dell PowerEdge 11G Servers]] that includes kernel compatibility information as well.&lt;br /&gt;
&lt;br /&gt;
The next step is to configure your boot loader so that your new kernel loads when the system boots.&lt;br /&gt;
&lt;br /&gt;
=== Installing a Bootloader ===&lt;br /&gt;
&lt;br /&gt;
==== Installing Grub ====&lt;br /&gt;
&lt;br /&gt;
The boot loader is responsible for loading the kernel from disk when your computer boots. For new installations, GRUB 2 and Funtoo's boot-update tool should be used as a boot loader. GRUB supports both GPT/GUID and legacy MBR partitioning schemes.&lt;br /&gt;
&lt;br /&gt;
To use this recommended boot method, first emerge &amp;lt;tt&amp;gt;boot-update&amp;lt;/tt&amp;gt;. This will also cause &amp;lt;tt&amp;gt;grub-2&amp;lt;/tt&amp;gt; to be merged, since it is a dependency of &amp;lt;tt&amp;gt;boot-update&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##emerge boot-update&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, edit &amp;lt;tt&amp;gt;/etc/boot.conf&amp;lt;/tt&amp;gt; and specify &amp;quot;&amp;lt;tt&amp;gt;Funtoo Linux genkernel&amp;lt;/tt&amp;gt;&amp;quot; as the &amp;lt;tt&amp;gt;default&amp;lt;/tt&amp;gt; setting at the top of the file, replacing &amp;lt;tt&amp;gt;&amp;quot;Funtoo Linux&amp;quot;&amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;/etc/boot.conf&amp;lt;/tt&amp;gt; should now look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
boot {&lt;br /&gt;
        generate grub&lt;br /&gt;
        default &amp;quot;Funtoo Linux genkernel&amp;quot;&lt;br /&gt;
        timeout 3 &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Funtoo Linux&amp;quot; {&lt;br /&gt;
        kernel bzImage[-v]&lt;br /&gt;
        # params += nomodeset&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Funtoo Linux genkernel&amp;quot; {&lt;br /&gt;
        kernel kernel[-v]&lt;br /&gt;
        initrd initramfs[-v]&lt;br /&gt;
        params += real_root=auto &lt;br /&gt;
        # params += nomodeset&lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Please read &amp;lt;tt&amp;gt;man boot.conf&amp;lt;/tt&amp;gt; for further details.&lt;br /&gt;
&lt;br /&gt;
===== Running grub-install and boot-update =====&lt;br /&gt;
&lt;br /&gt;
Finally, we will need to actually install the GRUB boot loader to your disk, and also run &amp;lt;tt&amp;gt;boot-update&amp;lt;/tt&amp;gt; which will generate your boot loader configuration file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##grub-install --no-floppy /dev/sda&lt;br /&gt;
(chroot) # ##i##boot-update&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You only need to run &amp;lt;tt&amp;gt;grub-install&amp;lt;/tt&amp;gt; when you first install Funtoo Linux, but you need to re-run &amp;lt;tt&amp;gt;boot-update&amp;lt;/tt&amp;gt; every time you modify your &amp;lt;tt&amp;gt;/etc/boot.conf&amp;lt;/tt&amp;gt; file, so your changes are applied on next boot.&lt;br /&gt;
&lt;br /&gt;
OK - your system should be ready to boot! Well, there are a few more loose ends...&lt;br /&gt;
&lt;br /&gt;
==== Installing Syslinux/Extlinux ====&lt;br /&gt;
&lt;br /&gt;
An alternate Bootloader is Extlinux, for installing it see the [[Extlinux|extlinux Guide]].&lt;br /&gt;
&lt;br /&gt;
=== Configuring your network ===&lt;br /&gt;
&lt;br /&gt;
It's important to ensure that you will be able to connect to your local-area network after you reboot into Funtoo Linux. There are three approaches you can use for configuring your network: NetworkManager, dhcpcd, and the [[Funtoo Linux Networking]] scripts. Here's how to choose which one to use based on the type of network you want to set up.&lt;br /&gt;
&lt;br /&gt;
==== Wi-Fi ====&lt;br /&gt;
&lt;br /&gt;
For laptop/mobile systems where you will be using Wi-Fi and connecting to various networks, NetworkManager is strongly recommended. The Funtoo version of NetworkManager is fully functional even from the command-line, so you can use it even without X or without the Network Manager applet. Here are the steps involved in setting up NetworkManager:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##emerge linux-firmware&lt;br /&gt;
# ##i##emerge networkmanager&lt;br /&gt;
# ##i##rc-update add NetworkManager default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Above, we installed linux-firmware which contains a complete collection of available firmware for many hardware devices including Wi-Fi adapters, plus NetworkManager to manage our network connection. Then we added NetworkManager to the &amp;lt;tt&amp;gt;default&amp;lt;/tt&amp;gt; runlevel so it will start when Funtoo Linux boots.&lt;br /&gt;
&lt;br /&gt;
After you reboot into Funtoo Linux, you will be able to add a Wi-Fi connection this way:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##addwifi -S wpa -K 'wifipassword' mywifinetwork&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;addwifi&amp;lt;/tt&amp;gt; command is used to configure and connect to a WPA/WPA2 Wi-Fi network named &amp;lt;tt&amp;gt;mywifinetwork&amp;lt;/tt&amp;gt; with the password &amp;lt;tt&amp;gt;wifipassword&amp;lt;/tt&amp;gt;. This network configuration entry is stored in &amp;lt;tt&amp;gt;/etc/NetworkManager/system-connections&amp;lt;/tt&amp;gt; so that it will be remembered in the future. You should only need to enter this command once for each Wi-Fi network you connect to.&lt;br /&gt;
&lt;br /&gt;
==== Desktop (Wired Ethernet) ====&lt;br /&gt;
&lt;br /&gt;
For a home desktop or workstation with wired Ethernet that will use DHCP, the simplest and most effective option to enable network connectivity is to simply add &amp;lt;tt&amp;gt;dhcpcd&amp;lt;/tt&amp;gt; to the default runlevel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##rc-update add dhcpcd default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you reboot, &amp;lt;tt&amp;gt;dhcpcd&amp;lt;/tt&amp;gt; will run in the background and manage all network interfaces and use DHCP to acquire network addresses from a DHCP server.&lt;br /&gt;
&lt;br /&gt;
==== Server (Static IP) ====&lt;br /&gt;
&lt;br /&gt;
For servers, the [[Funtoo Linux Networking]] scripts are recommended. They are optimized for static configurations and things like virtual ethernet bridging for virtualization setups. See [[Funtoo Linux Networking]] for information on how to use Funtoo Linux's template-based network configuration system.&lt;br /&gt;
&lt;br /&gt;
=== Finishing Steps ===&lt;br /&gt;
&lt;br /&gt;
==== Set your root password ====&lt;br /&gt;
It's imperative that you set your root password before rebooting so that you can log in.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##passwd&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Restart your system ===&lt;br /&gt;
&lt;br /&gt;
Now is the time to leave chroot, to unmount Funtoo Linux partitions and files and to restart your computer. When you restart, the GRUB boot loader will start, load the Linux kernel and initramfs, and your system will begin booting.&lt;br /&gt;
&lt;br /&gt;
Leave the chroot, change directory to /, unmount your Funtoo partitions, and reboot.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##exit&lt;br /&gt;
# ##i##cd /&lt;br /&gt;
# ##i##umount /mnt/funtoo/boot /mnt/funtoo/dev /mnt/funtoo/proc /mnt/funtoo&lt;br /&gt;
# ##i##reboot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now see your system reboot, the GRUB boot loader appear for a few seconds, and then see the Linux kernel and initramfs loading. After this, you should see Funtoo Linux itself start to boot, and you should be greeted with a &amp;lt;tt&amp;gt;login:&amp;lt;/tt&amp;gt; prompt. Funtoo Linux has been successfully installed!&lt;br /&gt;
&lt;br /&gt;
===Next Steps===&lt;br /&gt;
&lt;br /&gt;
To learn how to customize and start using Funtoo Linux, see [[Funtoo Linux First Steps]].&lt;br /&gt;
&lt;br /&gt;
If your system did not boot correctly, see [[Installation Troubleshooting]] for steps you can take to resolve the problem.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;br /&gt;
[[Category:Install]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM</id>
		<title>Funtoo Linux Installation on ARM</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM"/>
				<updated>2013-01-08T18:35:02Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Funtoo now provides [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/ stage3 images] for arm platform. At this time are only armv6j_hardfp and armv7a_hardfp stages available. If you would like us to support other processors (see the list below), please fill a bug report on [bugs.funtoo.org].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== List of ARM processor &amp;quot;flavors&amp;quot; ==&lt;br /&gt;
* armv4l-unknown-linux-gnu (Rebel NetWinder, HP Armada and other devices having an ARMv4 processor, which is only capable of running the old ABI. Nevertheless it should work on newer CPUs)&lt;br /&gt;
* armv4tl-softfloat-linux-gnueabi (OpenMoko FreeRunner and other devices using an ARMv4T processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv5tel-softfloat-linux-gnueabi (almost all ARM NAS, devices based on the Marvell Orion and Marvell Kirkwood, Marvell Sheevaplug, Marvell OpenRD, Guruplug, Dreamplug, QNAP TS109/TS209/TS409/TS119/TS219/TS419, Buffalo Linkstation/Kurobox PRO, HP mv2120, HP iPAQ, Linksys NSLU2 and other devices using an ARMv5TE processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv6j-unknown-linux-gnueabi (Nokia N800/N810, Smart Q7, OMAP2-based devices and other multimedia devices using an ARMv6 CPU and VFP. Uses the new ARM EABI and hardware floating point by default)&lt;br /&gt;
* armv7a-unknown-linux-gnueabi (OMAP3-based devices(Beagleboard, IGEPv2, Devkit8000, AlwaysInnovating Touchbook, [[Nokia N900]]), OMAP4-based devices([[Pandaboard]]), Freescale i.MX515-based devices([[Efika MX]], Babbage Board, Lange Board…) Marvell Dove/Armada, Nvidia Tegra2-based devices(Toshiba AC100, Toshiba Folio), ST-Ericsson NOVA A9500-based devices(Snowball), Exynos 4412 ([[Odroid-X]], Odroid-Q) and other devices using an ARMv7-A processor. Uses the new ARM EABI and generic(not NEON) hardware floating point by default&lt;br /&gt;
* armv7a-hardfloat-linux-gnueabi (The same as armv7a-unknown-linux-gnueabi, but this one uses hardfloat instead of softfp. Read more about it here: http://wiki.debian.org/ArmHardFloatPort)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Default installation of Funtoo on your platform/board ==&lt;br /&gt;
This document is not a complete installation tutorial. Basic information about Funtoo Linux installation can be found on [[Funtoo_Linux_Installation]]. The goal of this document is to provide general information about installing Funtoo Linux on an ARM device, and highlight differences with a x86 installation.&lt;br /&gt;
&lt;br /&gt;
The following notes are non-board specific. Other instructions can be found in the specific articles for the above mentioned devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
Most of the ARM boards come with a SD card slot, so you will need an empty SD card (4GB is enough to get you started), in most cases the boards are also equipped with debug port which can be used with USB-to-serial cables, if you have one, you can use it to login to the machine without the need of connecting keyboards or displays. You will need a network connection to be able to download stages, kernel and update your portage tree.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel and bootloader setup ===&lt;br /&gt;
Before you start you will need a kernel and a bootloader for your device. Some of the devices look for bootloader (in most cases U-Boot) on the SD along with the kernel.&lt;br /&gt;
&lt;br /&gt;
More information about the kernel and bootloader can be found on pages specific for your device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Funtoo (overview) ===&lt;br /&gt;
&lt;br /&gt;
The installation on these devices differs from the normal installation procedure of booting an installation environment and chrooting from there to your new root, and can be little bit easier, but in some cases tricky. &lt;br /&gt;
&lt;br /&gt;
Overview of the installation:&lt;br /&gt;
* Extract stage3 to the 2nd partition of the SD card&lt;br /&gt;
* Extract portage snapshot&lt;br /&gt;
* Setup fstab&lt;br /&gt;
* Setup root password&lt;br /&gt;
* Configure hostname and networking (optional, but recommended)&lt;br /&gt;
* Enable SSH access (optional, but recommended)&lt;br /&gt;
* Enable serial console access (optional, but recommended)&lt;br /&gt;
* Correct RTC &amp;quot;bug&amp;quot; with swclock&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Stage 3 tarball ====&lt;br /&gt;
&lt;br /&gt;
ARM stage3 tarballs can be found on [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/]. Use the subarchitecture that suits best your device.&lt;br /&gt;
&lt;br /&gt;
Mount the partition that will hold your rootfs of the SD card and extract the stage3 you have downloaded.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir /mnt/SD_root&lt;br /&gt;
# ##i##mount /dev/sdcard-device-px /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Extract the stage3 (it may take a while).&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf stage3-armv7a_hardfp-xxxx.tar.xz -C /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Extracting a portage snapshot ====&lt;br /&gt;
&lt;br /&gt;
Now, download the portage snapshot from [http://ftp.osuosl.org/pub/funtoo/funtoo-current/snapshots/], and extract it to your partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf portage-latest.tar.xz -C /mnt/SD_root/usr&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setup fstab ====&lt;br /&gt;
Edit the /mnt/SD_root/etc/fstab file to look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 /dev/mmcblk0p1		/boot		vfat		noauto,noatime	1 2&lt;br /&gt;
 /dev/mmcblk0p2		/		ext4		noatime		0 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adjust the partition devices and types to suit your needs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setting the default root password ====&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|Don't skip this step. This part differs from the standard installation procedure, as the root password must be set outside of a chroot environment. Skipping this step will result on an impossibility to login.}}&lt;br /&gt;
&lt;br /&gt;
Normally, for setting the password, one has to be able to run passwd. However that's not possible in this case since an x86 system can't run ARM binaries. Therefore, it is needed to modify the file that contains the passwords (/etc/shadow) to set a default root password.&lt;br /&gt;
&lt;br /&gt;
===== Clearing the root password =====&lt;br /&gt;
This will allow to login with a blank password for the root user.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify the line beginning by &amp;quot;root&amp;quot; to match the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root::10770:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|After initial login, remember to change the root password using the passwd command.}}&lt;br /&gt;
&lt;br /&gt;
===== Choosing a root password (alternative) =====&lt;br /&gt;
&lt;br /&gt;
First, generate a password. The output of this command will be used to modify the shadow file.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##openssl passwd -1&lt;br /&gt;
&amp;lt;/console&lt;br /&gt;
&lt;br /&gt;
Then, edit the shadow file and use the output of the last command to replace &amp;quot;YOUR_PASSWORD_MD5&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 root:YOUR_PASSWORD_MD5:14698:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setup hostname and networking ====&lt;br /&gt;
&lt;br /&gt;
Please read the [[Funtoo Linux Networking]] to configure your network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Using swclock ====&lt;br /&gt;
One of the problems some of the devices have, is that they don't have a battery to save the clock time. To mitigate this, on Funtoo we have an option in our init system called swclock which sets the date of the system upon boot from a last modified date of a file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, add swclock to the boot runlevel.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/swclock /mnt/SD_root/etc/runlevels/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, remove hwclock from the startup because it sets the date from the RTC, which is 2000-01-01 upon startup and overrides swclock's date.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##rm /mnt/SD_root/etc/runlevels/boot/hwclock&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
swclock uses the /lib/rc/cache/shutdowntime's modification time to set the date, therefore we update it to have the current date and time.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##touch /mnt/SD_root/lib/rc/cache/shutdowntime&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although this doesn't fix the issue, at least helps to set a sane date and time.&lt;br /&gt;
Note: Consider using NTP, documented on the next chapter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling SSH access (optional) ====&lt;br /&gt;
Adding sshd to the default runlevel will enable access to the device using ssh.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/sshd /mnt/SD_root/etc/runlevels/default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling serial console access (optional) ====&lt;br /&gt;
By default the ttyS0 port is configured at 9600 bps. However, almost all of the ARM devices run the serial port at 115200 bps. Also, the port device names differ (ttyO2 for Pandaboard, ttySAC1 for Odroid-X ...). So edit your /etc/inittab file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/inittab&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(For example for Pandaboard: )&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0:12345:respawn:/sbin/agetty 115200 ttyO2 vt100&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Finishing the installation and booting up the new system ===&lt;br /&gt;
Let's unmount the SD card.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##umount /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have the card ready, put it into your device, and you should be able to boot it. If you have a debug port you will be able to see the boot process using minicom or similar program on another PC connected with the debug cable.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;br /&gt;
[[Category:ARM]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM</id>
		<title>Funtoo Linux Installation on ARM</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM"/>
				<updated>2013-01-08T18:34:15Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Funtoo now provides [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/ stage3 images] for arm platform. At this time are only armv6j_hardfp and armv7a_hardfp stages available. If you would like us to support other processors (see the list below), please fill a bug report on [bugs.funtoo.org].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== List of ARM processor &amp;quot;flavors&amp;quot; ==&lt;br /&gt;
* armv4l-unknown-linux-gnu (Rebel NetWinder, HP Armada and other devices having an ARMv4 processor, which is only capable of running the old ABI. Nevertheless it should work on newer CPUs)&lt;br /&gt;
* armv4tl-softfloat-linux-gnueabi (OpenMoko FreeRunner and other devices using an ARMv4T processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv5tel-softfloat-linux-gnueabi (almost all ARM NAS, devices based on the Marvell Orion and Marvell Kirkwood, Marvell Sheevaplug, Marvell OpenRD, Guruplug, Dreamplug, QNAP TS109/TS209/TS409/TS119/TS219/TS419, Buffalo Linkstation/Kurobox PRO, HP mv2120, HP iPAQ, Linksys NSLU2 and other devices using an ARMv5TE processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv6j-unknown-linux-gnueabi (Nokia N800/N810, Smart Q7, OMAP2-based devices and other multimedia devices using an ARMv6 CPU and VFP. Uses the new ARM EABI and hardware floating point by default)&lt;br /&gt;
* armv7a-unknown-linux-gnueabi (OMAP3-based devices(Beagleboard, IGEPv2, Devkit8000, AlwaysInnovating Touchbook, [[Nokia N900]]), OMAP4-based devices([[Pandaboard]]), Freescale i.MX515-based devices([[Efika MX]], Babbage Board, Lange Board…) Marvell Dove/Armada, Nvidia Tegra2-based devices(Toshiba AC100, Toshiba Folio), ST-Ericsson NOVA A9500-based devices(Snowball), Exynos 4412 ([[Odroid-X]], Odroid-Q) and other devices using an ARMv7-A processor. Uses the new ARM EABI and generic(not NEON) hardware floating point by default&lt;br /&gt;
* armv7a-hardfloat-linux-gnueabi (The same as armv7a-unknown-linux-gnueabi, but this one uses hardfloat instead of softfp. Read more about it here: http://wiki.debian.org/ArmHardFloatPort)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Default installation of Funtoo on your platform/board ==&lt;br /&gt;
This document is not a complete installation tutorial. Basic information about Funtoo Linux installation can be found on [[Funtoo_Linux_Installation]]. The goal of this document is to provide general information about installing Funtoo Linux on an ARM device, and highlight differences with a x86 installation.&lt;br /&gt;
&lt;br /&gt;
The following notes are non-board specific. Other instructions can be found in the specific articles for the above mentioned devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
Most of the ARM boards come with a SD card slot, so you will need an empty SD card (4GB is enough to get you started), in most cases the boards are also equipped with debug port which can be used with USB-to-serial cables, if you have one, you can use it to login to the machine without the need of connecting keyboards or displays. You will need a network connection to be able to download stages, kernel and update your portage tree.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Kernel and bootloader setup ===&lt;br /&gt;
Before you start you will need a kernel and a bootloader for your device. Some of the devices look for bootloader (in most cases U-Boot) on the SD along with the kernel.&lt;br /&gt;
&lt;br /&gt;
More information about the kernel and bootloader can be found on pages specific for your device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Funtoo (overview) ===&lt;br /&gt;
&lt;br /&gt;
The installation on these devices differs from the normal installation procedure of booting an installation environment and chrooting from there to your new root, and can be little bit easier, but in some cases tricky. &lt;br /&gt;
&lt;br /&gt;
Overview of the installation:&lt;br /&gt;
* Extract stage3 to the 2nd partition of the SD card&lt;br /&gt;
* Extract portage snapshot&lt;br /&gt;
* Setup fstab&lt;br /&gt;
* Setup root password&lt;br /&gt;
* Configure hostname and networking (optional, but recommended)&lt;br /&gt;
* Enable SSH access (optional, but recommended)&lt;br /&gt;
* Enable serial console access (optional, but recommended)&lt;br /&gt;
* Correct RTC &amp;quot;bug&amp;quot; with swclock&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing the Stage 3 tarball ====&lt;br /&gt;
&lt;br /&gt;
ARM stage3 tarballs can be found on [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/]. Use the subarchitecture that suits best your device.&lt;br /&gt;
&lt;br /&gt;
Mount the partition that will hold your rootfs of the SD card and extract the stage3 you have downloaded.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir /mnt/SD_root&lt;br /&gt;
# ##i##mount /dev/sdcard-device-px /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Extract the stage3 (it may take a while).&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf stage3-armv7a_hardfp-xxxx.tar.xz -C /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Extracting a portage snapshot ====&lt;br /&gt;
&lt;br /&gt;
Now, download the portage snapshot from [http://ftp.osuosl.org/pub/funtoo/funtoo-current/snapshots/], and extract it to your partition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf portage-latest.tar.xz -C /mnt/SD_root/usr&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setup fstab ====&lt;br /&gt;
Edit the /mnt/SD_root/etc/fstab file to look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 /dev/mmcblk0p1		/boot		vfat		noauto,noatime	1 2&lt;br /&gt;
 /dev/mmcblk0p2		/		ext4		noatime		0 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adjust the partition devices and types to suit your needs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setting the default root password ====&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|Don't skip this step. This part differs from the standard installation procedure, as the root password must be set outside of a chroot environment. Skipping this step will result on an impossibility to login.}}&lt;br /&gt;
&lt;br /&gt;
Normally, for setting the password, one has to be able to run passwd. However that's not possible in this case since an x86 system can't run ARM binaries. Therefore, it is needed to modify the file that contains the passwords (/etc/shadow) to set a default root password.&lt;br /&gt;
&lt;br /&gt;
===== Clearing the root password =====&lt;br /&gt;
This will allow to login with a blank password for the root user.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify the line beginning by &amp;quot;root&amp;quot; to match the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root::10770:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|After initial login, remember to change the root password using the passwd command.}}&lt;br /&gt;
&lt;br /&gt;
===== Choosing a root password (alternative) =====&lt;br /&gt;
&lt;br /&gt;
First, generate a password. The output of this command will be used to modify the shadow file.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##openssl passwd -1&lt;br /&gt;
&amp;lt;/console&lt;br /&gt;
&lt;br /&gt;
Then, edit the shadow file and use the output of the last command to replace &amp;quot;YOUR_PASSWORD_MD5&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 root:YOUR_PASSWORD_MD5:14698:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setup hostname and networking ====&lt;br /&gt;
&lt;br /&gt;
Please read the [[Funtoo Linux Networking]] to configure your network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Using swclock ====&lt;br /&gt;
One of the problems some of the devices have, is that they don't have a battery to save the clock time. To mitigate this, on Funtoo we have an option in our init system called swclock which sets the date of the system upon boot from a last modified date of a file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, add swclock to the boot runlevel.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/swclock /mnt/SD_root/etc/runlevels/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, remove hwclock from the startup because it sets the date from the RTC, which is 2000-01-01 upon startup and overrides swclock's date.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##rm /mnt/SD_root/etc/runlevels/boot/hwclock&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
swclock uses the /lib/rc/cache/shutdowntime's modification time to set the date, therefore we update it to have the current date and time.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##touch /mnt/SD_root/lib/rc/cache/shutdowntime&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although this doesn't fix the issue, at least helps to set a sane date and time.&lt;br /&gt;
Note: Consider using NTP, documented on the next chapter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling SSH access (optional) ====&lt;br /&gt;
Adding sshd to the default runlevel will enable access to the device using ssh.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/sshd /mnt/SD_root/etc/runlevels/default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Enabling serial console access (optional) ====&lt;br /&gt;
By default the ttyS0 port is configured at 9600 bps. However, almost all of the ARM devices run the serial port at 115200 bps. Also, the port device names differ (ttyO2 for Pandaboard, ttySAC1 for Odroid-X ...). So edit your /etc/inittab file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/inittab&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(For example for Pandaboard: )&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0:12345:respawn:/sbin/agetty 115200 ttyO2 vt100&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Finishing the installation ===&lt;br /&gt;
Let's unmount the SD card.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##umount /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is all that it is to it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Booting up the new system ===&lt;br /&gt;
Once you have the card ready, put it into your device, and you should be able to boot it. If you have a debug port you will be able to see the boot process using minicom or similar program on another PC connected with the debug cable.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;br /&gt;
[[Category:ARM]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM</id>
		<title>Funtoo Linux Installation on ARM</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM"/>
				<updated>2013-01-08T18:30:32Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Installing the Stage 3 tarball */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Funtoo now provides [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/ stage3 images] for arm platform. At this time are only armv6j_hardfp and armv7a_hardfp stages available. If you would like us to support other processors (see the list below), please fill a bug report on [bugs.funtoo.org].&lt;br /&gt;
&lt;br /&gt;
== List of ARM processor &amp;quot;flavors&amp;quot; ==&lt;br /&gt;
* armv4l-unknown-linux-gnu (Rebel NetWinder, HP Armada and other devices having an ARMv4 processor, which is only capable of running the old ABI. Nevertheless it should work on newer CPUs)&lt;br /&gt;
* armv4tl-softfloat-linux-gnueabi (OpenMoko FreeRunner and other devices using an ARMv4T processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv5tel-softfloat-linux-gnueabi (almost all ARM NAS, devices based on the Marvell Orion and Marvell Kirkwood, Marvell Sheevaplug, Marvell OpenRD, Guruplug, Dreamplug, QNAP TS109/TS209/TS409/TS119/TS219/TS419, Buffalo Linkstation/Kurobox PRO, HP mv2120, HP iPAQ, Linksys NSLU2 and other devices using an ARMv5TE processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv6j-unknown-linux-gnueabi (Nokia N800/N810, Smart Q7, OMAP2-based devices and other multimedia devices using an ARMv6 CPU and VFP. Uses the new ARM EABI and hardware floating point by default)&lt;br /&gt;
* armv7a-unknown-linux-gnueabi (OMAP3-based devices(Beagleboard, IGEPv2, Devkit8000, AlwaysInnovating Touchbook, [[Nokia N900]]), OMAP4-based devices([[Pandaboard]]), Freescale i.MX515-based devices([[Efika MX]], Babbage Board, Lange Board…) Marvell Dove/Armada, Nvidia Tegra2-based devices(Toshiba AC100, Toshiba Folio), ST-Ericsson NOVA A9500-based devices(Snowball), Exynos 4412 ([[Odroid-X]], Odroid-Q) and other devices using an ARMv7-A processor. Uses the new ARM EABI and generic(not NEON) hardware floating point by default&lt;br /&gt;
* armv7a-hardfloat-linux-gnueabi (The same as armv7a-unknown-linux-gnueabi, but this one uses hardfloat instead of softfp. Read more about it here: http://wiki.debian.org/ArmHardFloatPort)&lt;br /&gt;
&lt;br /&gt;
== Default installation of Funtoo on your platform/board ==&lt;br /&gt;
This document is not a complete installation tutorial. Basic information about Funtoo Linux installation can be found on [[Funtoo_Linux_Installation]]. The goal of this document is to provide general information about installing Funtoo Linux on an ARM device, and highlight differences with a x86 installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following notes are non-board specific. Other instructions can be found in the specific articles for the above mentioned devices.&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
Most of the ARM boards come with a SD card slot, so you will need an empty SD card (4GB is enough to get you started), in most cases the boards are also equipped with debug port which can be used with USB-to-serial cables, if you have one, you can use it to login to the machine without the need of connecting keyboards or displays. You will need a network connection to be able to download stages, kernel and update your portage tree.&lt;br /&gt;
&lt;br /&gt;
=== Kernel and bootloader setup ===&lt;br /&gt;
Before you start you will need a kernel and a bootloader for your device. Some of the devices look for bootloader (in most cases U-Boot) on the SD along with the kernel.&lt;br /&gt;
&lt;br /&gt;
More information about the kernel and bootloader can be found on pages specific for your device.&lt;br /&gt;
&lt;br /&gt;
=== Installing Funtoo ===&lt;br /&gt;
&lt;br /&gt;
The installation on these devices differs from the normal installation procedure of booting an installation environment and chrooting from there to your new root, and can be little bit easier, but in some cases tricky. &lt;br /&gt;
&lt;br /&gt;
Overview of the installation:&lt;br /&gt;
* Extract stage3 to the 2nd partition of the SD card&lt;br /&gt;
* Extract portage snapshot&lt;br /&gt;
* Setup fstab&lt;br /&gt;
* Setup root password&lt;br /&gt;
* Configure hostname and networking (optional, but recommended)&lt;br /&gt;
* Enable SSH access (optional, but recommended)&lt;br /&gt;
* Enable serial console access (optional, but recommended)&lt;br /&gt;
* Correct RTC &amp;quot;bug&amp;quot; with swclock&lt;br /&gt;
&lt;br /&gt;
==== Installing the Stage 3 tarball ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ARM stage3 tarballs can be found on [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/]. Use the subarchitecture that suits best your device.&lt;br /&gt;
&lt;br /&gt;
Mount the partition that will hold your rootfs of the SD card and extract the stage3 you have downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir /mnt/SD_root&lt;br /&gt;
# ##i##mount /dev/sdcard-device-px /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Extract the stage3 (it may take a while).&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf stage3-armv7a_hardfp-xxxx.tar.xz -C /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extracting a portage snapshot ====&lt;br /&gt;
&lt;br /&gt;
Now, download the portage snapshot from [http://ftp.osuosl.org/pub/funtoo/funtoo-current/snapshots/], and extract it to your partition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf portage-latest.tar.xz -C /mnt/SD_root/usr&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Setup fstab ====&lt;br /&gt;
Edit the /mnt/SD_root/etc/fstab file to look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 /dev/mmcblk0p1		/boot		vfat		noauto,noatime	1 2&lt;br /&gt;
 /dev/mmcblk0p2		/		ext4		noatime		0 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adjust the partition devices and types to suit your needs.&lt;br /&gt;
&lt;br /&gt;
==== Setting the default root password ====&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|Don't skip this step. This part differs from the standard installation procedure, as the root password must be set outside of a chroot environment. Skipping this step will result on an impossibility to login.}}&lt;br /&gt;
&lt;br /&gt;
Normally, for setting the password, one has to be able to run passwd. However that's not possible in this case since an x86 system can't run ARM binaries. Therefore, it is needed to modify the file that contains the passwords (/etc/shadow) to set a default root password.&lt;br /&gt;
&lt;br /&gt;
===== Clearing the root password =====&lt;br /&gt;
This will allow to login with a blank password for the root user.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Modify the line beginning by &amp;quot;root&amp;quot; to match the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root::10770:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|After initial login, remember to change the root password using the passwd command.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Choosing a root password (alternative) =====&lt;br /&gt;
&lt;br /&gt;
First, generate a password. The output of this command will be used to modify the shadow file.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##openssl passwd -1&lt;br /&gt;
&amp;lt;/console&lt;br /&gt;
&lt;br /&gt;
Then, edit the shadow file and use the output of the last command to replace &amp;quot;YOUR_PASSWORD_MD5&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 root:YOUR_PASSWORD_MD5:14698:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Setup hostname and networking ====&lt;br /&gt;
&lt;br /&gt;
Please read the [[Funtoo Linux Networking]] to configure your network.&lt;br /&gt;
&lt;br /&gt;
==== Using swclock ====&lt;br /&gt;
One of the problems some of the devices have, is that they don't have a battery to save the clock time. To mitigate this, on Funtoo we have an option in our init system called swclock which sets the date of the system upon boot from a last modified date of a file.&lt;br /&gt;
&lt;br /&gt;
===== Adding swclock to the startup =====&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/swclock /mnt/SD_root/etc/runlevels/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We remove hwclock from the startup because it sets the date from the RTC, which is 2000-01-01 upon startup and overrides swclock's date.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##rm /mnt/SD_root/etc/runlevels/boot/hwclock&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
swclock uses the /lib/rc/cache/shutdowntime's modification time to set the date, therefore we update it to have the current date and time.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##touch /mnt/SD_root/lib/rc/cache/shutdowntime&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although this doesn't fix the issue, at least helps to set a sane date and time.&lt;br /&gt;
Note: Consider using NTP, documented on the next chapter&lt;br /&gt;
&lt;br /&gt;
==== Enabling SSH access (optional) ====&lt;br /&gt;
We can add sshd to the startup,so we can access our devices using ssh.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/sshd /mnt/SD_root/etc/runlevels/default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Enabling serial console access (optional) ====&lt;br /&gt;
By default the ttyS0 port is configured at 9600 bps. However, almost all of the ARM devices run the serial port at 115200 bps. Also, the port device names differ (ttyO2 for Pandaboard, ttySAC1 for Odroid-X ...). So edit your /etc/inittab file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/inittab&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(For example for Pandaboard: )&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0:12345:respawn:/sbin/agetty 115200 ttyO2 vt100&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Finishing the installation ===&lt;br /&gt;
Let's unmount the SD card&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /mnt/SD_root&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is all that it is to it.&lt;br /&gt;
&lt;br /&gt;
=== Booting up our new system ===&lt;br /&gt;
Once you have the card ready, put it into your device, and you should be able to boot it. If you have a debug port you will be able to see the boot process using minicom or similar program on another PC connected with the debug cable.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;br /&gt;
[[Category:ARM]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM</id>
		<title>Funtoo Linux Installation on ARM</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM"/>
				<updated>2013-01-08T18:30:13Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: FL-259: Multiple changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Funtoo now provides [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/ stage3 images] for arm platform. At this time are only armv6j_hardfp and armv7a_hardfp stages available. If you would like us to support other processors (see the list below), please fill a bug report on [bugs.funtoo.org].&lt;br /&gt;
&lt;br /&gt;
== List of ARM processor &amp;quot;flavors&amp;quot; ==&lt;br /&gt;
* armv4l-unknown-linux-gnu (Rebel NetWinder, HP Armada and other devices having an ARMv4 processor, which is only capable of running the old ABI. Nevertheless it should work on newer CPUs)&lt;br /&gt;
* armv4tl-softfloat-linux-gnueabi (OpenMoko FreeRunner and other devices using an ARMv4T processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv5tel-softfloat-linux-gnueabi (almost all ARM NAS, devices based on the Marvell Orion and Marvell Kirkwood, Marvell Sheevaplug, Marvell OpenRD, Guruplug, Dreamplug, QNAP TS109/TS209/TS409/TS119/TS219/TS419, Buffalo Linkstation/Kurobox PRO, HP mv2120, HP iPAQ, Linksys NSLU2 and other devices using an ARMv5TE processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv6j-unknown-linux-gnueabi (Nokia N800/N810, Smart Q7, OMAP2-based devices and other multimedia devices using an ARMv6 CPU and VFP. Uses the new ARM EABI and hardware floating point by default)&lt;br /&gt;
* armv7a-unknown-linux-gnueabi (OMAP3-based devices(Beagleboard, IGEPv2, Devkit8000, AlwaysInnovating Touchbook, [[Nokia N900]]), OMAP4-based devices([[Pandaboard]]), Freescale i.MX515-based devices([[Efika MX]], Babbage Board, Lange Board…) Marvell Dove/Armada, Nvidia Tegra2-based devices(Toshiba AC100, Toshiba Folio), ST-Ericsson NOVA A9500-based devices(Snowball), Exynos 4412 ([[Odroid-X]], Odroid-Q) and other devices using an ARMv7-A processor. Uses the new ARM EABI and generic(not NEON) hardware floating point by default&lt;br /&gt;
* armv7a-hardfloat-linux-gnueabi (The same as armv7a-unknown-linux-gnueabi, but this one uses hardfloat instead of softfp. Read more about it here: http://wiki.debian.org/ArmHardFloatPort)&lt;br /&gt;
&lt;br /&gt;
== Default installation of Funtoo on your platform/board ==&lt;br /&gt;
This document is not a complete installation tutorial. Basic information about Funtoo Linux installation can be found on [[Funtoo_Linux_Installation]]. The goal of this document is to provide general information about installing Funtoo Linux on an ARM device, and highlight differences with a x86 installation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following notes are non-board specific. Other instructions can be found in the specific articles for the above mentioned devices.&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
Most of the ARM boards come with a SD card slot, so you will need an empty SD card (4GB is enough to get you started), in most cases the boards are also equipped with debug port which can be used with USB-to-serial cables, if you have one, you can use it to login to the machine without the need of connecting keyboards or displays. You will need a network connection to be able to download stages, kernel and update your portage tree.&lt;br /&gt;
&lt;br /&gt;
=== Kernel and bootloader setup ===&lt;br /&gt;
Before you start you will need a kernel and a bootloader for your device. Some of the devices look for bootloader (in most cases U-Boot) on the SD along with the kernel.&lt;br /&gt;
&lt;br /&gt;
More information about the kernel and bootloader can be found on pages specific for your device.&lt;br /&gt;
&lt;br /&gt;
=== Installing Funtoo ===&lt;br /&gt;
&lt;br /&gt;
The installation on these devices differs from the normal installation procedure of booting an installation environment and chrooting from there to your new root, and can be little bit easier, but in some cases tricky. &lt;br /&gt;
&lt;br /&gt;
Overview of the installation:&lt;br /&gt;
* Extract stage3 to the 2nd partition of the SD card&lt;br /&gt;
* Extract portage snapshot&lt;br /&gt;
* Setup fstab&lt;br /&gt;
* Setup root password&lt;br /&gt;
* Configure hostname and networking (optional, but recommended)&lt;br /&gt;
* Enable SSH access (optional, but recommended)&lt;br /&gt;
* Enable serial console access (optional, but recommended)&lt;br /&gt;
* Correct RTC &amp;quot;bug&amp;quot; with swclock&lt;br /&gt;
&lt;br /&gt;
==== Installing the Stage 3 tarball ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ARM stage3 tarballs can be found on [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/]. Use the subarchitecture that suits best your device.&lt;br /&gt;
&lt;br /&gt;
Mount the partition that will hold your rootfs of the SD card and extract the stage3 you have downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# ##i##mkdir /mnt/SD_root&lt;br /&gt;
# ##i##mount /dev/sdcard-device-px /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Extract the stage3 (it may take a while).&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf stage3-armv7a_hardfp-xxxx.tar.xz -C /mnt/SD_root&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Extracting a portage snapshot ====&lt;br /&gt;
&lt;br /&gt;
Now, download the portage snapshot from [http://ftp.osuosl.org/pub/funtoo/funtoo-current/snapshots/], and extract it to your partition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##tar xapf portage-latest.tar.xz -C /mnt/SD_root/usr&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Setup fstab ====&lt;br /&gt;
Edit the /mnt/SD_root/etc/fstab file to look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 /dev/mmcblk0p1		/boot		vfat		noauto,noatime	1 2&lt;br /&gt;
 /dev/mmcblk0p2		/		ext4		noatime		0 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adjust the partition devices and types to suit your needs.&lt;br /&gt;
&lt;br /&gt;
==== Setting the default root password ====&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|Don't skip this step. This part differs from the standard installation procedure, as the root password must be set outside of a chroot environment. Skipping this step will result on an impossibility to login.}}&lt;br /&gt;
&lt;br /&gt;
Normally, for setting the password, one has to be able to run passwd. However that's not possible in this case since an x86 system can't run ARM binaries. Therefore, it is needed to modify the file that contains the passwords (/etc/shadow) to set a default root password.&lt;br /&gt;
&lt;br /&gt;
===== Clearing the root password =====&lt;br /&gt;
This will allow to login with a blank password for the root user.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Modify the line beginning by &amp;quot;root&amp;quot; to match the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root::10770:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|After initial login, remember to change the root password using the passwd command.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Choosing a root password (alternative) =====&lt;br /&gt;
&lt;br /&gt;
First, generate a password. The output of this command will be used to modify the shadow file.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##openssl passwd -1&lt;br /&gt;
&amp;lt;/console&lt;br /&gt;
&lt;br /&gt;
Then, edit the shadow file and use the output of the last command to replace &amp;quot;YOUR_PASSWORD_MD5&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 root:YOUR_PASSWORD_MD5:14698:0:::::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Setup hostname and networking ====&lt;br /&gt;
&lt;br /&gt;
Please read the [[Funtoo Linux Networking]] to configure your network.&lt;br /&gt;
&lt;br /&gt;
==== Using swclock ====&lt;br /&gt;
One of the problems some of the devices have, is that they don't have a battery to save the clock time. To mitigate this, on Funtoo we have an option in our init system called swclock which sets the date of the system upon boot from a last modified date of a file.&lt;br /&gt;
&lt;br /&gt;
===== Adding swclock to the startup =====&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/swclock /mnt/SD_root/etc/runlevels/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We remove hwclock from the startup because it sets the date from the RTC, which is 2000-01-01 upon startup and overrides swclock's date.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##rm /mnt/SD_root/etc/runlevels/boot/hwclock&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
swclock uses the /lib/rc/cache/shutdowntime's modification time to set the date, therefore we update it to have the current date and time.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##touch /mnt/SD_root/lib/rc/cache/shutdowntime&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although this doesn't fix the issue, at least helps to set a sane date and time.&lt;br /&gt;
Note: Consider using NTP, documented on the next chapter&lt;br /&gt;
&lt;br /&gt;
==== Enabling SSH access (optional) ====&lt;br /&gt;
We can add sshd to the startup,so we can access our devices using ssh.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##ln -sf /etc/init.d/sshd /mnt/SD_root/etc/runlevels/default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Enabling serial console access (optional) ====&lt;br /&gt;
By default the ttyS0 port is configured at 9600 bps. However, almost all of the ARM devices run the serial port at 115200 bps. Also, the port device names differ (ttyO2 for Pandaboard, ttySAC1 for Odroid-X ...). So edit your /etc/inittab file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##nano -w /mnt/SD_root/etc/inittab&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(For example for Pandaboard: )&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s0:12345:respawn:/sbin/agetty 115200 ttyO2 vt100&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Finishing the installation ===&lt;br /&gt;
Let's unmount the SD card&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /mnt/SD_root&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is all that it is to it.&lt;br /&gt;
&lt;br /&gt;
=== Booting up our new system ===&lt;br /&gt;
Once you have the card ready, put it into your device, and you should be able to boot it. If you have a debug port you will be able to see the boot process using minicom or similar program on another PC connected with the debug cable.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;br /&gt;
[[Category:ARM]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Funtoo_on_ARM</id>
		<title>Funtoo on ARM</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Funtoo_on_ARM"/>
				<updated>2013-01-08T17:58:29Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: Jeanfrancis moved page Funtoo on ARM to Funtoo Linux Installation on ARM: More uniform with other installation pages&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Funtoo Linux Installation on ARM]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM</id>
		<title>Funtoo Linux Installation on ARM</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM"/>
				<updated>2013-01-08T17:58:28Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: Jeanfrancis moved page Funtoo on ARM to Funtoo Linux Installation on ARM: More uniform with other installation pages&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Funtoo now provides [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/ stage3 images] for arm platform. At this time are only armv6j_hardfp and armv7a_hardfp stages available. If you would like us to support other processors (see the list below) leave a note on #IRC channel or ...&lt;br /&gt;
&lt;br /&gt;
== List of ARM processor &amp;quot;flavors&amp;quot; ==&lt;br /&gt;
* armv4l-unknown-linux-gnu (Rebel NetWinder, HP Armada and other devices having an ARMv4 processor, which is only capable of running the old ABI. Nevertheless it should work on newer CPUs)&lt;br /&gt;
* armv4tl-softfloat-linux-gnueabi (OpenMoko FreeRunner and other devices using an ARMv4T processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv5tel-softfloat-linux-gnueabi (almost all ARM NAS, devices based on the Marvell Orion and Marvell Kirkwood, Marvell Sheevaplug, Marvell OpenRD, Guruplug, Dreamplug, QNAP TS109/TS209/TS409/TS119/TS219/TS419, Buffalo Linkstation/Kurobox PRO, HP mv2120, HP iPAQ, Linksys NSLU2 and other devices using an ARMv5TE processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv6j-unknown-linux-gnueabi (Nokia N800/N810, Smart Q7, OMAP2-based devices and other multimedia devices using an ARMv6 CPU and VFP. Uses the new ARM EABI and hardware floating point by default)&lt;br /&gt;
* armv7a-unknown-linux-gnueabi (OMAP3-based devices(Beagleboard, IGEPv2, Devkit8000, AlwaysInnovating Touchbook, [[Nokia N900]]), OMAP4-based devices([[Pandaboard]]), Freescale i.MX515-based devices([[Efika MX]], Babbage Board, Lange Board…) Marvell Dove/Armada, Nvidia Tegra2-based devices(Toshiba AC100, Toshiba Folio), ST-Ericsson NOVA A9500-based devices(Snowball), Exynos 4412 ([[Odroid-X]], Odroid-Q) and other devices using an ARMv7-A processor. Uses the new ARM EABI and generic(not NEON) hardware floating point by default&lt;br /&gt;
* armv7a-hardfloat-linux-gnueabi (The same as armv7a-unknown-linux-gnueabi, but this one uses hardfloat instead of softfp. Read more about it here: http://wiki.debian.org/ArmHardFloatPort)&lt;br /&gt;
&lt;br /&gt;
== Default installation of Funtoo on your platform/board ==&lt;br /&gt;
These are some notes about installing Funtoo Linux on ARM based devices that are non-board specific. Other instructions can be found in the specific articles for the above mentioned devices.&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
If you are a Gentoo or a Funtoo user this won't be anything that new to you. Most of the boards come with a SD card slot, so you will need an empty SD card (xGB is enough to get you started), in most cases the boards are also equipped with debug port which can be used with USB-to-serial cables, if you have one, you can use it to login to the machine without the need of connecting keyboards or displays. You will need a network connection to be able to download stages, kernel and update your portage tree.&lt;br /&gt;
&lt;br /&gt;
=== Kernel and bootloader setup ===&lt;br /&gt;
Before you start you will need a kernel and a bootloader for your device. Some of the devices look for bootloader (in most cases U-Boot) on the SD along with the kernel.&lt;br /&gt;
&lt;br /&gt;
More information about the kernel and bootloader can be found on pages specific for your device.&lt;br /&gt;
&lt;br /&gt;
=== Installing Funtoo ===&lt;br /&gt;
&lt;br /&gt;
The installation on these devices differs from the normal installation procedure of booting an installation environment and chrooting from there to your new root, and can be little bit easier, but in some cases tricky. &lt;br /&gt;
&lt;br /&gt;
To setup the installation:&lt;br /&gt;
* Extract stage3 to the 2nd partition of the SD card&lt;br /&gt;
* Extract portage snapshot (required to emerge things and ntp(see below))&lt;br /&gt;
* Setup fstab&lt;br /&gt;
* Setup root password&lt;br /&gt;
* Configure hostname and networking (optional, but recommended)&lt;br /&gt;
* Enable SSH access (optional, but recommended)&lt;br /&gt;
* Enable serial console access (optional, but recommended)&lt;br /&gt;
* Correct RTC &amp;quot;bug&amp;quot; with swclock&lt;br /&gt;
&lt;br /&gt;
Now download your stage3 from [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/], use the correct subarchitecture. And also download the portage snapshot from [http://ftp.osuosl.org/pub/funtoo/funtoo-current/snapshots/].&lt;br /&gt;
&lt;br /&gt;
==== Extracting the stage3 ====&lt;br /&gt;
Mount the partition that will hold your rootfs of the SD card and extract the stage3 you have downloaded.&lt;br /&gt;
&lt;br /&gt;
 mkdir /mnt/SD_root&lt;br /&gt;
 mount /dev/sdcard-device-px /mnt/SD_root&lt;br /&gt;
&lt;br /&gt;
(Extract the stage3, it may take a while)&lt;br /&gt;
 tar xapf stage3-armv7a_hardfp-xxxx.tar.xz -C /mnt/SD_root&lt;br /&gt;
&lt;br /&gt;
==== Extracting a portage snapshot (optional) ====&lt;br /&gt;
&lt;br /&gt;
 tar xapf portage-latest.tar.xz -C /mnt/SD_root/usr&lt;br /&gt;
&lt;br /&gt;
==== Setup fstab ====&lt;br /&gt;
Edit the /mnt/SD_root/etc/fstab file to look like this:&lt;br /&gt;
&lt;br /&gt;
 /dev/mmcblk0p1		/boot		vfat		noauto,noatime	1 2&lt;br /&gt;
 /dev/mmcblk0p2		/		ext4		noatime		0 1&lt;br /&gt;
&lt;br /&gt;
==== Setting the default root password ====&lt;br /&gt;
&lt;br /&gt;
This is almost the most important part of the installation. As without the root password we won't be able to login!&lt;br /&gt;
&lt;br /&gt;
For setting the password, we need to be able to run passwd. However that's not possible since our PC can't run ARM binaries. Therefore we need to modify the file that contains the passwords (/etc/shadow) inside the chroot, so we can set a default root password.&lt;br /&gt;
&lt;br /&gt;
(Generate a password)&lt;br /&gt;
 openssl passwd -1&lt;br /&gt;
&lt;br /&gt;
 nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&lt;br /&gt;
(For example, this line makes the password be gentoo)&lt;br /&gt;
 root:$6$I9Q9AyTL$Z76H7wD8mT9JAyrp/vaYyFwyA5wRVN0tze8pvM.MqScC7BBm2PU7pLL0h5nSxueqUpYAlZTox4Ag2Dp5vchjJ0:14698:0:::::&lt;br /&gt;
&lt;br /&gt;
==== Setup hostname and networking ====&lt;br /&gt;
&lt;br /&gt;
Please read the [[Funtoo Linux Networking]] to configure your network.&lt;br /&gt;
&lt;br /&gt;
==== Using swclock ====&lt;br /&gt;
One of the problems some of the devices have, is that they don't have a battery to save the clock time. To mitigate this, on Funtoo we have an option in our init system called swclock which sets the date of the system upon boot from a last modified date of a file.&lt;br /&gt;
&lt;br /&gt;
===== Adding swclock to the startup =====&lt;br /&gt;
 ln -sf /etc/init.d/swclock /mnt/SD_root/etc/runlevels/boot&lt;br /&gt;
&lt;br /&gt;
We remove hwclock from the startup because it sets the date from the RTC, which is 2000-01-01 upon startup and overrides swclock's date.&lt;br /&gt;
 rm /mnt/SD_root/etc/runlevels/boot/hwclock&lt;br /&gt;
&lt;br /&gt;
swclock uses the /lib/rc/cache/shutdowntime's modification time to set the date, therefore we update it to have the current date and time.&lt;br /&gt;
&lt;br /&gt;
 touch /mnt/SD_root/lib/rc/cache/shutdowntime&lt;br /&gt;
&lt;br /&gt;
Although this doesn't fix the issue, at least helps to set a sane date and time.&lt;br /&gt;
Note: Consider using NTP, documented on the next chapter&lt;br /&gt;
&lt;br /&gt;
==== Enabling SSH access (optional) ====&lt;br /&gt;
We can add sshd to the startup,so we can access our devices using ssh.&lt;br /&gt;
&lt;br /&gt;
 ln -sf /etc/init.d/sshd /mnt/SD_root/etc/runlevels/default&lt;br /&gt;
&lt;br /&gt;
==== Enabling serial console access (optional) ====&lt;br /&gt;
By default the ttyS0 port is configured at 9600 bps. However, almost all of the ARM devices run the serial port at 115200 bps. Also, the port device names differ (ttyO2 for Pandaboard, ttySAC1 for Odroid-X ...). So edit your /etc/inittab file:&lt;br /&gt;
&lt;br /&gt;
 nano -w /mnt/SD_root/etc/inittab&lt;br /&gt;
 (For example for Pandaboard: )&lt;br /&gt;
 s0:12345:respawn:/sbin/agetty 115200 ttyO2 vt100&lt;br /&gt;
&lt;br /&gt;
=== Finishing the installation ===&lt;br /&gt;
Let's unmount the SD card&lt;br /&gt;
&lt;br /&gt;
 umount /mnt/SD_root&lt;br /&gt;
&lt;br /&gt;
This is all that it is to it.&lt;br /&gt;
&lt;br /&gt;
=== Booting up our new system ===&lt;br /&gt;
Once you have the card ready, put it into your device, and you should be able to boot it. If you have a debug port you will be able to see the boot process using minicom or similar program on another PC connected with the debug cable.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;br /&gt;
[[Category:ARM]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Funtoo_Linux_Installation</id>
		<title>Funtoo Linux Installation</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Funtoo_Linux_Installation"/>
				<updated>2013-01-08T17:57:31Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Additional Resources */  - FL-259: ARM&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This document briefly explains all of the steps required to set up a typical Funtoo Linux installation on a &amp;quot;PC compatible&amp;quot; computer system. If you've had previous experience installing Gentoo Linux then a lot of steps will be familiar, but you should still read through as there are a few differences.&lt;br /&gt;
&lt;br /&gt;
=== Additional Resources === &lt;br /&gt;
&lt;br /&gt;
This document was written to help you install Funtoo Linux as efficiently as possible, with a minimum number of distracting options regarding system configuration. &lt;br /&gt;
&lt;br /&gt;
Those who prefer a longer, more thorough tutorial-style installation may want to check out our beta [[Installation (Tutorial)|Installation Tutorial]] instead. It explores more installation possibilities and options such as encrypted filesystems, and includes screenshots.&lt;br /&gt;
&lt;br /&gt;
{{fancynote|If you are installing Funtoo Linux on [[Funtoo Linux Installation on ARM|ARM]] architecture, please see [[Funtoo Linux Installation on ARM]] for notable differences regarding ARM support. An experimental Funtoo Linux build also exists for [[Funtoo Linux Installation on SPARC|SPARC]] platforms. See [[Funtoo Linux Installation on SPARC]]}}&lt;br /&gt;
&lt;br /&gt;
== Installation Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a basic overview of the Funtoo installation process:&lt;br /&gt;
&lt;br /&gt;
# [[#Live CD|Download and boot the live CD of your choice]].&lt;br /&gt;
# [[#Prepare Hard Disk|Prepare your disk]].&lt;br /&gt;
# [[#Creating filesystems|Create]] and [[#Mounting filesystems|mount]] filesystems.&lt;br /&gt;
# [[#Installing the Stage 3 tarball|Install the Funtoo stage tarball]] of your choice.&lt;br /&gt;
# [[#Chroot into Funtoo|Chroot into your new system]].&lt;br /&gt;
# [[#Downloading the Portage tree|Download the Portage tree]].&lt;br /&gt;
# [[#Configuring your system|Configure your system]] and [[#Configuring your network|network]].&lt;br /&gt;
# [[#Configuring and installing the Linux kernel|Install a kernel]].&lt;br /&gt;
# [[#Installing a Bootloader|Install a bootloader]].&lt;br /&gt;
# [[#Finishing Steps|Complete final steps]].&lt;br /&gt;
# [[#Restart your system|Reboot and enjoy]].&lt;br /&gt;
&lt;br /&gt;
=== Live CD ===&lt;br /&gt;
Funtoo doesn't provide an &amp;quot;official&amp;quot; Funtoo Live CD, but there are plenty of good ones out there to choose from. A great choice is the Gentoo-based [http://www.sysresccd.org/ SystemRescueCd] as it contains lots of tools and utilities and supports both 32-bit and 64-bit systems.&lt;br /&gt;
&lt;br /&gt;
It is also possible to install Funtoo Linux using many other Linux-based live CDs. Generally, any modern bootable Linux live CD or live USB media will work. See [[Requirements|requirements]] for an overview of what the Live Media must provide to allow a problem-free install of Funtoo Linux.&lt;br /&gt;
&lt;br /&gt;
To begin a Funtoo Linux installation, download and burn [http://www.sysresccd.org/ SystemRescueCd] or your preferred live media. Insert it into your disc drive, and boot from it. If using SystemRescueCd, '''be sure to select the &amp;lt;tt&amp;gt;rescue64&amp;lt;/tt&amp;gt; kernel at the boot menu if you are installing a 64-bit system'''. By default, SystemRescueCd boots in 32-bit mode.&lt;br /&gt;
&lt;br /&gt;
=== Prepare Hard Disk ===&lt;br /&gt;
==== Partitions ====&lt;br /&gt;
&lt;br /&gt;
Funtoo Linux fully supports traditional MBR partitions, as well as newer GPT/GUID partition formats. Funtoo Linux recommends the use of the GPT partitioning scheme, since it is newer and more flexible. Here are the various trade-offs between each partitioning scheme:&lt;br /&gt;
&lt;br /&gt;
===== GPT Partitions =====&lt;br /&gt;
&lt;br /&gt;
* Newer, preferred format for Linux systems&lt;br /&gt;
* Supports 2 TB+ hard drives for booting&lt;br /&gt;
* Supports hundreds of partitions per disk of any size&lt;br /&gt;
* Requires legacy BIOS boot partition (~32 MB) to be created if system does not use EFI&lt;br /&gt;
* Requires bootloader with support for GPT such as GRUB 2, EXTLINUX, or a patched version of GRUB Legacy&lt;br /&gt;
&lt;br /&gt;
===== MBR Partitions =====&lt;br /&gt;
&lt;br /&gt;
* Legacy, DOS partitioning scheme&lt;br /&gt;
* Only 4 primary partitions per disk; after that, you must use &amp;quot;logical&amp;quot; partitions&lt;br /&gt;
* Does not support 2 TB+ disks for booting&lt;br /&gt;
* Compatible with certain problematic systems (such as the HP ProBook 4520)&lt;br /&gt;
* Dual-boot with Windows for BIOS systems (Windows handle GPT only on true EFI systems, whatever version it is)&lt;br /&gt;
* Multiple boot loader options, e.g. GRUB 2, GRUB Legacy, lilo&lt;br /&gt;
&lt;br /&gt;
{{fancyimportant|If you plan to use partitions of 2 TB or greater, you ''must'' partition using the GPT/GUID format. Also note that there are small percentage of PCs that will not boot properly with GPT. For these systems, using MBR partitions or a primary drive with an MBR partition may be required in order to boot.}}&lt;br /&gt;
&lt;br /&gt;
==== Partitioning Using gdisk ====&lt;br /&gt;
&lt;br /&gt;
===== Notes Before We Begin =====&lt;br /&gt;
&lt;br /&gt;
These install instructions assume you are installing Funtoo Linux to an empty hard disk using GUID partition tables (GPT). If you are installing Funtoo Linux on a machine where another OS is installed, or there is an existing Linux distribution on your system that you want to keep, then you will need to adapt these instructions to suit your needs.&lt;br /&gt;
&lt;br /&gt;
If you are going to create a legacy MBR partition table instead of GUID/GPT, you will use the &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt; command instead of &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;, and you will not need to create the GRUB boot loader partition. See the table under [[#Partitioning Recommendations|Partitioning Recommendations]], in particular the &lt;br /&gt;
'''MBR Block Device (&amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;)''' and '''MBR Code''' columns. &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt; works just like &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;, but creates legacy MBR partition tables instead of the newer GPT/GUID partition tables.&lt;br /&gt;
&lt;br /&gt;
Advanced users may be interested in the following topics:&lt;br /&gt;
&lt;br /&gt;
* [[GUID Booting Guide]]&lt;br /&gt;
* [[Rootfs over encrypted lvm]]&lt;br /&gt;
* [[Rootfs over encrypted lvm over raid-1 on GPT]]&lt;br /&gt;
* '''NEW!''' '''[[ZFS Install Guide]]'''&lt;br /&gt;
* '''NEW!''' '''[[ZFS rootfs over encrypted container]]'''&lt;br /&gt;
&lt;br /&gt;
===== Using gdisk =====&lt;br /&gt;
&lt;br /&gt;
The first step after booting SystemRescueCd is to use &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; to create GPT (also known as GUID) partitions, specifying the disk you want to use, which is typically &amp;lt;tt&amp;gt;/dev/sda&amp;lt;/tt&amp;gt;, the first disk in the system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;# ##i##gdisk /dev/sda&amp;lt;/console&amp;gt;&lt;br /&gt;
You should find &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; very similar to &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;. Here is the partition table we want to end up with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;Command (? for help): ##i##p&lt;br /&gt;
Disk /dev/sda: 234441648 sectors, 111.8 GiB&lt;br /&gt;
Logical sector size: 512 bytes&lt;br /&gt;
Disk identifier (GUID): A4E5208A-CED3-4263-BB25-7147DC426931&lt;br /&gt;
Partition table holds up to 128 entries&lt;br /&gt;
First usable sector is 34, last usable sector is 234441614&lt;br /&gt;
Partitions will be aligned on 2048-sector boundaries&lt;br /&gt;
Total free space is 2014 sectors (1007.0 KiB)&lt;br /&gt;
&lt;br /&gt;
Number  Start (sector)    End (sector)  Size       Code  Name&lt;br /&gt;
   1            2048          206847   500.0 MiB   8300  Linux filesystem&lt;br /&gt;
   2          206848          272383   32.0 MiB    EF02  BIOS boot partition&lt;br /&gt;
   3          272384         8660991   4.0 GiB     8200  Linux swap&lt;br /&gt;
   4         8660992       234441614   107.7 GiB   8300  Linux filesystem&lt;br /&gt;
&lt;br /&gt;
Command (? for help): &amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Above, you'll see that we have a 500 MiB boot partition, a 32 MiB &amp;quot;BIOS boot partition&amp;quot; (also known as the GRUB boot loader partition), 4 GiB of swap, and the remaining disk used by a 107.7 GiB root partition.&lt;br /&gt;
&lt;br /&gt;
===== For new &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; users =====&lt;br /&gt;
&lt;br /&gt;
These partitions were created using the &amp;quot;&amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt;&amp;quot; command from within &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;. The &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; commands to create the partition table above are as follows. Adapt sizes as necessary, although these defaults will work for most users. The partition codes entered below can be found in the [[#Partitioning Recommendations|Partitioning Recommendations]] table below, in the GPT Code column.&lt;br /&gt;
&lt;br /&gt;
Within &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;, follow these steps:&lt;br /&gt;
&lt;br /&gt;
'''Create Partition 1''' (boot):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##n ↵&lt;br /&gt;
Partition Number: ##i##1 ↵&lt;br /&gt;
First sector: ##i##↵&lt;br /&gt;
Last sector: ##i##+500M ↵&lt;br /&gt;
Hex Code: ##i##↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Create Partition 2''' (GRUB):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##n ↵&lt;br /&gt;
Partition Number: ##i##2 ↵&lt;br /&gt;
First sector: ##i##↵&lt;br /&gt;
Last sector: ##i##+32M ↵&lt;br /&gt;
Hex Code: ##i##EF02 ↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Create Partition 3''' (swap):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##n ↵&lt;br /&gt;
Partition Number: ##i##3 ↵&lt;br /&gt;
First sector: ##i##↵&lt;br /&gt;
Last sector: ##i##+4G ↵&lt;br /&gt;
Hex Code: ##i##8200 ↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Create Partition 4''' (root):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##n ↵&lt;br /&gt;
Partition Number: ##i##4 ↵&lt;br /&gt;
First sector: ##i##↵&lt;br /&gt;
Last sector: ##i##↵##!i## (for rest of disk)&lt;br /&gt;
Hex Code: ##i##↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along the way, you can type &amp;quot;&amp;lt;tt&amp;gt;p&amp;lt;/tt&amp;gt;&amp;quot; and hit Enter to view your current partition table. If you make a mistake, you can type &amp;quot;&amp;lt;tt&amp;gt;d&amp;lt;/tt&amp;gt;&amp;quot; to delete an existing partition that you created. When you are satisfied with your partition setup, type &amp;quot;&amp;lt;tt&amp;gt;w&amp;lt;/tt&amp;gt;&amp;quot; to write your configuration to disk:&lt;br /&gt;
&lt;br /&gt;
'''Write Partition Table To Disk''':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##w ↵&lt;br /&gt;
Do you want to proceed? (Y/N): ##i##Y ↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The partition table will now be written to disk and &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; will close.&lt;br /&gt;
&lt;br /&gt;
Now, your GPT/GUID partitions have been created, and will show up as the following ''block devices'' under Linux:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;/dev/sda1&amp;lt;/tt&amp;gt;, which will be used to hold the &amp;lt;tt&amp;gt;/boot&amp;lt;/tt&amp;gt; filesystem, &lt;br /&gt;
* &amp;lt;tt&amp;gt;/dev/sda2&amp;lt;/tt&amp;gt;, which will be used directly by the new GRUB,&lt;br /&gt;
* &amp;lt;tt&amp;gt;/dev/sda3&amp;lt;/tt&amp;gt;, which will be used for swap space, and &lt;br /&gt;
* &amp;lt;tt&amp;gt;/dev/sda4&amp;lt;/tt&amp;gt;, which will hold your root filesystem.&lt;br /&gt;
&lt;br /&gt;
===== For Previous fdisk users =====&lt;br /&gt;
&lt;br /&gt;
If you have installed Gentoo Linux before, the one thing that is likely new to you here is the GRUB boot loader partition, which is listed as &amp;quot;BIOS boot partition&amp;quot; within &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;. This partition is required for GRUB 2 to boot GPT/GUID boot disks. What is it? In GRUB-speak, this partition is essentially the location of the meat of GRUB's boot loading code. If you've used GRUB Legacy in the past, this partition is where the new GRUB stores the equivalent of the &amp;lt;tt&amp;gt;stage1_5&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;stage2&amp;lt;/tt&amp;gt; files in legacy GRUB. Since GPT-based partition tables have less dead space at the beginning of the disk than their MBR equivalents, an explicitly defined partition of code &amp;lt;tt&amp;gt;EF02&amp;lt;/tt&amp;gt; is required to hold the guts of the boot loader.&lt;br /&gt;
&lt;br /&gt;
In all other respects, the partition table is similar to that which you might create for an MBR-based disk during a Gentoo Linux installation. We have a boot and a root partition with code &amp;lt;tt&amp;gt;0700&amp;lt;/tt&amp;gt;, and a Linux swap partition with code &amp;lt;tt&amp;gt;8200&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===== Partitioning Recommendations =====&lt;br /&gt;
&lt;br /&gt;
Below are our partitioning recommendations in table form. For GPT-based partitions, use the GPT Block Device and GPT Code columns with &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;. For legacy MBR-based partitions, use the MBR Block Device and MBR code columns with &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{| {{table}} &lt;br /&gt;
!Partition&lt;br /&gt;
!Size&lt;br /&gt;
!MBR Block Device (&amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;)&lt;br /&gt;
!GPT Block Device (&amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;)&lt;br /&gt;
!Filesystem&lt;br /&gt;
!MBR Code&lt;br /&gt;
!GPT Code&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/boot&amp;lt;/tt&amp;gt;&lt;br /&gt;
|500 MB&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda1&amp;lt;/tt&amp;gt;&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda1&amp;lt;/tt&amp;gt;&lt;br /&gt;
|ext2&lt;br /&gt;
|83&lt;br /&gt;
|8300&lt;br /&gt;
|-&lt;br /&gt;
|GRUB boot loader partition&lt;br /&gt;
|32 MB&lt;br /&gt;
| ''not required for MBR''&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda2&amp;lt;/tt&amp;gt;&lt;br /&gt;
|For GPT/GUID only, skip for MBR - no filesystem.&lt;br /&gt;
|''N/A''&lt;br /&gt;
|EF02&lt;br /&gt;
|-&lt;br /&gt;
|swap&lt;br /&gt;
|2x RAM for low-memory systems and production servers; otherwise 2GB.&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda2&amp;lt;/tt&amp;gt;&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda3&amp;lt;/tt&amp;gt;&lt;br /&gt;
|swap (default)&lt;br /&gt;
|82&lt;br /&gt;
|8200&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/&amp;lt;/tt&amp;gt; (root)&lt;br /&gt;
|Rest of the disk, minimum of 10GB.&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda3&amp;lt;/tt&amp;gt;&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda4&amp;lt;/tt&amp;gt;&lt;br /&gt;
|XFS recommended, alternatively ext4&lt;br /&gt;
|83&lt;br /&gt;
|8300&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/home&amp;lt;/tt&amp;gt; (optional)	&lt;br /&gt;
|User storage and media. Typically most of the disk.&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda4&amp;lt;/tt&amp;gt; (if created)&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda5&amp;lt;/tt&amp;gt; (if created)&lt;br /&gt;
|XFS recommended, alternatively ext4&lt;br /&gt;
|83&lt;br /&gt;
|8300&lt;br /&gt;
|-&lt;br /&gt;
| LVM (optional)&lt;br /&gt;
| If you want to create an LVM volume.&lt;br /&gt;
| &amp;lt;tt&amp;gt;/dev/sda4&amp;lt;/tt&amp;gt; (PV, if created)&lt;br /&gt;
| &amp;lt;tt&amp;gt;/dev/sda5&amp;lt;/tt&amp;gt; (PV, if created)&lt;br /&gt;
| LVM PV&lt;br /&gt;
| 8E&lt;br /&gt;
| 8E00&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Creating filesystems ====&lt;br /&gt;
&lt;br /&gt;
Before your newly-created partitions can be used, the block devices need to be initialized with filesystem ''metadata''. This process is known as ''creating a filesystem'' on the block devices. After filesystems are created on the block devices, they can be mounted and used to store files.&lt;br /&gt;
&lt;br /&gt;
You will not create a filesystem on your swap partition, but will initialize it using the &amp;lt;tt&amp;gt;mkswap&amp;lt;/tt&amp;gt; command so that it can be used as disk-based virtual memory. Then we'll run the &amp;lt;tt&amp;gt;swapon&amp;lt;/tt&amp;gt; command to make your newly-initialized swap space active within the live CD environment, in case it is needed during the rest of the install process.&lt;br /&gt;
&lt;br /&gt;
Note that we will not create a filesystem on the GRUB boot loader partition, as GRUB writes binary data directly to that partition when the boot loader is installed, which we'll do later.&lt;br /&gt;
&lt;br /&gt;
You can see the commands you will need to type below. Like the rest of this document, it assumes that you are using a GPT partitioning scheme. If you are using MBR, your root filesystem will likely be created on &amp;lt;tt&amp;gt;/dev/sda3&amp;lt;/tt&amp;gt; instead and you will need to adjust the target block devices. If you are following our recommendations, then simply do this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mke2fs -t ext2 /dev/sda1 &lt;br /&gt;
# ##i##mkfs.xfs /dev/sda4&lt;br /&gt;
# ##i##mkswap /dev/sda3&lt;br /&gt;
# ##i##swapon /dev/sda3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Mounting filesystems ====&lt;br /&gt;
&lt;br /&gt;
Mount the newly-created filesystems as follows, creating &amp;lt;tt&amp;gt;/mnt/funtoo&amp;lt;/tt&amp;gt; as the installation mount point:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir /mnt/funtoo&lt;br /&gt;
# ##i##mount /dev/sda4 /mnt/funtoo&lt;br /&gt;
# ##i##mkdir /mnt/funtoo/boot&lt;br /&gt;
# ##i##mount /dev/sda1 /mnt/funtoo/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Optionally, if you have a separate filesystem for &amp;lt;tt&amp;gt;/home&amp;lt;/tt&amp;gt; or anything else:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir /mnt/funtoo/home&lt;br /&gt;
# ##i##mount /dev/sda5 /mnt/funtoo/home&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;/var/tmp&amp;lt;/tt&amp;gt; on a separate filesystem, be sure to change the permissions of the mount point to be globally-writeable after mounting, as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##chmod 1777 /mnt/funtoo/tmp&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing the Stage 3 tarball ===&lt;br /&gt;
==== Stage 3 tarball ====&lt;br /&gt;
&lt;br /&gt;
After creating filesystems, the next step is downloading the initial Stage 3 tarball. The Stage 3 is a pre-compiled system used as a starting point to install Funtoo Linux. Visit the [[Download]] page and copy the URL to the Stage 3 tarball you want to use. We will download it soon.&lt;br /&gt;
&lt;br /&gt;
{{fancyimportant|If your system's date and time are too far off (typically by months or years,) then it may prevent Portage from properly downloading source tarballs. This is because some of our sources are downloaded via HTTPS, which use SSL certificates and are marked with an activation and expiration date.}}&lt;br /&gt;
&lt;br /&gt;
Now is a good time to verify the date and time are correctly set to UTC. Use the &amp;lt;tt&amp;gt;date&amp;lt;/tt&amp;gt; command to verify the date and time:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##date&lt;br /&gt;
Fri Jul 15 19:47:18 UTC 2011&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the date and/or time need to be corrected, do so using &amp;lt;tt&amp;gt;date MMDDhhmmYYYY&amp;lt;/tt&amp;gt;, keeping in mind &amp;lt;tt&amp;gt;hhmm&amp;lt;/tt&amp;gt; are in 24-hour format. The example below changes the date and time to &amp;quot;July 16th, 2011 @ 8:00PM&amp;quot; UTC:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##date 071620002011&lt;br /&gt;
Fri Jul 16 20:00:00 UTC 2011&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you are in your Funtoo Linux root filesystem, use &amp;lt;tt&amp;gt;wget&amp;lt;/tt&amp;gt; to download the Stage 3 tarball you have chosen from the [[Download]] page to use as the basis for your new Funtoo Linux system. It should be saved to the &amp;lt;tt&amp;gt;/mnt/funtoo&amp;lt;/tt&amp;gt; directory as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd /mnt/funtoo&lt;br /&gt;
# ##i##wget http://ftp.osuosl.org/pub/funtoo/funtoo-current/x86-64bit/generic_64/stage3-latest.tar.xz&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that 64-bit systems can run 32-bit or 64-bit stages, but 32-bit systems can only run 32-bit stages. Make sure that you select a Stage 3 build that is appropriate for your CPU. If you are not certain, it is a safe bet to choose the &amp;lt;tt&amp;gt;generic_64&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;generic_32&amp;lt;/tt&amp;gt; stage. Consult the [[Download]] page for more information.&lt;br /&gt;
&lt;br /&gt;
Once the stage is downloaded, extract the contents with the following command, substituting in the actual name of your stage 3 tarball:&lt;br /&gt;
&amp;lt;console&amp;gt;# ##i##tar xJpf stage3-latest.tar.xz&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancyimportant|It is very important to use &amp;lt;tt&amp;gt;tar&amp;lt;/tt&amp;gt;'s &amp;quot;&amp;lt;tt&amp;gt;p&amp;lt;/tt&amp;gt;&amp;quot; option when extracting the Stage 3 tarball - it tells &amp;lt;tt&amp;gt;tar&amp;lt;/tt&amp;gt; to ''preserve'' any permissions and ownership that exist within the archive. Without this option, your Funtoo Linux filesystem permissions will be incorrect.}}&lt;br /&gt;
&lt;br /&gt;
=== Chroot into Funtoo ===&lt;br /&gt;
Before chrooting into your new system, there's a few things that need to be done first. You will need to mount /proc and /dev inside your new system. Use the following commands:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd /mnt/funtoo&lt;br /&gt;
# ##i##mount --bind /proc proc&lt;br /&gt;
# ##i##mount --bind /dev dev&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll also want to copy over &amp;lt;tt&amp;gt;resolv.conf&amp;lt;/tt&amp;gt; in order to have proper DNS name resolution from inside the chroot:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cp /etc/resolv.conf etc&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can chroot into your new system. Use &amp;lt;tt&amp;gt;env&amp;lt;/tt&amp;gt; before &amp;lt;tt&amp;gt;chroot&amp;lt;/tt&amp;gt; to ensure that no environment variables from the installation media are used by your new system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##env -i HOME=/root TERM=$TERM chroot . bash -l&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancynote|Users of live CDs with 64-bit kernels: Some software may use &amp;lt;tt&amp;gt;uname -r&amp;lt;/tt&amp;gt; to check whether the system is 32 or 64-bit. You may want append linux32 to the chroot command as a workaround, but it's generally not needed.}}&lt;br /&gt;
{{fancyimportant|If you receive the error &amp;quot;&amp;lt;tt&amp;gt;chroot: failed to run command `/bin/bash': Exec format error&amp;lt;/tt&amp;gt;&amp;quot;, it is probably because you are running a 32-bit kernel and trying to execute 64-bit code. SystemRescueCd boots with a 32-bit kernel by default.}}&lt;br /&gt;
&lt;br /&gt;
It's also a good idea to change the default command prompt while inside the chroot. This will avoid confusion if you have to change terminals. Use this command:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##export PS1=&amp;quot;(chroot) $PS1&amp;quot;&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Congratulations! You are now chrooted inside a Funtoo Linux system. Now it's time to get Funtoo Linux properly configured so that Funtoo Linux will boot successfully when your system is restarted.&lt;br /&gt;
&lt;br /&gt;
=== Downloading the Portage tree ===&lt;br /&gt;
&lt;br /&gt;
Now it's time to install a copy of the Portage repository, which contains package scripts (ebuilds) that tell portage how to build and install thousands of different software packages. To create the Portage repository, simply run &amp;lt;tt&amp;gt;emerge --sync&amp;lt;/tt&amp;gt; from within the chroot. This will automatically clone the portage tree from [http://github.com/ GitHub]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##emerge --sync&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancynote|For an alternative way to do this, see [[Installing Portage From Snapshot]].}}&lt;br /&gt;
&lt;br /&gt;
=== Configuring your system ===&lt;br /&gt;
As is expected from a Linux distribution, Funtoo Linux has its share of configuration files. The one file you are absolutely required to edit in order to ensure that Funtoo Linux boots successfully is &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt;. The others are optional. Here are a list of files that you should consider editing:&lt;br /&gt;
&lt;br /&gt;
{| {{table}}&lt;br /&gt;
!File&lt;br /&gt;
!Do I need to change it?&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt;&lt;br /&gt;
|'''YES - required'''&lt;br /&gt;
|Mount points for all filesystems to be used at boot time. This file must reflect your disk partition setup. We'll guide you through modifying this file below.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/localtime&amp;lt;/tt&amp;gt;&lt;br /&gt;
|''Maybe - recommended''&lt;br /&gt;
|Your timezone, which will default to UTC if not set. This should be a symbolic link to something located under /usr/share/zoneinfo (e.g. /usr/share/zoneinfo/America/Montreal) &lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/make.conf&amp;lt;br/&amp;gt;/etc/portage/make.conf&amp;amp;nbsp;(new&amp;amp;nbsp;location)&amp;lt;/tt&amp;gt;&lt;br /&gt;
|''Maybe - recommended''&lt;br /&gt;
|Parameters used by gcc (compiler), portage, and make. It's a good idea to set MAKEOPTS. This is covered later in this document.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/conf.d/hostname&amp;lt;/tt&amp;gt;&lt;br /&gt;
|''Maybe - recommended''&lt;br /&gt;
|Used to set system hostname. Set to the fully-qualified (with dots) name. Defaults to &amp;lt;tt&amp;gt;localhost&amp;lt;/tt&amp;gt; if not set.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/hosts&amp;lt;/tt&amp;gt;&lt;br /&gt;
|''No''&lt;br /&gt;
| You no longer need to manually set the hostname in this file. This file is automatically generated by &amp;lt;tt&amp;gt;/etc/init.d/hostname&amp;lt;/tt&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/conf.d/keymaps&amp;lt;/tt&amp;gt;&lt;br /&gt;
|Optional&lt;br /&gt;
|Keyboard mapping configuration file (for console pseudo-terminals). Set if you have a non-US keyboard. See [[Funtoo Linux Localization]].&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/conf.d/hwclock&amp;lt;/tt&amp;gt;&lt;br /&gt;
|Optional&lt;br /&gt;
|How the time of the battery-backed hardware clock of the system is interpreted (UTC or local time). Linux uses the battery-backed hardware clock to initialize the system clock when the system is booted.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/conf.d/modules&amp;lt;/tt&amp;gt;&lt;br /&gt;
|Optional&lt;br /&gt;
|Kernel modules to load automatically at system startup. Typically not required. See [[Additional Kernel Resources]] for more info.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;profiles&amp;lt;/tt&amp;gt;&lt;br /&gt;
|Optional&lt;br /&gt;
|Some useful portage settings that may help speed up intial configuration.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If you're installing an English version of Funtoo Linux, you're in luck as most of the configuration files can be used as-is. If you're installing for another locale, don't worry. We will walk you through the necessary configuration steps on the [[Funtoo Linux Localization]] page, and if needed, there's always plenty of friendly, helpful support. (See [[#Community portal|Community]])&lt;br /&gt;
&lt;br /&gt;
Let's go ahead and see what we have to do. Use &amp;lt;tt&amp;gt;nano -w &amp;lt;name_of_file&amp;gt;&amp;lt;/tt&amp;gt; to edit files -- the &amp;quot;&amp;lt;tt&amp;gt;-w&amp;lt;/tt&amp;gt;&amp;quot; disables word-wrapping, which is handy when editing configuration files. You can copy and paste from the examples.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|It's important to edit your &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file before you reboot! You will need to modify both the &amp;quot;fs&amp;quot; and &amp;quot;type&amp;quot; columns to match the settings for your partitions and filesystems that you created with &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;. Skipping this step may prevent Funtoo Linux from booting successfully.}}&lt;br /&gt;
&lt;br /&gt;
==== /etc/fstab ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; is used by the &amp;lt;tt&amp;gt;mount&amp;lt;/tt&amp;gt; command which is ran when your system boots. Statements of this file inform &amp;lt;tt&amp;gt;mount&amp;lt;/tt&amp;gt; about partitions to be mounted and how they are mounted. In order for the system to boot properly, you must edit &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; and ensure that it reflects the partition configuration you used earlier:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##nano -w /etc/fstab&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can use arrow keys to move around and hit Control-X to exit. If you want to save your changes, type &amp;quot;&amp;lt;tt&amp;gt;Y&amp;lt;/tt&amp;gt;&amp;quot; when asked if you want to save the modified buffer, or hit Control-O before closing &amp;lt;tt&amp;gt;nano&amp;lt;/tt&amp;gt;. Otherwise your changes will be discarded.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# The root filesystem should have a pass number of either 0 or 1.&lt;br /&gt;
# All other filesystems should have a pass number of 0 or greater than 1.&lt;br /&gt;
#&lt;br /&gt;
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.&lt;br /&gt;
#&lt;br /&gt;
# See the manpage fstab(5) for more information.&lt;br /&gt;
#&lt;br /&gt;
# &amp;lt;fs&amp;gt;			&amp;lt;mountpoint&amp;gt;	&amp;lt;type&amp;gt;		&amp;lt;opts&amp;gt;		         &amp;lt;dump/pass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/dev/sda1		/boot		ext2		noatime  	         1 2&lt;br /&gt;
/dev/sda3		none		swap		sw		         0 0&lt;br /&gt;
/dev/sda4		/		xfs		noatime		         0 1&lt;br /&gt;
#/dev/cdrom		/mnt/cdrom	auto		noauto,ro	         0 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== /etc/localtime ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;/etc/localtime&amp;lt;/tt&amp;gt; is used to specify the timezone that your machine is in, and defaults to UTC. If you would like your Funtoo Linux system to use local time, you should replace &amp;lt;tt&amp;gt;/etc/localtime&amp;lt;/tt&amp;gt; with a symbolic link to the timezone that you wish to use. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(chroot) # ln -sf /usr/share/zoneinfo/America/Montreal /etc/localtime&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above sets the timezone to Eastern Time Canada. Go to &amp;lt;tt&amp;gt;/usr/share/zoneinfo&amp;lt;/tt&amp;gt; to see which values to use.&lt;br /&gt;
&lt;br /&gt;
==== /etc/portage/make.conf ====&lt;br /&gt;
&lt;br /&gt;
{{fancynote|This file may also be found at /etc/make.conf. /etc/portage/make.conf is the new location.}}&lt;br /&gt;
&lt;br /&gt;
MAKEOPTS can be used to define how many parallel compilations should occur when you compile a package, which can speed up compilation significantly. A rule of thumb is the number of CPUs (or CPU threads) in your system plus one. If for example you have a dual core processor without [[wikipedia:Hyper-threading|hyper-threading]], then you would set MAKEOPTS to 3:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MAKEOPTS=&amp;quot;-j3&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are unsure about how many processors/threads you have then use /proc/cpuinfo to help you.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##grep &amp;quot;processor&amp;quot; /proc/cpuinfo | wc -l&lt;br /&gt;
16&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set MAKEOPTS to this number plus one:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MAKEOPTS=&amp;quot;-j17&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
USE flags define what functionality is enabled when packages are built. It is not recommended to add a lot of them during installation; you should wait until you have a working, bootable system before changing your USE flags. A USE flag prefixed with a minus (&amp;quot;&amp;lt;tt&amp;gt;-&amp;lt;/tt&amp;gt;&amp;quot;) sign tells Portage not to use the flag when compiling.  A Funtoo guide to USE flags will be available in the future. For now, you can find out more information about USE flags in the [http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=2&amp;amp;chap=2 Gentoo Handbook].&lt;br /&gt;
&lt;br /&gt;
LINGUAS tells Portage which local language to compile the system and applications in (those who use LINGUAS variable like OpenOffice). It is not usually necessary to set this if you use English. If you want another language such as French (fr) or German (de), set LINGUAS appropriately:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LINGUAS=&amp;quot;fr&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== /etc/conf.d/hwclock ====&lt;br /&gt;
If you dual-boot with Windows, you'll need to edit this file and change '''clock''' to '''local''', because Windows will set your hardware clock to local time every time you boot Windows. Otherwise you normally wouldn't need to edit this file.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##nano -w /etc/conf.d/hwclock&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Localization ====&lt;br /&gt;
&lt;br /&gt;
By default, Funtoo Linux is configured with Unicode (UTF-8) enabled, and for the US English locale and keyboard. If you would like to configure your system to use a non-English locale or keyboard, see [[Funtoo Linux Localization]].&lt;br /&gt;
&lt;br /&gt;
==== Profiles ====&lt;br /&gt;
&lt;br /&gt;
[[Funtoo 1.0 Profile|Funtoo profiles]] are used to define defaults for Portage specific to your needs. There are 4 basic profile types: arch, build, [[Flavors and Mix-ins|flavor, and mix-ins]]:&lt;br /&gt;
&lt;br /&gt;
;arch: typically &amp;lt;tt&amp;gt;x86-32bit&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;x86-64bit&amp;lt;/tt&amp;gt;, this defines the processor type and support of your system. This is defined when your stage was built and should not be changed.&lt;br /&gt;
;build: defines whether your system is a &amp;lt;tt&amp;gt;current&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;stable&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;experimental&amp;lt;/tt&amp;gt; build. &amp;lt;tt&amp;gt;current&amp;lt;/tt&amp;gt; systems will have newer packages unmasked than &amp;lt;tt&amp;gt;stable&amp;lt;/tt&amp;gt; systems.&lt;br /&gt;
;flavor: defines the general type of system, such as &amp;lt;tt&amp;gt;server&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;desktop&amp;lt;/tt&amp;gt;, and will set default USE flags appropriate for your needs.&lt;br /&gt;
;mix-ins: define various optional settings that you may be interested in enabling.&lt;br /&gt;
&lt;br /&gt;
One arch, build and flavor must be set for each Funtoo Linux system, while mix-ins are optional and you can enable more than one if desired.&lt;br /&gt;
&lt;br /&gt;
Remember that profiles can often be inherited. For example, the &amp;lt;tt&amp;gt;desktop&amp;lt;/tt&amp;gt; flavor inherits the &amp;lt;tt&amp;gt;workstation&amp;lt;/tt&amp;gt; flavor settings, which in turn inherits the &amp;lt;tt&amp;gt;X&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;audio&amp;lt;/tt&amp;gt; mix-ins. You can view this by inspecting the &amp;lt;tt&amp;gt;parent&amp;lt;/tt&amp;gt; files defined in each profile, which can be found in &amp;lt;tt&amp;gt;/usr/portage/profiles/funtoo/1.0/linux-gnu&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##cd /usr/portage/profiles/funtoo/1.0/linux-gnu/&lt;br /&gt;
(chroot) # ##i##ls&lt;br /&gt;
arch/             eapi              make.defaults     package.use/      packages.build    use.force&lt;br /&gt;
build/            flavor/           mix-ins/          package.use.mask/ parent            &lt;br /&gt;
(chroot) # ##i##cat flavor/desktop/parent &lt;br /&gt;
../workstation&lt;br /&gt;
../../mix-ins/print&lt;br /&gt;
(chroot) # ##i##cat flavor/workstation/parent &lt;br /&gt;
../core&lt;br /&gt;
../../mix-ins/X&lt;br /&gt;
../../mix-ins/audio&lt;br /&gt;
../../mix-ins/dvd&lt;br /&gt;
../../mix-ins/media&lt;br /&gt;
../../mix-ins/console-extras&lt;br /&gt;
(chroot) # &lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To view installed profiles:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##eselect profile list&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change the profile flavor:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##eselect profile set-flavor 7&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add a mix-in:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##eselect profile add 10&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remember if you add by string; add a 'gentoo:' to the beginning of the profile name ie:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i## eselect profile add gentoo:funtoo/1.0/linux-gnu/mix-ins/console-extras&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring and installing the Linux kernel ===&lt;br /&gt;
&lt;br /&gt;
Now it's time to build and install a Linux kernel, which is the heart of any Funtoo Linux system. In the past, the process of creating a kernel that actually booted your system could be time-consuming and require a great deal of trial and error. Fortunately, Funtoo Linux offers an option to automatically build a kernel for you that will boot nearly all systems.&lt;br /&gt;
&lt;br /&gt;
If you are unfamiliar with how to manually configure your own kernel, or you simply want to get your system up and running quickly, you can emerge &amp;lt;tt&amp;gt;debian-sources&amp;lt;/tt&amp;gt; with the &amp;lt;tt&amp;gt;binary&amp;lt;/tt&amp;gt; USE flag set, which will automatically build the kernel and an initrd that will boot nearly all Funtoo Linux systems. This kernel is based on a linux-3.2 LTS official debian kernel package and is an easy way to get your system up and running relatively quickly.&lt;br /&gt;
&lt;br /&gt;
{{fancyimportant|&amp;lt;tt&amp;gt;debian-sources&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;binary&amp;lt;/tt&amp;gt; USE flag requires at least 12GB in /var/tmp}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##echo &amp;quot;sys-kernel/debian-sources binary&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.use&lt;br /&gt;
(chroot) # ##i##emerge debian-sources&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
All done!&lt;br /&gt;
&lt;br /&gt;
{{fancynote|NVIDIA card users: the &amp;lt;tt&amp;gt;binary&amp;lt;/tt&amp;gt; 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 &amp;lt;tt&amp;gt;/etc/modprobe.d/&amp;lt;/tt&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
For an overview of other kernel options for Funtoo Linux, see [[Funtoo Linux Kernels]]. Also be sure to see [[:Category:Hardware Compatibility|hardware compatibility]] information. We have compiled a very good reference for [[Dell PowerEdge 11G Servers]] that includes kernel compatibility information as well.&lt;br /&gt;
&lt;br /&gt;
The next step is to configure your boot loader so that your new kernel loads when the system boots.&lt;br /&gt;
&lt;br /&gt;
=== Installing a Bootloader ===&lt;br /&gt;
&lt;br /&gt;
==== Installing Grub ====&lt;br /&gt;
&lt;br /&gt;
The boot loader is responsible for loading the kernel from disk when your computer boots. For new installations, GRUB 2 and Funtoo's boot-update tool should be used as a boot loader. GRUB supports both GPT/GUID and legacy MBR partitioning schemes.&lt;br /&gt;
&lt;br /&gt;
To use this recommended boot method, first emerge &amp;lt;tt&amp;gt;boot-update&amp;lt;/tt&amp;gt;. This will also cause &amp;lt;tt&amp;gt;grub-2&amp;lt;/tt&amp;gt; to be merged, since it is a dependency of &amp;lt;tt&amp;gt;boot-update&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##emerge boot-update&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, edit &amp;lt;tt&amp;gt;/etc/boot.conf&amp;lt;/tt&amp;gt; and specify &amp;quot;&amp;lt;tt&amp;gt;Funtoo Linux genkernel&amp;lt;/tt&amp;gt;&amp;quot; as the &amp;lt;tt&amp;gt;default&amp;lt;/tt&amp;gt; setting at the top of the file, replacing &amp;lt;tt&amp;gt;&amp;quot;Funtoo Linux&amp;quot;&amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;/etc/boot.conf&amp;lt;/tt&amp;gt; should now look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
boot {&lt;br /&gt;
        generate grub&lt;br /&gt;
        default &amp;quot;Funtoo Linux genkernel&amp;quot;&lt;br /&gt;
        timeout 3 &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Funtoo Linux&amp;quot; {&lt;br /&gt;
        kernel bzImage[-v]&lt;br /&gt;
        # params += nomodeset&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Funtoo Linux genkernel&amp;quot; {&lt;br /&gt;
        kernel kernel[-v]&lt;br /&gt;
        initrd initramfs[-v]&lt;br /&gt;
        params += real_root=auto &lt;br /&gt;
        # params += nomodeset&lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Please read &amp;lt;tt&amp;gt;man boot.conf&amp;lt;/tt&amp;gt; for further details.&lt;br /&gt;
&lt;br /&gt;
===== Running grub-install and boot-update =====&lt;br /&gt;
&lt;br /&gt;
Finally, we will need to actually install the GRUB boot loader to your disk, and also run &amp;lt;tt&amp;gt;boot-update&amp;lt;/tt&amp;gt; which will generate your boot loader configuration file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##grub-install --no-floppy /dev/sda&lt;br /&gt;
(chroot) # ##i##boot-update&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You only need to run &amp;lt;tt&amp;gt;grub-install&amp;lt;/tt&amp;gt; when you first install Funtoo Linux, but you need to re-run &amp;lt;tt&amp;gt;boot-update&amp;lt;/tt&amp;gt; every time you modify your &amp;lt;tt&amp;gt;/etc/boot.conf&amp;lt;/tt&amp;gt; file, so your changes are applied on next boot.&lt;br /&gt;
&lt;br /&gt;
OK - your system should be ready to boot! Well, there are a few more loose ends...&lt;br /&gt;
&lt;br /&gt;
==== Installing Syslinux/Extlinux ====&lt;br /&gt;
&lt;br /&gt;
An alternate Bootloader is Extlinux, for installing it see the [[Extlinux|extlinux Guide]].&lt;br /&gt;
&lt;br /&gt;
=== Configuring your network ===&lt;br /&gt;
&lt;br /&gt;
It's important to ensure that you will be able to connect to your local-area network after you reboot into Funtoo Linux. There are three approaches you can use for configuring your network: NetworkManager, dhcpcd, and the [[Funtoo Linux Networking]] scripts. Here's how to choose which one to use based on the type of network you want to set up.&lt;br /&gt;
&lt;br /&gt;
==== Wi-Fi ====&lt;br /&gt;
&lt;br /&gt;
For laptop/mobile systems where you will be using Wi-Fi and connecting to various networks, NetworkManager is strongly recommended. The Funtoo version of NetworkManager is fully functional even from the command-line, so you can use it even without X or without the Network Manager applet. Here are the steps involved in setting up NetworkManager:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##emerge linux-firmware&lt;br /&gt;
# ##i##emerge networkmanager&lt;br /&gt;
# ##i##rc-update add NetworkManager default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Above, we installed linux-firmware which contains a complete collection of available firmware for many hardware devices including Wi-Fi adapters, plus NetworkManager to manage our network connection. Then we added NetworkManager to the &amp;lt;tt&amp;gt;default&amp;lt;/tt&amp;gt; runlevel so it will start when Funtoo Linux boots.&lt;br /&gt;
&lt;br /&gt;
After you reboot into Funtoo Linux, you will be able to add a Wi-Fi connection this way:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##addwifi -S wpa -K 'wifipassword' mywifinetwork&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;addwifi&amp;lt;/tt&amp;gt; command is used to configure and connect to a WPA/WPA2 Wi-Fi network named &amp;lt;tt&amp;gt;mywifinetwork&amp;lt;/tt&amp;gt; with the password &amp;lt;tt&amp;gt;wifipassword&amp;lt;/tt&amp;gt;. This network configuration entry is stored in &amp;lt;tt&amp;gt;/etc/NetworkManager/system-connections&amp;lt;/tt&amp;gt; so that it will be remembered in the future. You should only need to enter this command once for each Wi-Fi network you connect to.&lt;br /&gt;
&lt;br /&gt;
==== Desktop (Wired Ethernet) ====&lt;br /&gt;
&lt;br /&gt;
For a home desktop or workstation with wired Ethernet that will use DHCP, the simplest and most effective option to enable network connectivity is to simply add &amp;lt;tt&amp;gt;dhcpcd&amp;lt;/tt&amp;gt; to the default runlevel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##rc-update add dhcpcd default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you reboot, &amp;lt;tt&amp;gt;dhcpcd&amp;lt;/tt&amp;gt; will run in the background and manage all network interfaces and use DHCP to acquire network addresses from a DHCP server.&lt;br /&gt;
&lt;br /&gt;
==== Server (Static IP) ====&lt;br /&gt;
&lt;br /&gt;
For servers, the [[Funtoo Linux Networking]] scripts are recommended. They are optimized for static configurations and things like virtual ethernet bridging for virtualization setups. See [[Funtoo Linux Networking]] for information on how to use Funtoo Linux's template-based network configuration system.&lt;br /&gt;
&lt;br /&gt;
=== Finishing Steps ===&lt;br /&gt;
&lt;br /&gt;
==== Set your root password ====&lt;br /&gt;
It's imperative that you set your root password before rebooting so that you can log in.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##passwd&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Restart your system ===&lt;br /&gt;
&lt;br /&gt;
Now is the time to leave chroot, to unmount Funtoo Linux partitions and files and to restart your computer. When you restart, the GRUB boot loader will start, load the Linux kernel and initramfs, and your system will begin booting.&lt;br /&gt;
&lt;br /&gt;
Leave the chroot, change directory to /, unmount your Funtoo partitions, and reboot.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##exit&lt;br /&gt;
# ##i##cd /&lt;br /&gt;
# ##i##umount /mnt/funtoo/boot /mnt/funtoo/dev /mnt/funtoo/proc /mnt/funtoo&lt;br /&gt;
# ##i##reboot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now see your system reboot, the GRUB boot loader appear for a few seconds, and then see the Linux kernel and initramfs loading. After this, you should see Funtoo Linux itself start to boot, and you should be greeted with a &amp;lt;tt&amp;gt;login:&amp;lt;/tt&amp;gt; prompt. Funtoo Linux has been successfully installed!&lt;br /&gt;
&lt;br /&gt;
===Next Steps===&lt;br /&gt;
&lt;br /&gt;
To learn how to customize and start using Funtoo Linux, see [[Funtoo Linux First Steps]].&lt;br /&gt;
&lt;br /&gt;
If your system did not boot correctly, see [[Installation Troubleshooting]] for steps you can take to resolve the problem.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;br /&gt;
[[Category:Install]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Download</id>
		<title>Download</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Download"/>
				<updated>2013-01-08T17:50:54Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Now... select a sub-arch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTITLE__&lt;br /&gt;
= Download Funtoo Linux =&lt;br /&gt;
&lt;br /&gt;
Here are the steps you should follow to download Funtoo Linux stage3 tarball. If you need an install CD, please see [[Funtoo Linux Installation]] for Live Media recommendations. Funtoo Linux currently doesn't have its own LiveCD, but there are many that you can use for installation.&lt;br /&gt;
&lt;br /&gt;
== First, Pick a Mirror... ==&lt;br /&gt;
&lt;br /&gt;
Funtoo Linux can be downloaded at the following locations:&lt;br /&gt;
&lt;br /&gt;
* Main US mirror: [http://ftp.osuosl.org/pub/funtoo/ The Oregon State University Open Source Lab]&lt;br /&gt;
* Main EU mirror: [http://ftp.heanet.ie/mirrors/funtoo/ HEAnet]&lt;br /&gt;
&lt;br /&gt;
== Now... pick a build ==&lt;br /&gt;
&lt;br /&gt;
'''Now you'll first need to pick a ''build'' of Funtoo Linux to install.''' Builds are like different versions of Funtoo Linux. ''Our '''funtoo-current''' build is the most up-to-date and recommended build.'' We also offer '''funtoo-stable'''. Both current and stable share the use the same Portage tree (package repository), but newer packages are unmasked (made available for install) in '''funtoo-current'''.&lt;br /&gt;
&lt;br /&gt;
There is also a '''funtoo-experimental''', which contains our experimental development work. As you might guess, funtoo-experimental is for developers and testers only, and it has its own experimental Portage tree that is separate from the others.&lt;br /&gt;
&lt;br /&gt;
If you don't know which one to choose, pick '''funtoo-current'''.&lt;br /&gt;
&lt;br /&gt;
Picked one? Great! Open a mirror in a new window, and select the appropriate build directory from the list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Next... pick an arch ==&lt;br /&gt;
&lt;br /&gt;
'''Next, it's time to pick an ''architecture'''''. If you have a modern 64-bit PC-compatible desktop or server, you generally want '''x86-64bit'''.  If you have an older 32-bit PC-compatible desktop or server, you'll want to use '''x86-32bit'''. 32-bit is also an option for 64-bit x86 systems if you don't want or need 64-bit support.&lt;br /&gt;
&lt;br /&gt;
We also bundle virtualization directories alongside the architecture directories, so if you want to install an [[OpenVZ]] container of Funtoo Linux, select '''openvz''', then pick the correct ''architecture'' within. Likewise, if you're looking for a [[VagrantUp|Vagrant]] run image of Funtoo Linux, look in the '''vagrant''' directory.&lt;br /&gt;
&lt;br /&gt;
If you are installing Funtoo Linux on an ARM system, choose '''arm-32bis'''. Finally, if you are installing Funtoo Linux on a Sparc64 system, choose '''sparc-64bit'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt; x86-64bit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Now... select a sub-arch ==&lt;br /&gt;
&lt;br /&gt;
Now, you'll need to pick a ''sub-architecture'' of Funtoo Linux that suits your needs. A sub-architecture is a build of Funtoo Linux that is optimized for your particular CPU. &lt;br /&gt;
&lt;br /&gt;
If you are building a Linux-based appliance or grabbing an image for mass-deployment, you might want to choose a generic sub-architecture that will be compatible with a wide range of processors. Otherwise, choose the most optimized sub-architecture that your processor supports.&lt;br /&gt;
&lt;br /&gt;
Note that we offer the greatest number of choices for '''funtoo-current'''. Other builds will have a more limited number of sub-arches available.&lt;br /&gt;
&lt;br /&gt;
=== x86-64bit ===&lt;br /&gt;
&lt;br /&gt;
* Intel&lt;br /&gt;
** '''corei7''': Intel Core i3, Core i5 and Core i7 desktop processors or higher. Xeon 5500, 5600 and 7500 series server processors or higher. (Nehalem, Sandy Bridge) &lt;br /&gt;
** '''core2_64''': Intel Core 2 series or higher, which include the Core 2 Solo, Duo, Quad and Extreme. Also suitable for Nehalem.&lt;br /&gt;
** '''atom_64''': Intel Atom optimized. Compatible with Core 2 series.&lt;br /&gt;
* AMD&lt;br /&gt;
** '''amd64-k10''': AMD Phenom, Phenom II and compatible, or higher&lt;br /&gt;
** '''amd64-k8''': AMD Opteron or Athlon 64 processors, or higher&lt;br /&gt;
* Generic&lt;br /&gt;
** '''generic_64''' : Generic 64-bit Intel/AMD processor&lt;br /&gt;
&lt;br /&gt;
=== x86-32bit ===&lt;br /&gt;
&lt;br /&gt;
*'''core2_32''': Intel Core 2 series or compatible, which include the Core 2 Solo, Duo, Quad and Extreme. Also suitable for Nehalem.&lt;br /&gt;
*'''atom_32''': Intel Atom optimized. Compatible with Core 2 series.&lt;br /&gt;
*'''amd64-k8_32''': AMD Opteron or Athlon 64 processors, or higher.&lt;br /&gt;
*'''athlon-xp''': Athlon XP or Opteron/Athlon 64.&lt;br /&gt;
*'''i686''': Generic P6-class system (generic modern 32-bit)&lt;br /&gt;
*'''i486''': Intel 80486+ system (generic 32-bit)&lt;br /&gt;
&lt;br /&gt;
=== arm-32bit ===&lt;br /&gt;
&lt;br /&gt;
*'''armv6j_hardfp''': Hardware floating points ARMv6J architecture (Raspberry Pi, etc.).&lt;br /&gt;
*'''armv6j_hardfp''': Hardware floating points ARMv7A architecture (PandaBoard, ODROID-X2, ODROID-U2, etc.).&lt;br /&gt;
&lt;br /&gt;
You should now grab the most recent stage3 for the sub-architecture that you've chosen:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt; x86-64bit -&amp;gt; corei7 -&amp;gt; stage3-latest.tar.xz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Download</id>
		<title>Download</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Download"/>
				<updated>2013-01-08T17:50:40Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Now... select a sub-arch */  FL-259: ARM&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTITLE__&lt;br /&gt;
= Download Funtoo Linux =&lt;br /&gt;
&lt;br /&gt;
Here are the steps you should follow to download Funtoo Linux stage3 tarball. If you need an install CD, please see [[Funtoo Linux Installation]] for Live Media recommendations. Funtoo Linux currently doesn't have its own LiveCD, but there are many that you can use for installation.&lt;br /&gt;
&lt;br /&gt;
== First, Pick a Mirror... ==&lt;br /&gt;
&lt;br /&gt;
Funtoo Linux can be downloaded at the following locations:&lt;br /&gt;
&lt;br /&gt;
* Main US mirror: [http://ftp.osuosl.org/pub/funtoo/ The Oregon State University Open Source Lab]&lt;br /&gt;
* Main EU mirror: [http://ftp.heanet.ie/mirrors/funtoo/ HEAnet]&lt;br /&gt;
&lt;br /&gt;
== Now... pick a build ==&lt;br /&gt;
&lt;br /&gt;
'''Now you'll first need to pick a ''build'' of Funtoo Linux to install.''' Builds are like different versions of Funtoo Linux. ''Our '''funtoo-current''' build is the most up-to-date and recommended build.'' We also offer '''funtoo-stable'''. Both current and stable share the use the same Portage tree (package repository), but newer packages are unmasked (made available for install) in '''funtoo-current'''.&lt;br /&gt;
&lt;br /&gt;
There is also a '''funtoo-experimental''', which contains our experimental development work. As you might guess, funtoo-experimental is for developers and testers only, and it has its own experimental Portage tree that is separate from the others.&lt;br /&gt;
&lt;br /&gt;
If you don't know which one to choose, pick '''funtoo-current'''.&lt;br /&gt;
&lt;br /&gt;
Picked one? Great! Open a mirror in a new window, and select the appropriate build directory from the list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Next... pick an arch ==&lt;br /&gt;
&lt;br /&gt;
'''Next, it's time to pick an ''architecture'''''. If you have a modern 64-bit PC-compatible desktop or server, you generally want '''x86-64bit'''.  If you have an older 32-bit PC-compatible desktop or server, you'll want to use '''x86-32bit'''. 32-bit is also an option for 64-bit x86 systems if you don't want or need 64-bit support.&lt;br /&gt;
&lt;br /&gt;
We also bundle virtualization directories alongside the architecture directories, so if you want to install an [[OpenVZ]] container of Funtoo Linux, select '''openvz''', then pick the correct ''architecture'' within. Likewise, if you're looking for a [[VagrantUp|Vagrant]] run image of Funtoo Linux, look in the '''vagrant''' directory.&lt;br /&gt;
&lt;br /&gt;
If you are installing Funtoo Linux on an ARM system, choose '''arm-32bis'''. Finally, if you are installing Funtoo Linux on a Sparc64 system, choose '''sparc-64bit'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt; x86-64bit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Now... select a sub-arch ==&lt;br /&gt;
&lt;br /&gt;
Now, you'll need to pick a ''sub-architecture'' of Funtoo Linux that suits your needs. A sub-architecture is a build of Funtoo Linux that is optimized for your particular CPU. &lt;br /&gt;
&lt;br /&gt;
If you are building a Linux-based appliance or grabbing an image for mass-deployment, you might want to choose a generic sub-architecture that will be compatible with a wide range of processors. Otherwise, choose the most optimized sub-architecture that your processor supports.&lt;br /&gt;
&lt;br /&gt;
Note that we offer the greatest number of choices for '''funtoo-current'''. Other builds will have a more limited number of sub-arches available.&lt;br /&gt;
&lt;br /&gt;
=== x86-64bit ===&lt;br /&gt;
&lt;br /&gt;
* Intel&lt;br /&gt;
** '''corei7''': Intel Core i3, Core i5 and Core i7 desktop processors or higher. Xeon 5500, 5600 and 7500 series server processors or higher. (Nehalem, Sandy Bridge) &lt;br /&gt;
** '''core2_64''': Intel Core 2 series or higher, which include the Core 2 Solo, Duo, Quad and Extreme. Also suitable for Nehalem.&lt;br /&gt;
** '''atom_64''': Intel Atom optimized. Compatible with Core 2 series.&lt;br /&gt;
* AMD&lt;br /&gt;
** '''amd64-k10''': AMD Phenom, Phenom II and compatible, or higher&lt;br /&gt;
** '''amd64-k8''': AMD Opteron or Athlon 64 processors, or higher&lt;br /&gt;
* Generic&lt;br /&gt;
** '''generic_64''' : Generic 64-bit Intel/AMD processor&lt;br /&gt;
&lt;br /&gt;
=== x86-32bit ===&lt;br /&gt;
&lt;br /&gt;
*'''core2_32''': Intel Core 2 series or compatible, which include the Core 2 Solo, Duo, Quad and Extreme. Also suitable for Nehalem.&lt;br /&gt;
*'''atom_32''': Intel Atom optimized. Compatible with Core 2 series.&lt;br /&gt;
*'''amd64-k8_32''': AMD Opteron or Athlon 64 processors, or higher.&lt;br /&gt;
*'''athlon-xp''': Athlon XP or Opteron/Athlon 64.&lt;br /&gt;
*'''i686''': Generic P6-class system (generic modern 32-bit)&lt;br /&gt;
*'''i486''': Intel 80486+ system (generic 32-bit)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== arm-32bit ===&lt;br /&gt;
&lt;br /&gt;
*'''armv6j_hardfp''': Hardware floating points ARMv6J architecture (Raspberry Pi, etc.).&lt;br /&gt;
*'''armv6j_hardfp''': Hardware floating points ARMv7A architecture (PandaBoard, ODROID-X2, ODROID-U2, etc.).&lt;br /&gt;
&lt;br /&gt;
You should now grab the most recent stage3 for the sub-architecture that you've chosen:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt; x86-64bit -&amp;gt; corei7 -&amp;gt; stage3-latest.tar.xz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Download</id>
		<title>Download</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Download"/>
				<updated>2013-01-08T17:47:29Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Next... pick an arch */  FL-259: ARM&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTITLE__&lt;br /&gt;
= Download Funtoo Linux =&lt;br /&gt;
&lt;br /&gt;
Here are the steps you should follow to download Funtoo Linux stage3 tarball. If you need an install CD, please see [[Funtoo Linux Installation]] for Live Media recommendations. Funtoo Linux currently doesn't have its own LiveCD, but there are many that you can use for installation.&lt;br /&gt;
&lt;br /&gt;
== First, Pick a Mirror... ==&lt;br /&gt;
&lt;br /&gt;
Funtoo Linux can be downloaded at the following locations:&lt;br /&gt;
&lt;br /&gt;
* Main US mirror: [http://ftp.osuosl.org/pub/funtoo/ The Oregon State University Open Source Lab]&lt;br /&gt;
* Main EU mirror: [http://ftp.heanet.ie/mirrors/funtoo/ HEAnet]&lt;br /&gt;
&lt;br /&gt;
== Now... pick a build ==&lt;br /&gt;
&lt;br /&gt;
'''Now you'll first need to pick a ''build'' of Funtoo Linux to install.''' Builds are like different versions of Funtoo Linux. ''Our '''funtoo-current''' build is the most up-to-date and recommended build.'' We also offer '''funtoo-stable'''. Both current and stable share the use the same Portage tree (package repository), but newer packages are unmasked (made available for install) in '''funtoo-current'''.&lt;br /&gt;
&lt;br /&gt;
There is also a '''funtoo-experimental''', which contains our experimental development work. As you might guess, funtoo-experimental is for developers and testers only, and it has its own experimental Portage tree that is separate from the others.&lt;br /&gt;
&lt;br /&gt;
If you don't know which one to choose, pick '''funtoo-current'''.&lt;br /&gt;
&lt;br /&gt;
Picked one? Great! Open a mirror in a new window, and select the appropriate build directory from the list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Next... pick an arch ==&lt;br /&gt;
&lt;br /&gt;
'''Next, it's time to pick an ''architecture'''''. If you have a modern 64-bit PC-compatible desktop or server, you generally want '''x86-64bit'''.  If you have an older 32-bit PC-compatible desktop or server, you'll want to use '''x86-32bit'''. 32-bit is also an option for 64-bit x86 systems if you don't want or need 64-bit support.&lt;br /&gt;
&lt;br /&gt;
We also bundle virtualization directories alongside the architecture directories, so if you want to install an [[OpenVZ]] container of Funtoo Linux, select '''openvz''', then pick the correct ''architecture'' within. Likewise, if you're looking for a [[VagrantUp|Vagrant]] run image of Funtoo Linux, look in the '''vagrant''' directory.&lt;br /&gt;
&lt;br /&gt;
If you are installing Funtoo Linux on an ARM system, choose '''arm-32bis'''. Finally, if you are installing Funtoo Linux on a Sparc64 system, choose '''sparc-64bit'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt; x86-64bit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Now... select a sub-arch ==&lt;br /&gt;
&lt;br /&gt;
Now, you'll need to pick a ''sub-architecture'' of Funtoo Linux that suits your needs. A sub-architecture is a build of Funtoo Linux that is optimized for your particular CPU. &lt;br /&gt;
&lt;br /&gt;
If you are building a Linux-based appliance or grabbing an image for mass-deployment, you might want to choose a generic sub-architecture that will be compatible with a wide range of processors. Otherwise, choose the most optimized sub-architecture that your processor supports.&lt;br /&gt;
&lt;br /&gt;
Note that we offer the greatest number of choices for '''funtoo-current'''. Other builds will have a more limited number of sub-arches available.&lt;br /&gt;
&lt;br /&gt;
=== x86-64bit ===&lt;br /&gt;
&lt;br /&gt;
* Intel&lt;br /&gt;
** '''corei7''': Intel Core i3, Core i5 and Core i7 desktop processors or higher. Xeon 5500, 5600 and 7500 series server processors or higher. (Nehalem, Sandy Bridge) &lt;br /&gt;
** '''core2_64''': Intel Core 2 series or higher, which include the Core 2 Solo, Duo, Quad and Extreme. Also suitable for Nehalem.&lt;br /&gt;
** '''atom_64''': Intel Atom optimized. Compatible with Core 2 series.&lt;br /&gt;
* AMD&lt;br /&gt;
** '''amd64-k10''': AMD Phenom, Phenom II and compatible, or higher&lt;br /&gt;
** '''amd64-k8''': AMD Opteron or Athlon 64 processors, or higher&lt;br /&gt;
* Generic&lt;br /&gt;
** '''generic_64''' : Generic 64-bit Intel/AMD processor&lt;br /&gt;
&lt;br /&gt;
=== x86-32bit ===&lt;br /&gt;
&lt;br /&gt;
*'''core2_32''': Intel Core 2 series or compatible, which include the Core 2 Solo, Duo, Quad and Extreme. Also suitable for Nehalem.&lt;br /&gt;
*'''atom_32''': Intel Atom optimized. Compatible with Core 2 series.&lt;br /&gt;
*'''amd64-k8_32''': AMD Opteron or Athlon 64 processors, or higher.&lt;br /&gt;
*'''athlon-xp''': Athlon XP or Opteron/Athlon 64.&lt;br /&gt;
*'''i686''': Generic P6-class system (generic modern 32-bit)&lt;br /&gt;
*'''i486''': Intel 80486+ system (generic 32-bit)&lt;br /&gt;
&lt;br /&gt;
You should now grab the most recent stage3 for the sub-architecture that you've chosen:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
funtoo-current -&amp;gt; x86-64bit -&amp;gt; corei7 -&amp;gt; stage3-latest.tar.xz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM</id>
		<title>Funtoo Linux Installation on ARM</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Funtoo_Linux_Installation_on_ARM"/>
				<updated>2012-12-18T14:27:08Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: Changing experimental branch to current.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Funtoo now provides [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/ stage3 images] for arm platform. At this time are only armv6j_hardfp and armv7a_hardfp stages available. If you would like us to support other processors (see the list below) leave a note on #IRC channel or ...&lt;br /&gt;
&lt;br /&gt;
== List of ARM processor &amp;quot;flavors&amp;quot; ==&lt;br /&gt;
* armv4l-unknown-linux-gnu (Rebel NetWinder, HP Armada and other devices having an ARMv4 processor, which is only capable of running the old ABI. Nevertheless it should work on newer CPUs)&lt;br /&gt;
* armv4tl-softfloat-linux-gnueabi (OpenMoko FreeRunner and other devices using an ARMv4T processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv5tel-softfloat-linux-gnueabi (almost all ARM NAS, devices based on the Marvell Orion and Marvell Kirkwood, Marvell Sheevaplug, Marvell OpenRD, Guruplug, Dreamplug, QNAP TS109/TS209/TS409/TS119/TS219/TS419, Buffalo Linkstation/Kurobox PRO, HP mv2120, HP iPAQ, Linksys NSLU2 and other devices using an ARMv5TE processor. Uses the new ARM EABI and software floating point by default)&lt;br /&gt;
* armv6j-unknown-linux-gnueabi (Nokia N800/N810, Smart Q7, OMAP2-based devices and other multimedia devices using an ARMv6 CPU and VFP. Uses the new ARM EABI and hardware floating point by default)&lt;br /&gt;
* armv7a-unknown-linux-gnueabi (OMAP3-based devices(Beagleboard, IGEPv2, Devkit8000, AlwaysInnovating Touchbook, [[Nokia N900]]), OMAP4-based devices([[Pandaboard]]), Freescale i.MX515-based devices([[Efika MX]], Babbage Board, Lange Board…) Marvell Dove/Armada, Nvidia Tegra2-based devices(Toshiba AC100, Toshiba Folio), ST-Ericsson NOVA A9500-based devices(Snowball), Exynos 4412 ([[Odroid-X]], Odroid-Q) and other devices using an ARMv7-A processor. Uses the new ARM EABI and generic(not NEON) hardware floating point by default&lt;br /&gt;
* armv7a-hardfloat-linux-gnueabi (The same as armv7a-unknown-linux-gnueabi, but this one uses hardfloat instead of softfp. Read more about it here: http://wiki.debian.org/ArmHardFloatPort)&lt;br /&gt;
&lt;br /&gt;
== Default installation of Funtoo on your platform/board ==&lt;br /&gt;
These are some notes about installing Funtoo Linux on ARM based devices that are non-board specific. Other instructions can be found in the specific articles for the above mentioned devices.&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
If you are a Gentoo or a Funtoo user this won't be anything that new to you. Most of the boards come with a SD card slot, so you will need an empty SD card (xGB is enough to get you started), in most cases the boards are also equipped with debug port which can be used with USB-to-serial cables, if you have one, you can use it to login to the machine without the need of connecting keyboards or displays. You will need a network connection to be able to download stages, kernel and update your portage tree.&lt;br /&gt;
&lt;br /&gt;
=== Kernel and bootloader setup ===&lt;br /&gt;
Before you start you will need a kernel and a bootloader for your device. Some of the devices look for bootloader (in most cases U-Boot) on the SD along with the kernel.&lt;br /&gt;
&lt;br /&gt;
More information about the kernel and bootloader can be found on pages specific for your device.&lt;br /&gt;
&lt;br /&gt;
=== Installing Funtoo ===&lt;br /&gt;
&lt;br /&gt;
The installation on these devices differs from the normal installation procedure of booting an installation environment and chrooting from there to your new root, and can be little bit easier, but in some cases tricky. &lt;br /&gt;
&lt;br /&gt;
To setup the installation:&lt;br /&gt;
* Extract stage3 to the 2nd partition of the SD card&lt;br /&gt;
* Extract portage snapshot (required to emerge things and ntp(see below))&lt;br /&gt;
* Setup fstab&lt;br /&gt;
* Setup root password&lt;br /&gt;
* Configure hostname and networking (optional, but recommended)&lt;br /&gt;
* Enable SSH access (optional, but recommended)&lt;br /&gt;
* Enable serial console access (optional, but recommended)&lt;br /&gt;
* Correct RTC &amp;quot;bug&amp;quot; with swclock&lt;br /&gt;
&lt;br /&gt;
Now download your stage3 from [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/], use the correct subarchitecture. And also download the portage snapshot from [http://ftp.osuosl.org/pub/funtoo/funtoo-current/snapshots/].&lt;br /&gt;
&lt;br /&gt;
==== Extracting the stage3 ====&lt;br /&gt;
Mount the partition that will hold your rootfs of the SD card and extract the stage3 you have downloaded.&lt;br /&gt;
&lt;br /&gt;
 mkdir /mnt/SD_root&lt;br /&gt;
 mount /dev/sdcard-device-px /mnt/SD_root&lt;br /&gt;
&lt;br /&gt;
(Extract the stage3, it may take a while)&lt;br /&gt;
 tar xapf stage3-armv7a_hardfp-xxxx.tar.xz -C /mnt/SD_root&lt;br /&gt;
&lt;br /&gt;
==== Extracting a portage snapshot (optional) ====&lt;br /&gt;
&lt;br /&gt;
 tar xapf portage-latest.tar.xz -C /mnt/SD_root/usr&lt;br /&gt;
&lt;br /&gt;
==== Setup fstab ====&lt;br /&gt;
Edit the /mnt/SD_root/etc/fstab file to look like this:&lt;br /&gt;
&lt;br /&gt;
 /dev/mmcblk0p1		/boot		vfat		noauto,noatime	1 2&lt;br /&gt;
 /dev/mmcblk0p2		/		ext4		noatime		0 1&lt;br /&gt;
&lt;br /&gt;
==== Setting the default root password ====&lt;br /&gt;
&lt;br /&gt;
This is almost the most important part of the installation. As without the root password we won't be able to login!&lt;br /&gt;
&lt;br /&gt;
For setting the password, we need to be able to run passwd. However that's not possible since our PC can't run ARM binaries. Therefore we need to modify the file that contains the passwords (/etc/shadow) inside the chroot, so we can set a default root password.&lt;br /&gt;
&lt;br /&gt;
(Generate a password)&lt;br /&gt;
 openssl passwd -1&lt;br /&gt;
&lt;br /&gt;
 nano -w /mnt/SD_root/etc/shadow&lt;br /&gt;
&lt;br /&gt;
(For example, this line makes the password be gentoo)&lt;br /&gt;
 root:$6$I9Q9AyTL$Z76H7wD8mT9JAyrp/vaYyFwyA5wRVN0tze8pvM.MqScC7BBm2PU7pLL0h5nSxueqUpYAlZTox4Ag2Dp5vchjJ0:14698:0:::::&lt;br /&gt;
&lt;br /&gt;
==== Setup hostname and networking ====&lt;br /&gt;
&lt;br /&gt;
Please read the [[Funtoo Linux Networking]] to configure your network.&lt;br /&gt;
&lt;br /&gt;
==== Using swclock ====&lt;br /&gt;
One of the problems some of the devices have, is that they don't have a battery to save the clock time. To mitigate this, on Funtoo we have an option in our init system called swclock which sets the date of the system upon boot from a last modified date of a file.&lt;br /&gt;
&lt;br /&gt;
===== Adding swclock to the startup =====&lt;br /&gt;
 ln -sf /etc/init.d/swclock /mnt/SD_root/etc/runlevels/boot&lt;br /&gt;
&lt;br /&gt;
We remove hwclock from the startup because it sets the date from the RTC, which is 2000-01-01 upon startup and overrides swclock's date.&lt;br /&gt;
 rm /mnt/SD_root/etc/runlevels/boot/hwclock&lt;br /&gt;
&lt;br /&gt;
swclock uses the /lib/rc/cache/shutdowntime's modification time to set the date, therefore we update it to have the current date and time.&lt;br /&gt;
&lt;br /&gt;
 touch /mnt/SD_root/lib/rc/cache/shutdowntime&lt;br /&gt;
&lt;br /&gt;
Although this doesn't fix the issue, at least helps to set a sane date and time.&lt;br /&gt;
Note: Consider using NTP, documented on the next chapter&lt;br /&gt;
&lt;br /&gt;
==== Enabling SSH access (optional) ====&lt;br /&gt;
We can add sshd to the startup,so we can access our devices using ssh.&lt;br /&gt;
&lt;br /&gt;
 ln -sf /etc/init.d/sshd /mnt/SD_root/etc/runlevels/default&lt;br /&gt;
&lt;br /&gt;
==== Enabling serial console access (optional) ====&lt;br /&gt;
By default the ttyS0 port is configured at 9600 bps. However, almost all of the ARM devices run the serial port at 115200 bps. Also, the port device names differ (ttyO2 for Pandaboard, ttySAC1 for Odroid-X ...). So edit your /etc/inittab file:&lt;br /&gt;
&lt;br /&gt;
 nano -w /mnt/SD_root/etc/inittab&lt;br /&gt;
 (For example for Pandaboard: )&lt;br /&gt;
 s0:12345:respawn:/sbin/agetty 115200 ttyO2 vt100&lt;br /&gt;
&lt;br /&gt;
=== Finishing the installation ===&lt;br /&gt;
Let's unmount the SD card&lt;br /&gt;
&lt;br /&gt;
 umount /mnt/SD_root&lt;br /&gt;
&lt;br /&gt;
This is all that it is to it.&lt;br /&gt;
&lt;br /&gt;
=== Booting up our new system ===&lt;br /&gt;
Once you have the card ready, put it into your device, and you should be able to boot it. If you have a debug port you will be able to see the boot process using minicom or similar program on another PC connected with the debug cable.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;br /&gt;
[[Category:ARM]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Funtoo_Linux_Installation</id>
		<title>Funtoo Linux Installation</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Funtoo_Linux_Installation"/>
				<updated>2012-11-28T16:55:28Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: /* Wi-Fi */ - Typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This document briefly explains all of the steps required to set up a typical Funtoo Linux installation on a &amp;quot;PC compatible&amp;quot; computer system. If you've had previous experience installing Gentoo Linux then a lot of steps will be familiar, but you should still read through as there are a few differences.&lt;br /&gt;
&lt;br /&gt;
=== Additional Resources === &lt;br /&gt;
&lt;br /&gt;
This document was written to help you install Funtoo Linux as efficiently as possible, with a minimum number of distracting options regarding system configuration. &lt;br /&gt;
&lt;br /&gt;
Those who prefer a longer, more thorough tutorial-style installation may want to check out our beta [[Installation (Tutorial)|Installation Tutorial]] instead. It explores more installation possibilities and options such as encrypted filesystems, and includes screenshots.&lt;br /&gt;
&lt;br /&gt;
An experimental Funtoo Linux build exists for [[Funtoo Linux Installation on SPARC|SPARC]] platforms. See [[Funtoo Linux Installation on SPARC]] for notable differences regarding SPARC support.&lt;br /&gt;
&lt;br /&gt;
== Installation Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a basic overview of the Funtoo installation process:&lt;br /&gt;
&lt;br /&gt;
# [[#Live CD|Download and boot the live CD of your choice]].&lt;br /&gt;
# [[#Prepare Hard Disk|Prepare your disk]].&lt;br /&gt;
# [[#Creating filesystems|Create]] and [[#Mounting filesystems|mount]] filesystems.&lt;br /&gt;
# [[#Installing the Stage 3 tarball|Install the Funtoo stage tarball]] of your choice.&lt;br /&gt;
# [[#Chroot into Funtoo|Chroot into your new system]].&lt;br /&gt;
# [[#Downloading the Portage tree|Download the Portage tree]].&lt;br /&gt;
# [[#Configuring your system|Configure your system]] and [[#Configuring your network|network]].&lt;br /&gt;
# [[#Configuring and installing the Linux kernel|Install a kernel]].&lt;br /&gt;
# [[#Installing a Bootloader|Install a bootloader]].&lt;br /&gt;
# [[#Finishing Steps|Complete final steps]].&lt;br /&gt;
# [[#Restart your system|Reboot and enjoy]].&lt;br /&gt;
&lt;br /&gt;
=== Live CD ===&lt;br /&gt;
Funtoo doesn't provide an &amp;quot;official&amp;quot; Funtoo Live CD, but there are plenty of good ones out there to choose from. A great choice is the Gentoo-based [http://www.sysresccd.org/ SystemRescueCd] as it contains lots of tools and utilities and supports both 32-bit and 64-bit systems.&lt;br /&gt;
&lt;br /&gt;
It is also possible to install Funtoo Linux using many other Linux-based live CDs. Generally, any modern bootable Linux live CD or live USB media will work. See [[Requirements|requirements]] for an overview of what the Live Media must provide to allow a problem-free install of Funtoo Linux.&lt;br /&gt;
&lt;br /&gt;
To begin a Funtoo Linux installation, download and burn [http://www.sysresccd.org/ SystemRescueCd] or your preferred live media. Insert it into your disc drive, and boot from it. If using SystemRescueCd, '''be sure to select the &amp;lt;tt&amp;gt;rescue64&amp;lt;/tt&amp;gt; kernel at the boot menu if you are installing a 64-bit system'''. By default, SystemRescueCd boots in 32-bit mode.&lt;br /&gt;
&lt;br /&gt;
=== Prepare Hard Disk ===&lt;br /&gt;
==== Partitions ====&lt;br /&gt;
&lt;br /&gt;
Funtoo Linux fully supports traditional MBR partitions, as well as newer GPT/GUID partition formats. Funtoo Linux recommends the use of the GPT partitioning scheme, since it is newer and more flexible. Here are the various trade-offs between each partitioning scheme:&lt;br /&gt;
&lt;br /&gt;
===== GPT Partitions =====&lt;br /&gt;
&lt;br /&gt;
* Newer, preferred format for Linux systems&lt;br /&gt;
* Supports 2 TB+ hard drives for booting&lt;br /&gt;
* Supports hundreds of partitions per disk of any size&lt;br /&gt;
* Requires legacy BIOS boot partition (~32 MB) to be created if system does not use EFI&lt;br /&gt;
* Requires bootloader with support for GPT such as GRUB 2, EXTLINUX, or a patched version of GRUB Legacy&lt;br /&gt;
&lt;br /&gt;
===== MBR Partitions =====&lt;br /&gt;
&lt;br /&gt;
* Legacy, DOS partitioning scheme&lt;br /&gt;
* Only 4 primary partitions per disk; after that, you must use &amp;quot;logical&amp;quot; partitions&lt;br /&gt;
* Does not support 2 TB+ disks for booting&lt;br /&gt;
* Compatible with certain problematic systems (such as the HP ProBook 4520)&lt;br /&gt;
* Dual-boot with Windows for BIOS systems (Windows handle GPT only on true EFI systems, whatever version it is)&lt;br /&gt;
* Multiple boot loader options, e.g. GRUB 2, GRUB Legacy, lilo&lt;br /&gt;
&lt;br /&gt;
{{fancyimportant|If you plan to use partitions of 2 TB or greater, you ''must'' partition using the GPT/GUID format. Also note that there are small percentage of PCs that will not boot properly with GPT. For these systems, using MBR partitions or a primary drive with an MBR partition may be required in order to boot.}}&lt;br /&gt;
&lt;br /&gt;
==== Partitioning Using gdisk ====&lt;br /&gt;
&lt;br /&gt;
===== Notes Before We Begin =====&lt;br /&gt;
&lt;br /&gt;
These install instructions assume you are installing Funtoo Linux to an empty hard disk using GUID partition tables (GPT). If you are installing Funtoo Linux on a machine where another OS is installed, or there is an existing Linux distribution on your system that you want to keep, then you will need to adapt these instructions to suit your needs.&lt;br /&gt;
&lt;br /&gt;
If you are going to create a legacy MBR partition table instead of GUID/GPT, you will use the &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt; command instead of &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;, and you will not need to create the GRUB boot loader partition. See the table under [[#Partitioning Recommendations|Partitioning Recommendations]], in particular the &lt;br /&gt;
'''MBR Block Device (&amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;)''' and '''MBR Code''' columns. &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt; works just like &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;, but creates legacy MBR partition tables instead of the newer GPT/GUID partition tables.&lt;br /&gt;
&lt;br /&gt;
Advanced users may be interested in the following topics:&lt;br /&gt;
&lt;br /&gt;
* [[GUID Booting Guide]]&lt;br /&gt;
* [[Rootfs over encrypted lvm]]&lt;br /&gt;
* [[Rootfs over encrypted lvm over raid-1 on GPT]]&lt;br /&gt;
&lt;br /&gt;
===== Using gdisk =====&lt;br /&gt;
&lt;br /&gt;
The first step after booting SystemRescueCd is to use &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; to create GPT (also known as GUID) partitions, specifying the disk you want to use, which is typically &amp;lt;tt&amp;gt;/dev/sda&amp;lt;/tt&amp;gt;, the first disk in the system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;# ##i##gdisk /dev/sda&amp;lt;/console&amp;gt;&lt;br /&gt;
You should find &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; very similar to &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;. Here is the partition table we want to end up with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;Command (? for help): ##i##p&lt;br /&gt;
Disk /dev/sda: 234441648 sectors, 111.8 GiB&lt;br /&gt;
Logical sector size: 512 bytes&lt;br /&gt;
Disk identifier (GUID): A4E5208A-CED3-4263-BB25-7147DC426931&lt;br /&gt;
Partition table holds up to 128 entries&lt;br /&gt;
First usable sector is 34, last usable sector is 234441614&lt;br /&gt;
Partitions will be aligned on 2048-sector boundaries&lt;br /&gt;
Total free space is 2014 sectors (1007.0 KiB)&lt;br /&gt;
&lt;br /&gt;
Number  Start (sector)    End (sector)  Size       Code  Name&lt;br /&gt;
   1            2048          206847   500.0 MiB   8300  Linux filesystem&lt;br /&gt;
   2          206848          272383   32.0 MiB    EF02  BIOS boot partition&lt;br /&gt;
   3          272384         8660991   4.0 GiB     8200  Linux swap&lt;br /&gt;
   4         8660992       234441614   107.7 GiB   8300  Linux filesystem&lt;br /&gt;
&lt;br /&gt;
Command (? for help): &amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Above, you'll see that we have a 500 MiB boot partition, a 32 MiB &amp;quot;BIOS boot partition&amp;quot; (also known as the GRUB boot loader partition), 4 GiB of swap, and the remaining disk used by a 107.7 GiB root partition.&lt;br /&gt;
&lt;br /&gt;
===== For new &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; users =====&lt;br /&gt;
&lt;br /&gt;
These partitions were created using the &amp;quot;&amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt;&amp;quot; command from within &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;. The &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; commands to create the partition table above are as follows. Adapt sizes as necessary, although these defaults will work for most users. The partition codes entered below can be found in the [[#Partitioning Recommendations|Partitioning Recommendations]] table below, in the GPT Code column.&lt;br /&gt;
&lt;br /&gt;
Within &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;, follow these steps:&lt;br /&gt;
&lt;br /&gt;
'''Create Partition 1''' (boot):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##n ↵&lt;br /&gt;
Partition Number: ##i##1 ↵&lt;br /&gt;
First sector: ##i##↵&lt;br /&gt;
Last sector: ##i##+500M ↵&lt;br /&gt;
Hex Code: ##i##↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Create Partition 2''' (GRUB):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##n ↵&lt;br /&gt;
Partition Number: ##i##2 ↵&lt;br /&gt;
First sector: ##i##↵&lt;br /&gt;
Last sector: ##i##+32M ↵&lt;br /&gt;
Hex Code: ##i##EF02 ↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Create Partition 3''' (swap):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##n ↵&lt;br /&gt;
Partition Number: ##i##3 ↵&lt;br /&gt;
First sector: ##i##↵&lt;br /&gt;
Last sector: ##i##+4G ↵&lt;br /&gt;
Hex Code: ##i##8200 ↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Create Partition 4''' (root):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##n ↵&lt;br /&gt;
Partition Number: ##i##4 ↵&lt;br /&gt;
First sector: ##i##↵&lt;br /&gt;
Last sector: ##i##↵##!i## (for rest of disk)&lt;br /&gt;
Hex Code: ##i##↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Along the way, you can type &amp;quot;&amp;lt;tt&amp;gt;p&amp;lt;/tt&amp;gt;&amp;quot; and hit Enter to view your current partition table. If you make a mistake, you can type &amp;quot;&amp;lt;tt&amp;gt;d&amp;lt;/tt&amp;gt;&amp;quot; to delete an existing partition that you created. When you are satisfied with your partition setup, type &amp;quot;&amp;lt;tt&amp;gt;w&amp;lt;/tt&amp;gt;&amp;quot; to write your configuration to disk:&lt;br /&gt;
&lt;br /&gt;
'''Write Partition Table To Disk''':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
Command: ##i##w ↵&lt;br /&gt;
Do you want to proceed? (Y/N): ##i##Y ↵&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The partition table will now be written to disk and &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; will close.&lt;br /&gt;
&lt;br /&gt;
Now, your GPT/GUID partitions have been created, and will show up as the following ''block devices'' under Linux:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;/dev/sda1&amp;lt;/tt&amp;gt;, which will be used to hold the &amp;lt;tt&amp;gt;/boot&amp;lt;/tt&amp;gt; filesystem, &lt;br /&gt;
* &amp;lt;tt&amp;gt;/dev/sda2&amp;lt;/tt&amp;gt;, which will be used directly by the new GRUB,&lt;br /&gt;
* &amp;lt;tt&amp;gt;/dev/sda3&amp;lt;/tt&amp;gt;, which will be used for swap space, and &lt;br /&gt;
* &amp;lt;tt&amp;gt;/dev/sda4&amp;lt;/tt&amp;gt;, which will hold your root filesystem.&lt;br /&gt;
&lt;br /&gt;
===== For Previous fdisk users =====&lt;br /&gt;
&lt;br /&gt;
If you have installed Gentoo Linux before, the one thing that is likely new to you here is the GRUB boot loader partition, which is listed as &amp;quot;BIOS boot partition&amp;quot; within &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;. This partition is required for GRUB 2 to boot GPT/GUID boot disks. What is it? In GRUB-speak, this partition is essentially the location of the meat of GRUB's boot loading code. If you've used GRUB Legacy in the past, this partition is where the new GRUB stores the equivalent of the &amp;lt;tt&amp;gt;stage1_5&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;stage2&amp;lt;/tt&amp;gt; files in legacy GRUB. Since GPT-based partition tables have less dead space at the beginning of the disk than their MBR equivalents, an explicitly defined partition of code &amp;lt;tt&amp;gt;EF02&amp;lt;/tt&amp;gt; is required to hold the guts of the boot loader.&lt;br /&gt;
&lt;br /&gt;
In all other respects, the partition table is similar to that which you might create for an MBR-based disk during a Gentoo Linux installation. We have a boot and a root partition with code &amp;lt;tt&amp;gt;0700&amp;lt;/tt&amp;gt;, and a Linux swap partition with code &amp;lt;tt&amp;gt;8200&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===== Partitioning Recommendations =====&lt;br /&gt;
&lt;br /&gt;
Below are our partitioning recommendations in table form. For GPT-based partitions, use the GPT Block Device and GPT Code columns with &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;. For legacy MBR-based partitions, use the MBR Block Device and MBR code columns with &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{| {{table}} &lt;br /&gt;
!Partition&lt;br /&gt;
!Size&lt;br /&gt;
!MBR Block Device (&amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;)&lt;br /&gt;
!GPT Block Device (&amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt;)&lt;br /&gt;
!Filesystem&lt;br /&gt;
!MBR Code&lt;br /&gt;
!GPT Code&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/boot&amp;lt;/tt&amp;gt;&lt;br /&gt;
|500 MB&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda1&amp;lt;/tt&amp;gt;&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda1&amp;lt;/tt&amp;gt;&lt;br /&gt;
|ext2&lt;br /&gt;
|83&lt;br /&gt;
|8300&lt;br /&gt;
|-&lt;br /&gt;
|GRUB boot loader partition&lt;br /&gt;
|32 MB&lt;br /&gt;
| ''not required for MBR''&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda2&amp;lt;/tt&amp;gt;&lt;br /&gt;
|For GPT/GUID only, skip for MBR - no filesystem.&lt;br /&gt;
|''N/A''&lt;br /&gt;
|EF02&lt;br /&gt;
|-&lt;br /&gt;
|swap&lt;br /&gt;
|2x RAM for low-memory systems and production servers; otherwise 2GB.&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda2&amp;lt;/tt&amp;gt;&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda3&amp;lt;/tt&amp;gt;&lt;br /&gt;
|swap (default)&lt;br /&gt;
|82&lt;br /&gt;
|8200&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/&amp;lt;/tt&amp;gt; (root)&lt;br /&gt;
|Rest of the disk, minimum of 10GB.&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda3&amp;lt;/tt&amp;gt;&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda4&amp;lt;/tt&amp;gt;&lt;br /&gt;
|XFS recommended, alternatively ext4&lt;br /&gt;
|83&lt;br /&gt;
|8300&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/home&amp;lt;/tt&amp;gt; (optional)	&lt;br /&gt;
|User storage and media. Typically most of the disk.&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda4&amp;lt;/tt&amp;gt; (if created)&lt;br /&gt;
|&amp;lt;tt&amp;gt;/dev/sda5&amp;lt;/tt&amp;gt; (if created)&lt;br /&gt;
|XFS recommended, alternatively ext4&lt;br /&gt;
|83&lt;br /&gt;
|8300&lt;br /&gt;
|-&lt;br /&gt;
| LVM (optional)&lt;br /&gt;
| If you want to create an LVM volume.&lt;br /&gt;
| &amp;lt;tt&amp;gt;/dev/sda4&amp;lt;/tt&amp;gt; (PV, if created)&lt;br /&gt;
| &amp;lt;tt&amp;gt;/dev/sda5&amp;lt;/tt&amp;gt; (PV, if created)&lt;br /&gt;
| LVM PV&lt;br /&gt;
| 8E&lt;br /&gt;
| 8E00&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Creating filesystems ====&lt;br /&gt;
&lt;br /&gt;
Before your newly-created partitions can be used, the block devices need to be initialized with filesystem ''metadata''. This process is known as ''creating a filesystem'' on the block devices. After filesystems are created on the block devices, they can be mounted and used to store files.&lt;br /&gt;
&lt;br /&gt;
You will not create a filesystem on your swap partition, but will initialize it using the &amp;lt;tt&amp;gt;mkswap&amp;lt;/tt&amp;gt; command so that it can be used as disk-based virtual memory. Then we'll run the &amp;lt;tt&amp;gt;swapon&amp;lt;/tt&amp;gt; command to make your newly-initialized swap space active within the live CD environment, in case it is needed during the rest of the install process.&lt;br /&gt;
&lt;br /&gt;
Note that we will not create a filesystem on the GRUB boot loader partition, as GRUB writes binary data directly to that partition when the boot loader is installed, which we'll do later.&lt;br /&gt;
&lt;br /&gt;
You can see the commands you will need to type below. Like the rest of this document, it assumes that you are using a GPT partitioning scheme. If you are using MBR, your root filesystem will likely be created on &amp;lt;tt&amp;gt;/dev/sda3&amp;lt;/tt&amp;gt; instead and you will need to adjust the target block devices. If you are following our recommendations, then simply do this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mke2fs -t ext2 /dev/sda1 &lt;br /&gt;
# ##i##mkfs.xfs /dev/sda4&lt;br /&gt;
# ##i##mkswap /dev/sda3&lt;br /&gt;
# ##i##swapon /dev/sda3&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Mounting filesystems ====&lt;br /&gt;
&lt;br /&gt;
Mount the newly-created filesystems as follows, creating &amp;lt;tt&amp;gt;/mnt/funtoo&amp;lt;/tt&amp;gt; as the installation mount point:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir /mnt/funtoo&lt;br /&gt;
# ##i##mount /dev/sda4 /mnt/funtoo&lt;br /&gt;
# ##i##mkdir /mnt/funtoo/boot&lt;br /&gt;
# ##i##mount /dev/sda1 /mnt/funtoo/boot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Optionally, if you have a separate filesystem for &amp;lt;tt&amp;gt;/home&amp;lt;/tt&amp;gt; or anything else:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##mkdir /mnt/funtoo/home&lt;br /&gt;
# ##i##mount /dev/sda5 /mnt/funtoo/home&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;/var/tmp&amp;lt;/tt&amp;gt; on a separate filesystem, be sure to change the permissions of the mount point to be globally-writeable after mounting, as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##chmod 1777 /mnt/funtoo/tmp&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing the Stage 3 tarball ===&lt;br /&gt;
==== Stage 3 tarball ====&lt;br /&gt;
&lt;br /&gt;
After creating filesystems, the next step is downloading the initial Stage 3 tarball. The Stage 3 is a pre-compiled system used as a starting point to install Funtoo Linux. Visit the [[Download]] page and copy the URL to the Stage 3 tarball you want to use. We will download it soon.&lt;br /&gt;
&lt;br /&gt;
{{fancyimportant|If your system's date and time are too far off (typically by months or years,) then it may prevent Portage from properly downloading source tarballs. This is because some of our sources are downloaded via HTTPS, which use SSL certificates and are marked with an activation and expiration date.}}&lt;br /&gt;
&lt;br /&gt;
Now is a good time to verify the date and time are correctly set to UTC. Use the &amp;lt;tt&amp;gt;date&amp;lt;/tt&amp;gt; command to verify the date and time:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##date&lt;br /&gt;
Fri Jul 15 19:47:18 UTC 2011&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the date and/or time need to be corrected, do so using &amp;lt;tt&amp;gt;date MMDDhhmmYYYY&amp;lt;/tt&amp;gt;, keeping in mind &amp;lt;tt&amp;gt;hhmm&amp;lt;/tt&amp;gt; are in 24-hour format. The example below changes the date and time to &amp;quot;July 16th, 2011 @ 8:00PM&amp;quot; UTC:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##date 071620002011&lt;br /&gt;
Fri Jul 16 20:00:00 UTC 2011&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you are in your Funtoo Linux root filesystem, use &amp;lt;tt&amp;gt;wget&amp;lt;/tt&amp;gt; to download the Stage 3 tarball you have chosen from the [[Download]] page to use as the basis for your new Funtoo Linux system. It should be saved to the &amp;lt;tt&amp;gt;/mnt/funtoo&amp;lt;/tt&amp;gt; directory as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd /mnt/funtoo&lt;br /&gt;
# ##i##wget http://ftp.osuosl.org/pub/funtoo/funtoo-current/x86-64bit/generic_64/stage3-latest.tar.xz&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that 64-bit systems can run 32-bit or 64-bit stages, but 32-bit systems can only run 32-bit stages. Make sure that you select a Stage 3 build that is appropriate for your CPU. If you are not certain, it is a safe bet to choose the &amp;lt;tt&amp;gt;generic_64&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;generic_32&amp;lt;/tt&amp;gt; stage. Consult the [[Download]] page for more information.&lt;br /&gt;
&lt;br /&gt;
Once the stage is downloaded, extract the contents with the following command, substituting in the actual name of your stage 3 tarball:&lt;br /&gt;
&amp;lt;console&amp;gt;# ##i##tar xJpf stage3-latest.tar.xz&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancyimportant|It is very important to use &amp;lt;tt&amp;gt;tar&amp;lt;/tt&amp;gt;'s &amp;quot;&amp;lt;tt&amp;gt;p&amp;lt;/tt&amp;gt;&amp;quot; option when extracting the Stage 3 tarball - it tells &amp;lt;tt&amp;gt;tar&amp;lt;/tt&amp;gt; to ''preserve'' any permissions and ownership that exist within the archive. Without this option, your Funtoo Linux filesystem permissions will be incorrect.}}&lt;br /&gt;
&lt;br /&gt;
=== Chroot into Funtoo ===&lt;br /&gt;
Before chrooting into your new system, there's a few things that need to be done first. You will need to mount /proc and /dev inside your new system. Use the following commands:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cd /mnt/funtoo&lt;br /&gt;
# ##i##mount --bind /proc proc&lt;br /&gt;
# ##i##mount --bind /dev dev&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll also want to copy over &amp;lt;tt&amp;gt;resolv.conf&amp;lt;/tt&amp;gt; in order to have proper DNS name resolution from inside the chroot:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##cp /etc/resolv.conf etc&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can chroot into your new system. Use &amp;lt;tt&amp;gt;env&amp;lt;/tt&amp;gt; before &amp;lt;tt&amp;gt;chroot&amp;lt;/tt&amp;gt; to ensure that no environment variables from the installation media are used by your new system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##env -i HOME=/root TERM=$TERM chroot . bash -l&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancynote|Users of live CDs with 64-bit kernels: Some software may use &amp;lt;tt&amp;gt;uname -r&amp;lt;/tt&amp;gt; to check whether the system is 32 or 64-bit. You may want append linux32 to the chroot command as a workaround, but it's generally not needed.}}&lt;br /&gt;
&lt;br /&gt;
{{fancyimportant|If you receive the error &amp;quot;&amp;lt;tt&amp;gt;chroot: failed to run command `/bin/bash': Exec format error&amp;lt;/tt&amp;gt;&amp;quot;, it is probably because you are running a 32-bit kernel and trying to execute 64-bit code. SystemRescueCd boots with a 32-bit kernel by default.}}&lt;br /&gt;
&lt;br /&gt;
It's also a good idea to change the default command prompt while inside the chroot. This will avoid confusion if you have to change terminals. Use this command:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##export PS1=&amp;quot;(chroot) $PS1&amp;quot;&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Congratulations! You are now chrooted inside a Funtoo Linux system. Now it's time to get Funtoo Linux properly configured so that Funtoo Linux will boot successfully when your system is restarted.&lt;br /&gt;
&lt;br /&gt;
=== Downloading the Portage tree ===&lt;br /&gt;
&lt;br /&gt;
Now it's time to install a copy of the Portage repository, which contains package scripts (ebuilds) that tell portage how to build and install thousands of different software packages. To create the Portage repository, simply run &amp;lt;tt&amp;gt;emerge --sync&amp;lt;/tt&amp;gt; from within the chroot. This will automatically clone the portage tree from [http://github.com/ GitHub]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##emerge --sync&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{fancynote|For an alternative way to do this, see [[Installing Portage From Snapshot]].}}&lt;br /&gt;
&lt;br /&gt;
=== Configuring your system ===&lt;br /&gt;
As is expected from a Linux distribution, Funtoo Linux has its share of configuration files. The one file you are absolutely required to edit in order to ensure that Funtoo Linux boots successfully is &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt;. The others are optional. Here are a list of files that you should consider editing:&lt;br /&gt;
&lt;br /&gt;
{| {{table}}&lt;br /&gt;
!File&lt;br /&gt;
!Do I need to change it?&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt;&lt;br /&gt;
|'''YES - required'''&lt;br /&gt;
|Mount points for all filesystems to be used at boot time. This file must reflect your disk partition setup. We'll guide you through modifying this file below.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/localtime&amp;lt;/tt&amp;gt;&lt;br /&gt;
|''Maybe - recommended''&lt;br /&gt;
|Your timezone, which will default to UTC if not set. This should be a symbolic link to something located under /usr/share/zoneinfo (e.g. /usr/share/zoneinfo/America/Montreal) &lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/make.conf&amp;lt;br/&amp;gt;/etc/portage/make.conf&amp;amp;nbsp;(new&amp;amp;nbsp;location)&amp;lt;/tt&amp;gt;&lt;br /&gt;
|''Maybe - recommended''&lt;br /&gt;
|Parameters used by gcc (compiler), portage, and make. It's a good idea to set MAKEOPTS. This is covered later in this document.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/conf.d/hostname&amp;lt;/tt&amp;gt;&lt;br /&gt;
|''Maybe - recommended''&lt;br /&gt;
|Used to set system hostname. Set to the fully-qualified (with dots) name. Defaults to &amp;lt;tt&amp;gt;localhost&amp;lt;/tt&amp;gt; if not set.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/hosts&amp;lt;/tt&amp;gt;&lt;br /&gt;
|''No''&lt;br /&gt;
| You no longer need to manually set the hostname in this file. This file is automatically generated by &amp;lt;tt&amp;gt;/etc/init.d/hostname&amp;lt;/tt&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/conf.d/keymaps&amp;lt;/tt&amp;gt;&lt;br /&gt;
|Optional&lt;br /&gt;
|Keyboard mapping configuration file (for console pseudo-terminals). Set if you have a non-US keyboard. See [[Funtoo Linux Localization]].&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/conf.d/hwclock&amp;lt;/tt&amp;gt;&lt;br /&gt;
|Optional&lt;br /&gt;
|How the time of the battery-backed hardware clock of the system is interpreted (UTC or local time). Linux uses the battery-backed hardware clock to initialize the system clock when the system is booted.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;/etc/conf.d/modules&amp;lt;/tt&amp;gt;&lt;br /&gt;
|Optional&lt;br /&gt;
|Kernel modules to load automatically at system startup. Typically not required. See [[Additional Kernel Resources]] for more info.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;tt&amp;gt;profiles&amp;lt;/tt&amp;gt;&lt;br /&gt;
|Optional&lt;br /&gt;
|Some useful portage settings that may help speed up intial configuration.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If you're installing an English version of Funtoo Linux, you're in luck as most of the configuration files can be used as-is. If you're installing for another locale, don't worry. We will walk you through the necessary configuration steps on the [[Funtoo Linux Localization]] page, and if needed, there's always plenty of friendly, helpful support. (See [[#Community portal|Community]])&lt;br /&gt;
&lt;br /&gt;
Let's go ahead and see what we have to do. Use &amp;lt;tt&amp;gt;nano -w &amp;lt;name_of_file&amp;gt;&amp;lt;/tt&amp;gt; to edit files -- the &amp;quot;&amp;lt;tt&amp;gt;-w&amp;lt;/tt&amp;gt;&amp;quot; disables word-wrapping, which is handy when editing configuration files. You can copy and paste from the examples.&lt;br /&gt;
&lt;br /&gt;
{{fancywarning|It's important to edit your &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; file before you reboot! You will need to modify both the &amp;quot;fs&amp;quot; and &amp;quot;type&amp;quot; columns to match the settings for your partitions and filesystems that you created with &amp;lt;tt&amp;gt;gdisk&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;fdisk&amp;lt;/tt&amp;gt;. Skipping this step may prevent Funtoo Linux from booting successfully.}}&lt;br /&gt;
&lt;br /&gt;
==== /etc/fstab ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; is used by the &amp;lt;tt&amp;gt;mount&amp;lt;/tt&amp;gt; command which is ran when your system boots. Statements of this file inform &amp;lt;tt&amp;gt;mount&amp;lt;/tt&amp;gt; about partitions to be mounted and how they are mounted. In order for the system to boot properly, you must edit &amp;lt;tt&amp;gt;/etc/fstab&amp;lt;/tt&amp;gt; and ensure that it reflects the partition configuration you used earlier:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##nano -w /etc/fstab&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can use arrow keys to move around and hit Control-X to exit. If you want to save your changes, type &amp;quot;&amp;lt;tt&amp;gt;Y&amp;lt;/tt&amp;gt;&amp;quot; when asked if you want to save the modified buffer, or hit Control-O before closing &amp;lt;tt&amp;gt;nano&amp;lt;/tt&amp;gt;. Otherwise your changes will be discarded.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# The root filesystem should have a pass number of either 0 or 1.&lt;br /&gt;
# All other filesystems should have a pass number of 0 or greater than 1.&lt;br /&gt;
#&lt;br /&gt;
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.&lt;br /&gt;
#&lt;br /&gt;
# See the manpage fstab(5) for more information.&lt;br /&gt;
#&lt;br /&gt;
# &amp;lt;fs&amp;gt;			&amp;lt;mountpoint&amp;gt;	&amp;lt;type&amp;gt;		&amp;lt;opts&amp;gt;		         &amp;lt;dump/pass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/dev/sda1		/boot		ext2		noatime  	         1 2&lt;br /&gt;
/dev/sda3		none		swap		sw		         0 0&lt;br /&gt;
/dev/sda4		/		xfs		noatime		         0 1&lt;br /&gt;
#/dev/cdrom		/mnt/cdrom	auto		noauto,ro	         0 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== /etc/localtime ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;/etc/localtime&amp;lt;/tt&amp;gt; is used to specify the timezone that your machine is in, and defaults to UTC. If you would like your Funtoo Linux system to use local time, you should replace &amp;lt;tt&amp;gt;/etc/localtime&amp;lt;/tt&amp;gt; with a symbolic link to the timezone that you wish to use. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(chroot) # ln -sf /usr/share/zoneinfo/America/Montreal /etc/localtime&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above sets the timezone to Eastern Time Canada. Go to &amp;lt;tt&amp;gt;/usr/share/zoneinfo&amp;lt;/tt&amp;gt; to see which values to use.&lt;br /&gt;
&lt;br /&gt;
==== /etc/portage/make.conf ====&lt;br /&gt;
&lt;br /&gt;
{{fancynote|This file may also be found at /etc/make.conf. /etc/portage/make.conf is the new location.}}&lt;br /&gt;
&lt;br /&gt;
This file contains something similar to the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ACCEPT_KEYWORDS=&amp;quot;~amd64&amp;quot;&lt;br /&gt;
CHOST=&amp;quot;x86_64-pc-linux-gnu&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;ACCEPT_KEYWORDS&amp;lt;/tt&amp;gt; defines what branch of the package tree to be used. If you are using funtoo-current, it will be prefixed with a tilde ('&amp;lt;tt&amp;gt;~&amp;lt;/tt&amp;gt;'). This will make more recent ebuilds visible to Portage. You should typically not change this value, and you should also not change &amp;lt;tt&amp;gt;CHOST&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
MAKEOPTS can be used to define how many parallel compilations should occur when you compile a package, which can speed up compilation significantly. A rule of thumb is the number of CPUs (or CPU threads) in your system plus one. If for example you have a dual core processor without [[wikipedia:Hyper-threading|hyper-threading]], then you would set MAKEOPTS to 3:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MAKEOPTS=&amp;quot;-j3&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are unsure about how many processors/threads you have then use /proc/cpuinfo to help you.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##grep &amp;quot;processor&amp;quot; /proc/cpuinfo | wc -l&lt;br /&gt;
16&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set MAKEOPTS to this number plus one:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MAKEOPTS=&amp;quot;-j17&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
USE flags define what functionality is enabled when packages are built. It is not recommended to add a lot of them during installation; you should wait until you have a working, bootable system before changing your USE flags. A USE flag prefixed with a minus (&amp;quot;&amp;lt;tt&amp;gt;-&amp;lt;/tt&amp;gt;&amp;quot;) sign tells Portage not to use the flag when compiling.  A Funtoo guide to USE flags will be available in the future. For now, you can find out more information about USE flags in the [http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=2&amp;amp;chap=2 Gentoo Handbook].&lt;br /&gt;
&lt;br /&gt;
LINGUAS tells Portage which local language to compile the system and applications in (those who use LINGUAS variable like OpenOffice). It is not usually necessary to set this if you use English. If you want another language such as French (fr) or German (de), set LINGUAS appropriately:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LINGUAS=&amp;quot;fr&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== /etc/conf.d/hwclock ====&lt;br /&gt;
If you dual-boot with Windows, you'll need to edit this file and change '''clock''' to '''local''', because Windows will set your hardware clock to local time every time you boot Windows. Otherwise you normally wouldn't need to edit this file.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##nano -w /etc/conf.d/hwclock&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Localization ====&lt;br /&gt;
&lt;br /&gt;
By default, Funtoo Linux is configured with Unicode (UTF-8) enabled, and for the US English locale and keyboard. If you would like to configure your system to use a non-English locale or keyboard, see [[Funtoo Linux Localization]].&lt;br /&gt;
&lt;br /&gt;
==== Profiles ====&lt;br /&gt;
&lt;br /&gt;
[[Funtoo 1.0 Profile|Funtoo profiles]] are used to bring customization to your systems, that much quicker, think of it like not having to add two or three or ten things to your make.conf or package.use file. There are 4 basic profile types: arch, build, [[Flavors and Mix-ins|flavor, and mix-ins]]. With the exception of mix-ins you will pick one from each category. Thankfully you cannot change your architecture. &lt;br /&gt;
&lt;br /&gt;
* build is essentially the stability of your system, &amp;quot;How bleeding edge are you?&amp;quot; experimental will unmask a number of masked packages. It's recommended, that you stay with current, which has keyword &amp;lt;tt&amp;gt;unmask&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* flavor is some default packages, desktop is essentially the X server, and workstation includes cups/printing.&lt;br /&gt;
* mix-ins are options for adding in things, like X, sound or gnome.&lt;br /&gt;
&lt;br /&gt;
Remember profiles are inherited, workstation inherits desktop and desktop inherits X and audio, and so forth.&lt;br /&gt;
&lt;br /&gt;
To view installed profiles:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##eselect profile list&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding a profile is simple:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##eselect profile add 7&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
remember if you add by string; add a 'gentoo:' to the beginning of the profile name ie:&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i## eselect profile add gentoo:funtoo/1.0/linux-gnu/mix-ins/console-extras&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring and installing the Linux kernel ===&lt;br /&gt;
&lt;br /&gt;
Now it's time to build and install a Linux kernel, which is the heart of any Funtoo Linux system. In the past, the process of creating a kernel that actually booted your system could be time-consuming and require a great deal of trial and error. Fortunately, Funtoo Linux offers an option to automatically build a kernel for you that will boot nearly all systems.&lt;br /&gt;
&lt;br /&gt;
If you are unfamiliar with how to manually configure your own kernel, or you simply want to get your system up and running quickly, you can emerge &amp;lt;tt&amp;gt;debian-sources&amp;lt;/tt&amp;gt; with the &amp;lt;tt&amp;gt;binary&amp;lt;/tt&amp;gt; USE flag set, which will automatically build the kernel and an initrd that will boot nearly all Funtoo Linux systems. This kernel is based on a linux-3.2 LTS official debian kernel package and is an easy way to get your system up and running relatively quickly.&lt;br /&gt;
&lt;br /&gt;
{{fancyimportant|&amp;lt;tt&amp;gt;debian-sources&amp;lt;/tt&amp;gt; with &amp;lt;tt&amp;gt;binary&amp;lt;/tt&amp;gt; USE flag requires at least 12GB in /var/tmp}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##echo &amp;quot;sys-kernel/debian-sources binary&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.use&lt;br /&gt;
(chroot) # ##i##emerge debian-sources&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
All done!&lt;br /&gt;
&lt;br /&gt;
{{fancynote|NVIDIA card users: the &amp;lt;tt&amp;gt;binary&amp;lt;/tt&amp;gt; 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 &amp;lt;tt&amp;gt;/etc/modprobe.d/&amp;lt;/tt&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
For an overview of other kernel options for Funtoo Linux, see [[Funtoo Linux Kernels]]. Also be sure to see [[:Category:Hardware Compatibility|hardware compatibility]] information. We have compiled a very good reference for [[Dell PowerEdge 11G Servers]] that includes kernel compatibility information as well.&lt;br /&gt;
&lt;br /&gt;
The next step is to configure your boot loader so that your new kernel loads when the system boots.&lt;br /&gt;
&lt;br /&gt;
=== Installing a Bootloader ===&lt;br /&gt;
&lt;br /&gt;
==== Installing Grub ====&lt;br /&gt;
&lt;br /&gt;
The boot loader is responsible for loading the kernel from disk when your computer boots. For new installations, GRUB 2 and Funtoo's boot-update tool should be used as a boot loader. GRUB supports both GPT/GUID and legacy MBR partitioning schemes.&lt;br /&gt;
&lt;br /&gt;
To use this recommended boot method, first emerge &amp;lt;tt&amp;gt;boot-update&amp;lt;/tt&amp;gt;. This will also cause &amp;lt;tt&amp;gt;grub-2&amp;lt;/tt&amp;gt; to be merged, since it is a dependency of &amp;lt;tt&amp;gt;boot-update&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##emerge boot-update&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, edit &amp;lt;tt&amp;gt;/etc/boot.conf&amp;lt;/tt&amp;gt; and specify &amp;quot;&amp;lt;tt&amp;gt;Funtoo Linux genkernel&amp;lt;/tt&amp;gt;&amp;quot; as the &amp;lt;tt&amp;gt;default&amp;lt;/tt&amp;gt; setting at the top of the file, replacing &amp;lt;tt&amp;gt;&amp;quot;Funtoo Linux&amp;quot;&amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;/etc/boot.conf&amp;lt;/tt&amp;gt; should now look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
boot {&lt;br /&gt;
        generate grub&lt;br /&gt;
        default &amp;quot;Funtoo Linux genkernel&amp;quot;&lt;br /&gt;
        timeout 3 &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Funtoo Linux&amp;quot; {&lt;br /&gt;
        kernel bzImage[-v]&lt;br /&gt;
        # params += nomodeset&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Funtoo Linux genkernel&amp;quot; {&lt;br /&gt;
        kernel kernel[-v]&lt;br /&gt;
        initrd initramfs[-v]&lt;br /&gt;
        params += real_root=auto &lt;br /&gt;
        # params += nomodeset&lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Please read &amp;lt;tt&amp;gt;man boot.conf&amp;lt;/tt&amp;gt; for further details.&lt;br /&gt;
&lt;br /&gt;
===== Running grub-install and boot-update =====&lt;br /&gt;
&lt;br /&gt;
Finally, we will need to actually install the GRUB boot loader to your disk, and also run &amp;lt;tt&amp;gt;boot-update&amp;lt;/tt&amp;gt; which will generate your boot loader configuration file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##grub-install --no-floppy /dev/sda&lt;br /&gt;
(chroot) # ##i##boot-update&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You only need to run &amp;lt;tt&amp;gt;grub-install&amp;lt;/tt&amp;gt; when you first install Funtoo Linux, but you need to re-run &amp;lt;tt&amp;gt;boot-update&amp;lt;/tt&amp;gt; every time you modify your &amp;lt;tt&amp;gt;/etc/boot.conf&amp;lt;/tt&amp;gt; file, so your changes are applied on next boot.&lt;br /&gt;
&lt;br /&gt;
OK - your system should be ready to boot! Well, there are a few more loose ends...&lt;br /&gt;
&lt;br /&gt;
==== Installing Syslinux/Extlinux ====&lt;br /&gt;
&lt;br /&gt;
An alternate Bootloader is Extlinux, for installing it see the [[Extlinux|extlinux Guide]].&lt;br /&gt;
&lt;br /&gt;
=== Configuring your network ===&lt;br /&gt;
&lt;br /&gt;
It's important to ensure that you will be able to connect to your local-area network after you reboot into Funtoo Linux. There are three approaches you can use for configuring your network: NetworkManager, dhcpcd, and the [[Funtoo Linux Networking]] scripts. Here's how to choose which one to use based on the type of network you want to set up.&lt;br /&gt;
&lt;br /&gt;
==== Wi-Fi ====&lt;br /&gt;
&lt;br /&gt;
For laptop/mobile systems where you will be using Wi-Fi and connecting to various networks, NetworkManager is strongly recommended. The Funtoo version of NetworkManager is fully functional even from the command-line, so you can use it even without X or without the Network Manager applet. Here are the steps involved in setting up NetworkManager:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##emerge linux-firmware&lt;br /&gt;
# ##i##emerge networkmanager&lt;br /&gt;
# ##i##rc-update add NetworkManager default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Above, we installed linux-firmware which contains a complete collection of available firmware for many hardware devices including Wi-Fi adapters, plus NetworkManager to manage our network connection. Then we added NetworkManager to the &amp;lt;tt&amp;gt;default&amp;lt;/tt&amp;gt; runlevel so it will start when Funtoo Linux boots.&lt;br /&gt;
&lt;br /&gt;
After you reboot into Funtoo Linux, you will be able to add a Wi-Fi connection this way:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##addwifi -S wpa -K 'wifipassword' mywifinetwork&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;addwifi&amp;lt;/tt&amp;gt; command is used to configure and connect to a WPA/WPA2 Wi-Fi network named &amp;lt;tt&amp;gt;mywifinetwork&amp;lt;/tt&amp;gt; with the password &amp;lt;tt&amp;gt;wifipassword&amp;lt;/tt&amp;gt;. This network configuration entry is stored in &amp;lt;tt&amp;gt;/etc/NetworkManager/system-connections&amp;lt;/tt&amp;gt; so that it will be remembered in the future. You should only need to enter this command once for each Wi-Fi network you connect to.&lt;br /&gt;
&lt;br /&gt;
==== Desktop (Wired Ethernet) ====&lt;br /&gt;
&lt;br /&gt;
For a home desktop or workstation with wired Ethernet that will use DHCP, the simplest and most effective option to enable network connectivity is to simply add &amp;lt;tt&amp;gt;dhcpcd&amp;lt;/tt&amp;gt; to the default runlevel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##rc-update add dhcpcd default&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you reboot, &amp;lt;tt&amp;gt;dhcpcd&amp;lt;/tt&amp;gt; will run in the background and manage all network interfaces and use DHCP to acquire network addresses from a DHCP server.&lt;br /&gt;
&lt;br /&gt;
==== Server (Static IP) ====&lt;br /&gt;
&lt;br /&gt;
For servers, the [[Funtoo Linux Networking]] scripts are recommended. They are optimized for static configurations and things like virtual ethernet bridging for virtualization setups. See [[Funtoo Linux Networking]] for information on how to use Funtoo Linux's template-based network configuration system.&lt;br /&gt;
&lt;br /&gt;
=== Finishing Steps ===&lt;br /&gt;
&lt;br /&gt;
==== Set your root password ====&lt;br /&gt;
It's imperative that you set your root password before rebooting so that you can log in.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # ##i##passwd&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Restart your system ===&lt;br /&gt;
&lt;br /&gt;
Now is the time to leave chroot, to unmount Funtoo Linux partitions and files and to restart your computer. When you restart, the GRUB boot loader will start, load the Linux kernel and initramfs, and your system will begin booting.&lt;br /&gt;
&lt;br /&gt;
Leave the chroot, change directory to /, unmount your Funtoo partitions, and reboot.&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
(chroot) # exit&lt;br /&gt;
# ##i##cd /&lt;br /&gt;
# ##i##umount /mnt/funtoo/boot /mnt/funtoo/dev /mnt/funtoo/proc /mnt/funtoo&lt;br /&gt;
# ##i##reboot&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now see your system reboot, the GRUB boot loader appear for a few seconds, and then see the Linux kernel and initramfs loading. After this, you should see Funtoo Linux itself start to boot, and you should be greeted with a &amp;lt;tt&amp;gt;login:&amp;lt;/tt&amp;gt; prompt. Funtoo Linux has been successfully installed!&lt;br /&gt;
&lt;br /&gt;
===Next Steps===&lt;br /&gt;
&lt;br /&gt;
To learn how to customize and start using Funtoo Linux, see [[Funtoo Linux First Steps]].&lt;br /&gt;
&lt;br /&gt;
If your system did not boot correctly, see [[Installation Troubleshooting]] for steps you can take to resolve the problem.&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;br /&gt;
[[Category:Install]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/User:Jeanfrancis</id>
		<title>User:Jeanfrancis</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/User:Jeanfrancis"/>
				<updated>2012-11-12T04:04:24Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Person&lt;br /&gt;
|Full name=Jean-Francis Roy&lt;br /&gt;
|Email=jeanfrancis@funtoo.org&lt;br /&gt;
|Nick=jeanfrancis&lt;br /&gt;
|Geoloc=46.8032826, -71.242796&lt;br /&gt;
|Location name=Québec City, Québec, Canada&lt;br /&gt;
|Roles={{Role&lt;br /&gt;
|Role type=Staff&lt;br /&gt;
|Role desc=Core Team member&lt;br /&gt;
|Start date=2011/11/01&lt;br /&gt;
}}&lt;br /&gt;
|Maintains=&lt;br /&gt;
|Blogs=&lt;br /&gt;
}}&lt;br /&gt;
I'm a Computer Science Ph.D. candidate at Université Laval, Canada. I'm interested in Machine Learning, and more specifically in Semi-Supervised Learning.&lt;br /&gt;
&lt;br /&gt;
See my webpage[http://jeanfrancisroy.com] for more info!&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/User:Jeanfrancis</id>
		<title>User:Jeanfrancis</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/User:Jeanfrancis"/>
				<updated>2012-11-12T04:03:44Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Person&lt;br /&gt;
|Full name=Jean-Francis Roy&lt;br /&gt;
|Email=jeanfrancis@funtoo.org&lt;br /&gt;
|Nick=jeanfrancis&lt;br /&gt;
|Geoloc=46.8032826, -71.242796&lt;br /&gt;
|Location name=Québec City, Québec, Canada&lt;br /&gt;
|Roles={{Role&lt;br /&gt;
|Role type=Staff&lt;br /&gt;
|Role desc=Core Team member&lt;br /&gt;
|Start date=2011&lt;br /&gt;
}}&lt;br /&gt;
|Maintains=&lt;br /&gt;
|Blogs=&lt;br /&gt;
}}&lt;br /&gt;
I'm a Computer Science Ph.D. candidate at Université Laval, Canada. I'm interested in Machine Learning, and more specifically in Semi-Supervised Learning.&lt;br /&gt;
&lt;br /&gt;
See my webpage[http://jeanfrancisroy.com] for more info!&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/User:Jeanfrancis</id>
		<title>User:Jeanfrancis</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/User:Jeanfrancis"/>
				<updated>2012-11-12T04:03:14Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Person&lt;br /&gt;
|Full name=Jean-Francis Roy&lt;br /&gt;
|Email=jeanfrancis@funtoo.org&lt;br /&gt;
|Nick=jeanfrancis&lt;br /&gt;
|Geoloc=46.8032826, -71.242796&lt;br /&gt;
|Location name=Québec City, Québec, Canada&lt;br /&gt;
|Roles={{Role&lt;br /&gt;
|Role type=Staff&lt;br /&gt;
|Role desc=Core Team member&lt;br /&gt;
|Start date=2011&lt;br /&gt;
}}&lt;br /&gt;
|Maintains=&lt;br /&gt;
|Blogs=&lt;br /&gt;
}}&lt;br /&gt;
I'm a Computer Science Ph.D. candidate at Université Laval, Canada. I'm interested in Machine Learning, and more specifically in Semi-Supervised Learning.&lt;br /&gt;
&lt;br /&gt;
[[http://jeanfrancisroy.com]]&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/User:Jeanfrancis</id>
		<title>User:Jeanfrancis</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/User:Jeanfrancis"/>
				<updated>2012-11-12T04:01:43Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Person&lt;br /&gt;
|Full name=Jean-Francis Roy&lt;br /&gt;
|Email=jeanfrancis@funtoo.org&lt;br /&gt;
|Nick=jeanfrancis&lt;br /&gt;
|Geoloc=46.8032826, -71.242796&lt;br /&gt;
|Location name=Québec City, Québec, Canada&lt;br /&gt;
|Roles={{Role&lt;br /&gt;
|Role type=Staff&lt;br /&gt;
|Role desc=Core Team member&lt;br /&gt;
|Start date=2011&lt;br /&gt;
}}&lt;br /&gt;
|Maintains=&lt;br /&gt;
|Blogs=&lt;br /&gt;
}}&lt;br /&gt;
{{User page&lt;br /&gt;
|website=http://jeanfrancisroy.com&lt;br /&gt;
|biography=I'm a Computer Science Ph.D. candidate at Université Laval, Canada. I'm interested in Machine Learning, and more specifically in Semi-Supervised Learning. Also, I am an administrator of Funtoo-Quebec.org, helping French Funtoo users as much as I can find time.&lt;br /&gt;
|history_linux=I use Linux since 2006, starting with Gentoo, and now I use Funtoo on all my machines since a couple of years.&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Litecoin_Mining_for_Funtoo</id>
		<title>Litecoin Mining for Funtoo</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Litecoin_Mining_for_Funtoo"/>
				<updated>2012-10-11T16:10:56Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Litecoin mining is a fun and easy way that you can help support the Funtoo Linux project. Litecoin is a virtual cryptographic currency that is generated using CPUs and video card GPU computational power, and can be converted into a traditional currency like US dollars. Typically, it is mined by pools of computers, and Funtoo is part of the ozco.in pool.&lt;br /&gt;
&lt;br /&gt;
Here's how to get started and convert your idle CPU power into a contribution to the Funtoo Linux project.&lt;br /&gt;
&lt;br /&gt;
=== Install Miner ===&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;miner&amp;quot; is the program that performs the computation to generate litecoins. It receives blocks from a server, which it performs computations on. Miners are designed to run continually in the background, where they use up idle CPU only, and will not impact the speed of your system. A significant contribution to Funtoo Linux is only realized when miners are run continually for days and weeks -- so running a miner for an hour or so is typically not effective.&lt;br /&gt;
&lt;br /&gt;
==== Manual installation ====&lt;br /&gt;
&lt;br /&gt;
Use your favorite CFLAGS to compile the cpuminer program. Note that &amp;lt;tt&amp;gt;-O2&amp;lt;/tt&amp;gt; seems to work much better than &amp;lt;tt&amp;gt;-O3&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##wget https://github.com/downloads/pooler/cpuminer/pooler-cpuminer-2.2.3.tar.gz&lt;br /&gt;
# ##i##tar xf pooler-cpuminer-2.2.3.tar.gz&lt;br /&gt;
# ##i##cd cpuminer-2.2.3&lt;br /&gt;
# ##i##./configure CFLAGS=&amp;quot;-O2 -march=corei7&amp;quot;&lt;br /&gt;
# ##i##make -j4&lt;br /&gt;
# ##i##cp minerd /usr/local/bin&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Installation using Portage ====&lt;br /&gt;
&lt;br /&gt;
This method will use CFLAGS from /etc/portage/make.conf. Note that &amp;lt;tt&amp;gt;-O2&amp;lt;/tt&amp;gt; seems to work much better than &amp;lt;tt&amp;gt;-O3&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##emerge pooler-cpuminer&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set up go.sh ===&lt;br /&gt;
&lt;br /&gt;
Create the following &amp;lt;tt&amp;gt;go.sh&amp;lt;/tt&amp;gt; script to start the miner:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
threads=$(cat /proc/cpuinfo | grep -c &amp;quot;^processor&amp;quot; )&lt;br /&gt;
while true;&lt;br /&gt;
do&lt;br /&gt;
  minerd --algo scrypt -s 45 --retry-pause 5 --threads $threads --url http://lc.ozco.in:9332 --userpass funtoo.public:p&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make it executable:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##chmod +x go.sh&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run go.sh ===&lt;br /&gt;
&lt;br /&gt;
Run &amp;lt;tt&amp;gt;go.sh&amp;lt;/tt&amp;gt; to start the miner. The cpuminer will only use idle CPU and will not slow down your system. Modern systems will generate somewhere from 15 to 60 KHash/sec total, which will result in $10 to Funtoo Linux per month for a Core i7 system at current exchange rates, when run continually.&lt;br /&gt;
&lt;br /&gt;
=== Track our Progress ===&lt;br /&gt;
&lt;br /&gt;
You can check the rank and hashrate of Funtoo on the following page: https://lc.ozco.in/stats.php&lt;br /&gt;
&lt;br /&gt;
Keep those miners running and thanks for supporting Funtoo Linux!&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/wiki/Litecoin_Mining_for_Funtoo</id>
		<title>Litecoin Mining for Funtoo</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/wiki/Litecoin_Mining_for_Funtoo"/>
				<updated>2012-10-11T16:10:29Z</updated>
		
		<summary type="html">&lt;p&gt;Jeanfrancis: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Litecoin mining is a fun and easy way that you can help support the Funtoo Linux project. Litecoin is a virtual cryptographic currency that is generated using CPUs and video card GPU computational power, and can be converted into a traditional currency like US dollars. Typically, it is mined by pools of computers, and Funtoo is part of the ozco.in pool.&lt;br /&gt;
&lt;br /&gt;
Here's how to get started and convert your idle CPU power into a contribution to the Funtoo Linux project.&lt;br /&gt;
&lt;br /&gt;
=== Install Miner ===&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;miner&amp;quot; is the program that performs the computation to generate litecoins. It receives blocks from a server, which it performs computations on. Miners are designed to run continually in the background, where they use up idle CPU only, and will not impact the speed of your system. A significant contribution to Funtoo Linux is only realized when miners are run continually for days and weeks -- so running a miner for an hour or so is typically not effective.&lt;br /&gt;
&lt;br /&gt;
=== Manual installation ===&lt;br /&gt;
&lt;br /&gt;
Use your favorite CFLAGS to compile the cpuminer program. Note that &amp;lt;tt&amp;gt;-O2&amp;lt;/tt&amp;gt; seems to work much better than &amp;lt;tt&amp;gt;-O3&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##wget https://github.com/downloads/pooler/cpuminer/pooler-cpuminer-2.2.3.tar.gz&lt;br /&gt;
# ##i##tar xf pooler-cpuminer-2.2.3.tar.gz&lt;br /&gt;
# ##i##cd cpuminer-2.2.3&lt;br /&gt;
# ##i##./configure CFLAGS=&amp;quot;-O2 -march=corei7&amp;quot;&lt;br /&gt;
# ##i##make -j4&lt;br /&gt;
# ##i##cp minerd /usr/local/bin&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installation using Portage ===&lt;br /&gt;
&lt;br /&gt;
This method will use CFLAGS from /etc/portage/make.conf. Note that &amp;lt;tt&amp;gt;-O2&amp;lt;/tt&amp;gt; seems to work much better than &amp;lt;tt&amp;gt;-O3&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##emerge pooler-cpuminer&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Set up go.sh ===&lt;br /&gt;
&lt;br /&gt;
Create the following &amp;lt;tt&amp;gt;go.sh&amp;lt;/tt&amp;gt; script to start the miner:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
threads=$(cat /proc/cpuinfo | grep -c &amp;quot;^processor&amp;quot; )&lt;br /&gt;
while true;&lt;br /&gt;
do&lt;br /&gt;
  minerd --algo scrypt -s 45 --retry-pause 5 --threads $threads --url http://lc.ozco.in:9332 --userpass funtoo.public:p&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make it executable:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;console&amp;gt;&lt;br /&gt;
# ##i##chmod +x go.sh&lt;br /&gt;
&amp;lt;/console&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Run go.sh ===&lt;br /&gt;
&lt;br /&gt;
Run &amp;lt;tt&amp;gt;go.sh&amp;lt;/tt&amp;gt; to start the miner. The cpuminer will only use idle CPU and will not slow down your system. Modern systems will generate somewhere from 15 to 60 KHash/sec total, which will result in $10 to Funtoo Linux per month for a Core i7 system at current exchange rates, when run continually.&lt;br /&gt;
&lt;br /&gt;
=== Track our Progress ===&lt;br /&gt;
&lt;br /&gt;
You can check the rank and hashrate of Funtoo on the following page: https://lc.ozco.in/stats.php&lt;br /&gt;
&lt;br /&gt;
Keep those miners running and thanks for supporting Funtoo Linux!&lt;/div&gt;</summary>
		<author><name>Jeanfrancis</name></author>	</entry>

	</feed>