imx-automotive-10.0.0_2.2.0 build failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx-automotive-10.0.0_2.2.0 build failed

7,783 Views
yhm2046
Contributor II

Dear All,

      I tried build imx-automotive-10.0.0_2.2.0 on Ubuntu16.04.7 and got failed message below, please tell me how to solve it , thank you.And full log file in the attach.

  log message:

 

FAILED: out/target/product/mek_8q/partition-table-default.img
/bin/bash -c "(out/host/linux-x86/bin/bpttool make_table --output_gpt out/target/product/mek_8q/partition-table-default.img --output_json out/target/product/mek_8q/partition-table-default.bpt --input device/fsl/common/partition/device-partitions-13GB-ab-dual-bootloader.bpt ) && (for addition_partition in partition-table-28GB:device/fsl/common/partition/device-partitions-28GB-ab-dual-bootloader.bpt; do PARTITION_OUT_IMAGE=\`echo \$addition_partition | cut -d\":\" -f1\`; PARTITION_INPUT_BPT=\`echo \$addition_partition | cut -d\":\" -f2\`; out/host/linux-x86/bin/bpttool make_table --output_gpt out/target/product/mek_8q/\$PARTITION_OUT_IMAGE.img --output_json out/target/product/mek_8q/\$PARTITION_OUT_IMAGE.bpt --input \$PARTITION_INPUT_BPT ; done )"
File "out/host/linux-x86/bin/bpttool", line 1065
print '{}.{}'.format(BPT_VERSION_MAJOR, BPT_VERSION_MINOR)
^
SyntaxError: invalid syntax
[ 12% 12843/104342] Target partition table image: out/target/product/mek_8q/partition-table.img
FAILED: out/target/product/mek_8q/partition-table.img
/bin/bash -c "out/host/linux-x86/bin/bpttool make_table --output_gpt out/target/product/mek_8q/partition-table.img --output_json out/target/product/mek_8q/partition-table.bpt --input device/fsl/common/partition/device-partitions-13GB-ab-dual-bootloader.bpt"
File "out/host/linux-x86/bin/bpttool", line 1065
print '{}.{}'.format(BPT_VERSION_MAJOR, BPT_VERSION_MINOR)
^
SyntaxError: invalid syntax

0 Kudos
Reply
18 Replies

6,724 Views
Sooraj_M_S
Contributor I

Hi,

 We are trying to build Android 10 for our custom hardware which is based on iM8QM. Currently we are building the bootloader but we run into a similar build error

'/home/ubuntu/Leap/Build/Porting/Android/20288/android_build/out/target/product/mek_8q/obj/UBOOT_COLLECTION/u-boot-imx8qxp-c0.imx': No such file or directory

make[1]: Entering directory '/home/ubuntu/Leap/Build/Porting/Android/20288/android_build/vendor/nxp-opensource/uboot-imx'

make[2]: Entering directory '/home/ubuntu/Leap/Build/Porting/Android/20288/android_build/out/target/product/mek_8q/obj/UBOOT_OBJ'

  CLEAN   dts/../arch/arm/dts

  CLEAN   dts

  CLEAN   examples/standalone

  CLEAN   tools

  CLEAN   scripts/basic

  CLEAN   tools/lib tools/common

  CLEAN   scripts/kconfig

  CLEAN   scripts/dtc

  CLEAN   spl/arch spl/board spl/cmd spl/common spl/disk spl/drivers spl/dts spl/env spl/fs spl/lib spl/u-boot-spl spl/u-boot-spl-dtb.bin spl/u-boot-spl-nodtb.bin spl/u-boot-spl.bin spl/u-boot-spl.cfgout spl/u-boot-spl.cfgoutn spl/u-boot-spl.dtb spl/u-boot-spl.lds spl/u-boot-spl.map spl/u-boot.cfg

  CLEAN   u-boot.elf u-boot.lds u-boot.cfg.configs u-boot-dtb.img u-boot-dtb.cfgout u-boot-elf.o u-boot-dtb.cfgoutn u-boot.map u-boot-nodtb.bin u-boot.cfg u-boot.bin u-boot.srec u-boot-dtb.bin u-boot u-boot.dtb u-boot.img u-boot.sym System.map

  CLEAN   include/config include/generated spl

  CLEAN   .config include/autoconf.mk include/autoconf.mk.dep include/config.h

make[2]: Leaving directory '/home/ubuntu/Leap/Build/Porting/Android/20288/android_build/out/target/product/mek_8q/obj/UBOOT_OBJ'

make[1]: Leaving directory '/home/ubuntu/Leap/Build/Porting/Android/20288/android_build/vendor/nxp-opensource/uboot-imx'

make[1]: Entering directory '/home/ubuntu/Leap/Build/Porting/Android/20288/android_build/vendor/nxp-opensource/uboot-imx'

make[2]: Entering directory '/home/ubuntu/Leap/Build/Porting/Android/20288/android_build/out/target/product/mek_8q/obj/UBOOT_OBJ'

  HOSTCC  scripts/basic/fixdep

  GEN     ./Makefile

  HOSTCC  scripts/kconfig/conf.o

  YACC    scripts/kconfig/zconf.tab.c

  LEX     scripts/kconfig/zconf.lex.c

  HOSTCC  scripts/kconfig/zconf.tab.o

  HOSTLD  scripts/kconfig/conf

#

# configuration written to .config

#

make[2]: Leaving directory '/home/ubuntu/Leap/Build/Porting/Android/20288/android_build/out/target/product/mek_8q/obj/UBOOT_OBJ'

make[1]: Leaving directory '/home/ubuntu/Leap/Build/Porting/Android/20288/android_build/vendor/nxp-opensource/uboot-imx'

cc1: fatal error: /home/ubuntu/Leap/Build/Porting/Android/20288/android_build/vendor/nxp-opensource/uboot-imx/: No such file or directory

compilation terminated.

The complete bootlog is attached. Please help us in resolving the issue

0 Kudos
Reply

3,952 Views
chillinwithscb
Contributor II

Seems like a totally different error than OP

0 Kudos
Reply

7,626 Views
yhm2046
Contributor II

this problem had solved , use "apt install build-essential texinfo autoconf autobuild flex bison "

0 Kudos
Reply

3,947 Views
chillinwithscb
Contributor II

For that command, I get:

E: Unable to locate package autobuild

0 Kudos
Reply

7,684 Views
suxianghua
Contributor II

I met this problem I'v solved it , you can use python2.7 to compile it 

3,944 Views
chillinwithscb
Contributor II

Not helpful. Don't know how to "use python2.7"

0 Kudos
Reply

7,672 Views
yhm2046
Contributor II

I changed python to 2.7.12 also got same error log, why?

0 Kudos
Reply

7,658 Views
suxianghua
Contributor II

you can cp attach's files to /usr/bin/ for test

0 Kudos
Reply

7,659 Views
suxianghua
Contributor II

   if python2.7.12 is not support ,you can use python2.7 version for test

2.jpg

0 Kudos
Reply

7,638 Views
yhm2046
Contributor II

hi, now I have ubuntu18.04 and build error:

apply patch to libcore: git am -3 -q /home/evan/automotive2/android_build/vendor/nxp/fsl-proprietary/patches/libcore/0001-MA-16651-add-support-for-rmvb-adts.patch
./imx-make.sh: line 144: make: command not found

what is the error mean? It's because incomplete code?

Tags (1)
0 Kudos
Reply

3,942 Views
chillinwithscb
Contributor II

The error means that the tool 'make' is not found; probably not installed.

0 Kudos
Reply

7,663 Views
suxianghua
Contributor II

use “python -v” cmd to check  python is in right version 

before I use python3.7 ,I met the same problem ,

when I change python version to python2.7 ,it‘s ok !

/i.MX$ python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.7/site.pyc matches /usr/lib/python2.7/site.py
import site # precompiled from /usr/lib/python2.7/site.pyc

0 Kudos
Reply

7,662 Views
suxianghua
Contributor II

bpttool's compile is releated to python

1.jpg

 

0 Kudos
Reply

7,647 Views
yhm2046
Contributor II

thanks a lot for your detail replay, but I had reinstalled the 18.04 ubuntu yesterday. And now I must build environment again and try build the code, I will see whether the error appear again

0 Kudos
Reply

7,673 Views
yhm2046
Contributor II

thanks for your reply, I will try it later.

Tags (1)
0 Kudos
Reply

7,717 Views
yhm2046
Contributor II

now it said:

HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
make[2]: Leaving directory '/home/evan/automotive10/android_build/out/target/product/mek_8q/obj/UBOOT_OBJ'
make[1]: Leaving directory '/home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx'
cc1: fatal error: opening output file spl/u-boot-spl.cfgout: No such file or directory
compilation terminated.
cc1: fatal error: /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/: No such file or directory
compilation terminated.
/home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/drivers/fastboot/fb_fsl/fb_fsl_boot.c: In function 'do_boota':
/home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/drivers/fastboot/fb_fsl/fb_fsl_boot.c:791:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
memcpy((void *)fdt_addr, (void *)((ulong)dt_img +
^
In file included from /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/include/linux/byteorder/little_endian.h:107,
from /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/arch/arm/include/asm/byteorder.h:29,
from /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/include/compiler.h:128,
from /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/include/image.h:18,
from /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/include/common.h:35,
from /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/./lib/libavb/avb_sysdeps.h:22,
from /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/./lib/libavb/avb_descriptor.h:13,
from /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/./lib/libavb/avb_chain_partition_descriptor.h:13,
from /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/./lib/libavb/libavb.h:15,
from /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/lib/avb/libavb_ab/avb_ab_ops.h:33,
from /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/lib/avb/libavb_ab/avb_ab_flow.h:33,
from /home/evan/automotive10/android_build/vendor/nxp-opensource/uboot-imx/lib/avb/libavb_ab/avb_ab_flow.c:25:

 

if someone can tell me why? thanks

0 Kudos
Reply

7,765 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello yhm2046,

This could be related to the device node you're using since the script runs using /dev/sdX,

Could you try using an SD reader?

And run the command:

sudo ./fsl-sdcard-partition.sh -f imx8mm -c 14 /dev/sdX

X is the disk index from 'a' to 'z'

The Easy way should be renaming the files, i.e.

vbmeta-imx8mm.img > vbmeta-imx8mm1.img  (to avoid deleting the file)

vbmeta-imx8mm-mipi-panel.img > vbmeta-imx8mm.img

 

Regards

0 Kudos
Reply

7,755 Views
yhm2046
Contributor II

Hi, I made code like you sail as follow:

sudo ./device/fsl/common/tools/fsl-sdcard-partition.sh -f imx8mm -c 14 /dev/sda

got the error log:

File partition-table-14GB.img not found. Please check. Exiting
./device/fsl/common/tools/fsl-sdcard-partition.sh: line 211: return: can only `return' from a function or sourced scrip

and I make again:

source build/envsetup.sh

lunch mek_8q_car-userdebug

./imx-make.sh -j64 2>&1 | tee build-log.txt

 

got the error log:

 

 

scripts/kconfig/conf --alldefconfig Kconfig
#
# configuration written to .config
#
make[2]: Leaving directory '/home/evan/automotive10/android_build/out/target/product/mek_8q/obj/KERNEL_OBJ'
make[1]: Leaving directory '/home/evan/automotive10/android_build/vendor/nxp-opensource/kernel_imx'
Value requested for CONFIG_DRM_IMX_NWL_DSI not in final .config
Requested value: CONFIG_DRM_IMX_NWL_DSI=y
Actual value:

Building arm64 5.4 kernel ...
make[1]: Entering directory '/home/evan/automotive10/android_build/vendor/nxp-opensource/kernel_imx'
make[2]: Entering directory '/home/evan/automotive10/android_build/out/target/product/mek_8q/obj/KERNEL_OBJ'
GEN Makefile
scripts/kconfig/conf --syncconfig Kconfig
*
* Restart config...
*
*
* General architecture-dependent options

 

please tell me why? thank you

the attachments is whole log

0 Kudos
Reply