I record my steps note , for reference only .
/****************************************************/
ENV OS : Linux mint
ENV Kernel : Linux jsl-mint 2.6.35-22-generic-pae
/****************************************************/
1. Download source by git repo
1. Get /bin/repo cd /root/
curl http://android.git.kernel.org/repo > ~/bin/repo
export ‘:/bin/repo’
2. mkdir android-x86 cd android-x86
repo init -u git://git.android-x86.org/manifest.git
repo sync
[ You will wait for long time …. ]
2. Prepare your environment under Linux Mint
1.bison - A parser generator that is compatible with YACC
2.sun-java6-jdk - Sun Java(TM) Development Kit (JDK) 6
3.g++
4.zlib1g-dev - compression library - development
5.flex - A fast lexical analyzer generator.
6.libncurses5-dev - developer's libraries and docs for ncurses
7.gperf - Perfect hash function generator
/home/workspace/android-x86 -> apt-get install bison sun-java6-jdk g++ zlib1g-dev flex libncurses gperf
/home/workspace/android-x86 -> . build/envsetup.sh
including device/asus/eeepc/vendorsetup.sh
including device/asus/laptop/vendorsetup.sh
including device/dell/sparta/vendorsetup.sh
including device/viewsonic/viewpad10/vendorsetup.sh
including device/vm/vm/vendorsetup.sh
/home/workspace/android-x86 -> lunch
You're building on Linux
Lunch menu... pick a combo:
1. generic-eng
2. generic_x86-eng
3. simulator
4. eeepc-eng
5. asus_laptop-eng
6. sparta-eng
7. viewpad10-eng
8. vm-eng
Which would you like? [generic-eng] 2
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.2.1
TARGET_PRODUCT=generic_x86
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=x86
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=MASTER
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.2.1
TARGET_PRODUCT=generic_x86
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=x86
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=MASTER
============================================
/home/workspace/android-x86 -> make usb_img
[ You will wait for long time ….again C_C ]
[ Build code …...................... 21:00pm->01:17am omg . time is so long . why ? why ?]
[01:18 I see ‘usb_img’ display for my terminal ….... I want to cry …..........]
----- Making usb image ------
Updated usb_boot length to be 633192KB
I/diskconfig(29372): Requesting operation on a regular file, not block device.
I/config_mbr(29372): Configuring pentry. status=0x80 type=0x83 start_lba=2048 len_lba=1266384
I/config_mbr(29372): Configuring pentry. status=0x0 type=0x0 start_lba=0 len_lba=0
I/config_mbr(29372): Configuring pentry. status=0x0 type=0x0 start_lba=0 len_lba=0
I/config_mbr(29372): Configuring pentry. status=0x0 type=0x0 start_lba=0 len_lba=0
Copying images to specified partition offsets
I/diskutils(29372): Writing RAW image 'out/target/product/generic_x86/usb_tmp.img' to 'out/target/product/generic_x86/generic_x86_usb.img' (offset=1048576)
I/diskutils(29372): Wrote 648388608 bytes to out/target/product/generic_x86/generic_x86_usb.img @ 1048576
File edit complete. Wrote 1 images.
3. Check IMG ….....(crying........)
/home/workspace/android-x86/out/target/product/generic_x86 -> file generic_x86_usb.img
generic_x86_usb.img: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3; partition 1: ID=0x83, active, starthead 255, startsector 2048, 1266384 sectors, code offset 0x48
/home/workspace/android-x86/out/target/product/generic_x86 -> mount generic_x86_usb.img test -o loop,offset=1048576
/home/workspace/android-x86/out/target/product/generic_x86/test -> tree
├── android-system
│ ├── initrd.img
│ ├── install.img
│ ├── kernel
│ ├── ramdisk.img
│ └── system.img
├── android-x86.xpm.gz
├── cmdline
├── grub4dos
├── kernel -> grub4dos
├── menu.lst
└── ramdisk
@DD IMG to USB Dongle@@
dd if=xxxxx.img of=/dev/sdc bs=10M
========================================
Android-x86 on HP-Platform test
[USB Dongle Boot]
[First workspace screen]


[App screen sets]

[Dev Tools for eng]

[Oh , find terminal !!!!]

[Terminal Emulator : Can i get what i want ?]

[ Kernel version - - 2.6.35.7 ]

[Poweroff screen : all design based on phone]

[I want to reboot platform , but waiting time so long ago .]

[ Virtual-Box ] :
[USB Dongle Boot]
[Android-x86 Boot Text]
[Unlock panel]
[First workspace screen]
[Samll green man ..hrhr]
[App screen sets]
[Dev Tools for eng]
[Oh , find terminal !!!!]
[Terminal Emulator : Can i get what i want ?]
[ Kernel version - - 2.6.35.7 ]
[Poweroff screen : all design based on phone]
[I want to reboot platform , but waiting time so long ago .]
[ Virtual-Box ] :


0 意見:
張貼留言