i have found the key information to bouilt you own FIRMWARE for the measy x7 mediaplayer. (it does work with other amlogic boards, etc.
(use this at your own risk)Setting up Your MachineTo build the Android source code, you will need to use Ubuntu.
On Ubuntu Linux (32-bit x86), please make sure you have the following:
* Git 1.5.4 or newer and the GNU Privacy Guard.
* JDK 5.0, update 12 or higher. Java 6 is not supported, because of incompatibilities with @Override.
* flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev (optional), build-essential, zip, curl.
$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev
libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
For additional information on setting up your environment, please visit [url[http://source.android.com/source/download.html[/url]
If your Ubuntu version > 9.04, you need add one software source to install JDK5.0.
Open System -> Administration -> Software Sources
Select "Other Software", then click Add button,
input "deb
http://mirrors.163.com/ubuntu/ jaunty main restricted universe multiverse"
"deb
http://mirrors.163.com/ubuntu/ jaunty-updates main restricted universe multiverse"
Getting the Source CodeTo download the code, you will need to install [http://source.android.com/source/git-repo.html Repo].
Repo is a tool that makes it easier to work with Git in the context of Android. For more information about Repo, see [http://source.android.com/source/git-repo.html Using Repo and Git].
To download, install, and configure Repo, follow the steps below:
1. Create a bin directory in your Linux home and add it to your executable PATH
$ cd ~
$ mkdir bin
$ export PATH=~/bin:$PATH
2. Download repo script and make sure it's executable
$ curl
http://android.git.kernel.org/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
3. Create an empty directory to hold the working files
$ mkdir ~/mydroid
$ cd ~/mydroid
4. Run "repo init" to initialize the repository to point to Amlogic Android source code repository.
If you have a bare Amlogic MBX reference board, do the following:
$ repo init -u
[email protected]:platform/manifest.git -b froyo-amlogic
If you have a Amlogic MID reference platform, do the following:
$ repo init -u
[email protected]:platform/manifest.git -b froyo-amlogic-mid
The "-b" option allows you to specify the branch of the code that's appropriate for the target platform you have.
You will be prompted to enter your name and email address during the initialization.
A successful initialization will end up with a message such as
repo initialized in mydroid
5. Now you are ready to check out the source code
$ repo sync
For more about "repo sync" and other Repo commands, see [http://source.android.com/source/git-repo.html Using Repo and Git].
6. How to identify the board version for Mbox
The version of the board you have is printed on the PCB next to the Amlogic processor.
There are three version of Meson boards:
* Meson board_AML_8726-M 2010-11-18_v1.1
* AML_8726-M_DEV_BOARD 2010-10-11_v1.0
* MBOX_8626M1_V1.0 2010_07_19
7. How to build kernel and rootfs for different version of board
1) Meson board_AML_8726-M 2010-11-18_v1.1
This is the latest v1.1 Meson board. This board has 4K page size NAND.
To build kernel for this board, you should do:
$ make meson_refc01_defconfig
$ make menuconfig
Make sure following config is selected
System Type --->
Meson platform Type --->
Support M1 8726(for arm board) platform(machid=2956) --->
---Select Nand Flash Type--- (4K Page Size of Nand Flash)
To build Android rootfs, you should do:
$ cd <android.bsp.root>/device/amlogic/m1ref
$ vim BoardConfig.mk
Search for TARGET_AMLOGIC_MKYAFFSIMG_TOOL and set it to use mkyaffsimage4K.dat shown below:
TARGET_AMLOGIC_MKYAFFSIMG_TOOL := $(HOST_OUT_EXECUTABLES)/mkyaffsimage4K.dat
2) AML_8726-M_DEV_BOARD 2010-10-11_v1.0
This is the first version (v1.0) of the Meson board. This board has 2K page size NAND.
To build kernel for this board, you should do:
$ make meson_refc01_defconfig
$ make menuconfig
Make sure following config is selected
System Type --->
Meson platform Type --->
Support M1 8726(for arm board) platform(machid=2956) --->
---Select Nand Flash Type--- (2K Page Size of Nand Flash)
To build Android rootfs, you should do:
$ cd <android.bsp.root>/device/amlogic/m1ref
$ vim BoardConfig.mk
Search for TARGET_AMLOGIC_MKYAFFSIMG_TOOL and set it to use mkyaffsimage2K.dat shown below:
TARGET_AMLOGIC_MKYAFFSIMG_TOOL := $(HOST_OUT_EXECUTABLES)/mkyaffsimage2K.dat
3) MBOX_8626M1_V1.0 2010_07_19
This is the original evaluation board. It has a big form factor than the newer Meson board.
To build kernel for this board, you should do:
$ make meson_refc02_defconfig
$ make menuconfig
To build Android rootfs, you should do:
$ cd <android.bsp.root>/device/amlogic/m1ref
$ vim BoardConfig.mk
Search for TARGET_AMLOGIC_MKYAFFSIMG_TOOL and set it to use mkyaffsimage2K.dat shown below:
TARGET_AMLOGIC_MKYAFFSIMG_TOOL := $(HOST_OUT_EXECUTABLES)/mkyaffsimage2K.dat