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 삼스