728x90
Linaro - Android - Panda board
(1) 코드 다운로드
$ repo init -u git://android.git.linaro.org/platform/manifest.git -b linaro-android-11.06-release.2
*** new release ***$ repo init -u git://android.git.linaro.org/platform/manifest.git -b linaro-android-11.11-release
*** new release ***
문제 없이 한방에 잘된다 씐난다.
$ vim .repo/manifest.xml
위 파일을 열어서 아래와 같은 코드가 제대로 들어있는지 확인 (stable이 있는지만 확인하면 되는듯)
<project name="boot/u-boot-linaro-stable" path="u-boot" remote="linaro" revision="refs/tags/2011.06.3"/>
그런뒤에 repo sync를 하면 되는데.. 하니까 이딴 에러가..
$ repo sync
Initializing project platform/bionic ...
android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
error: Cannot fetch platform/bionic
...........url에 뭔가 해킹이 있었던지 여튼 안된다고..
Until git://android.git.kernel.org comes back online feel free to use ours: 다른 url source사용
$ repo init -u git://android.git.linaro.org/tools/repo.git -b linaro_android_2.3.5
$ repo sync
*** 이제 다시 된다 (2011-12-07) ***
$ repo init -u git://android.git.linaro.org/platform/manifest.git -b linaro-android-11.11-release
$ repo sync
(2) Toolchain을 받아온다 & 압축풀기
$ wget --no-check-certificate https://android-build.linaro.org/jenkins/job/linaro-android_toolchain-4.6-2011.07/8/artifact/build/out/android-toolchain-eabi-linaro-4.6-2011.07-0-8-2011-07-25_12-42-06-linux-x86.tar.bz2
$ tar -jxvf android-toolchain-eabi-linaro-4.6-2011.07-0-8-2011-07-25_12-42-06-linux-x86.tar.bz2
*** new release ***
$ wget http://releases.linaro.org/11.11/components/android/toolchain/4.6/android-toolchain-eabi-linaro-4.6-2011.11-4-2011-11-15_12-22-49-linux-x86.tar.bz2
$ tar -jxvf android-toolchain-eabi-linaro-4.6-2011.11-4-2011-11-15_12-22-49-linux-x86.tar.bz2
*** new release ***
$ wget http://releases.linaro.org/11.11/components/android/toolchain/4.6/android-toolchain-eabi-linaro-4.6-2011.11-4-2011-11-15_12-22-49-linux-x86.tar.bz2
$ tar -jxvf android-toolchain-eabi-linaro-4.6-2011.11-4-2011-11-15_12-22-49-linux-x86.tar.bz2
(3) Build하기
(Source와 Toolchain version을 잘 맞춰줘야 make 에러없이 진행 가능하다)
$ PATH=$PWD/android-toolchain-eabi/bin/:$PATH
$ make -j4 TARGET_PRODUCT=pandaboard TARGET_TOOLS_PREFIX=./android-toolchain-eabi/bin/arm-eabi- boottarball systemtarball userdatatarball
$ make -j4 TARGET_PRODUCT=pandaboard TARGET_TOOLS_PREFIX=./android-toolchain-eabi/bin/arm-eabi- boottarball systemtarball userdatatarball
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.5
TARGET_PRODUCT=pandaboard
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GRJ90
============================================
....
정상적으로 완료 되었다면 boot.tar.bz2, system.tar.bz2, userdata.tar.bz2가 생성된다.
(1) make가 잘 안되면 PREFIX경로를 절대경로로 수정
(2) /bin/bash: bison: command not found --> sudo apt-get install bison
(3) fatal error: bits/predefs.h: No such file or directory --> sudo apt-get install libc6-dev-i386
(4) fatal error: zlib.h: No such file or directory --> sudo apt-get install zlib1g-dev
(5) /usr/bin/ld: cannot find -lstdc++ --> sudo apt-get install libstdc++6-4.4-dev AND sudo apt-get install g++-multilib
(6) /usr/bin/ld: cannot find -lz --> sudo apt-get install zlibc
SD card에 올릴 image tool을 받는다.
$ bzr branch lp:linaro-image-tools
(여기서부턴 아래 Installation(2)에서 부터 따라가면 된다)
Install Instructions (http://releases.linaro.org/11.11/android/leb-panda/)
(1) Get artifacts
필요한 파일들 다운로드. wget으로 하니까 3Dhttp 어쩌고 에러나서 직접 다운로드 받은 후에 서버로 옮겼음.
wget http://releases.linaro.org/11.11/android/images/staging-panda/boot.tar.bz2
http://releases.linaro.org/11.11/android/images/staging-panda/system.tar.bz2
http://releases.linaro.org/11.11/android/images/staging-panda/userdata.tar.bz2
(2) Get the latest linaro image tools
$ bzr branch lp:linaro-image-tools
$ bzr branch lp:linaro-image-tools
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
bzr: ERROR: Connection error: while sending POST http://bazaar.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk/.bzr/smart: [Errno 110] Connection timed out
launchpad.net/people/+me에 들어가서 register + ssh key 등록까지 완료한 후에 launchpad-login
$ bzr launchpad-login minjeong-shin
다시 명령어 실행
$ bzr branch lp:linaro-image-tools
The authenticity of host 'bazaar.launchpad.net (91.189.90.11)' can't be established.
RSA key fingerprint is 9d:38:3a:63:b1:d5:6f:c4:44:67:53:49:2e:ee:fc:89.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'bazaar.launchpad.net,91.189.90.11' (RSA) to the list of known hosts.
Branched 469 revision(s).
linaro-image-tools이라는 폴더가 생성된다.
$ ls linaro-image-tools/
COPYING README linaro-android-media-create linaro-hwpack-create linaro-image-indexer org.linaro.linaro-image-tools.policy
COPYING.GPL-2 do-release linaro-fetch-image linaro-hwpack-install linaro-media-create setup.py
COPYING.GPL-3 initrd-do linaro-fetch-image-ui linaro-hwpack-replace linaro_image_tools
(3) Create media
아래 명령어를 실행하려면 python 2.7버젼 이상이 필요하다. 설치!
$ sudo ./linaro-image-tools/linaro-android-media-create --mmc /dev/sdX --dev panda --system system.tar.bz2 --boot boot.tar.bz2 --userdata userdata.tar.bz2
To run linaro-media-create you'll need to make sure the following packages are installed:
- parted
- dosfstools
- u-boot-tools or uboot-mkimage
- python-argparse
- python-dbus
- python-debian >= 0.1.16ubuntu1
- python-parted
- qemu-user-static >= 0.13.0 (only if you're running on x86)
- btrfs-tools
- command-not-found
- python-testtools >= 0.9.8
(available at https://launchpad.net/~linaro-maintainers/+archive/tools)
모두 설치 완료 + USB 삽입
$ sudo ./linaro-image-tools/linaro-android-media-create --mmc /dev/sdX --dev panda --system system.tar.bz2 --boot boot.tar.bz2 --userdata userdata.tar.bz2
I see...
Device Mount point Size
/dev/sda none 476940MB
/dev/sda1 none 100000MB
/dev/sda2 none 102400MB
/dev/sda3 none 163839MB
/dev/sda4 none 110698MB
/dev/sda5 / 103950MB
/dev/sda6 none 6747MB
/dev/sdb none 1962MB
/dev/sdb1 /media/boot 70MB
/dev/sdb2 /media/rootfs 1890MB
/dev/sr0 none 0MB
Are you 100% sure, on selecting [/dev/sdb] (y/n)? y
....
잘된다 오예!
(4) Boot Pandaboard
Android booting 성공!!!!
출처 : http://berebereport.tistory.com/54
728x90
'UNIX' 카테고리의 다른 글
repo sync fatal not a git repository cts.git (0) | 2013.07.15 |
---|---|
안드로이드 repo (0) | 2013.07.15 |
repository kr.ubuntu.com 제거 (0) | 2013.07.15 |
vi 문자열 바꾸기 (0) | 2013.07.15 |
Origen보드에 Linaro-Linux 올리기 -- SD카드에 Kernel 이미지 쓰기 질문 (0) | 2013.07.12 |