Android image build error for imx8mp

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

Android image build error for imx8mp

963 Views
hulk101
Contributor III

while trying to build android image imx-android-15.0.0_1.2.0, I am facing the below error:

Building i.MX U-Boot with firmware
make[1]: Entering directory '/workdir/vendor/variscite/arm-trusted-firmware'
CLEAN
make[1]: Leaving directory '/workdir/vendor/variscite/arm-trusted-firmware'
make[1]: Entering directory '/workdir/vendor/nxp-opensource/imx-mkimage'
imx8qm clean done
imx8qx clean done
imx8dxl clean done
imx8ulp clean done
imx93 clean done
imx91 clean done
imx95 clean done
imx94 clean done
make[1]: Leaving directory '/workdir/vendor/nxp-opensource/imx-mkimage'
make[1]: Entering directory '/workdir/vendor/nxp-opensource/imx-mkimage'
fatal: detected dubious ownership in repository at '/workdir/vendor/nxp-opensource/imx-mkimage'
To add an exception for this directory, call:

git config --global --add safe.directory /workdir/vendor/nxp-opensource/imx-mkimage
make[2]: *** [Makefile:59: src/build_info.h] Error 128
make[1]: *** [Makefile:25: flash_evk] Error 2
make[1]: Leaving directory '/workdir/vendor/nxp-opensource/imx-mkimage'
make: *** [/workdir/device/variscite/../nxp/common/build/uboot.mk:137: /workdir/out/target/product/dart_mx8mp/u-boot.imx] Error 1
make: Leaving directory '/workdir'

The error is occured when running the below command :
TARGET_USES_BCM_WIFI=true ./imx-make.sh -j4 2>&1 | tee build1-1.log

0 Kudos
Reply
1 Reply

921 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

The error you're encountering during the Android image build is related to Git repository ownership detection. Git has a security feature that prevents operations in repositories owned by different users, which is triggering the "dubious ownership" error.

To resolve this issue, you need to add the repository directory to Git's safe.directory configuration by running the command that was suggested in the error message:

```
git config --global --add safe.directory /workdir/vendor/nxp-opensource/imx-mkimage
```

After running this command, try building the image again using your original command:

```
TARGET_USES_BCM_WIFI=true ./imx-make.sh -j4 2>&1 | tee build1-1.log
```

This is a Git security feature rather than an issue with the NXP Android BSP itself. The error occurs because Git detects that the repository directory may be owned by a different user than the one executing the Git commands, which commonly happens in containerized or shared development environments.

 

Regards

0 Kudos
Reply