Skip to content

Instantly share code, notes, and snippets.

@j000
Created June 15, 2017 01:02
Show Gist options
  • Save j000/acf502dc63841fbefacb8f99e2c56021 to your computer and use it in GitHub Desktop.
Save j000/acf502dc63841fbefacb8f99e2c56021 to your computer and use it in GitHub Desktop.
Gentoo on Cubieboard

Little how-to, written to remember later

For now first step is to get Arch Linux ARM running on Cubieboard.
SSH into Arch install, update u-boot.
Download ARMv7a HardFP version from https://www.gentoo.org/downloads/#arm.
Follow instructions from https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation.

Things to remember:

  1. 'source /etc/profile' after chrooting, Arch uses different $PATH
  2. Edit /etc/portage/make.conf:
    ACCEPT_KEYWORD="arm ~arm"
    CFLAGS="-O2 -pipe -mcpu=cortex-a8 -march=armv7-a -mfpu=neon -mfloat-abi=hard"
    FEATURES="distcc distcc-pump"
    MAKEOPTS="-j1 -l1"
  3. Update portage
  4. Install and configure distcc:
    'distcc-config --set-hosts "192.168.168.2,cpp,lzo"'
    export PATH="/usr/lib/distcc/bin:${PATH}"
    // to make it permanent:
    echo 'PATH=/usr/lib/distcc/bin' > /etc/env.d/02distccpaths
    USE=crossdev OR follow wiki.gentoo.org -> Distcc cross-compiling

Script to automate stuff will come later...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment