deflog

Scraps and Drops in this world

8 April 2015

Funtoo on RPi2

by cc

The steps of installing Funtoo on RPi2, as a checklist for myself

  1. setup the filesystem
    mkfs.vfat -F 16 /dev/sdf1
    mkswap /dev/sdf2
    mkfs.ext4 /dev/sdf3
    mount /dev/sdb3 /mnt/funtoo
    
  2. download the stage3 tarballs
    cd /tmp
    wget http://ftp.osuosl.org/pub/funtoo/funtoo-current/arm-32bit/armv7a_neonvfpv4_hardfp/stage3-latest.tar.xz
    
  3. extract the stage3 file
    tar xfp stage3-latest.tar.xz -C /mnt/funtoo
    
  4. 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
    
  5. setup /etc/localtime
    cd /mnt/funtoo/etc/init.d
    ln -s netif.tmpl netif.eth0
    
  6. 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
  7. setup ssh keys copy pubkey to the rpi2

  8. boot funtoo boot the rpi2 and login the system date MMDDHHMMCCYY

  9. after boot
    cd /usr/portage
    git checkout funtoo.org
    emerege --sync
    
  10. choose the profile
    epro list
    
  11. 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: