備忘記錄:
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
chmod a+x ~/bin/repo
repo的運行過程中會嘗試訪問官方的git源更新自己,如果想使用tuna的鏡像源進行更新,可以將如下內容複製到你的~/.bashrc裏
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
mkdir fsl-release-bsp
cd fsl-release-bsp
repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-4.1-krogoth
repo sync
遇到一些問題:需要安裝python3.4.X版本,tar-1.29版本,gcc4.8.0版本
sudo apt-get install -y build-essential libncursesw5-dev libreadline6-dev \
libssl-dev libgdbm-dev libc6-dev libsqlite3-dev \
tk-dev bzip2 libbz2-dev
https://www.python.org/ftp/python/3.4.3/
編譯python3.4.3
export FORCE_UNSAFE_CONFIGURE=1
./configure
make
make install
安裝gcc4.8版本
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
apt-get install gcc-4.8
apt-get install g++-4.8
sudo apt-get install gcc-4.8-multilib
sudo apt-get install g++-4.8-multilib
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 50
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 50
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 30
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 30
update-alternatives --config g++
update-alternatives --config gcc