Changes

Jump to: navigation, search

Raspberry Pi 1

6,183 bytes added, 4 months ago
up to download need to fetch the link
This guide draws heavily on [[Raspberry_Pi_2]], [[Undead_USB_Install]], and [[Install]]

== What you need ==

# Raspberry PI zero w
# An existing Linux install [[Undead_USB_Install]] built with fchroot is a solid choice if you do not have funtoo installed on a hard drive.
# A [https://www.raspberrypi.org/help/faqs/#sdCards suitable SD card] for your PI.

==Prepare your SD card==
List the device to be partitioned, mine is on /dev/sdc

{{console|body=
###i## lsblk -o name,size,label,partlabel
}}

usb drive
{{console|body=
###i## echo 'KERNEL=="sdc*", SYMLINK+="funtoo%n"' > /etc/udev/rules.d/01-funtoo.rules
###i## rc-service udev-trigger restart
}}

mmc drive
{{console|body=
###i## echo 'KERNEL=="mmcblk0", SYMLINK+="funtoo"' > /etc/udev/rules.d/01-funtoo.rules
###i## echo 'KERNEL=="mmcblk0p*", SYMLINK+="funtoo%n"' >> /etc/udev/rules.d/01-funtoo.rules
###i## rc-service udev-trigger restart
}}

{{console|body=
###i## cgdisk /dev/funtoo}}

*delete everything:

{{console|body=
Command: ##i##new ↵
First sector: ##i## ↵
Size: ##i## +1M ↵
Hex Code: ##i##EF02 ↵
Name: ##i##BIOS Boot ↵
}}

*scroll down to the large chunk of free space:

{{console|body=
Command: ##i##new ↵
First sector: ##i##↵
Last sector: ##i##+256M ↵
Hex Code: ##i##EF00 ↵
Name: ##i##BOOT ↵
}}

*scroll down to the large chunk of free space:

{{console|body=
Command: ##i##new ↵
First sector: ##i##↵
Last sector: ##i##↵
Hex Code: ##i## 8307 ↵
Name: ##i##FUNTOO ↵
}}

{{console|body=
Disk Drive: /dev/sdc
Size: 62333952, 29.7 GiB

Part. # Size Partition Type Partition Name
----------------------------------------------------------------
1007.0 KiB free space
1 1024.0 KiB BIOS boot partition BIOS Boot
2 256.0 MiB EFI System BOOT
3 29.5 GiB Linux ARM32 root (/) FUNTOO
}}

{{console|body=
Command: ##i##write ↵
Do you want to proceed? (Y/N): ##i##yes ↵
Command: ##i##quit ↵
}}

===Create File Systems===
Next, we need to create file systems on the partitions:

{{console|body=
###i## mkfs.vfat -F 32 /dev/funtoo2
###i## fatlabel /dev/funtoo2 "BOOT"
###i## mkfs.ext4 /dev/funtoo3
###i## e2label /dev/funtoo3 "FUNTOO"
}}

===Prepare Your Boot Partition===
Make mount points for your boot and root partitions on the SD card:
{{console|body=
###i## mkdir /mnt/funtoo
}}

Mount your SD card:
{{console|body=
###i## mount /dev/funtoo3 /mnt/funtoo
###i## mkdir /mnt/funtoo/boot
###i## mount /dev/funtoo2 /mnt/funtoo/boot
}}

===Get the Funtoo Files Onto the SD Card===
===Download the Necessary Files===
Grab the latest [[Arm64_generic]] stage 3 file:
[[Subarches]]
{{console|body=
###i## cd /mnt/funtoo
###i## wget https://build.funtoo.org/1.4-release-std/arm-64bit/arm64_generic/2020-09-07/stage3-arm64_generic-1.4-release-std-2020-09-07.tar.xz
}}

Extract the stage 3:
{{console|body=
###i## tar --numeric-owner --xattrs --xattrs-include='*' -xpf stage3*
}}

===Pre-boot Configuration===
*Edit your make.conf file to enable fchroot to compile:

{{console|body=
###i## nano /mnt/funtoo/etc/portage/make.conf
}}

{{file|name=/mnt/funtoo/etc/portage/make.conf|desk make.conf file|body=
FEATURES="-pid-sandbox"
PORTAGE_TMPDIR="/run"
}}

*Edit your fstab file so everything mounts correctly on boot:
*Raspberry pi only supports partuuid and partlabel loading:
{{console|body=
###i## nano /mnt/funtoo/etc/fstab
}}

{{file|name=/mnt/funtoo/etc/fstab|body=
proc /proc proc defaults 0 0
PARTLABEL=BOOT /boot vfat noauto,noatime 1 2
PARTLABEL=FUNTOO / ext4 noatime 0 1
}}

==Chrooting into your new installation==
===for a good time install [[Package:Fchroot]]===

'''as root''', start the binfmt service:

{{console|body=
###i## /etc/init.d/binfmt restart
}}

Finally perform the usually chroot routine (as described in detail in the Funtoo Linux Installation Guide):

{{console|body=
###i## cd /mnt/funtoo
###i## mount --rbind /run run
###i## fchroot .
}}

====set your pass====
*Set yo password
{{console|body=
###i## passwd && ego sync
}}

{{console|body=
###i## echo "media-libs/raspberrypi-userland-bin **" >> /etc/portage/package.accept_keywords
###i## echo "sys-boot/raspberrypi-firmware **" >> /etc/portage/package.accept_keywords
###i## echo "sys-kernel/raspberrypi-image **" >> /etc/portage/package.accept_keywords
###i## emerge raspberrypi-userland-bin raspberrypi-firmware raspberrypi-image
}}

{{console|body=
###i## nano /boot/config.txt
}}

{{file|name=/boot/config.txt|body=
disable_overscan=1
dtparam=audio=on
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
arm_64bit=1
}}

{{console|body=
###i## nano /boot/cmdline.txt
}}

{{file|name=/boot/cmdline.txt|desc=Stifler's Mom|body=
console=tty1 root=PARTLABEL=FUNTOO rootfstype=ext4 elevator=noop fsck.repair=yes quiet rootwait
}}

Set your timezone:
{{console|body=
###i## ln -sf /usr/share/zoneinfo/America/Detroit /etc/localtime
}}

*Set Services:
{{console|body=
###i## rc-update add dhcpcd default
###i## rc-update add busybox-ntpd boot
###i## rc-update add swclock boot
###i## rc-update del hwclock boot
###i## rc-update del swap boot
}}

{{note|you should probably test that your pi boots at this point BEFORE emerging everything.}}

===Reboot and merge,or just merge===
*Set your profile:

{{console|body=
###i## epro list
###i## epro flavor desktop
###i## epro mix-in lxde
###i## echo "media-plugins/alsa-plugins pulseaudio" >> /etc/portage/package.use
###i## echo "net-print/cups -zeroconf" >> /etc/portage/package.use
###i## echo "gnome-base/gvfs -http" >> /etc/portage/package.use
###i## emerge xorg-x11 elogind pulseaudio networkmanager lightdm lxde-meta dillo
}}

{{console|body=
###i## emerge -avuND @world
}}

[[Install/Stage3_Desktop]]

==Clean unmount==

Make sure all buffers have been flushed and unmount the temp directories:
{{console|body=
###i## exit
###i## cd .. && sync
###i## umount -lR funtoo
}}

Now you can follow the [[Funtoo Linux Installation|Funtoo Install documentation]] to continue configuring your system. You'll definitely want to look into {{Package|sys-devel/distcc}} if you are going to be adding lots of software to your system.
646
edits

Navigation menu