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.

TDA4VL-Q1: 关于DFU功能的一些疑问

Part Number: TDA4VL-Q1
Other Parts Discussed in Thread: TDA4VM

Dear expert.

我们现在软件版本是J721S2 SDK8.0.4

从文档上看,这个平台是没有sysfw.itb的,如下图

但是在代码中,关于dfu_alt_info_emmc的配置,却是有sysfw.itb的,如下图,代码配置的是DFU_ALT_INFO_MMC

我在J721E的文档中看到过关于sysfw.itb与tiboot3.bin合并的说明,并且J721E的代码里,关于dfu_alt_info_emmc的配置也有相关的宏开关控制,如果是J7200平台就会配置DFU_ALT_INFO_EMMC_COMBINED

1、我想确认一下,关于J721S2的dfu_alt_info_emmc的配置,,到底应该用DFU_ALT_INFO_EMMC还是DFU_ALT_INFO_EMMC_COMBINED?

     我曾尝试将DFU_ALT_INFO_EMMC里的sysfw.itb的设置删除,编译后执行dfu烧写EMMC会失败

2、不删除sysfw.itb编译出版本后,先进DFU模式刷写tiboot3.bin   tispl.bin 和  u-boot.img,是成功的,刷完后进fastboot模式刷写rootfs,会失败

    但是这种方法我们在TDA4VM平台J721E上是验证过的,功能都是正常EMMC可以完全烧录成功并开机的,请问是否跟sysfw.itb有关?

Thanks

  • 图片显示不出来,请回复时点击插入“图像”插入图片,谢谢!

  • 我的图片都是点击插入选图像这样操作的,我再重新描述插入一遍试试

    我们现在软件版本是J721S2 SDK8.0.4

    从文档上看,这个平台是没有sysfw.itb的,如下图

    但是在代码中,关于dfu_alt_info_emmc的配置,却是有sysfw.itb的,如下图,代码配置的是DFU_ALT_INFO_MMC

    我在J721E的文档中看到过关于sysfw.itb与tiboot3.bin合并的说明,并且J721E的代码里,关于dfu_alt_info_emmc的配置也有相关的宏开关控制,如果是J7200平台就会配置DFU_ALT_INFO_EMMC_COMBINED

    1、我想确认一下,关于J721S2的dfu_alt_info_emmc的配置,,到底应该用DFU_ALT_INFO_EMMC还是DFU_ALT_INFO_EMMC_COMBINED?

         我曾尝试将DFU_ALT_INFO_EMMC里的sysfw.itb的设置删除,编译后执行dfu烧写EMMC会失败

    2、不删除sysfw.itb编译出版本后,先进DFU模式刷写tiboot3.bin   tispl.bin 和  u-boot.img,是成功的,刷完后进fastboot模式刷写rootfs,会失败

        但是这种方法我们在TDA4VM平台J721E上是验证过的,功能都是正常EMMC可以完全烧录成功并开机的,请问是否跟sysfw.itb有关?

    Thanks.

  • 您好,我们已收到您的问题并升级到英文论坛寻求帮助,链接如下,如有答复将尽快回复您:

    e2e.ti.com/.../tda4vl-q1-dfu-feature

  • 您好,

    我想确认一下,关于J721S2的dfu_alt_info_emmc的配置,,到底应该用DFU_ALT_INFO_EMMC还是DFU_ALT_INFO_EMMC_COMBINED?

         我曾尝试将DFU_ALT_INFO_EMMC里的sysfw.itb的设置删除,编译后执行dfu烧写EMMC会失败

    这个问题确实存在,感谢您的提醒,我们会在之后改进该问题。

    2、不删除sysfw.itb编译出版本后,先进DFU模式刷写tiboot3.bin   tispl.bin 和  u-boot.img,是成功的,刷完后进fastboot模式刷写rootfs,会失败

    rootfs 的大小是多少,您可以先用 tinyrootfs 来尝试。 

    但是这种方法我们在TDA4VM平台J721E上是验证过的,功能都是正常EMMC可以完全烧录成功并开机的,请问是否跟sysfw.itb有关?

    闪存问题与 sysfw.itb 无关,您可以先试下使用 tinyrootfs然后看下能否刷写该闪存。 

  • 这是分区大小和编译出来的镜像大小,应该是没问题的。

    我只烧写其中一个最小的镜像,也是失败的。

    从目前的一些验证结果猜测,怀疑是uboot下的fastboot功能有问题,能否帮忙check下uboot下的usb fastboot功能是否正常?

    我先在DFU模式下用dfu.bat烧写完tiboot3.bin   tispl.bin 和  u-boot.img,烧写成功

    再从EMMC启动并让系统进入fastboot模式,然后用fastboot_flash.bat进行烧写

    但是fastboot失败

    log如下,就卡在Starting download,然后就没有任何log了

    U-Boot SPL 2021.01 (Feb 23 2023 - 03:39:09 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.1--v08.04.01 (Jolly Jellyfi')
    SPL initial stack usage: 13472 bytes
    Trying to boot from MMC1
    init_env from device 17 not supported!
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.6(release):v2.7-rc0-dirty
    NOTICE:  BL31: Built : 11:58:46, Aug 30 2022
    I/TC: 
    I/TC: OP-TEE version: 3.17.0-125-g15a746d28 (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 Tue Aug 30 11:59:08 UTC 2022 aarch64
    I/TC: WARNING: This OP-TEE configuration might be insecure!
    I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
    I/TC: Primary CPU initializing
    I/TC: SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.1--v08.04.01 (Jolly Jellyfi')
    I/TC: HUK Initialized
    I/TC: Primary CPU switching to normal world boot
    
    U-Boot SPL 2021.01 (Feb 23 2023 - 03:44:19 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.1--v08.04.01 (Jolly Jellyfi')
    Trying to boot from MMC1
    
    
    U-Boot 2021.01 (Feb 23 2023 - 03:44:19 +0000)
    
    SoC:   J721S2 SR1.0 GP
    Model: Texas Instruments J721S2 EVM
    DRAM:  4 GiB
    Flash: 0 Bytes
    MMC:   mmc@4f80000: 0, mmc@4fb0000: 1
    Loading Environment from MMC... *** Warning - bad CRC, using default environment
    
    In:    serial@2880000
    Out:   serial@2880000
    Err:   serial@2880000
    Failed to probe am65_cpsw_nuss driver
    In fastboot ...
    [ggf]board_late_init: bootcmd = fastboot -l $loadaddr -s 0x2F000000 usb 0
    Net:   No ethernet found.
    cdns-usb3-peripheral usb@6000000: Unable to get USB2 phy (ret -61)
    cdns-usb3-peripheral usb@6000000: Unable to get USB3 phy (ret -61)
    cdns-usb3-peripheral usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
    cdns-usb3-peripheral usb@6000000: Initialized  ep0 support:  
    cdns-usb3-peripheral usb@6000000: Initialized  ep1out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15out support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep1in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep2in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep3in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep4in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep5in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep6in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep7in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep8in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep9in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep10in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep11in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep12in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep13in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep14in support: BULK, INT ISO
    cdns-usb3-peripheral usb@6000000: Initialized  ep15in support: BULK, INT ISO
    WARNING: unknown variable: is-logical
    Starting download of 534864964 bytes

    Thanks.

  • Hi Cherry

    我已经在英文论坛上提交的另一个问题中得到了答案,J721S2 uboot不支持fastboot。

  • 好的,您的问题得到解决了就好。