i.MX8mm Android 10 build error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX8mm Android 10 build error

ソリューションへジャンプ
2,661件の閲覧回数
avijitnsec
Contributor III

Hi, 

I am trying to build Android 10 for i.MX8mm board. Here are the steps I am following. 

1. Download the source from link.

https://www.nxp.com/webapp/sps/download/preDownload.jsp

 

2.Follow the steps in README

 

Download and Setup Source:
-----------------------------------------
Run setup script to download Android open source and copy proprietary to source folders
Run from above the folder for setup script to work properly

$: source ./imx-android-10.0.0_2.6.0/imx_android_setup.sh

Setup build environment:
-------------------------
- Set up the environment for building. This only configures the current terminal.
$ source build/envsetup.sh

- Execute the Android lunch command.
lunch command can be issued with an argument or can be issued without the argument presenting a menu of selection.
$ lunch mek_8q-userdebug

Check Android User's Guide for more details

- Execute the "imx-make.sh" script to generate the image.
$ ./imx-make.sh -j4 2>&1 | tee build-log.txt
The output of preceding command will be written to standard output and build-log.txt.

If there is any errors when building the image, error log can be found in the build-log.txt file for checking.

avijit@MTC:~/WS/And/android_build$ lunch 34

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=evk_8mm
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-42-generic-x86_64-Ubuntu-18.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
============================================

Output

Ended up with a build error, with the following errors. Find the attached logs.


Android GCC has been deprecated in favor of Clang, and will be removed from
Android in 2020-01 as per the deprecation plan in:
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATIO...


a8fe5040-2585-11e9-9684-4b547fbede22: error: unrecognized command line option '-Wshift-overflow=2'
make[1]: *** [build/imx8mm/release/bl31/gpc_common.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Android GCC has been deprecated in favor of Clang, and will be removed from
Android in 2020-01 as per the deprecation plan in:
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATIO...


a8fe5040-2585-11e9-9684-4b547fbede22: error: unrecognized command line option '-Wshift-overflow=2'
make[1]: *** [build/imx8mm/release/bl31/hab.o] Error 1
a8fe5040-2585-11e9-9684-4b547fbede22: error: unrecognized command line option '-Wshift-overflow=2'
make[1]: *** [build/imx8mm/release/bl31/imx_aipstz.o] Error 1
/home/avijit/WS/And/android_build/device/fsl/common/build/uboot.mk:124: recipe for target '/home/avijit/WS/And/android_build/out/target/product/evk_8mm/u-boot.imx' failed
make: *** [/home/avijit/WS/And/android_build/out/target/product/evk_8mm/u-boot.imx] Error 1
make: *** Waiting for unfinished jobs....
SORTEX vmlinux
SYSMAP System.map
OBJCOPY arch/arm64/boot/Image

Please suggest. 

0 件の賞賛
返信
1 解決策
2,651件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

 Hi

 

1.Download android docs in https://www.nxp.com/design/software/embedded-software/i-mx-software/android-os-for-i-mx-applications... 

 

2. See screen shot i attahced.you should set toolchain.

 

BR

元の投稿で解決策を見る

2 返答(返信)
2,652件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

 Hi

 

1.Download android docs in https://www.nxp.com/design/software/embedded-software/i-mx-software/android-os-for-i-mx-applications... 

 

2. See screen shot i attahced.you should set toolchain.

 

BR

2,644件の閲覧回数
avijitnsec
Contributor III

Thanks for the prompt response. It would be nice to have it in the README file. 

Now, build has started, I still see this warning messages


Value requested for CONFIG_SHADOW_CALL_STACK not in final .config
Requested value: CONFIG_SHADOW_CALL_STACK=y
Actual value:

Value requested for CONFIG_LTO_CLANG not in final .config
Requested value: CONFIG_LTO_CLANG=y
Actual value:

Value requested for CONFIG_CFI_CLANG not in final .config
Requested value: CONFIG_CFI_CLANG=y
Actual value:

Value requested for CONFIG_CFI_PERMISSIVE not in final .config
Requested value: CONFIG_CFI_PERMISSIVE=y
Actual value:

HOSTCC scripts/kconfig/conf.o
YACC scripts/kconfig/zconf.tab.c

Anything can be done for them ?

0 件の賞賛
返信