Android4SAM v4.4

The Android4SAM v4.4 (Kit Kat) supports on SAMA5D4EK, SAMA5D4 Xplained Ultra and SAMA5D3xEK board.


Demo Package

Here is the current release demo packages of Android4SAM for SAMA5D4EK, SAMA5D4 Xplained Ultra and SAMA5D3xEK boards

Based on Android-4.4.2_r2 SAMA5D4 SAMA5D3x
NAND boot Android-4.4.2_r2-sama5d4-nandboot.tgz
md5sum
Android-4.4.2_r2-sama5d3x-nandboot.tgz
md5sum
SD Card boot Android-4.4.2_r2-sama5d4-sdcardboot.tgz
md5sum
Android-4.4.2_r2-sama5d3x-sdcardboot.tgz
md5sum

On SAMA5D4EK it supports:

On SAMA5D4 Xplained Ultra it supports:

On SAMA5D3xEK it supports:

Build Process

The following take the SAMA5D4EK as an example for building the demo package.

At91bootstrap

For more information about at91bootstrap, please visit Linux4SAM.

Get source code

You can download AT91Bootstrap source code on the at91bootstrap git repository.

$ git clone git://github.com/linux4sam/at91bootstrap.git
$ cd at91bootstrap
$ git checkout -b at91bootstrap Android4sam_v4.4

Configure and Build

Assuming you are at the AT91Bootstrap root directory.

Generate boot file for boot up from NAND flash

$ make mrproper
$ make sama5d4eknf_uboot_secure_defconfig
$ make ARCH=arm CROSS_COMPILE=(path_to_cross-compiler/cross-compiler-prefix-)

Generate boot file for boot up from SD card

$ make mrproper
$ make sama5d4eksd_uboot_secure_defconfig
$ make ARCH=arm CROSS_COMPILE=(path_to_cross-compiler/cross-compiler-prefix-)

U-boot

For more information about u-boot, please visit Linux4SAM.

Get source code

You can download u-boot source code on the u-boot-at91 git repository.

$ git clone git://github.com/Android4SAM/u-boot-at91.git
$ cd u-boot-at91
$ git checkout -b u-boot-at91 Android4sam_v4.4

Configure and Build

Assuming you are at the u-boot root directory.

Generate u-boot file for boot up from NAND flash

$ make mrproper
$ make ARCH=arm CROSS_COMPILE=(path_to_cross-compiler/cross-compiler-prefix-) sama5d4ek_nandflash_config

Generate u-boot file for boot up from SD card

$ make mrproper
$ make ARCH=arm CROSS_COMPILE=(path_to_cross-compiler/cross-compiler-prefix-) sama5d4ek_mmc_config

Android

Get Android Source Code

$ mkdir android4sam_v4.4
$ cd android4sam_v4.4
$ repo init -u git://github.com/Android4SAM/platform_sammanifest.git -b android4sam_v4.4
$ repo sync

Configure and Build Android

$ . build/envsetup.sh
$ lunch sama5d4-eng
$ make

Generate Android Image

For Booting from NAND Flash

The following command will generate ubifs image for booting from nand flash.
$ mkubi_image -b sama5d4

If successfully, you will get system_ubifs-SAMA5D4-ANDROID-4.4.2_r2.img and userdata_ubifs-SAMA5D4-ANDROID-4.4.2_r2.img file.

If any errors, please check make_android_ubifs.log file

For Booting from SD Card

For generate SD card image, you need have root permission of your host PC, and know the SD card device name.

Warning, important when use mksd_image, it will reformat the SD card, so all data on SD card will lose. Please be sure when execute this command and get the right device name of SD card, or else it will cause unrecovery damage.

The following we assume the SD card device name in Linux is /dev/sdb
$ mksd_image -b sama5d4 -s /dev/sdb

Linux Kernel

Get Source code

You can download Android Linux kernel source code on the linux-at91 git repository. You could clone the repository by doing:

$ git clone git://github.com/Android4SAM/linux-at91.git
$ cd linux-at91
$ git checkout -b linux-at91 Android4sam_v4.4

Configure and build

Assuming you are at the Android Linux kernel root directory.

Generate zImage for booting from NAND flash

Warning, important Before you build Android Linux kernel, you need to copy root (<android_working_dir> /out/target/product/sama5d4/root) folder build from Android to Android Linux kernel root folder.

The following the command to build the kernel:

$ make mrproper
$ make ARCH=arm sama5_android_defconfig
$ make ARCH=arm CROSS_COMPILE=(path_to_cross-compiler/cross-compiler-prefix-) zImage

Generate zImage for booting from SD card

Warning, important Before you build Android Linux kernel, you need to copy root (<android_working_dir> /out/target/product/sama5d4/root) folder build from Android to Android Linux kernel root folder. And also the init.rc (<android_src_dir>/device/atmel/release/Generate_sdcard_image/boot_sama5d4) to the root directory.

The following the command to build the kernel:

$ make mrproper
$ make ARCH=arm sama5_android_defconfig
$ make ARCH=arm CROSS_COMPILE=(path_to_cross-compiler/cross-compiler-prefix-) zImage

Generate dtb file for EK board

The following command to build the dtbs.

$ make ARCH=arm CROSS_COMPILE=<path_to_cross-compiler/cross-compiler-prefix-> dtbs

Then you will find each dtb files under arch/arm/boot/dts folder.

See Also: Android4SAM v4.4 rc2, Android4SAM v4.4 rc1, Android4SAM v4.3, Android4SAM v4.2, Android4SAM v4.1, Android4SAM v4.0

r4 - 11 May 2015 - 06:47:17 - JoshWu
 
Android4SAM

Copyright by the contributing authors. All material on the platform is the property of the contributing authors.

Android is a trademark of Google Inc. Use of this trademark is subject to Google Permissions

Atmel and others, are registered trademarks or trademarks of Atmel or its subsidiaries.This site is powered by the TWiki collaboration platform

ARM and others are registered trademarks or trademarks or ARM Ltd. Other terms and product names may be trademarks of others.

Under the terms of the Creative Commons Attribution License

Syndicate this siteRSS ATOM