artik: config: support android partition and booting
authorChanho Park <chanho61.park@samsung.com>
Thu, 20 Aug 2015 05:53:38 +0000 (14:53 +0900)
committerChanho Park <parkch98@gmail.com>
Fri, 21 Aug 2015 01:45:02 +0000 (10:45 +0900)
commit1acae9643de02c4e9a741a1c3ba48b2bb064b471
treed9e7f2743c2128bc737fe1d2b9df78cc8f9b65d6
parentb15553c6577c2b2756b1fc16a0d869c22e8fa054
artik: config: support android partition and booting

This patch supports android partition tables and booting to android. The
system partition is 1GB and cache partiton is 128MB and userdata
partition is remained size.

1. Generate uInitrd from ramdisk.img
 mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n uInitrd -d ramdisk.img uInitrd

2. Create a android partition from the u-boot shell
run android_format

3. flash android images
fastboot flash ramdisk uInitrd
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img

4. Build android kernel and flash the kernel
ARCH=arm ./scripts/kconfig/merge_config.sh \
arch/arm/configs/artik10_defconfig android/configs/android-base.cfg \
android/configs/android-recommended.cfg \
android/configs/artik10-android-graphic.cfg
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- exynos5422-artik10.dtb

fastboot flash kernel arch/arm/boot/zImage
fastboot flash dtb arch/arm/boot/dts/exynos5422-artik10.dtb

5. Set up androidboot.hardware from the u-boot shell
setenv opts loglevel=4 androidboot.hardware=odroidxu3
saveenv
run android_boot

Change-Id: Ic55fa4925b5ae9586bc2c9733e2f1f36df5d04d1
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
include/configs/artik_common.h