This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: Make Error:PSDK QNX : Modifying ARM SCR_EL3 EA Bit

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!

  • Hi,

    Please try setting the below environment variables prior to running the make command:

    export CROSS_COMPILE=${PSDKRA_PATH}/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu//bin/aarch64-none-linux-gnu-
    export GCC_LINUX_ARM_ROOT=${PSDKRA_PATH}/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/

    Where PSDKRA_PATH is the root directory of the PSDKR RTOS installation.

    Regards,

    kb

  • Thank you! I compiled it successfully. It works with SDboot, but not with EMMCboot.

    What's the difference?
    How do I use it in EMMC Boot?

    When I use emmc Boot, it will look for MMC1, not MMC0

    U-Boot SPL 2020.01-g3c9ebdb87d (Jan 25 2021 - 04:06:36 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0014 '20.8.5--v2020.08b (Terrific Lla')
    Reading on-board EEPROM at 0x50 failed 1
    Trying to boot from MMC1
    Loading Environment from MMC... *** Warning - bad CRC, using default environment
    
    init_env from device 17 not supported!
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.4(release):07.03.00.005-dirty
    ▒  BL31: Built : 09:40:44, Oct 27 2021
    ERROR:   GTC_CNTFID0 is 0! Assuming 200000000 Hz. Fix Bootloader
    
    U-Boot SPL 2020.01-dirty (Oct 27 2020 - 09:42:06 +0800)
    SYSFW ABI: 3.1 (firmware rev 0x0014 '20.8.5--v2020.08b (Terrific Lla')
    Reading on-board EEPROM at 0x50 failed 1
    Trying to boot from MMC1
    
    
    U-Boot 2020.01-g3c9ebdb87d (Jan 25 2021 - 04:02:01 +0000)
    
    SoC:   J721E SR1.0
    Model: Texas Instruments K3 J721E SoC
    Reading on-board EEPROM at 0x50 failed 1
    Board: J721EX-PM1-SOM rev E2
    DRAM:  4 GiB
    not found for dev hbmc-mux
    Flash: 0 Bytes
    MMC:   sdhci@4f80000: 0, sdhci@4fb0000: 1
    Loading Environment from MMC... Card did not respond to voltage select!
    *** Warning - No block device, using default environment
    
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Reading on-board EEPROM at 0x50 failed 1
    Net:   Could not get PHY for ethernet@4600 000: !ddr 0
    phy_connect() failed
    No ethernet found.
    
    Hit any key to stop autoboot:  0
    => mmcinfo
    Card did not respond to voltage select!
    =>
    

  • Hi Jiang,

    I don't believe the eMMC is related to the ARM SCR_EL3 EA Bit.   Could you please open a new thread for the eMMC question?

    Thanks,

    kb