Open main menu

Funtoo β

Changes

Raspberry Pi

1,529 bytes added, 5 years ago
no edit summary
Extracting the tarball is done using <tt>tar xpf</tt> instead of <tt>tar xpjf</tt>.
 
 
=== 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.
 
<console>
# ##i##mkdir /mnt/SD_root
# ##i##mount /dev/sdcard-device-px /mnt/SD_root
</console>
 
Get firmware and kernel:
 
<console>
# ##i##cd /tmp/
# ##i##git clone --depth 1 git://github.com/raspberrypi/firmware/
# ##i##cp firmware/boot/* /mnt/SD_root/boot
# ##i##cp -r firmware/modules /mnt/SD_root/lib
</console>
 
=== Edit cmdline.txt ===
<console>
###i##vi /mnt/SD_root/boot/cmdline.txt
</console>
 
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
 
=== Edit config.txt ===
Create the line with the boot kernel parameters:
 
<console>
###i##vi /mnt/SD_root/boot/config.txt
</console>
 
<pre>
kernel=kernel.img
disable_overscan=0
</pre>
 
=== Disable console s0 ===
 
Comment out the s0 console (serial) for fix message in dmesg: "INIT: Id" s0 "respawning too fast".
 
<console>
# ##i##vi /mnt/SD_root/etc/inittab
</console>
 
# SERIAL CONSOLES
#s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100
=== Portage ===
wiki-users
388
edits