Difference between revisions of "Raspberry Pi"

From Funtoo
Jump to navigation Jump to search
(11 intermediate revisions by the same user not shown)
Line 18: Line 18:
=== Stage 3 ===
=== Stage 3 ===


Funtoo Linux Stage 3 tarballs for Raspberry Pi can be found on [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/armv6j_hardfp/].
Funtoo Linux Stage 3 tarballs for Raspberry Pi B or B+ (armv6j) can be found on [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/armv6j_hardfp/].
 
Funtoo Linux Stage 3 tarballs for Raspberry Pi 2 (armv7) can be found on [http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/armv7a_neonvfpv4_hardfp/].
 


Extracting the tarball is done using <tt>tar xpf</tt> instead of <tt>tar xpjf</tt>.
Extracting the tarball is done using <tt>tar xpf</tt> instead of <tt>tar xpjf</tt>.
Line 41: Line 44:
# ##i##cd /tmp/
# ##i##cd /tmp/
# ##i##git clone --depth 1 git://github.com/raspberrypi/firmware/
# ##i##git clone --depth 1 git://github.com/raspberrypi/firmware/
# ##i##cp firmware/boot/* /mnt/SD_root/boot
# ##i##cp -r firmware/boot/* /mnt/SD_root/boot/
# ##i##cp -r firmware/modules /mnt/SD_root/lib
# ##i##cp -r firmware/modules /mnt/SD_root/lib/
</console>
</console>


=== Edit cmdline.txt ===
=== Edit cmdline.txt ===
<console>
<console>
###i##vi /mnt/SD_root/boot/cmdline.txt
# ##i##vi /mnt/SD_root/boot/cmdline.txt
</console>
</console>


Create the line with the boot kernel parameters with the following content:
Create the line with the boot kernel parameters with the following content:


  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p3 rootfstype=ext4 elevator=deadline rootwait
  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/sdcard-device-px rootfstype=ext4 elevator=deadline rootwait


=== Edit config.txt ===
=== Edit config.txt ===
Line 58: Line 61:


<console>
<console>
###i##vi /mnt/SD_root/boot/config.txt
# ##i##vi /mnt/SD_root/boot/config.txt
</console>
</console>
To Raspberry Pi B and B+ (armv6j) use '''kernel.img''':


<pre>
<pre>
Line 65: Line 70:
disable_overscan=0
disable_overscan=0
</pre>
</pre>
To Raspberry Pi 2 (armv7) use '''kernel7.img''':
<pre>
kernel=kernel7.img
disable_overscan=0
</pre>


=== Disable console s0 ===
=== Disable console s0 ===
Line 77: Line 90:
  #s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
  #s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
  #s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100
  #s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100
=== Raspberry Pi Userland ===
Get Raspberry Pi userspace tools and libraries (VCGENCMD).
Please read [[Raspberry Pi Userland (VCGENCMD)]] for general information about installing VCGENCMD on Funtoo Linux on ARMv6j architecture.


=== Portage ===
=== Portage ===


Funtoo Linux Portage tarballs can be found on [http://ftp.osuosl.org/pub/funtoo/funtoo-current/snapshots/].
Update your portage treeː
 
<console>
# ##i##emerge --sync
</console>
 


Extracting the tarball is done using <tt>tar xf</tt> instead of <tt>tar xjf</tt>.
=== Video FB ===
 
Please set '''-video_cards_omapfb''' on USE (make.conf) to solve many problems on emerge <tt>x11-base/xorg-drivers</tt>


=== Enabling networking on boot ===
=== Enabling networking on boot ===
Line 91: Line 118:


Funtoo Linux has a different profile than Gentoo. Correct ''arch'' , ''subarch'' and ''build'' will be already set. More information can be found by typing {{c|epro show}}. For more information, see [[Funtoo Profiles]].
Funtoo Linux has a different profile than Gentoo. Correct ''arch'' , ''subarch'' and ''build'' will be already set. More information can be found by typing {{c|epro show}}. For more information, see [[Funtoo Profiles]].
[[Category:Raspberry Pi]]

Revision as of 17:48, December 11, 2015

In above mentioned guide installation is more detailed

The Raspberry Pi is an ARM device (BCM2835, ARMv6).

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.

Please read Funtoo Linux Installation on ARM for general information about installing Funtoo Linux on ARM architecture.


Installation

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.

Gentoo's Raspberry Pi Quick Install Guide

Stage 3

Funtoo Linux Stage 3 tarballs for Raspberry Pi B or B+ (armv6j) can be found on [1].

Funtoo Linux Stage 3 tarballs for Raspberry Pi 2 (armv7) can be found on [2].


Extracting the tarball is done using tar xpf instead of tar xpjf.


Get the firmware and the kernel image of the official kernel raspberry pi project

Install Kernel Linux and modules

The Raspberry Pi Foundation maintains a Linux kernel tree that can run on the Raspberry Pi (hardware), including a pre-compiled version we use here. follow the steps below:

Mount the partition that will hold your rootfs of the SD card and extract the stage3 you have downloaded.

root # mkdir /mnt/SD_root
root # mount /dev/sdcard-device-px /mnt/SD_root

Get firmware and kernel:

root # cd /tmp/
root # git clone --depth 1 git://github.com/raspberrypi/firmware/
root # cp -r firmware/boot/* /mnt/SD_root/boot/
root # cp -r firmware/modules /mnt/SD_root/lib/

Edit cmdline.txt

root # vi /mnt/SD_root/boot/cmdline.txt

Create the line with the boot kernel parameters with the following content:

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/sdcard-device-px rootfstype=ext4 elevator=deadline rootwait

Edit config.txt

Create the line with the boot kernel parameters:

root # vi /mnt/SD_root/boot/config.txt

To Raspberry Pi B and B+ (armv6j) use kernel.img:

kernel=kernel.img
disable_overscan=0

To Raspberry Pi 2 (armv7) use kernel7.img:

kernel=kernel7.img
disable_overscan=0


Disable console s0

Comment out the s0 console (serial) for fix message in dmesg: "INIT: Id" s0 "respawning too fast".

root # vi /mnt/SD_root/etc/inittab
# SERIAL CONSOLES
#s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100

Raspberry Pi Userland

Get Raspberry Pi userspace tools and libraries (VCGENCMD).

Please read Raspberry Pi Userland (VCGENCMD) for general information about installing VCGENCMD on Funtoo Linux on ARMv6j architecture.


Portage

Update your portage treeː

root # emerge --sync


Video FB

Please set -video_cards_omapfb on USE (make.conf) to solve many problems on emerge x11-base/xorg-drivers

Enabling networking on boot

Please consult Funtoo Linux Networking for information regarding network configuration.

Select profile

Funtoo Linux has a different profile than Gentoo. Correct arch , subarch and build will be already set. More information can be found by typing epro show. For more information, see Funtoo Profiles.