Part Number: TDA4VM
Follow the steps on this website, https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1026657/faq-tda4vm-psdk-qnx-modifying-arm-scr_el3-ea-bit
I modify the arm-trusted-firmware to be built with SCR_EL3, EA bit set to 0
Edit this file as below: ${PSDKLA_PATH}/board-support/trusted-firmware-a-2.4/plat/ti/k3/common/plat_common.mk
Modify: HANDLE_EA_EL3_FIRST := 1
To: HANDLE_EA_EL3_FIRST :0
Then I cd to /trusted-firmware-a-2.4 to make .and the following error occurred
zcjiang@TEST3:~/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4$ make -s -j32 PLAT=k3 TARGET_BOARD=generic SPD=opteed Including services/spd/opteed/opteed.mk Building k3 gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/exit.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/exit.o] Error 1 make: *** Waiting for unfinished jobs.... Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/abort.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/abort.o] Error 1 Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/assert.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/assert.o] Error 1 gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/memchr.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/memchr.o] Error 1 Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/memcpy.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/memcpy.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/memcmp.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/memcmp.o] Error 1 Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/memmove.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/memmove.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/memrchr.o' failed gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/memrchr.o] Error 1 Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/memset.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/memset.o] Error 1 gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/printf.o' failed gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/printf.o] Error 1 Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/snprintf.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/snprintf.o] Error 1 Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/puts.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/puts.o] Error 1 Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strlcpy.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strlcpy.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/putchar.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/putchar.o] Error 1 gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ cc1: error: bad value (‘armv8-a’) for ‘-march=’ switch cc1: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 bonnell atom silvermont slm knl x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 btver1 btver2 Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strchr.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strchr.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strcmp.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strcmp.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1103: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/gicdv3_helpers.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/gicdv3_helpers.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1103: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/bl31_context_mgmt.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/bl31_context_mgmt.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1103: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/runtime_svc.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/runtime_svc.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strrchr.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strrchr.o] Error 1 Makefile:1103: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/gicv3_main.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/gicv3_main.o] Error 1 Makefile:1103: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/interrupt_mgmt.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/interrupt_mgmt.o] Error 1 Makefile:1103: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/bl31_main.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/bl31_main.o] Error 1 Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/setjmp.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/setjmp.o] Error 1 gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’? gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1103: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/gicrv3_helpers.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/gicrv3_helpers.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1103: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/errata_report.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/errata_report.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strnlen.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strnlen.o] Error 1 Makefile:1103: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/gicv3_helpers.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/gicv3_helpers.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strncmp.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strncmp.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1075: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strlen.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/libc/strlen.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1103: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/gic-x00.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/gic-x00.o] Error 1 gcc: error: unrecognized command line option ‘-mfix-cortex-a53-835769’ Makefile:1103: recipe for target '/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/arm_gicv3_common.o' failed make: *** [/cscd/zcjiang/tda4_sdk/evm/la/board-support/trusted-firmware-a-2.4/build/k3/generic/release/bl31/arm_gicv3_common.o] Error 1
How can I fix this?
Thank you!