Other Parts Discussed in Thread: DLP2021AM263Q1EVM
Dear Champs,
When my customer tried to build SBL_QSPI, they faced build error and it looks the error was caused in openssl command.
Could you please check below error log and let me know how they can resolve it?
Their MCU+SDK is 8.6 and they are building SBL using CCS 12.1.0.
~~~~~~~
**** Build of configuration Release for project sbl_qspi_DLP2021AM263Q1EVM ****
"D:\\ti\\ccs1210\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
Building file: "../example.syscfg"
Invoking: SysConfig
"D:/ti/ccs1210/ccs/utils/sysconfig_1.15.0/sysconfig_cli.bat" -s "D:/ti/mcu_plus_sdk_am263x_08_06_00_34/.metadata/product.json" --script "D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/example.syscfg" --context "r5fss0-0" -o "syscfg" --part AM263x --package ZCZ --compiler ticlang
Running script...
Validating...
info: /kernel/dpl/debug_log uartLog.baudRate: Actual Baudrate Possible: 115385 (0 % error)
Generating Code (example.syscfg)...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_dpl_config.c...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_dpl_config.h...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_drivers_config.c...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_drivers_config.h...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_drivers_open_close.c...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_drivers_open_close.h...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_pinmux_config.c...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_power_clock_config.c...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_board_config.c...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_board_config.h...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_board_open_close.c...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_board_open_close.h...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_enet_config.c...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_enet_config.h...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_enet_open_close.c...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_enet_open_close.h...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_enet_soc.c...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_enet_lwipif.c...
Writing D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM\Release\syscfg\ti_enet_lwipif.h...
Finished building: "../example.syscfg"
Building file: "syscfg/ti_enet_config.c"
Invoking: Arm Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include/c" -I"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source" -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_enet_config.d_raw" -MT"syscfg/ti_enet_config.o" -I"D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/syscfg" -o"syscfg/ti_enet_config.o" "syscfg/ti_enet_config.c"
Finished building: "syscfg/ti_enet_config.c"
Building file: "syscfg/ti_drivers_config.c"
Invoking: Arm Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include/c" -I"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source" -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_drivers_config.d_raw" -MT"syscfg/ti_drivers_config.o" -I"D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/syscfg" -o"syscfg/ti_drivers_config.o" "syscfg/ti_drivers_config.c"
Finished building: "syscfg/ti_drivers_config.c"
Building file: "syscfg/ti_power_clock_config.c"
Invoking: Arm Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include/c" -I"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source" -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_power_clock_config.d_raw" -MT"syscfg/ti_power_clock_config.o" -I"D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/syscfg" -o"syscfg/ti_power_clock_config.o" "syscfg/ti_power_clock_config.c"
Finished building: "syscfg/ti_power_clock_config.c"
Building file: "syscfg/ti_drivers_open_close.c"
Invoking: Arm Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include/c" -I"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source" -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_drivers_open_close.d_raw" -MT"syscfg/ti_drivers_open_close.o" -I"D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/syscfg" -o"syscfg/ti_drivers_open_close.o" "syscfg/ti_drivers_open_close.c"
Finished building: "syscfg/ti_drivers_open_close.c"
Building file: "syscfg/ti_dpl_config.c"
Invoking: Arm Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include/c" -I"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source" -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_dpl_config.d_raw" -MT"syscfg/ti_dpl_config.o" -I"D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/syscfg" -o"syscfg/ti_dpl_config.o" "syscfg/ti_dpl_config.c"
Finished building: "syscfg/ti_dpl_config.c"
Building file: "syscfg/ti_board_config.c"
Invoking: Arm Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include/c" -I"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source" -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_board_config.d_raw" -MT"syscfg/ti_board_config.o" -I"D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/syscfg" -o"syscfg/ti_board_config.o" "syscfg/ti_board_config.c"
Finished building: "syscfg/ti_board_config.c"
Building file: "syscfg/ti_pinmux_config.c"
Invoking: Arm Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include/c" -I"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source" -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_pinmux_config.d_raw" -MT"syscfg/ti_pinmux_config.o" -I"D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/syscfg" -o"syscfg/ti_pinmux_config.o" "syscfg/ti_pinmux_config.c"
Finished building: "syscfg/ti_pinmux_config.c"
Building file: "syscfg/ti_board_open_close.c"
Invoking: Arm Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include/c" -I"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source" -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_board_open_close.d_raw" -MT"syscfg/ti_board_open_close.o" -I"D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/syscfg" -o"syscfg/ti_board_open_close.o" "syscfg/ti_board_open_close.c"
Finished building: "syscfg/ti_board_open_close.c"
Building file: "syscfg/ti_enet_open_close.c"
Invoking: Arm Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include/c" -I"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source" -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_enet_open_close.d_raw" -MT"syscfg/ti_enet_open_close.o" -I"D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/syscfg" -o"syscfg/ti_enet_open_close.o" "syscfg/ti_enet_open_close.c"
Finished building: "syscfg/ti_enet_open_close.c"
Building file: "syscfg/ti_enet_soc.c"
Invoking: Arm Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include/c" -I"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source" -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_enet_soc.d_raw" -MT"syscfg/ti_enet_soc.o" -I"D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/syscfg" -o"syscfg/ti_enet_soc.o" "syscfg/ti_enet_soc.c"
Finished building: "syscfg/ti_enet_soc.c"
Building file: "syscfg/ti_enet_lwipif.c"
Invoking: Arm Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include/c" -I"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source" -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_enet_lwipif.d_raw" -MT"syscfg/ti_enet_lwipif.o" -I"D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/syscfg" -o"syscfg/ti_enet_lwipif.o" "syscfg/ti_enet_lwipif.c"
Finished building: "syscfg/ti_enet_lwipif.c"
Building file: "../main.c"
Invoking: Arm Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include/c" -I"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source" -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"main.d_raw" -MT"main.o" -I"D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/syscfg" -o"main.o" "../main.c"
Finished building: "../main.c"
Building target: "sbl_qspi_DLP2021AM263Q1EVM.out"
Invoking: Arm Linker
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -DSOC_AM263X -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -Wl,-m"sbl_qspi.Release.map" -Wl,-i"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source/kernel/nortos/lib" -Wl,-i"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source/drivers/lib" -Wl,-i"D:/ti/mcu_plus_sdk_am263x_08_06_00_34/source/board/lib" -Wl,-i"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/lib" -Wl,--reread_libs -Wl,--diag_suppress=10063 -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="sbl_qspi_DLP2021AM263Q1EVM_linkInfo.xml" -Wl,--ram_model -o "sbl_qspi_DLP2021AM263Q1EVM.out" "./syscfg/ti_dpl_config.o" "./syscfg/ti_drivers_config.o" "./syscfg/ti_drivers_open_close.o" "./syscfg/ti_pinmux_config.o" "./syscfg/ti_power_clock_config.o" "./syscfg/ti_board_config.o" "./syscfg/ti_board_open_close.o" "./syscfg/ti_enet_config.o" "./syscfg/ti_enet_open_close.o" "./syscfg/ti_enet_soc.o" "./syscfg/ti_enet_lwipif.o" "./main.o" "../linker.cmd" -Wl,-lnortos.am263x.r5f.ti-arm-clang.release.lib -Wl,-ldrivers.am263x.r5f.ti-arm-clang.release.lib -Wl,-lboard.am263x.r5f.ti-arm-clang.release.lib -Wl,-llibc.a -Wl,-llibsysbm.a
Finished building target: "sbl_qspi_DLP2021AM263Q1EVM.out"
D:/ti/ccs1210/ccs/utils/bin/gmake -C D:\0_work\ProjectionOpticsTP\DGP\Workspaces\sbl_qspi_DLP2021AM263Q1EVM -f makefile_ccs_bootimage_gen OUTNAME=sbl_qspi_DLP2021AM263Q1EVM PROFILE=Release MCU_PLUS_SDK_PATH=D:/ti/mcu_plus_sdk_am263x_08_06_00_34 CG_TOOL_ROOT=D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS CCS_INSTALL_DIR=D:\ti\ccs1210\ccs CCS_IDE_MODE=desktop
Boot image: am263x:r5fss0-0:nortos:ti-arm-clang D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/sbl_qspi_DLP2021AM263Q1EVM.tiimage ...
D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmobjcopy --strip-sections -O binary Release/sbl_qspi_DLP2021AM263Q1EVM.out D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/sbl_qspi_DLP2021AM263Q1EVM.bin
python D:/ti/mcu_plus_sdk_am263x_08_06_00_34/tools/boot/signing/mcu_rom_image_gen.py --image-bin D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/sbl_qspi_DLP2021AM263Q1EVM.bin --core R5 --swrv 1 --loadaddr 0x70002000 --sign-key D:/ti/mcu_plus_sdk_am263x_08_06_00_34/tools/boot/signing/mcu_gpkey.pem --out-image D:/0_work/ProjectionOpticsTP/DGP/Workspaces/sbl_qspi_DLP2021AM263Q1EVM/Release/sbl_qspi_DLP2021AM263Q1EVM.tiimage --debug DBG_SOC_DEFAULT
makefile_ccs_bootimage_gen:57: recipe for target 'all' failed
Error Loading extension section v3_ca
17032:error:0F076041:common libcrypto routines:OPENSSL_hexstr2buf:malloc failure:crypto\o_str.c:157:
17032:error:0D0B30B2:asn1 encoding routines:asn1_str2type:illegal hex:crypto\asn1\asn1_gen.c:698:string=
17032:error:22074074:X509 V3 routines:v3_generic_extension:extension value error:crypto\x509v3\v3_conf.c:246:value=SEQUENCE:image_integrity
Traceback (most recent call last):
File "D:\ti\mcu_plus_sdk_am263x_08_06_00_34\tools\boot\signing\mcu_rom_image_gen.py", line 161, in <module>
subprocess.check_output('openssl req -new -x509 -key {} -nodes -outform DER -out {} -config {} -{}'.format(args.sign_key, cert_name, cert_file_name, g_sha_to_use), shell=True)
File "C:\Python310\lib\subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Python310\lib\subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'openssl req -new -x509 -key D:/ti/mcu_plus_sdk_am263x_08_06_00_34/tools/boot/signing/mcu_gpkey.pem -nodes -outform DER -out cert789 -config temp_cert604 -sha512' returned non-zero exit status 1.
gmake[3]: *** [all] Error 1
makefile:167: recipe for target 'post-build' failed
gmake[2]: [post-build] Error 2 (ignored)
**** Build Finished ****
~~~~~~
Thanks and Best Regards,
SI.

