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.

AM3359: MMC update via DFU from SPL

Part Number: AM3359

Hi team please help with customer question bellow

Raul,

I need your help to update the beaglebone black mmc via DFU from the SPL. This is the process used in manufacturing currently with our Jacinto plataform, and we need to keep it similar to what we do with Jacinto.

 

I'm downloading to RAM the SPL via TFTP, and from there the uboot in RAM to start doing whatever I want. The thing is the SPL (compile it from the uboot project contained in the TI SDK) is not fitting into the internal RAM of the Sitara. I'm eliminating several configurations and get an SPL which fits in memory but it's not working at all.

 

Do you have some images already developed with this feature for test? Could you give me some guidance on this process?

 

Thanks and best regards

  • Hi Raul,

    Raul Matos said:
    I'm downloading to RAM the SPL via TFTP, and from there the uboot in RAM to start doing whatever I want.

    Given that SPL is downloaded to target via TFTP,  will network (i.e. TFTP) downloading reset of files (u-boot, kernel…) from host to target is an option?

    Best,

    -Hong

  • Hong thank you. 

    From customer: 

    "We're using tftp for development purposes, but for manufacturing we intend to use DFU as we have already developed for other projects based in DRA7xx.

    The main idea is to download the SPL with DFU capacity via USB, and then use DFU to flash the uboot, kernal and RFS. Could you help us with some kind of work instructions?"

  • Hi Raul,

    Raul Matos said:
    The main idea is to download the SPL with DFU capacity via USB

    Unlike DRA7xx, AM335x ROM doesn't support DFU-like USB peripheral boot. Its USB peripheral boot is based on ethernet/rndis protocol, so your customer won't be able to use the same DFU boot flow to download SPL on AM335x. Please check the USB boot details in the TRM.

  • Raul,

    DFU is only supported in u-boot.img but not in SPL on AM335x. Searching the U-Boot source code (Processor SDK v6.1) we can only see SPL_DFU is defined for DRA7/AM57x but not AM335x.

    u-boot-2019.01+gitAUTOINC+029e4c009a-g029e4c009a$ git grep CONFIG_SPL_DFU
    configs/am57xx_hs_evm_usb_defconfig:CONFIG_SPL_DFU=y
    configs/dra7xx_evm_defconfig:CONFIG_SPL_DFU=y
    configs/dra7xx_hs_evm_defconfig:CONFIG_SPL_DFU=y
    configs/dra7xx_hs_evm_usb_defconfig:CONFIG_SPL_DFU=y
    include/configs/dra7xx_evm.h:#ifdef CONFIG_SPL_DFU