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:U-Boot 定制电路板端口

Guru**** 2535150 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1319523/tda4vm-u-boot-custom-board-port

器件型号:TDA4VM

您好、TI!

我想为我们的定制电路板创建一个初始基准(使用 TDA4 SoC。 很遗憾、我无法找到任何有关 J721e/TDA4的说明。 我找到的唯一资源如下: https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/AM335X/linux/How_to_Guides/Board_Port / U-Boot.html

我执行了以下步骤:

  • 将文件从 board/ti/j721e/*复制到新目录板/myComp/myBoard/*
  •  根据前面提到的链接删除了 TI_I2C_BOARD_DETECT
  • 根据之前提到的链接修改了电路板/myComp/myBoard 中的 Kconfig
  • 通过将 j721e_evm_a72_defconfig 和 j721e_evm_r5_defconfig 的内容复制到 myComp_myBoard_a72_defconfig 和 myComp_myBoard_R5_defconfig 中来创建新的 defconfigs  
  • 将  新创建的*_a72_defconfig 中的 CONFIG_TARGE_J721E_A72_EVM 替换为 CONFIG_TARGET_MYCOMP_MYBOARD_A72
  • 将  新创建的*。r5_defconfig 中的 CONFIG_TARGET_J721E_R5_EVM 替换为 CONFIG_TARGET_MYCOMP_MYBOARD_R5
  • 在   U-Boot 源代码中附加每个#ifdef CONFIG_TARGE_J721E_A72_EVM 和#if defined (CONFIG_TARGET_J721E_A72_EVM)|| defined (CONFIG_TARGET_MYCOMP_MYBOARD_A72)
  • 附加 每个#ifdef  CONFIG_TARGET_J721E_R5_EVM 和#if defined (CONFIG_TARGE_J721E_R5_EVM)|| defined (CONFIG_TARGET_MYCOMP_MYBOARD_R5)(在 U-Boot 源代码中)

完成所有这些步骤后、我应该能够像以前一样构建类似的启动文件。 但是、编译会抛出以下错误:

===================================
Building U-boot for
===================================
make -j 24 -C /home/felix/gitRepos/myComp-u-boot-ti ARCH=arm myComp_myBoard_a72_config \
	O=/tftpboot/u-boot/
make[1]: Entering directory '/home/felix/gitRepos/myComp-u-boot-ti'
make[2]: Entering directory '/tftpboot/u-boot'
  GEN     Makefile
#
# configuration written to .config
#
make[2]: Leaving directory '/tftpboot/u-boot'
make[1]: Leaving directory '/home/felix/gitRepos/myComp-u-boot-ti'
make -j 24 -C /home/felix/gitRepos/myComp-u-boot-ti \
	ARCH=arm CROSS_COMPILE=/opt/arago-2021.09/sysroots/x86_64-arago-linux/usr/bin/aarch64-none-linux-gnu- CC="/opt/arago-2021.09/sysroots/x86_64-arago-linux/usr/bin/aarch64-none-linux-gnu-gcc --sysroot=/opt/arago-2021.09/sysroots/aarch64-linux/" \
	BINMAN_INDIRS=/home/felix/ti-processor-sdk-linux-adas-j721e-evm-09_01_00_06/board-support/prebuilt-images BL31=/home/felix/ti-processor-sdk-linux-adas-j721e-evm-09_01_00_06/board-support/prebuilt-images/bl31.bin TEE=/home/felix/ti-processor-sdk-linux-adas-j721e-evm-09_01_00_06/board-support/prebuilt-images/bl32.bin \
	O=/tftpboot/u-boot/
make[1]: Entering directory '/home/felix/gitRepos/myComp-u-boot-ti'
make[2]: Entering directory '/tftpboot/u-boot'
  GEN     Makefile
scripts/kconfig/conf  --syncconfig Kconfig
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  GEN     include/autoconf.mk
  GEN     spl/include/autoconf.mk
  GEN     Makefile
  UPD     include/generated/timestamp_autogenerated.h
  ENVC    include/generated/env.txt
  ENVP    include/generated/env.in
  ENVT    include/generated/environment.h
  Using /home/felix/gitRepos/myComp-u-boot-ti as source for U-Boot
  CC      cmd/version.o
  CC      env/common.o
  AR      cmd/built-in.o
  CC      lib/efi_loader/dtbdump.o
  CC      lib/efi_loader/initrddump.o
  AR      env/built-in.o
  LD      lib/efi_loader/initrddump_efi.so
  LD      lib/efi_loader/dtbdump_efi.so
  OBJCOPY lib/efi_loader/initrddump.efi
  OBJCOPY lib/efi_loader/dtbdump.efi
  LD      u-boot
/opt/arago-2021.09/sysroots/x86_64-arago-linux/usr/bin/aarch64-none-linux-gnu-ld.bfd: drivers/dfu/dfu.o: in function `dfu_init_env_entities':
/home/felix/gitRepos/myComp-u-boot-ti/drivers/dfu/dfu.c:157: undefined reference to `set_dfu_alt_info'
make[2]: *** [/home/felix/gitRepos/myComp-u-boot-ti/Makefile:1754: u-boot] Error 139
make[2]: *** Deleting file 'u-boot'
make[2]: Leaving directory '/tftpboot/u-boot'
make[1]: *** [Makefile:177: sub-make] Error 2
make[1]: Leaving directory '/home/felix/gitRepos/myComp-u-boot-ti'
make: *** [Makefile:27: u-boot-] Error 2

我已经验证 设置了 CONFIG_SET_DFU_ALT_info=y。

您对此处可能遗漏的内容有什么想法吗?

此外、如果您能证明一项有关如何将定制板添加到 TDA4的 U-Boot 源码中的一般性指导、这将会非常有帮助。

感谢您的帮助、此致、

费利克斯

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Felix:

    我已经验证 设置了 CONFIG_SET_DFU_ALT_info=y。

    [/报价]

    可以仔细检查  myComp_myBoard_a72_defconfig 是否 具有该设置吗?
    此外、您是否还可以使用默认 defconfig (构建)并根据您的需求对其进行定制、而不是创建新 defconfig?

    -基尔西