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.

Linux/AM5708: Error in uboot.img getting loaded through SPL

Part Number: AM5708

Tool/software: Linux

Hello experts,

I am trying to load the uboot.img fie from the SPL and below is the error, i m facing

Not sure, whether it is problem of the SD Card reading or formating is not done.

U-Boot SPL 2017.01-g82ac813-dirty (Mar 11 2019 - 19:30:50)
DRA722-GP ES2.1
boot device present
boot device none
boot device none
boot device none
boot device none
Trying to boot from MMC1
i2c_write: error waiting for addr ACK (status=0x116)
lp873x: could not set LDO1 voltage.
reading logo.yuv
reading am570x-mid.dtb
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
spl_load_image_fat: error reading image u-boot.img, err - -1
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
** Can't read partition table on 0:0 **
spl: no partition table found
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
** Can't read partition table on 0:0 **
spl: no partition table found
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

  • Hello Ajit,

    First, make sure that you are sending the <Processor SDK>/board-support/u-boot-<version>/spl/u-boot-spl.bin to your board. Please, see this thread for more details.
    Second, make sure that the reading "am570x-mid.dtb" is your board's device tree.

    Best regards,
    Kemal

  • Hi Kemal,

    We are loading the memory with u-boot-spl.bin using JTAG and running. Later the SPL code will load uboot.img from SD card. This code is working in one board, but doesn't with another.

    So we are not sure, whether is hardware / problem with device tree!!

    Below is the function snippet, where we are seeing the error "timedout waiting on cmd inhibit to clear" can you please review and help us to identify the problem?



    static int omap_hsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) { struct hsmmc *mmc_base; unsigned int flags, mmc_stat; ulong start; #ifdef CONFIG_DM_MMC struct omap_hsmmc_data *priv = (struct omap_hsmmc_data *)mmc->priv; priv->last_cmd = cmd->cmdidx; #endif mmc_base = ((struct omap_hsmmc_data *)mmc->priv)->base_addr; if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION) return 0; start = get_timer(0); while ((readl(&mmc_base->pstate) & (DATI_MASK | CMDI_MASK)) != 0) { if (get_timer(0) - start > MAX_RETRY_MS) { printf("%s: timedout waiting on cmd inhibit to clear\n", __func__); return -ETIMEDOUT; } }

  • Please, see this post. The exact  "omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear" error was caused by a wrong pinmux settings. Please, check your board's mmc1 pinmux settings in <Processor SDK>/board-support/u-boot-<version>/board/ti/am57xx/mux_data.h file. It also can be caused by a bad soldering as in this thread. Please, check that too.

  • Hello Ajit,

    Was you able to resolve this issue?

    Best regards,
    Kemal
  • Hi Kemal,

    We are still debugging the issue.
    Reviewed the pinmux files it looks to be fine.

    We are looking at possibility of hardware, still understanding all the signals needed for smooth functioning of SD card

    Thanks,
    Ajit