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.

PROCESSOR-SDK-J721E: PROCESSOR-SDK-J721E

Part Number: PROCESSOR-SDK-J721E

Not able to bring the board up in DFU

SoC: J721E SR2.0
Model: Texas Instruments K3 J721E SoC
Board: J721EX-PM2-SOM rev E8
Version: ti-processor-sdk-linux-j7-evm-08_00_00_08

Following the link,
software-dl.ti.com/.../UG-DFU.html

im rying the load the u-boot without the SD card using the DFU

uic68347@igl5718u:~/oti-processor-sdk-linux-j7-evm-08_00_00_08$
uic68347@igl5718u:~/oti-processor-sdk-linux-j7-evm-08_00_00_08$ make dra7xx_evm_defconfig
make: *** No rule to make target 'dra7xx_evm_defconfig'. Stop.
uic68347@igl5718u:~/oti-processor-sdk-linux-j7-evm-08_00_00_08$ make menuconfig
make: *** No rule to make target 'menuconfig'. Stop


Trying to bring the board up without the SDcard and Flashing Images to OSPI.

Regards,

Viswa

  • Hi Karan,


    Whether it is necessary to run,

    uic68347@igl5718u:~/oti-processor-sdk-linux-j7-evm-08_00_00_08$
    uic68347@igl5718u:~/oti-processor-sdk-linux-j7-evm-08_00_00_08$ make dra7xx_evm_defconfig
    make: *** No rule to make target 'dra7xx_evm_defconfig'. Stop.
    uic68347@igl5718u:~/oti-processor-sdk-linux-j7-evm-08_00_00_08$ make menuconfig
    make: *** No rule to make target 'menuconfig'. Stop

    Regards,

    Viswa

  • Hi Viswa,

    You can use the SDK Makefile to do this.

    cd <LINUX_SDK_PATH> //this is where you have the board-support, linux-devkit etc and also a Makefile.

    make u-boot

    Regards

    Karan

  • Hi Karan,
       I created the u-boot with the steps  you specified.

    Connected the USB3.1  Type c

    Not able to see the list

    uic68347@igl5718u:/dev$ dfu-util -l
    dfu-util 0.9

    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

    Regards,
    Viswa

  • Hi Karan,
     Pls let me know if there is mistake in  the switch position because I couldnot find the device using the dfu-util -l command?  Also let me know after loading till the u-boot , whether i need to use the NFS to load the kernel?

    Regards,
    Viswa

  • Hi Viswa,

    The boot switch setting are incorrect. Please refer the appnote https://www.ti.com/lit/an/spracy5/spracy5.pdf table 3.1 for the switch setting.

    You need to apply the patches as mentioned in https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1041155/faq-tda4vm-j721e-j7200-enabling-dfu-boot-on-8-0-linux-sdk then rebuild u-boot and use this to send over usb.

    Regards

    Karan

  • Hi Karan,

      I changed the switch as specified in the switch as specified in the document. im able to find


    uic68347@igl5718u:/tftpboot$ sudo dfu-util -R -a bootloader -D tiboot3.bin
    dfu-util 0.9

    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to sourceforge.net/.../

    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    Opening DFU capable USB device...
    ID 0451:6163
    Run-time device DFU version 0110
    Claiming USB DFU Interface...
    Setting Alternate Setting #0 ...
    Determining device status: state = dfuIDLE, status = 0
    dfuIDLE, continuing
    DFU mode device DFU version 0110
    Device returned transfer size 512
    Copying data from PC to DFU device
    Download [=========================] 100% 287452 bytes
    Download done.
    state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is present
    state(2) = dfuIDLE, status(0) = No error condition is present
    Done!
    dfu-util: can't detach
    Resetting USB to switch back to runtime mode


    uic68347@igl5718u:/tftpboot$ sudo dfu-util -R -a bootloader -D tiboot3.bin
    dfu-util 0.9

    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2016 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to sourceforge.net/.../

    dfu-util: Invalid DFU suffix signature
    dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
    dfu-util: No DFU capable USB device available
    uic68347@igl5718u:/tftpboot$

     I have already ran the make u-boot and make? Let me know what is wrong in  tiboot3.bin copying?  Also let me know after loading till the u-boot , whether i need to use the NFS to load the kernel?

    Regards,

    Viswa

  • Hi Karan,

     Im not able to apply the patches. whether there is any step missing in the link?


    uiuic68347@igl5718u:~/ti-processor-sdk-linux-j7-evm-08_00_00_08/board-support/u-boot-2021.01+gitAUTOINC+53e79d0e89-g53e79d0e89$ git am dfu-fixes/*
    fatal: previous rebase directory .git/rebase-apply still exists but mbox given.

    uic68347@igl5718u:~/ti-processor-sdk-linux-j7-evm-08_00_00_08/board-support/u-boot-2021.01+gitAUTOINC+53e79d0e89-g53e79d0e89$ git am dfu-fixes/
    1-3-arm-dts-k3-j721e-r5--.dts-Fix-clock-names-property-in-the-usb0-instance.patch 2-3-environment-ti-k3_dfu-Increase-the-size-allocated-for-bootloader-images-in-dfu_alt_info_ram.patch

    uic68347@igl5718u:~/ti-processor-sdk-linux-j7-evm-08_00_00_08/board-support/u-boot-2021.01+gitAUTOINC+53e79d0e89-g53e79d0e89$ git am dfu-fixes/1-3-arm-dts-k3-j721e-r5--.dts-Fix-clock-names-property-in-the-usb0-instance.patch
    fatal: previous rebase directory .git/rebase-apply still exists but mbox given.

    uic68347@igl5718u:~/ti-processor-sdk-linux-j7-evm-08_00_00_08/board-support/u-boot-2021.01+gitAUTOINC+53e79d0e89-g53e79d0e89$ git am dfu-fixes/2-3-environment-ti-k3_dfu-Increase-the-size-allocated-for-bootloader-images-in-dfu_alt_info_ram.patch
    fatal: previous rebase directory .git/rebase-apply still exists but mbox given.
    uic68347@igl5718u:~/ti-processor-sdk-linux-j7-evm-08_00_00_08/board-support/u-boot-2021.01+gitAUTOINC+53e79d0e89-g53e79d0e89$

     I have already ran the make u-boot and make? Let me know what is wrong in  tiboot3.bin copying?  Also let me know after loading till the u-boot , whether i need to use the NFS to load the kernel?

    Regards,

    Viswa

  • Hi Viswa,

    It could be some issue with your git repo.

    Please try:

    git am --abort

    Then try to apply patches one by one in the dfu-fixes folder.

    Let us know if that works.

    - Keerthy

  • Hi Keerthy,

      It is not working. Patch file is not being applied since the lines are different in the source code and the patch file.


    We are using the ~/ti-processor-sdk-linux-j7-evm-08_00_00_08 version. 

    uic68347@igl5718u:~/ti-processor-sdk-linux-j7-evm-08_00_00_08/board-support$ cd u-boot-2021.01+gitAUTOINC+53e79d0e89-g53e79d0e89/
    uic68347@igl5718u:~/ti-processor-sdk-linux-j7-evm-08_00_00_08/board-support/u-boot-2021.01+gitAUTOINC+53e79d0e89-g53e79d0e89$ git log -1
    commit 0a85f506a3b65e730f746380b840f0ebe8908727 (HEAD -> ti-u-boot-2021.01)
    Author: Aswath Govindraju <a-govindraju@ti.com>
    Date: Thu Aug 26 21:28:58 2021 +0530

    environment: ti: k3_dfu: Increase the size allocated for bootloader images in dfu_alt_info_ram

    The size of u-boot.img is above 1MB and that of tispl.bin is close to 1MB,
    in case of j721e. Therefore, increase the sizes allocated for tispl.bin and
    u-boot.img to 2 MB and 4 MB respectively, in dfu_alt_info_ram environment
    variable.

    Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>

    uic68347@igl5718u:~/ti-processor-sdk-linux-j7-evm-08_00_00_08/board-support/u-boot-2021.01+gitAUTOINC+53e79d0e89-g53e79d0e89$ git branch
    master
    * ti-u-boot-2021.01


    uic68347@igl5718u:~/ti-processor-sdk-linux-j7-evm-08_00_00_08/board-support/u-boot-2021.01+gitAUTOINC+53e79d0e89-g53e79d0e89$ tar xvf dfu-fixes-8.0.tar

    uic68347@igl5718u:~/ti-processor-sdk-linux-j7-evm-08_00_00_08/board-support/u-boot-2021.01+gitAUTOINC+53e79d0e89-g53e79d0e89$ git am dfu-fixes/1-3-arm-dts-k3-j721e-r5--.dts-Fix-clock-names-property-in-the-usb0-instance.patch
    Applying: arm: dts: k3-j721e-r5-*.dts: Fix clock-names property in the usb0 instance
    error: patch failed: arch/arm/dts/k3-j721e-r5-common-proc-board.dts:280
    error: arch/arm/dts/k3-j721e-r5-common-proc-board.dts: patch does not apply
    Patch failed at 0001 arm: dts: k3-j721e-r5-*.dts: Fix clock-names property in the usb0 instance
    Use 'git am --show-current-patch' to see the failed patch
    When you have resolved this problem, run "git am --continue".
    If you prefer to skip this patch, run "git am --skip" instead.
    To restore the original branch and stop patching, run "git am --abort".

    Regards,

    Viswa

  • Hi Viswa,

    Can you please update the latest on this thread?

    Are you not able to apply the patches mentioned in the e2e below and enable dfu boot on SDK8.0? If some patches are failing, can you manually make the modifications?

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1041155/faq-tda4vm-j721e-j7200-enabling-dfu-boot-on-8-0-linux-sdk 

    Regards

    Karan

  • Yes Karan,
       Im in the wrong version of the commit id. I moved to exact commit id specified and able to apply the patches. Thank you.

    Regards,

    Viswa