imx8mq's uboot problem

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

imx8mq's uboot problem

1,970 Views
pingyuchen
Contributor II

Hi all,

I compile imx-p9.0.0_1.0.0-ga source code for imx8mq. The other image files can be created successfully except for the uboot .

The output error of compiling is as follows:

make: Leaving directory '../imx-p9.0.0_1.0.0-ga/android_build/vendor/nxp-opensource/arm-trusted-firmware'
make: Entering directory '../imx-p9.0.0_1.0.0-ga/android_build/vendor/nxp-opensource/imx-mkimage'
make: Leaving directory '../imx-p9.0.0_1.0.0-ga/android_build/vendor/nxp-opensource/imx-mkimage'
make: Entering directory '../imx-p9.0.0_1.0.0-ga/android_build/vendor/nxp-opensource/imx-mkimage'
fatal: Not a git repository (or any of the parent directories): .git
Makefile:40: recipe for target 'src/build_info.h' failed
make[1]: *** [src/build_info.h] Error 128
Makefile:19: recipe for target 'flash_hdmi_spl_uboot' failed
make: *** [flash_hdmi_spl_uboot] Error 2

I don't modify anything in the source code. What problem is it?

Thank you very much!

0 Kudos
3 Replies

1,348 Views
radhikasomaiya
Senior Contributor II

Hi pingyu chen,

You can follow the steps given in Android's User Guide for Android Pi from P9.0.0_1.0.0_GA_DOCS from below link. I am able to compile U-Boot image without any error.

Android OS for i.MX Applications Processors | NXP 

If it still fails then could you please provide your steps that you are using to build U-boot image?

Regards,

Radhika Somaiya

0 Kudos

1,348 Views
pingyuchen
Contributor II

Thank you for your reply.

I compile the uboot again by the steps in the doc which you pointed. But it is still fail.

the compile information is:

CFGCHK u-boot.cfg
make[1]: Leaving directory '/home/nccpu/imx-p9.0.0_1.0.0-ga/android_build1/out/target/product/evk_8mq/obj/UBOOT_OBJ'
make: Leaving directory '/home/nccpu/imx-p9.0.0_1.0.0-ga/android_build1/vendor/nxp-opensource/uboot-imx'
build post process
/bin/bash: @: command not found
make: Entering directory '/home/nccpu/imx-p9.0.0_1.0.0-ga/android_build1/vendor/nxp-opensource/arm-trusted-firmware'
CLEAN
make: Leaving directory '/home/nccpu/imx-p9.0.0_1.0.0-ga/android_build1/vendor/nxp-opensource/arm-trusted-firmware'
make: Entering directory '/home/nccpu/imx-p9.0.0_1.0.0-ga/android_build1/vendor/nxp-opensource/arm-trusted-firmware'
CC plat/imx/common/sip_svc.c
CC plat/imx/imx8mq/imx8mq_bl31_setup.c
CC plat/imx/imx8mq/src.c
CC plat/imx/common/imx8m/hab.c
CC plat/imx/imx8mq/gpc.c
CC plat/imx/imx8mq/imx8mq_psci.c
CC plat/imx/common/imx8m/imx_csu.c
CC plat/imx/common/imx8m/imx_rdc.c
CC plat/imx/common/imx8_topology.c
CC plat/common/plat_psci_common.c
CC lib/xlat_tables/aarch64/xlat_tables.c
CC lib/xlat_tables/xlat_tables_common.c
CC drivers/delay_timer/delay_timer.c
CC drivers/delay_timer/generic_delay_timer.c
CC drivers/arm/gic/v3/gicv3_helpers.c
CC drivers/arm/gic/v3/gicv3_main.c
CC drivers/arm/gic/common/gic_common.c
CC plat/common/plat_gicv3.c
CC plat/imx/common/plat_imx8_gic.c
CC plat/imx/common/imx8m/dram.c
CC plat/imx/common/imx8m/clock.c
CC plat/imx/common/imx8m/lpddr4_retention.c
CC plat/imx/common/imx8m/ddr4_retention.c
CC plat/imx/common/imx8m/lpddr4_helper.c
CC plat/imx/common/imx8m/lpddr4_dvfs.c
CC plat/imx/common/imx8m/ddr4_dvfs.c
CC drivers/arm/tzc/tzc380.c
CC bl31/bl31_main.c
CC bl31/interrupt_mgmt.c
CC bl31/bl31_context_mgmt.c
CC common/runtime_svc.c
CC services/arm_arch_svc/arm_arch_svc_setup.c
CC services/std_svc/std_svc_setup.c
CC lib/el3_runtime/cpu_data_array.c
CC lib/el3_runtime/aarch64/context_mgmt.c
CC lib/cpus/errata_report.c
CC lib/psci/psci_off.c
CC lib/psci/psci_on.c
CC lib/psci/psci_suspend.c
CC lib/psci/psci_common.c
CC lib/psci/psci_main.c
CC lib/psci/psci_setup.c
CC lib/psci/psci_system_off.c
CC lib/psci/psci_mem_protect.c
CC lib/locks/bakery/bakery_lock_normal.c
CC lib/extensions/spe/spe.c
CC lib/extensions/sve/sve.c
CC common/bl_common.c
CC common/tf_log.c
CC common/tf_printf.c
CC common/tf_snprintf.c
CC plat/common/plat_bl_common.c
CC plat/common/plat_log_common.c
CC plat/common/aarch64/plat_common.c
CC lib/stdlib/abort.c
CC lib/stdlib/assert.c
CC lib/stdlib/exit.c
CC lib/stdlib/mem.c
CC lib/stdlib/printf.c
CC lib/stdlib/putchar.c
CC lib/stdlib/puts.c
CC lib/stdlib/sscanf.c
CC lib/stdlib/strchr.c
CC lib/stdlib/strcmp.c
CC lib/stdlib/strlen.c
CC lib/stdlib/strncmp.c
CC lib/stdlib/strnlen.c
CC lib/stdlib/subr_prf.c
CC lib/stdlib/timingsafe_bcmp.c
AS plat/imx/common/imx8_helpers.S
AS plat/imx/common/mxcuart_console.S
AS lib/cpus/aarch64/cortex_a53.S
AS drivers/console/aarch64/console.S
AS bl31/aarch64/bl31_entrypoint.S
AS bl31/aarch64/runtime_exceptions.S
AS bl31/aarch64/crash_reporting.S
AS plat/common/aarch64/platform_mp_stack.S
AS lib/el3_runtime/aarch64/cpu_data.S
AS lib/cpus/aarch64/cpu_helpers.S
AS lib/locks/exclusive/aarch64/spinlock.S
AS lib/psci/aarch64/psci_helpers.S
AS lib/el3_runtime/aarch64/context.S
AS lib/cpus/aarch64/wa_cve_2017_5715_bpiall.S
AS lib/cpus/aarch64/wa_cve_2017_5715_mmu.S
AS common/aarch64/debug.S
AS lib/aarch64/cache_helpers.S
AS lib/aarch64/misc_helpers.S
AS plat/common/aarch64/platform_helpers.S
PP bl31/bl31.ld.S
LD build/imx8mq/release/bl31/bl31.elf
BIN build/imx8mq/release/bl31.bin
OD build/imx8mq/release/bl31/bl31.dump

Built build/imx8mq/release/bl31.bin successfully

make: Leaving directory '.../imx-p9.0.0_1.0.0-ga/android_build1/vendor/nxp-opensource/arm-trusted-firmware'
make: Entering directory '../imx-p9.0.0_1.0.0-ga/android_build1/vendor/nxp-opensource/imx-mkimage'
make: Leaving directory '../imx-p9.0.0_1.0.0-ga/android_build1/vendor/nxp-opensource/imx-mkimage'
make: Entering directory ../imx-p9.0.0_1.0.0-ga/android_build1/vendor/nxp-opensource/imx-mkimage'
fatal: Not a git repository (or any of the parent directories): .git
Makefile:40: recipe for target 'src/build_info.h' failed
make[1]: *** [src/build_info.h] Error 128
Makefile:19: recipe for target 'flash_hdmi_spl_uboot' failed
make: *** [flash_hdmi_spl_uboot] Error 2
make: Leaving directory '/home/nccpu/imx-p9.0.0_1.0.0-ga/android_build1/vendor/nxp-opensource/imx-mkimage'
cp: cannot stat 'vendor/nxp-opensource/imx-mkimage/iMX8M/flash.bin': No such file or directory
/bin/bash: line 0: [: =: unary operator expected

[0;32m#### build completed successfully (02:47 (mm:ss)) #### [00m

I think the error is that I can't get the HEAD value from git. But I can get other files from git for example the source code.

Could you send the correct build_info.h which is in ../vendor/nxp-opensource/imx-mkimage/src/ to me. I directly use it and don't get it from git.

Thank you very much!

0 Kudos

1,348 Views
radhikasomaiya
Senior Contributor II

Hi pingyu chen,

It looks like repo doesn't sync properly. Your build is not able to find the .git into your current directory. Can you please provide all the steps you  are performing or Kindly try to build the android in fresh directory again?

0 Kudos