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.

AM3352: Processors forum

Part Number: AM3352
Other Parts Discussed in Thread: DM3730

This is a TDM3730 board. I can get the U-Boot ENV from a FAT partition on SD / MMC parition 0:0 when using U-Boot v2018.05. This boots well.

Now I am trying to port to U-Boot v2020.07. The problem is that I am getting "omap_hsmmc_send_cmd : timeout: No status update" error instead!

I have used an old patch to ensure the MUX values are as they should be: patchwork.ozlabs.org/.../

Also I have enabled U-Boot debug and added some extra printf() calls for reference.

All the MMC configs match the old 2018.05 MMC configs.

Please see below logs.

Could you give me some ideas please as I have run out of ideas?

== ==

0 0
- -1 0 'pinmux@30'
- found
======================== MMC CREATE...
======================== OMAP MMC INIT...
======================== MMC CREATE...
= OMAP MMC INIT WAS GOOD
OMAP SD/MMC: 0, OMAP SD/MMC: 1
initcall: 8001a4b9 (relocated to 9ff754b9)
fdtdec_get_config_int: load-environment
Loading Environment from FAT...
env_fat_load(): 0:0
******************************************************************************************
get_desc()

mmc_get_dev()
0 0
- 0 -1 'i2c@48070000'
- 1 -1 'i2c@48072000'
- 2 -1 'i2c@48060000'
- not found
1 0
- 0 -1 'i2c@48070000'
- found
OF: ** translation for device i2c@48070000 **
OF: bus is default (na=1, ns=1) on ocp@68000000
OF: parent bus is default (na=1, ns=1) on
OF: no ranges, 1:1 translation
OF: with offset: 1208418304
OF: reached root node
ofnode_read_u32_index: clock-frequency: 0x61a80 (400000)
0 0
- 0 -1 'i2c@48070000'
- 1 -1 'i2c@48072000'
- 2 -1 'i2c@48060000'
- not found
0 0
- -1 0 'pinmux@30'
- found
ofnode_read_u32_index: u-boot,i2c-transaction-bytes: (not found)
i2c_pre_probe: I2C bus: i2c@48070000 max transaction bytes: 0
omap24_i2c_findpsc: speed [kHz]: 400 psc: 0x9 sscl: 0x9 ssch: 0x3
ofnode_read_u32_index: clock-frequency: 0x61a80 (400000)
omap24_i2c_findpsc: speed [kHz]: 400 psc: 0x9 sscl: 0x9 ssch: 0x3
i2c_get_chip_for_busnum: bus='i2c@48070000', address 4b, ret=0
i2c_get_chip: Searching bus 'i2c@48070000' for address 4b: not found
i2c_bind_driver: device_bind_driver: ret=0
0 -1
0 0
- -1 -1 'generic_4b'
- not found
i2c_bind_driver: device_probe: ret=0
i2c_xfer: 1 messages
i2c_xfer: chip=0x4b, len=0x2
0 0
- 0 0 'i2c@48070000'
- found
i2c_get_chip_for_busnum: bus='i2c@48070000', address 4b, ret=0
i2c_get_chip: Searching bus 'i2c@48070000' for address 4b: found, ret=0
i2c_xfer: 1 messages
i2c_xfer: chip=0x4b, len=0x2
clock is disabled (0Hz)
mmc_init_stream: timedout waiting for cc!
clock is enabled (400000Hz)
omap_hsmmc_send_cmd : timeout: No status update
mmc_init: -110, time 2248
MMC INIT FAILED!
get_dev_hwpart: No device for iface 'mmc', dev 0
** Bad device mmc 0 **
****************************************************************************************
Using default environment
... ... ...
Loading Environment from NAND... Scanning device for bad blocks

  • I'm attaching a log file with SDK 7.3 on TI AM335x EVM.
    Given you work on a customer board, the log is for your reference only on running u-boot cmds to check SD/MMC.
    Best,
    -Hong

    U-Boot SPL 2020.01-dirty (Dec 10 2021 - 17:44:26 -0600)
    Trying to boot from MMC1
    
    
    U-Boot 2020.01-dirty (Dec 10 2021 - 17:44:26 -0600)
    
    CPU  : AM335X-GP rev 2.0
    Model: TI AM335x EVM
    DRAM:  512 MiB
    WDT:   Started with servicing (60s timeout)
    NAND:  256 MiB
    MMC:   OMAP SD/MMC: 0
    Loading Environment from FAT... OK
    Net:   eth0: ethernet@4a100000
    Warning: usb_ether MAC addresses don't match:
    Address in ROM is          de:ad:be:ef:00:01
    Address in environment is  c8:a0:30:7d:1a:92
    , eth1: usb_ether
    Hit any key to stop autoboot:  2  1  0 
    => dm tree
     Class     Index  Probed  Driver                Name
    -----------------------------------------------------------
     root          0  [ + ]   root_driver           root_driver
     rsa_mod_ex    0  [   ]   mod_exp_sw            |-- mod_exp_sw
     simple_bus    0  [ + ]   generic_simple_bus    |-- ocp
     simple_bus    1  [   ]   generic_simple_bus    |   |-- l4_wkup@44c00000
     simple_bus    2  [   ]   generic_simple_bus    |   |   |-- prcm@200000
     simple_bus    3  [   ]   generic_simple_bus    |   |   `-- scm@210000
     simple_bus    4  [   ]   generic_simple_bus    |   |       `-- scm_conf@0
     gpio          0  [ + ]   gpio_omap             |   |-- gpio@44e07000
     gpio          1  [   ]   gpio_omap             |   |-- gpio@4804c000
     gpio          2  [   ]   gpio_omap             |   |-- gpio@481ac000
     gpio          3  [   ]   gpio_omap             |   |-- gpio@481ae000
     serial        0  [   ]   omap_serial           |   |-- serial@48022000
     i2c           0  [   ]   i2c_omap              |   |-- i2c@44e0b000
     i2c           1  [   ]   i2c_omap              |   |-- i2c@4802a000
     mmc           0  [ + ]   omap_hsmmc            |   |-- mmc@48060000
     blk           0  [ + ]   mmc_blk               |   |   `-- mmc@48060000.blk
     watchdog      0  [ + ]   omap3_wdt             |   |-- wdt@44e35000
     timer         0  [ + ]   omap_timer            |   |-- timer@48040000
     timer         1  [   ]   omap_timer            |   |-- timer@48042000
     timer         2  [   ]   omap_timer            |   |-- timer@48044000
     timer         3  [   ]   omap_timer            |   |-- timer@48046000
     timer         4  [   ]   omap_timer            |   |-- timer@48048000
     timer         5  [   ]   omap_timer            |   |-- timer@4804a000
     misc          0  [ + ]   ti-musb-wrapper       |   |-- usb@47400000
     usb           0  [ + ]   ti-musb-peripheral    |   |   |-- usb@47401000
     eth           1  [ + ]   usb_ether             |   |   |   `-- usb_ether
     usb           0  [   ]   ti-musb-host          |   |   `-- usb@47401800
     eth           0  [ + ]   eth_cpsw              |   `-- ethernet@4a100000
     serial        1  [ + ]   omap_serial           `-- serial@44e09000
    => mmc list
    OMAP SD/MMC: 0 (SD)
    => mmc dev 0
    switch to partitions #0, OK
    mmc0 is current device
    => ls mmc 0:1
       108352   MLO
       767796   u-boot.img
            0   ws-calibrate.rules
        50433   MLO_7.3_hs
       773776   u-boot_7.3_hs.img
            1   .ipaddr
                am335x_7.3_gp_build/
                System Volume Information/
                7.3_prebuilt/
       131072   uboot.env
    
    7 file(s), 3 dir(s)
    
    => ls mmc 0:2   
    <DIR>       4096 .
    <DIR>       4096 ..
    <DIR>       4096 bin
    <DIR>       4096 boot
    <DIR>       4096 dev
    <DIR>       4096 etc
    <DIR>       4096 home
    <DIR>       4096 include
    <SYM>         20 init
    <DIR>       4096 lib
    <SYM>         19 linuxrc
    <DIR>       4096 media
    <DIR>       4096 mnt
    <DIR>       4096 opt
    <DIR>       4096 proc
    <DIR>       4096 run
    <DIR>       4096 sbin
    <DIR>       4096 sys
    <DIR>       4096 tmp
    <DIR>       4096 usr
    <DIR>       4096 var
    <DIR>       4096 www
    => ls mmc 0:2 boot
    <DIR>       4096 .
    <DIR>       4096 ..
               59557 am335x-bone.dtb
               62568 am335x-boneblack-wireless.dtb
               61337 am335x-boneblack.dtb
               60882 am335x-boneblue.dtb
               61118 am335x-bonegreen-wireless.dtb
               59777 am335x-bonegreen.dtb
               66064 am335x-evm.dtb
               64918 am335x-evmsk.dtb
               62691 am335x-icev2-prueth.dtb
               61547 am335x-icev2.dtb
               58511 am335x-pocketbeagle.dtb
               61921 am335x-sancloud-bbe.dtb
    <SYM>         28 fitImage
             5410411 fitImage-5.4.106-g023faefa70
    <SYM>         26 zImage
             4653568 zImage-5.4.106-g023faefa70
               59557 am335x-bone-am335x-hs-evm.dtb
               61337 am335x-boneblack-am335x-hs-evm.dtb
               62568 am335x-boneblack-wireless-am335x-hs-evm.dtb
               60882 am335x-boneblue-am335x-hs-evm.dtb
               59777 am335x-bonegreen-am335x-hs-evm.dtb
               61118 am335x-bonegreen-wireless-am335x-hs-evm.dtb
               66064 am335x-evm-am335x-hs-evm.dtb
               64918 am335x-evmsk-am335x-hs-evm.dtb
               61547 am335x-icev2-am335x-hs-evm.dtb
               62691 am335x-icev2-prueth-am335x-hs-evm.dtb
               58511 am335x-pocketbeagle-am335x-hs-evm.dtb
               61921 am335x-sancloud-bbe-am335x-hs-evm.dtb
    => 

  • Sorry, I think I posted the question in the wrong forum because I had clicked to post from inside a related AMxxxx question.

    My post must go to DM3730 - would it be possible to move this there at all?

    Do you guys have anything that can help me with DM3730 specifically? I am not sure how to use your response above specially considering it is for AM335x.

  • Hi Ramin! The subject owner is currently out of the office. Please allow a couple of days for a response. Thanks.

  • Hello,
    My last reply is for your reference on running u-boot cmds to check SD/MMC partition access issue as you're working on non-TI board.
    Alternatively you may get in touch with the board vendor for support.
    Best,
    -Hong