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.

AM62L: eMMC booting issue using .wic file

Part Number: AM62L

Hello , 

I had flashed uboot binaries using DFU and then followed the steps to flash the .wic file as mentioned in the below thread https://e2e.ti.com/support/interface-group/interface/f/interface-forum/1596268/am62l-emmc-booting-issue-through-wic-file/6166947

tiny image .wic file is successfully  flashed . But after observing the uboot binaries arent from the .wic file which i flashed these are from the previous binaries which i flashed through dfu tool.
i tried replacing the binaries using ums 0 mmc 0 command binaries are replaced but while booting these binaries arent used . 
How to update the uboot binaries (tiboot3.bin tispl.bin u-boot.img ) which are used for booting ? 
If there is any log or steps for reference to check the flashing and booting from .wic file ?

Thank you

  • Hello,

    I had flashed uboot binaries using DFU

    Please share the logs of the procedure you followed for this.

    To boot the U-Boot binaries from the WIC image, you would need to use the eMMC UDA FS boot mode.

    Thanks!

  • Hello,

    Once after flashing the U-Boot binaries using below methods:
    sudo ./dfu-util -a tiboot3.bin.raw -D tiboot3.bin
    sudo ./dfu-util -a tispl.bin.raw -D tispl.bin
    sudo ./dfu-util -a u-boot.img.raw -D u-boot.img
    sudo ./dfu-util -a rootfs -D tisdk-tiny-image.img
    sudo ./dfu-util -l -v

    sudo ./dfu-util -R -a bootloader -D tiboot3.bin
    sudo ./dfu-util -R -a bootloader -D tispl.bin
    sudo ./dfu-util -R -a u-boot.img -D u-boot.img


    Board will boot up to U-Boot.

    During this, the switch settings will be in Flash mode.


    As instructed in the previous threads for flashing the .wic file, the below commands are given in U-Boot:

    setenv dfu_alt_info "wic raw 0x0 0x10000000 mmcpart 0"
    dfu 0 mmc 0

    Then from host PC:

    dfu-util -a wic -D tisdk-base-image-am64xx-evm.wic


    This will flash the .wic file to eMMC.


    However, when we want to flash using this, the switch settings should be in boot mode, not flash mode.

    If we try following the same steps when the switch is in Flash mode, we get the below error:

    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2020 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to sourceforge.net/.../
    
    dfu-util: Warning: 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:6165
    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 4096
    Copying data from PC to DFU device
    Download [ ] 0% 0 bytes failed!
    state(10) = dfuERROR, status(14) = Something went wrong, but the device does not know what it was



    What should be the switch setting while giving the below commands?

    setenv dfu_alt_info "wic raw 0x0 0x10000000 mmcpart 0"
    dfu 0 mmc 0



  • Hello,

    However, when we want to flash using this, the switch settings should be in boot mode, not flash mode.

    I am not sure if I understand the terms "Flash mode" and "Boot mode". Could you please elaborate more? Do you mean that you are not able to flash the WIC image at all? If yes, I believe you were able to flash it successfully in the previous threads. What is changed now?

    Thanks!