Host Machine: Lenovo T420, Ubuntu 12.04 64 Bit
Hardware Target: Pandaboard
Deployment Target: SD-Card
user@host:~$ sudo mkdir /opt/android
user@host:~$ sudo chown -R user.user /opt/android
user@host:~$ cd /opt/android
user@host:/opt/android$
user@host:/opt/android$ sudo apt-get install -f git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
user@host:/opt/android$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
user@host:/opt/android$ sudo apt-get install lib32ncurses5-dev
user@host:/opt/android$ sudo apt-get install minicom
user@host:/opt/android$ sudo apt-get install ia32-libs
user@host:/opt/android$ sudo apt-get install u-boot-tools
user@host:/opt/android$ sudo apt-get install -f
jdk 6 설치.
Fetching the Android Source Code
user@host:/opt/android$ mkdir ~/bin/
user@host:/opt/android$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
user@host:/opt/android$ chmod a+x ~/bin/repo
user@host:/opt/android$ wget http://snapshots.linaro.org/android/~linaro-android/toolchain-4.7-2012.10/1/android-toolchain-eabi-linaro-4.7-2012.10-1-2012-10-15_16-19-17-linux-x86.tar.bz2 <-- 해당 파일이 없으므로 2012.12 toolchain 으로 wget
user@host:/opt/android$ tar -xvf android-toolchain-eabi-linaro-4.7-2012.10-1-2012-10-15_16-19-17-linux-x86.tar.bz2
user@host:/opt/android$ sudo apt-get install linaro-image-tools
user@host:/opt/android$ mkdir source && cd source
user@host:/opt/android$ repo init -u git://android.git.linaro.org/platform/manifest.git -b linaro-android-12.10-release -m staging-panda.xml
user@host:/opt/android$ repo sync <-- tools/pm-qa key error 가 나면 http://leejungsoo.kr.pe/entry/toolspmqa-not-a-valid-sha1-error 참조
Building the Source Code
user@host:/opt/android/source$ . build/envsetup.sh
user@host:/opt/android/source$ choosecombo 1 pandaboard 3
user@host:/opt/android/source$ make -j4 TARGET_TOOLS_PREFIX=../android-toolchain-eabi/bin/arm-linux-androideabi- boottarball systemtarball userdatatarball
user@host:/opt/android/source$ cd out/target/product/pandaboard
user@host:/opt/android/source/out/target/product/pandaboard$ linaro-android-media-create --mmc /dev/sdb--dev panda --boot boot.tar.bz2 --system system.tar.bz2 --userdata userdata.tar.bz2
user@host:/opt/android/source/out/target/product/pandaboard$ wget http://people.linaro.org/~vishalbhoj/install-binaries-4.0.4.sh
user@host:/opt/android/source/out/target/product/pandaboard$ chmod a+x install-binaries-4.0.4.sh
user@host:/opt/android/source/out/target/product/pandaboard$ ./install-binaries-4.0.4.sh dev/sdb2
user@host:/opt/android/source/out/target/product/pandaboard$ sync
user@host:/opt/android/source/out/target/product/pandaboard$ sudo umount /dev/sdb
Now put your SD-Card into your Pandaboard and see it booting.
'OS' 카테고리의 다른 글
BackTrack on ARMv6 (0) | 2013.08.23 |
---|---|
라즈베리파이 저장소 Raspberry pi repository (0) | 2013.08.13 |
UBUNTU 버전확인 (0) | 2013.08.05 |
우분투 jdk 설치 (0) | 2013.07.14 |
우분투 인터넷 속도 (0) | 2013.07.14 |