imx8m-mini board android 14 build error

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

imx8m-mini board android 14 build error

1,840 Views
pavithrasavin
Contributor II

hi sir,

I am building Android 14 (14.0.0_1.2.0) source code on my Ubuntu 18.04 system. During the final build step, I encountered an error stating that the tee.bin file is not generated (ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.). How can I resolve this issue?

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

logs:

=======

[100% 445/445] analyzing Android.bp files and generating ninja file at out/soong/build.ninja
FAILED: out/soong/build.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" -o out/soong/build.ninja --bazel-mode --globListDir build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.build Android.bp
14:33:36 soong bootstrap failed with: exit status 1
ninja: build stopped: subcommand failed.

#### failed to build some targets (15:08 (mm:ss)) ####


$ ~/android_build$ grep -i "error" build-log.txt1
HDRINST usr/include/linux/can/error.h
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
CC kernel/trace/error_report-traces.o
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
CC lib/zstd/common/error_private.o
CC lib/fdt_strerror.o
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
CC drivers/scsi/scsi_error.o
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
14:18:33 If you run into segfaults or other errors, try reducing your
[ 5% 23/445] compile out/host/linux-x86/bin/go/golang-protobuf-internal-errors/test/google.golang.org/protobuf/internal/errors.a
[ 5% 26/445] compile out/host/linux-x86/bin/go/golang-protobuf-internal-errors/pkg/google.golang.org/protobuf/internal/errors.a
[ 21% 95/445] gotestmain out/host/linux-x86/bin/go/golang-protobuf-internal-errors/test/test.go
[ 21% 96/445] compile out/host/linux-x86/bin/go/golang-protobuf-internal-errors/test/test.a
[ 24% 108/445] link out/host/linux-x86/bin/go/golang-protobuf-internal-errors/test/test
[ 28% 127/445] test google.golang.org/protobuf/internal/errors
[ 59% 265/445] compile out/host/linux-x86/bin/go/soong-java-config-error_prone/pkg/android/soong/java/config/error_prone.a

0 Kudos
Reply
9 Replies

225 Views
Beginner1122
Contributor II

I am trying to build android 13 image for INVENSOM-8MM NXP iMX SOM board by following the android user guide but facing the build errors kindly help me in building the image successfully:
 

rmt@rmt-pc:/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build$ ./imx-make.sh -j4 2>&1 | tee build-log.txt
make: Entering directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build'
rm -rf /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/obj/UBOOT_OBJ/ubootenv.sh
mkdir -p /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/obj/UBOOT_COLLECTION
if [ -n "0" ]; then \
echo 'export ROLLBACK_INDEX_IN_FIT=0' > /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/obj/UBOOT_OBJ/ubootenv.sh; \
echo 'export ROLLBACK_INDEX_IN_CONTAINER=0' >> /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/obj/UBOOT_OBJ/ubootenv.sh; \
else \
echo 'export ROLLBACK_INDEX_IN_FIT=' > /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/obj/UBOOT_OBJ/ubootenv.sh; \
echo 'export ROLLBACK_INDEX_IN_CONTAINER=' >> /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/obj/UBOOT_OBJ/ubootenv.sh; \
fi; \
if [ "" = "true" ]; then \
echo 'export TEE_COMPRESS_ENABLE=' >> /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/obj/UBOOT_OBJ/ubootenv.sh; \
else \
echo 'export TEE_COMPRESS_ENABLE=' >> /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/obj/UBOOT_OBJ/ubootenv.sh; \
fi
if [ "" = "true" ]; then \
dd if=/dev/zero of=vendor/nxp-opensource/imx-mkimage/iMX8M/dek_blob_fit_dummy.bin bs=96 count=1 && sync; \
else \
rm -f vendor/nxp-opensource/imx-mkimage/iMX8M/dek_blob_fit_dummy.bin; \
fi
Merging KERNEL config srcs: /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/imx_v8_android_defconfig /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/device/nxp/imx8m/invsom_8mm/android_addition_defconfig
Building arm64 2022.04 U-Boot ...
. /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/device/nxp/imx8m/invsom_8mm/AndroidUboot.sh; \
build_m4_image
Using /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/vendor/nxp-opensource/kernel_imx/arch/arm64/configs/imx_v8_android_defconfig as base
Merging /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/device/nxp/imx8m/invsom_8mm/android_addition_defconfig
make[1]: Entering directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/vendor/nxp-opensource/uboot-imx'
make[2]: Entering directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/obj/UBOOT_OBJ'
Value of CONFIG_USB_SERIAL_OPTION is redefined by fragment /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/device/nxp/imx8m/invsom_8mm/android_addition_defconfig:
Previous value: CONFIG_USB_SERIAL_OPTION=m
New value: CONFIG_USB_SERIAL_OPTION=y
 
make[1]: Entering directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/vendor/nxp-opensource/kernel_imx'
make[2]: Entering directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/obj/KERNEL_OBJ'
  GEN     Makefile
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   scripts/dtc
  CLEAN   spl/u-boot.cfg
  CLEAN   include/generated/env.in u-boot.cfg u-boot.cfg.configs
  CLEAN   include/config include/generated spl include/asm
  CLEAN   .config .config.old include/autoconf.mk include/autoconf.mk.dep include/config.h include/asm
make[2]: Leaving directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/obj/UBOOT_OBJ'
make[1]: Leaving directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/vendor/nxp-opensource/uboot-imx'
make[1]: Entering directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/vendor/nxp-opensource/uboot-imx'
make[2]: Entering directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/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
./.tmp.config.5XkC1hRYjA:1542:warning: override: reassigning to symbol PPP_SYNC_TTY
#
# configuration written to .config
#
make[2]: Leaving directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/obj/KERNEL_OBJ'
make[1]: Leaving directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/vendor/nxp-opensource/kernel_imx'
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
make[2]: Leaving directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/obj/UBOOT_OBJ'
make[1]: Leaving directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/vendor/nxp-opensource/uboot-imx'
Value requested for CONFIG_INPHI_PHY not in final .config
Requested value:  CONFIG_INPHI_PHY=y
Actual value:     
 
  /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/vendor/nxp-opensource/uboot-imx is not clean, please run 'make mrproper'
  in the '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/vendor/nxp-opensource/uboot-imx' directory.
make[2]: *** [/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/vendor/nxp-opensource/uboot-imx/Makefile:1928: prepare3] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:177: sub-make] Error 2
make: *** [/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/device/nxp/common/build/uboot.mk:137: /media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build/out/target/product/invsom_8mm/u-boot.imx] Error 1
make: *** Waiting for unfinished jobs....
Value requested for CONFIG_WLAN_VENDOR_NXP not in final .config
Requested value:  CONFIG_WLAN_VENDOR_NXP=n
Actual value:     
 
Value requested for CONFIG_MXMWIFIEX not in final .config
Requested value:  CONFIG_MXMWIFIEX=m
Actual value:     
 
Value requested for CONFIG_CLD_HL_SDIO_CORE not in final .config
Requested value:  CONFIG_CLD_HL_SDIO_CORE=y
Actual value:     
 
Value requested for CONFIG_PLIP not in final .config
Requested value:  CONFIG_PLIP=y
Actual value:     
 
Value requested for CONFIG_PPP_SYNC_TTY not in final .config
Requested value:  CONFIG_PPP_SYNC_TTY=y
CONFIG_PPP_SYNC_TTY=y
Actual value:     CONFIG_PPP_SYNC_TTY=y
 
Value requested for CONFIG_PPPOATM not in final .config
Requested value:  CONFIG_PPPOATM=y
Actual value:     
 
Value requested for CONFIG_PPP_SYNC_TTY not in final .config
Requested value:  CONFIG_PPP_SYNC_TTY=y
CONFIG_PPP_SYNC_TTY=y
Actual value:     CONFIG_PPP_SYNC_TTY=y
 
Value requested for CONFIG_REGULATOR_DUMMY not in final .config
Requested value:  CONFIG_REGULATOR_DUMMY=y
Actual value:     
 
Value requested for CONFIG_EARLY_PRINTK not in final .config
Requested value:  CONFIG_EARLY_PRINTK=y
Actual value:     
 
Value requested for CONFIG_DEBUG_PRINTK not in final .config
Requested value:  CONFIG_DEBUG_PRINTK=y
Actual value:     
 
Value requested for CONFIG_DEBUG_LL not in final .config
Requested value:  CONFIG_DEBUG_LL=y
Actual value:     
 
Value requested for CONFIG_DRM_LONTIUM_LT8912 not in final .config
Requested value:  CONFIG_DRM_LONTIUM_LT8912=y
Actual value:     
 
make: Leaving directory '/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build'

 

0 Kudos
Reply

1,806 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @pavithrasavin!

Thank you for contacting NXP Support!

 

Do you modify the source?

I am able to compile Android 14.

Can you share the steps that you are following and if is possible share a log file.

 

Best Regards!

Chavira

0 Kudos
Reply

1,785 Views
pavithrasavin
Contributor II

Hi @Chavira 

https://www.nxp.com/docs/en/user-guide/ANDROID_USERS_GUIDE.pdf

Thank you for your response.I did not modify the source code(Android 14.0.0_1.2.0).

Please find the below attached document

( IMX8M-MINI_ANDROID14_BUILD_STEPS.txt) we have followed and the corresponding log(build-log.txt)

Thanks, Pavithra

0 Kudos
Reply

1,762 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @pavithrasavin!

The error sayas that doesn´t exist tee.bin.

 

Please try it run the command:

./imx-make.sh bootloader kernel -j4 2>&1 | tee build-log.txt

 

and then

make -j4 2>&1 | tee -a build-log.txt

 

with the first command should be generated the needed binary.

 

If the errors persists Plese repeat the steps but compiling first the bootloader and then generating the Andorid Image

 

Best Regards!

Chavira

0 Kudos
Reply

1,728 Views
pavithrasavin
Contributor II

Hi @Chavira

Thanks for your response. I ran the command

./imx-make.sh bootloader kernel -j4 2>&1 | tee build-log.txt 

I encountered the following error: ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.The build continued running after this error. I have attached the log file located at build-log.txt.

Additionally, when I ran the command

make -j4 2>&1 | tee -a 1.txt

I have attached the log file located at 1.txt.

my PC hanged. Could you please assist me with these issues?

my system specification:

ubuntu -18.04.6 LTS

memory-15.5 GiB

processor-Intel® Core™ i3-3220 CPU @ 3.30GHz × 4 

OS type-64-bit

 

Thank you in advance for your help.

Regards,

Pavithra

0 Kudos
Reply

1,701 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @pavithrasavin!

 

Your hardware is old.

 

For this case  I recommed to use one core in the compilation.

 

Please try with the commands:

 

./imx-make.sh bootloader kernel -j1 2>&1 | tee build-log.txt

make -j1 2>&1 | tee -a build-log.txt

 

Best Regards!

Chavira

0 Kudos
Reply

1,663 Views
pavithrasavin
Contributor II

Hi, @Chavira 

Thank for your response

we are tried another system .The issue is occurring on a system  previously successfully built Android 13, but now with Android 14, you face this error. 

system specifications are:

  • Ubuntu Version: 18.04
  • Memory: 15.4 GiB
  • Processor: 11th Gen Intel® Core™ i5-11400 CPU @ 2.60GHz × 12
  • OS Type: 64-bit

I ran the command:

/imx-make.sh bootloader kernel -j1 2>&1 | tee build-kernel_log.txt
 
bootloader image and kernel image was build-ed successfully.that log attached
build-kernel_log.txt
 
i ran this command
make -j1 2>&1 | tee -a build-log.txt
and encountered the error:
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting. and FAILED: out/soong/build.ninja.

that log attached build-log.txt

and are facing the same issue.

Despite increasing the swap space to 8GB, I continue to encounter the same problem.

0 Kudos
Reply

1,548 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @pavithrasavin!

 

I tried in different ways but I can[t get those errors.

 

I recommend to use docker, maybe that could solve the problem.

 

Best Regards!

Chavira

0 Kudos
Reply

1,454 Views
pavithrasavin
Contributor II

Hi, @Chavira

 

Thank you for the suggestion. I have successfully built the Android 14 source code. I appreciate the correct solutions you provided each time. Now, I have successfully completed the Android source code build. Thank you!

Regards,

Pavithra.