Funtoo on RPi2
by cc
The steps of installing Funtoo on RPi2, as a checklist for myself
- setup the filesystem
mkfs.vfat -F 16 /dev/sdf1 mkswap /dev/sdf2 mkfs.ext4 /dev/sdf3 mount /dev/sdb3 /mnt/funtoo
- download the stage3 tarballs
cd /tmp wget http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/armv7a_neonvfpv4_hardfp/stage3-latest.tar.xz
- extract the stage3 file
tar xfp stage3-latest.tar.xz -C /mnt/funtoo
- prepare the /boot and /lib/modules
wget http://ftp.osuosl.org/pub/funtoo/funtoo-current/snapshots/portage-latest.tar.xz tar xjf portage-latest.tar.xz -C /mnt/gentoo/usr
- setup /etc/localtime
cd /mnt/funtoo/etc/init.d ln -s netif.tmpl netif.eth0
- create config file
- the netif file
ln -s /etc/init.d/netif.eth0 /mnt/funtoo/etc/runlevels/default/netif.eth0
- create /mnt/funtoo/etc/portage/make.conf
- modify the /mnt/funtoo/etc/conf.d/hostname
- the netif file
-
setup ssh keys copy pubkey to the rpi2
-
boot funtoo boot the rpi2 and login the system date MMDDHHMMCCYY
- after boot
cd /usr/portage git checkout funtoo.org emerege --sync
- choose the profile
epro list
- emerge the world
emerge -avuDN @world
官方内核自带8192cu驱动,需要手动去掉 edit the drivers/net/wireless/Kconfig and drivers/net/wireless/Makefile
PS:内核从4.0开始已经支持8192cu比较好了,rpi官方已使用内核的驱动
make bcm2709_defconfig
cp arch/arm/boot/zImage /boot/kernel-$v-funtoo
参考链接
tags: