'porting'에 해당되는 글 4건

  1. 2009.05.19 HOWTO: Cupcake (kernel 2.6.27) on VirtualBox 2.2.2 1
  2. 2009.05.17 Linux porting 기본 1
  3. 2009.04.25 참고서적 - 리눅스커널 포팅
  4. 2009.04.07 x86에 android 올리기 1
Android/Porting2009. 5. 19. 13:25

http://andrwj.blogspot.com/2009/05/howto-cupcake-kernel-2627-on-virtua.html


HOWTO: Cupcake (kernel 2.6.27) on VirtualBox 2.2.2


Cupcake (kernel 2.6.27) on VirtualBox 2.2.2

2009.5.19 REV#002
Andrew J. Kim<andrwj@gmail.com>

$ sudo su
# apt-get install ssh flex bison gperf libsdl-dev libesd0-devlibwxgtk2.6-dev build-essential zip curl valgrind sun-java6-jdk git-core gnupg zlib1g-dev libncurses5-dev
# curl http://android.git.kernel.org/repo > /usr/local/bin/repo
# chmod +x /usr/local/bin/repo
# mkdir -p /home/aj/eeePC

# cd /home/aj/eeePC
# repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake
# repo sync
# cd .repo
# vim local_manifest.xml
<xml ?="" encoding="UTF-8" version="1.0"> <manifest> <project name="platform/vendor/asus/eee_701" path="vendor/asus/eee_701"> </project> </manifest>
# cd ..
# repo sync


x86 patch

# cd /home/aj/
# mkdir android.patch
# cd android.patch

(download all patches from http://code.google.com/p/patch-hosting-for-android-x86-support/downloads/list)
# vim frameworks_v2.patch  (insert at first row)
project frameworks/base/
# vim 0001-1.-added-mouse-cursor.patch
(insert at first row)
project frameworks/base/

(modify  line #15 ~ 18)
diff --git a/core/java/android/view/RawInputEvent.java b/core/java/android/view/RawInputEvent.java
index 30da83e..4d9a11a 100644
--- a/core/java/android/view/RawInputEvent.java
+++ a/core/java/android/view/RawInputEvent.java



# cd /home/aj/eeePC
# vim patch.sh
#!/bin/bash
for patch in `pwd`/android.patch/*.patch ; do
        project=`awk '/^project /{print $2}' $patch`
        if [[ "$project" == "" ]]; then
                echo "not found"
        else
                (cd $project && patch -p1 < $patch)
        fi
done

# chmod +x patch.sh
# ./patch.sh


# vim vendor/asus/eee_701/eee_701.mk
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_with_google.mk)


(modify as .. )

$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk)


SquashFS kernel patch


# cd /home/aj/
(download squashfs from http://nchc.dl.sourceforge.net/sourceforge/squashfs/squashfs3.4.tar.gz)
# tar xvfz squashfs4.0.tar.gz
# cd eeePC/
# patch -p1 < /home/aj/squashfs4.0/kernel-patches/linux-2.6.27-rc4/squashfs3.4-patch


AUFS kernel patch (DOT NOT apply)


참조사이트: http://aufs.sourceforge.net/
# cd /home/aj/

# git clone http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git aufs2-standalone.git

# cd /home/aj/eeePC/kernel
# patch -p1 < /home/aj/aufs2-standalone.git/aufs2-standalone.patch
# vim fs/Makefile (#126 line, add)

obj-$(CONFIG_AUFS_FS)           += aufs/



kernel config


# cd /home/aj/eeePC
# cp vendor/asus/eee_701/kernel.config kernel/.config
# cd kernel

# make menuconfig
enable squashfs


building Android ...


# cd /home/aj/eeePC/

# TAGET_ARCH=x86 TARGET_PRODUCT=eee_701 DISABLE_DEXPREOPT=true make -j2 droid
# cd /home/aj/eeePC/out/target/product/eee_701/
# /home/aj/eeePC/vendor/asus/eee_701/make_boot_img.sh
# VBoxManage convertfromraw --format VDI installed.img eee701.vdi



Screenshot



Posted by 삼스
Linux2009. 5. 17. 13:04
1. target platform 선정
2. cross compiler 설정
  gcc를 선정하게 되는데 platform에 맞는 컴파일러를 선정하면된다.
  ARM용 gcc는 아래위치에서 다운로드 가능하다.
  http://www.handhelds.org/download/projects/toolchain
  root권한으로 압축 해재
  #cp ./arm-linux-gcc-3.4.2.tar.bz2 /
  #cd /
  #tar xvjf arm-linux-gcc-3.4.2.tar.bz2
  이렇게 하면 /usr/local/arm/3.4.2디렉토리 밑으로 설치가 된다.
  #arm-lunux-gcc
    arm-linux-gcc: no input files


Posted by 삼스
Linux2009. 4. 25. 12:38
Posted by 삼스
Android/Porting2009. 4. 7. 16:16
Posted by 삼스