User Tools

Site Tools


android

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
android [2009/10/01 05:56] suapapaandroid [2013/08/03 05:04] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== cross compile tool ====== ====== cross compile tool ======
 +===== armv4t-eabi =====
 +  *[[http://wiki.openmoko.org/wiki/Toolchain|toolchain from openmoko]]
 +  *[[http://trac.koolu.org/wiki/Toolchain|Toolchain]]
 +  *[[http://wiki.openmoko.org/wiki/Android_porting|openmoko android porting]]
 +
 ===== Sourcery G++ lite 설치 ===== ===== Sourcery G++ lite 설치 =====
   *[[http://www.codesourcery.com/sgpp/lite/arm/portal/subscription?@template=lite|Download Sourcery G++ Lite Edition for ARM]] 바이너리 tar 다운로드   *[[http://www.codesourcery.com/sgpp/lite/arm/portal/subscription?@template=lite|Download Sourcery G++ Lite Edition for ARM]] 바이너리 tar 다운로드
Line 43: Line 48:
   *c++filt - Demangle encoded C++ symbols (on MS-DOS, this program is named cxxfilt)   *c++filt - Demangle encoded C++ symbols (on MS-DOS, this program is named cxxfilt)
   *addr2line - Convert addresses into le names and line numbers   *addr2line - Convert addresses into le names and line numbers
- +컴파일시 define 되었나 알아보기 
-====== uboot ====== +<code txt> 
-  *[[http://kelp.or.kr/korweblog/stories.php?story=04/07/08/5932057&topic=25|고도리님 uboot분석]] in kelp +<noth> suapapa_m12, gcc -DNOTH -dM -E hello.grep NOTH 
-  *[[http://asmlove.co.kr/wiki/wiki.php/HowToPorting_uboot|HowToPorting_uboot]] in asemlove+<noth> #define NOTH 1 
 +</code>
  
 ====== target boards ====== ====== target boards ======
Line 53: Line 59:
   * 32MN Flash Memory   * 32MN Flash Memory
   * 200MHz Online Processor   * 200MHz Online Processor
-===== 기타 판매중인 보드들 ===== 
-  *[[http://forum.falinux.com/zbxe/?mid=EZS3C2440|ez-s3c2440]] 
-  * ARMv5 S3C2440 LCD포함 40만원 미만 
-  * ARMv6 S3C6410 LCD포함 100만원 미만 
  
 ===== rebis ===== ===== rebis =====
Line 68: Line 70:
   *[[http://infocenter.arm.com/help/topic/com.arm.doc.ddi0151c/ARM920T_TRM1_S.pdf|ARM920T Technical Reference Manual (pdf)]] -    *[[http://infocenter.arm.com/help/topic/com.arm.doc.ddi0151c/ARM920T_TRM1_S.pdf|ARM920T Technical Reference Manual (pdf)]] - 
     *ARM9TDMI integer core, (ARM architecture v4T)     *ARM9TDMI integer core, (ARM architecture v4T)
 +
 +===== 기타 판매중인 보드들 =====
 +  *[[http://forum.falinux.com/zbxe/?mid=EZS3C2440|ez-s3c2440]]
 +  * ARMv5 S3C2440 LCD포함 40만원 미만
 +  * ARMv6 S3C6410 LCD포함 100만원 미만
 +
 +====== uboot ======
 +기존 u-boot는 gcc version 4.3.3 (Sourcery G++ Lite 2009q1-161) 에서 컴파일 에러. 아래 패치를 적용하여 코드 수정
 +<code bash>
 +$ tar xvzf mds-u-boot.tar.gz
 +...
 +$ cd mds-u-boot-rebis
 +$ patch -p1 < ../u-boot_compile_with_sourcery_g++.patch 
 +patching file Makefile
 +patching file common/cmd_nand_s3c2440a.c
 +patching file cpu/arm920t/config.mk
 +patching file net/net.c
 +patching file net/tftp.c
 +</code>
 +nand 부팅 빌드
 +<code bash>
 +$ make distclean
 +...
 +$ make clean
 +...
 +$ make rebis_atm322a_config
 +...
 +$ CROSS_COMPILE=arm-none-eabi- make
 +...
 +</code>
 +빌드 결과물 확인
 +<code bash>
 +$ ls u-boot*
 +u-boot  u-boot.bin  u-boot.map  u-boot.srec
 +$ file u-boot
 +u-boot: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, not stripped
 +$ arm-none-eabi-readelf -h u-boot |grep Flags
 +  Flags:                             0x5000002, has entry point, Version5 EABI
 +</code>
 +tftp로 커널바이너리와 ramdisk 밀어넣기
 +<code bash>
 +REBIS# set ethaddr 12:34:56:65:43:21 MAC address
 +REBIS# set serverip 192.168.1.1 Host IP address
 +REBIS# set ipaddr 192.168.1.2 Target IP address
 +REBIS# t 30800000 ramdisk-8.gz ramdisk download
 +REBIS# t 32000000 zImage kernel download
 +REBIS# go 32000000 start
 +REBIS# nandw 0 200000 32000000 kernel Fusing
 +REBIS# nandw 100 340000 30800000 ramdisk Fusing
 +REBIS# set bootcmd nandr 0 200000 32000000\; nandr 100 340000 30800000\;g 32000000
 +</code>
 +
 +  *[[http://kelp.or.kr/korweblog/stories.php?story=04/07/08/5932057&topic=25|고도리님 uboot분석]] in kelp
 +  *[[http://asmlove.co.kr/wiki/wiki.php/HowToPorting_uboot|HowToPorting_uboot]] in asemlove
 +  *[[http://lists.openmoko.org/pipermail/commitlog/2008-January/003410.html|u-boot armv4t eabi patch]] from openmoko
 +
 +====== kernel ======
 +make uImage ARCH=arm CROSS_COMPILE=...
 +===== trouble shooting =====
 +SEGMENT_SIZE 디파인 되어있지 않다고 에러 뿜을때
 +<code bash>
 +// NOSTDINC_FLAGS에 -Dlinux 추가...
 +NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) -Dlinux
 +CHECKFLAGS     += $(NOSTDINC_FLAGS) 
 +</code>
 +
 +====== T32 cmm ======
 +<code bash>
 +$ find ./ -name *.cmm
 +./Document/Emulator/TRACE32/flash/rebis_flash_atmel.cmm
 +./Document/Emulator/TRACE32/terminal.cmm
 +./Document/Emulator/TRACE32/rebis_init.cmm
 +./Document/Emulator/TRACE32/linux/start_linux.cmm
 +./Document/Emulator/TRACE32/linux/rebis_INIT.cmm
 +./Document/Emulator/TRACE32/win.cmm
 +</code>
 +
 +
 +
  
  
 ====== references ====== ====== references ======
   *[[http://source.android.com/download|android source]] official site   *[[http://source.android.com/download|android source]] official site
-  *[[http://android.git.kernel.org/|android git]] official site? 
   *[[http://developer.android.com/|android developers]]   *[[http://developer.android.com/|android developers]]
   *[[http://www.androiddevelopment.org/|android developers blog]]   *[[http://www.androiddevelopment.org/|android developers blog]]
Line 83: Line 163:
   *[[http://androidhuman.tistory.com/|커니의 안드로이드 이야기]]   *[[http://androidhuman.tistory.com/|커니의 안드로이드 이야기]]
   *[[http://www.droiddraw.org/|DroidDraw Beta]] ui 디자인 사이트   *[[http://www.droiddraw.org/|DroidDraw Beta]] ui 디자인 사이트
 +
 +====== 소스 다운로드 ======
 +소스저장소 
 +  *[[http://android.git.kernel.org/|android git]] official site?
 +  *[[http://android.git.kernel.org/pub/|android/pub]]
 +플랫폼 다운로드
 +<code bash>
 +mkdir mydroid
 +cd mydroid
 +repo init -u git://android.git.kernel.org/platform/manifest.git
 +repo sync
 +</code>
 +
 +====== tricks ======
 +  *[[http://android-tricks.blogspot.com/2009/02/hello-world-c-program-on-using-android.html|hello-world-c-program-on-using-android]]
android.1254376585.txt.gz · Last modified: 2013/08/03 05:04 (external edit)