arndale board

페이지 정보

작성자 조희승 댓글 0건 조회 1,339,523회 작성일 13-06-12 20:27

본문

android & opencl
 
emmc경우임
 
사용된 환경변수
export PATH=/usr/local/arm-2009q3/bin:$PATH
#export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-amd64
export JAVA_HOME=/usr/local/jdk1.6.0_45
export ANDROID_JAVA_HOME=$JAVA_HOME
export PATH=$JAVA_HOME/bin:$PATH
export USE_CCACHE=1
export CCACHE_DIR=/root/project/arndale/.ccache
 
 
 
http://www.arndaleboard.org/wiki/index.php/WiKi
위의 순서대로 수행
 
**** repo를 jb-mr1으로 잡아야함 -> opencl 가능 버전 
 
필요한 거 (아래 버전확인)
vendor binary http://forum.insignal.co.kr/viewtopic.php?f=6&t=63 에서 다운 받을때 jb-mr1 사용
 
 
kernel compile시 옵션 수정 - debugger가 뜨는걸 방지
479 CONFIG_FIQ_DEBUGGER=y
480 CONFIG_FIQ_DEBUGGER_NO_SLEEP=y
481 CONFIG_FIQ_DEBUGGER_WAKEUP_IRQ_ALWAYS_ON=y
482 CONFIG_FIQ_DEBUGGER_CONSOLE=y
483 CONFIG_FIQ_DEBUGGER_CONSOLE_DEFAULT_ENABLE=y
 
 
 
 
oracle의 java사용, not openjdk
나는 jdk-6u45-linux-x64.bin 사용
 
busybox 설치
http://busybox.net/ 에서 다운받고 빌드
Busybox Settings --> Build Options --> Build Busybox as a static binary (no shared libs)  -  Enable this option by pressing "Y"
Busybox Settings --> Build Options --> Cross compiler prefix  -  Set this option equal to "arm-none-linux-gnueabi-"
빌드된것은 out/target/product/arndale/system/bin 에 넣어주고, system.img를 다시 만들어준다.
make snod
 
  
ethernet & nfs
 
busybox ifconfig eth0 hw ether 00:40:5c:26:0a:5b
ifconfig eth0 192.168.1.11 up
busybox mount -o nolock -t nfs 192.168.1.9:/root/project /sdcard/mnt
당연히 host linux쪽에서 nfs데몬 떠 있어야함
 
 
 
ndk
툴체인 끄집어 내야함 
요약하면,
1. 구글에서 ndk를 받는다.
2. build/tools/make-standalone-toolchain.sh 을 돌린다.
 --ndk-dir=/tmp/android-ndk-r9 이런식으로 파라메터주고 돌려야함 3. /tmp/ndk-root 가 생기고, 여기 밑에 있는거 풀어서 쓰면 일반 arm-linux-gcc쓰는 거처럼 사용가능.
 
 
opencl
arm 사이트에서 다운받고, ndk tool chain으로 컴파일
생성된 sample들은 libOpenCL.so를 참조하게 되는데, 보드에서 libOpenCL.so를 libGLES_mali.so 로 링크 해주어야 함
 
 
 
 
 
prebuilts
http://forum.insignal.co.kr/viewtopic.php?t=62&p=1816#p2786
 
 
 
 

댓글목록

등록된 댓글이 없습니다.