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.

RTOS/66AK2G12: How to flash QSPI's MLO(2nd Bootloader) and my app to QSPI flash using USB

Part Number: 66AK2G12
Other Parts Discussed in Thread: UNIFLASH

Tool/software: TI-RTOS

I can flash QSPI's MLO and app onto QSPI flash using uSD card. But we need to flash QSPI's MLO(2nd Bootloader) and my app to QSPI flash using USB.

I found the link below discussed how to run DFU utility with the boot image using the command
dfu-util.exe -D <bootimage>_gphdr.bin
e2e.ti.com/.../610988

Followed the instructions to run
dfu-util.exe -D MLO_qspi //the MLO_qspi here is the QSPI's SBL

and I got the followings in cmd window:

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Opening DFU capable USB device... ID 0451:bb06
Run-time device DFU version 0110
Found DFU: [0451:bb06] devnum=0, cfg=1, intf=0, alt=0, name="UNDEFINED"
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
No valid DFU suffix signature
Warning: File has no DFU suffix
bytes_per_hash=2621
Copying data from PC to DFU device
Starting download: [##################################################] finished
!
state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is present
state(2) = dfuIDLE, status(0) = No error condition is present
Done!


Then, K2G EVM will run the just loaded MLO_qspi then my old app(already in QSPI). But it doesn't really write the new MLO or app into QSPI flash.

Is there anything I missed?

  • Hi,

    I've notified the RTOS team. Feedback will be posted directly here.

    Best Regards,
    Yordan
  • Joshua,

    What you are trying is USB device boot to load an application from the host. To accomplish USB based flashing, you will need to combine the flashwriter with the flash images or have a way for the MLO to read the flash images from some boot media. so the flash writer can fetch the production flash images to program on the QSPI flash

    We are currently not support flashing boot images using USB in the SDK but we are currently working on a production flashing tool that will allow user to load the flashing utility over UART/USB and Ethernet which is similar to the Uniflash tool that is described here:
    processors.wiki.ti.com/.../Sitara_Uniflash_Quick_Start_Guide

    The preliminary version of this tool will be available in 2Q2018 time frame. Until then, you are options would be to gang progrram the flash before assembly or create a SDboot mechanism which will load the flash writer over over Sd/MMC boot and read the boot images from the SD card and flash it to the QSPI flash. Since we support USB Mass storage class driver, you can also read the images from a USB flash drive and load it to flash.

    Regards,
    Rahul

  • Rahul,
    Thanks for your response.
    Do you mean the preliminary version of Uniflash for K2G will be available in 2Q2018 instead of 2Q2017?
  • Yes, I meant 2Q2018