SAMA5D31-EK unable to get the board working local compile

Discussion around products based on ARM Cortex-A5 core.

Moderator: nferre

Posts: 31
Joined: Sun Jul 21, 2013 12:55 pm

SAMA5D31-EK unable to get the board working local compile

Mon Oct 14, 2013 11:51 pm

Today I unsuccessfully tried to compile and upload the android Linux kernel per the guidelines on android4sam/bin/view/Android4SAM/ICS4SAMA5D3xEK

Below are the steps. Appreciate if you can let me know I am doing wrong.

Android file system

change director to android4sam_v4.0
export CROSS_COMPILE=`pwd`/gcc-arm-none-eabi-4_7-2013q2/bin/arm-none-eabi- (See notes below)
$ source build/
$ lunch sama5d3-eng
$ make -j4

Generate ubifs image for boot up from NAND flash

$ mkubi_image -b sama5d3


change director to android4sam_v4.0/ at91bootstrap
$ make mrproper
$ make sama5d3xeknf_android_dt_defconfig
$ make ARCH=arm

Android Linux kernel (Generate uImage for boot up from NAND flash)

copy root folder (android4sam_v4.0/out/target/product/sama5d3/root) Android Linux kernel root folder (aka, android4sam_v4.0/linux-at91)
$ make mrproper
$ make ARCH=arm sama5d3_android_ubifs_defconfig
$ make ARCH=arm uImage

Generate dtb file for EK board

$ make ARCH=arm dtbs

Load Image to Nand Flash

1. Copy the following file to android4sam_v4.0/sam-ba_cdc_cdc_linux. Sam-ba is in this folder

2. android4sam_v4.0/linux-at91/arch/arm/boot/sama5d31ek.dtb

3. android4sam_v4.0/linux-at91/arch/arm/boot/Image

4. rename Image to uImage

5. android4sam_v4.0/system_ubifs-SAMA5D3-ANDROID-4.2.2_r1.1.img

6. android4sam_v4.0/userdata_ubifs-SAMA5D3-ANDROID-4.2.2_r1.1.img

7.android4sam_v4.0/at91bootstrap/binaries/ sama5d3xek-nandflashboot-android-dt-3.5.4.bin

8. use the sam-ba tool to upload the file to nand flash.

When I reboot the board nothing came up.

Please note that I downloaded the cross compiler from the following location

wget -c ... ux.tar.bz2

I followed the instructions per the android4sam/bin/view/Android4SAM/ICS4SAMA5D3xEK

Tail of the Error for debug port.

ALSA device list:
#0: wm8904 @ SAMA5D3EK
Warning: unable to open an initial console.
Freeing init memory: 508K
init: skipping insecure file '/default.prop'
init: skipping insecure file '/init.rc'
init: Timed out waiting for /dev/.coldboot_done
init: Unable to open persistent property directory /data/property errno: 2
Posts: 1
Joined: Wed Dec 17, 2014 6:25 am

Re: SAMA5D31-EK unable to get the board working local compil

Wed Dec 24, 2014 1:31 pm

Hello mahengunawardena,

Even I am facing the same issue.
Did you fix this?
Please share the solution.

Thanks in advance

Return to “SAMA5D Cortex-A5 MPU”

Who is online

Users browsing this forum: No registered users and 2 guests