2008 2010 Korea Android
Open Access (Open Devices,Open Applications,Open Services,Open Networks)
www.kandroid.org »
안드로이드 Platform 
▶ HTC Dream Platform Images
OKL4(가상화) for the HTC dream
작성자 인베인
작성일 2010-02-26 (금) 07:11
ㆍ추천: 0  ㆍ조회: 1553      
IP: 114.xxx.239
몇몇 ERTOS 프로젝트는 HTD dream 폰을 사용하고 있습니다. 이 페이지는 그 폰을 사용하는 플랫폼에
OKL4를 포팅하는 것에 대해 설명하고 있습니다. 


About the code

This is OKL 3.0, the latest public version from Open Kernel Labs. It has two new platforms added: goldfish and trout. Both of these are Google's code names for Android platforms: goldfish is the simulated platform that runs inside the Android emulator (qemu), and Trout is the HTC dream, also known as the G1.

Getting the source

Download the port here:
okl4-android-3.0.tar.bz2 (10M, updated March 15 2009)


Building OKL4

Ensure you have a proper OKL4 toolchain for ARM (consult the OKL Wiki linked above for details), then test the system using a line like:
tools/build.py machine=trout project=examples example=hello PYFREEZE=False
... to build for real hardware, or
tools/build.py machine=androidsim project=examples example=hello PYFREEZE=False
... to build for the emulator.

Running the code on the HTC Dream

You can boot the image using fastboot from the phone's engineering boot loader (of course, you will need a Fastboot-enabled boot loader for this, i.e. an ADP1 phone). Unfortunately the stock bootloader sets the entry point for the kernel to be 32K above the start of system memory. This is standard for Linux but not what L4 is expecting. You must create a custom version of Fastboot which requests the image be loaded at the start of memory. Apply this patch inside your mydroid/system/core/fastboot directory, and then rebuild fastboot by typing, from the mydroid directory: make out/host/your host platform name/bin/fastboot. The new fastboot supports an extra option, -l4. Boot the kernel from the engineering bootloader:
fastboot -l4 -p dream boot build/images/image.boot.bin

Running the code on the Android emulator

The emulator must also be patched to load images at the start of RAM. Apply this patch (thanks to Benno) to your emulator source code, or use our mirror of the pre-patched emulator, here: android-emulator-ok.tar.gz (5M).
Once the emulator is patched, you may load the image with a commandline like this:
emulator -os-type okl4 -console -kernel build/images/image.boot.bin


Obligatory picture

OKL4 3.0 booting on the ADP1


Contact

For questions about the port please send email to Nicholas FitzRoy-Dale.



덧글 쓰기 0
3500
※ 회원등급 레벨 0 이상 읽기가 가능한 게시판입니다.
    N     분류     제목    글쓴이 작성일 조회
Android Dev Phone 1에 Cupcake 올리기 [9]+7 비즈페이 2009-06-25 2789
안드로이드 소스 저장소 복제 및 활용 가이드 [5]+1 브라이언 2009-05-13 4954
91 Android용 Bluetooth solution [6] sandy 2010-05-04 2426
90 추방되었던 안드로이드 커널 다시 들어온다. [3]+2 인베인 2010-04-19 3457
89    [번역] Google in talks to re-admit Android to Linux kernel [3] 들풀 2010-04-20 1667
88 Android Virtualization (KVM for ARM) [4]+2 인베인 2010-04-16 2077
87 안드로이드 SDK Tools R5 릴리즈 (2010.03.20) [2]+1 인베인 2010-03-20 2578
86 OKL4(가상화) for the HTC dream 인베인 2010-02-26 1553
85 안드로이드 소스 변경 알리미,DRAG [8]+5 인베인 2009-12-19 2088
84 Android 2.0 Brief [6]+2 삼스 2009-12-01 3144
83 안드로이드 솔류션 센터 , ARM [5]+5 인베인 2009-11-17 2188
82 안드로이드 및 리눅스를 이용한 멀티 운영체제.. 인베인 2009-07-31 2734
81 L4(MicroVisor)을 이용한 Android 구동방법 인베인 2009-07-24 1539
80 Android 디버깅을 위한 CoWare 솔류션 [3]+1 인베인 2009-07-23 2105
79 Dalvik Debugger Support 인베인 2009-07-17 2043
78 Android용 uSTL 라이브러리 [1] 인베인 2009-06-27 1586
123456