I download [imx-android-r10.4_bundle_BSP.tar.gz] from Freescale website and follow its user guide [i.MX Android R10.4 User Guide].
I am trying to build a u-boot image by myself. So I follow all the steps of source code download like below.
$ cd myandroid/bootable/bootloader
$ git clone git://git.denx.de/u-boot.git uboot-imx
After [uboot-imx] folder download finish. And finish apply R10.4 release patch.
Then I try to follow below steps and caused an Error message below. I found there is no string [mx51_bbg_android_config] in makefile. and related mx51_bbg_android file such as mx51_bbg_android.h in [uboot-imx] folder. Which steps I missed? Please help me. Thank you.
$ cd ~/myandroid/bootable/bootloader/uboot-imx
$ export ARCH=arm
$ export CROSS_COMPILE=~/myandroid/prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin/arm-eabi-
Command to build for i.MX51 BBG board is:
$ make distclean
$ make mx51_bbg_android_config
make: *** No rule to make target `mx51_bbg_android_config'. Stop.
Sorry, I found out the correct name.
$ make mx51_defconfig
Now I am checking how to build Android image with correct product name.
build/core/product_config.mk:203: *** No matches for product "imx51_bbg". Stop.
** Don't have a product spec for: 'imx51_bbg'
** Do you have the right repo manifest?
Thank you Otavio. But here I face a boot problem. After I build u-boot.bin and uImage. I flash in my SD card and try to boot MX51 EVK board. It cannot boot-up. I don't know what's wrong. Can you give me some advice?
Here is my SD card partition status:
|Device Boot||Start||End||Blocks Id System|
|/dev/sdb1||19532||13949064||6964766+ 83 Linux|
|/dev/sdb2||13949065||14925664||488300 83 Linux|
|/dev/sdb4||15925665||16019455||46895+ 83 Linux|
|/dev/sdb5||14927713||15806653||439470+ 83 Linux|
|/dev/sdb6||15808702||15925664||58481+ 83 Linux|
Flash u-boot-no-padding.bin command:
$ sudo dd if=u-boot-no-padding.bin of=/dev/sdb bs=1K seek=1; sync
301+1 records in
301+1 records out
308864 bytes (309 kB) copied, 0.103723 s, 3.0 MB/s
Flash uImage command:
$ sudo dd if=uImage of=/dev/sdb bs=1M seek=1; sync
1+1 records in
1+1 records out
1897828 bytes (1.9 MB) copied, 0.00358143 s, 530 MB/s
Serial console showing like this when I press power bottom up. (when my finger leave the bottom). Seems no boot start. Is it my partition wrong? or something else? Thanks.