Download android kernel from
http://code.google.com/p/android/downloads/detail?name=linux-2.6.25-android-1.0_r1.tar.gz&can=2&q=
Extract to /kernel.git
Edit file following linux-2.6.23-android-m3-rc20-kbde.patch
which can download from http://code.google.com/p/android-vnc/source/checkout
Note: modified a few files such as /kernel.git/Makefile, /kernel.git/drivers/input/keyboard/Makefile, /kernel.git/drivers/input/keyboard/Kconfig, /kernel.git/drivers/input/keyboard/kbde.c
Get config file from your working phone/emulator
$adb pull /proc/config.gz .
$gunzip config.gz
$mv config .config
Put .config file into /kernel.git/
Put it in android environment which can compile
e.g. /mydroid/kernel.git
Building zImage
*******************************
Go into kernel directory
$ cd ~/mydroid/kernel.git/
#don't need to this coz we already have .config => $ make msm_defconfig ARCH=arm
$ make ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi-
Run vnc
*******************************
Get zImage from kernet.git/arch/arm/boot/zImage to the directory that you need to run emulator
Run emulator
*******************************
Download the kernel image and fbvncserver binary and invoke the following:
emulator -kernel zImage -noskin
Wait some time for the emulator to start and then install the binary:
adb push fbvncserver /data
adb shell /data/fbvncserver
Then redirect the port so the local machine can access the server:
telnet localhost 5554
redir add tcp:5900:5901
And finally:
xvncviewer -noauto localhost
http://code.google.com/p/android/downloads/detail?name=linux-2.6.25-android-1.0_r1.tar.gz&can=2&q=
Extract to /kernel.git
Edit file following linux-2.6.23-android-m3-rc20-kbde.patch
which can download from http://code.google.com/p/android-vnc/source/checkout
Note: modified a few files such as /kernel.git/Makefile, /kernel.git/drivers/input/keyboard/Makefile, /kernel.git/drivers/input/keyboard/Kconfig, /kernel.git/drivers/input/keyboard/kbde.c
Get config file from your working phone/emulator
$adb pull /proc/config.gz .
$gunzip config.gz
$mv config .config
Put .config file into /kernel.git/
Put it in android environment which can compile
e.g. /mydroid/kernel.git
Building zImage
*******************************
Go into kernel directory
$ cd ~/mydroid/kernel.git/
#don't need to this coz we already have .config => $ make msm_defconfig ARCH=arm
$ make ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi-
Run vnc
*******************************
Get zImage from kernet.git/arch/arm/boot/zImage to the directory that you need to run emulator
Run emulator
*******************************
Download the kernel image and fbvncserver binary and invoke the following:
emulator -kernel zImage -noskin
Wait some time for the emulator to start and then install the binary:
adb push fbvncserver /data
adb shell /data/fbvncserver
Then redirect the port so the local machine can access the server:
telnet localhost 5554
redir add tcp:5900:5901
And finally:
xvncviewer -noauto localhost
Comments