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.

USB peripheral boot - disconnect issue

Other Parts Discussed in Thread: DRA752

Hi,

I am trying to use the USB peripheral boot of J6 to download a firmware from my Ubundu machine to J6 VAYU board.

After doing the sysboot configuration to boot from USB, I connected the USB cable to my PC which has a Linux Ubuntu running on VMware.

The device is getting enumerated without issue, but getting "USB disconnect" continuously.

Windows "device manager" is getting refreshed continuously due to this disconnect.

I tried multiple evaluation boards and multiple cables, but same result.

Any suggestions will be much appreciated.

 

Regards,

Nitish James

 

  • Hi Nitish,

    What sysboot configuration are you using,

    I believe that after some specific timeout if the rom doesn’t have usb comunication( ASIC and etc) the target restarts causing enumeration continuously.

    After executing

    sudo ./usbboot-stand-alone -s ./u-boot-spl.bin
    the image should be transfered and you should change the sysboot pins to regular boot in order to
    boot the transferred software.
    Regards,
    Boyko
  • Hi Boyko,

     

    I was using "USB only" sysboot setting. sysboot[5:0] = 0b010000.

    Thanks a lot for the clarification.

     

    I was not using "sudo" while running "usbboot-stand-alone" and hence the problem.

    Now it is working and "u-boot-spl.bin" is getting downloaded.

     

    One more question regarding the SD card erase/flashing using fastboot.

    When I tried to flash the "boot" partition, it gives the following error.

    nitishj@ubuntu:~/binaries$ sudo ./fastboot erase boot
    erasing 'boot'...
    FAILED (remote: : partition doesn't exist)
    finished. total time: 0.007s
    nitishj@ubuntu:~/binaries$ sudo ./fastboot devices
    2E6400F02D040000 fastboot

    But as you see, "fastboot devices" is responding and the serial number is getting displayed.

    Also I get the following message from the board.

    "Partition does not existUnable to erase partition"

    I used the TI script "mksdboot.sh" from {GLSDK}/bin to create the partitions.

     mkfs.vfat -F 32 -n "boot" ${PARTITION1}

    mkfs.ext4 -L "rootfs" ${PARTITION2}

    Please let me know what I am missing.

    Thanks and Regards,

    Nitish James

  • Hi,

     

    Following is the complete log. There is a print "efi partition table not found".

     

    U-Boot SPL 2013.04 (Oct 28 2014 - 11:44:39)
    DRA752 ES1.0
    Bypassing DPLL failed 4a008180
    Time at start of SPL:  1204 ms
    OMAP SD/MMC: 1
    Device Serial Number: 2E6400F02D040000
    efi partition table not found
    WarnON() in gadget.c: dwc3_gadget_ep_disable(681)
    ep1out is already disabled
    Partition does not existUnable to erase partition
    Partition does not existUnable to erase partition
    Partition does not existUnable to erase partition

    Thanks,

    Nitish

  • Hi Nitish,

    Are you trying to transfer the binaries with fastboot on the sd card or the emmc?

    Because the mksdboot script is used for the sdcard. The specified partition is the one on the emmc.

    Take a look at those guides to get clearer picture how is the proper way of transfering software to the target board.

    http://omappedia.org/wiki/6AK.1.1_Application_Notes

    http://omappedia.org/wiki/6AK.1.1_Release_Notes

    Regards,
    Boyko

  • Hi Boyko,

     

    Thanks for your reply.

    Our requirement is to transfer the data to sd card.

    I went through the documentation you have provided and understand the procedure.

    I followed the procedure suggested by "USB Peripheral boot" of the following link

    http://omappedia.org/wiki/6AJ.1.2_Application_Notes#USB_Peripheral_boot

    Since we are selecting "SD->QSPI_1" as the SYSBOOT option after the "u-boot-spl.bin", I was expecting the SD card to be detected.

     

    But as you said, I think it is detecting the same as eMMC card and hence the problem.

    Can you explain the reason why it is detected as an eMMC card?

    I have connected a microSD card to the SD card slot of VAYU evaluation board.

     

    Regards,

    Nitish

  • Hi Boyko,

    A small correction in the previous post.

    I think the statement "Since we are selecting "SD->QSPI_1" as the SYSBOOT option after the "u-boot-spl.bin", I was expecting the SD card to be detected." was confusing.

    What I meant was that I change the DIP switch to SYSBOOT{5:0} = 0b000110, once the transfer of "u-boot-spl" to DRA7xx internal memory is completed.

    Regards,

    Nitish James

  • Hi Nitish,

    Is it mandatory to use the fastboot for transfer to the sd-card?

    Also those are the instructions for sd-card preparation:

    http://omappedia.org/wiki/6AK_SD_card_boot

    Regards,

    Boyko

  • Hi Boyko ,

           can you help me in this post?

    http://e2e.ti.com/support/omap/f/849/t/378934.aspx