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.

AM3358: No SD card present

Part Number: AM3358

I have a custom board based upon the BeagleBone Black. I am using TI-SDK-6.03.

# use SD created using create-sdcard.sh.

When I boot using ti image and abort autostart, I can change to mmc dev 0 OK.

#start with the am335x_evm_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm am335x_evm_defconfig
cd am335x_evm
make menuconfig
# i started with am335x_evm_defconfig and made these changes
CONFIG_BOOTDELAY=9
CONFIG_LOGLEVEL=7
CONFIG_SPL_LOG=y
CONFIG_LOG_CONSOLE=y
CONFIG_SPL_LOG_CONSOLE=y
# save config
#now do the actual build
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm

This is output during boot

U-Boot SPL 2019.01-gc14892445a-dirty (Apr 30 2020 - 22:17:38 -0500)                                                                 
Trying to boot from MMC1                                                                                                            
                                                                                                                                    
                                                                                                                                    
U-Boot 2019.01-gc14892445a-dirty (Apr 30 2020 - 22:23:34 -0500)                                                                     
                                                                                                                                    
CPU  : AM335X-GP rev 2.1                                                                                                            
Model: TI AM335x BeagleBone Black                                                                                                   
DRAM:  512 MiB                                                                                                                      
NAND:  nand_base: timeout while waiting for chip to become ready                                                                    
nand_base: No NAND device found                                                                                                     
0 MiB                                                                                                                               
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                                                                               
Loading Environment from FAT... MMC: no card present                                                                                
mmc_init: -123, time 1                                                                                                              
<ethaddr> not set. Validating first E-fuse MAC                                                                                      
Net:   Could not get PHY for ethernet@4a100000: addr 0                                                                              
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  f4:5e:ab:32:87:06                                                                                        
, eth1: usb_ether                                                                                                                   
Hit any key to stop autoboot:  0                                                                                                    
=> mmc rescan                                                                                                                       
MMC: no card present                                                                                                                
mmc_init: -123, time 2                                                                                                              
=> mmc dev 0                                                                                                                        
MMC: no card present                                                                                                                
mmc_init: -123, time 2                                                                                                              
=> mmc list                                                                                                                         
OMAP SD/MMC: 0                                                                                                                      
OMAP SD/MMC: 1                                                                                                                      
=> mmc dev 1                                                                                                                        
switch to partitions #0, OK                                                                                                         
mmc1(part 0) is current device                                                                                                      
=> mmc list                                                                                                                         
OMAP SD/MMC: 0                                                                                                                      
OMAP SD/MMC: 1 (eMMC)                                                                                                               
=> 

I cannot access SD card using u-boot built from am335x_evm_defconfig.

I understand that the SD card first comes up in 1-bit mode and then is changed to 4-bit mode. My best guess is that whatever code that is suppose to toggle 1-4bit mode is not being run.

Is there a u-boot setting that controls access to the SD card at mmc0?

Thank you,

  • Hi Jack,

    are you saying your custom BBB-based board works with the SDK 6.3 SD card image just fine?

    But when you try to re-build U-Boot yourself you no longer can access the SD card from the U-Boot promot?
    (By the way you can use the 'O= 'make parameter also for 'make menuconfig', don't need to change the folder and back).

    Can you try running 'mmc info' both after 'mmc dev 0' and 'mmc dev 1'?

    Fundamentally your U-Boot build seems to be able to access the SD card, otherwise SPL would not have been able to load U-Boot. But the difference is, SPL uses platform data to setup MMC, and U-Boot proper uses device tree data. Could be an issue on that front.

    Regards, Andreas

  • Andreas,

    My custom board (referred to as ZCPU) has an Octavo systems OSD3358 SIP chip. The chip has a built-in AM3358 processor. I tried three different u-boot on two different boards. A section at the bottom of this message contains results to mmc dev 0, mmc dev 1, mmc list and mmc info.

    4GB SD card created with SDK6.03 create-sdcard.sh (reffered to as card 1)
      (note: this creates two partitions - BOOT and ROOTFS)
    BBB (BeagleBone Black rev-C)
     see below: 'BBB boot SD card SDK603 create-sdcard'
     does not boot to linux login
     SD - 4-bit, name SD16G
     eMMC - 8-bit , name M6270
    ZCPU
     se below: 'ZCPU boot SD card SDK603 create-sdcard'
     does not boot to linux login
     SD - (blank responses)
     eMMC - 4-bit, name 004GA

    4GB SD card (referred to as card 1a)
      started with created with SDK6.03 create-sdcard.sh (note: this creates two partitions - BOOT and ROOTFS)
      rebuilt uboot with increased logging and boot delay = 9
      then MLO and uboot.img copied to BOOT. I actually used the above card and just copied MLO, uboot.img onto it.
    BBB
     below: 'BBB boot SD with re-built u-boot'
     boots to Arago Project 2019.11 linux login
     SD - 4-bit, name SD16G
     eMMC - 8-bit , name M6270
    ZCPU
     below: 'ZCPU boot SD with re-built u-boot'
     does not boot to linux login
     SD - 'no card present'
     eMMC - 4-bit, name 004GA

    16GB SD card created from 'AM3358 Debian 10.3 2020-04-06 4GB SD IoT' image (referred to as card 4)
      (note: this image creates one partition - ROOTFS)
    BBB
     below: 'BBB boot SD card 4 BB103 image'
     boots to Debian linux login
     SD - 4-bit, name SDU1
     eMMC - 4-bit , name M6270
    ZCPU
     below: 'ZCPU boot SD card 4 BB103 image'
     boots to Debian linux login
     SD - 4-bit
     eMMC - 4-bit, name 004GA

    Does SPL equal MLO?
    Does 'u-boot proper' equal uboot.img?
    I agree that card 1 and card 1a SPL is working, but u-boot proper cannot access the SD card. You mention the device tree could be the problem. I have not made and changes to the device tree in the ti-SDK because I don't know how to (yet). My ZCPU board was created referencing the Octavo systems OSD335x tutorial. The AM3358 mmc0 (SD) and mmc1 (eMMC) pinout (pinmux) matches the OSD335x tutorial, which matches the Beaglebone Black. I think the board layout of the EEPROM, mmc0 (SD), mmc1 (eMMC) and UART0 (console) are working or the ZCPU wouldn't boot at all.

    On a side note, I do have this boardID written to my EEPROM
    0000: aa 55 33 ee 41 33 33 35 42 4e 4c 54 ff ff ff ff    .U3.A335BNLT....
    0010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

    I will need to change the device tree because my ZCPU has no video, two NICS and four serial (with RS-232 transceivers) but that is another topic.

    My problem is that u-boot proper is not accessing the mmc0 SD card and because of that cannot load any files from the SD card.

    Some more info. I have been successful in adding #define DEBUG to the board-support/include/configs/am335x_evm.h and re-build uboot without Ethernet support. When booting, there is a lot of stuff printed to the console, but it never gets to 'abort autoboot'.

    I hope this answers some of your questions and I look forward to an suggestions you may have.
    Thank you,

    # BBB boot from SD card 4 using BeagleBoard 10.3 image

    U-Boot SPL 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600)             
    Trying to boot from MMC1                                                        
    Loading Environment from EXT4... ** File not found /boot/uboot.env **           
                                                                                    
    ** Unable to read "/boot/uboot.env" from mmc0:1 **                              
                                                                                    
                                                                                    
    U-Boot 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600), Build: jenkins7
                                                                                    
    CPU  : AM335X-GP rev 2.1                                                        
    I2C:   ready                                                                    
    DRAM:  512 MiB                                                                  
    No match for driver 'omap_hsmmc'                                                
    No match for driver 'omap_hsmmc'                                                
    Some drivers were not found                                                     
    Reset Source: Power-on reset has occurred.                                      
    RTC 32KCLK Source: External.                                                    
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                           
    Loading Environment from EXT4... ** File not found /boot/uboot.env **           
                                                                                    
    ** Unable to read "/boot/uboot.env" from mmc0:1 **                              
    Board: BeagleBone Black                                                         
    <ethaddr> not set. Validating first E-fuse MAC                                  
    BeagleBone Black:                                                               
    BeagleBone: cape eeprom: i2c_probe: 0x54:                                       
    BeagleBone: cape eeprom: i2c_probe: 0x55:                                       
    BeagleBone: cape eeprom: i2c_probe: 0x56:                                       
    BeagleBone: cape eeprom: i2c_probe: 0x57:                                       
    Net:   eth0: MII MODE                                                           
    cpsw, usb_ether                                                                 
    Press SPACE to abort autoboot in 0 seconds                                      
    => mmc list                                                                     
    OMAP SD/MMC: 0 (SD)                                                             
    OMAP SD/MMC: 1                                                                  
    => mmc dev 0                                                                    
    switch to partitions #0, OK                                                     
    mmc0 is current device                                                          
    => mmc info                                                                     
    Device: OMAP SD/MMC                                                             
    Manufacturer ID: 74                                                             
    OEM: 4a45                                                                       
    Name: SDU1                                                                      
    Bus Speed: 48000000                                                             
    Mode : SD High Speed (50MHz)                                                    
    Rd Block Len: 512                                                               
    SD version 3.0                                                                  
    High Capacity: Yes                                                              
    Capacity: 14.7 GiB                                                              
    Bus Width: 4-bit                                                                
    Erase Group Size: 512 Bytes                                                     
    => mmc dev 1                                                                    
    switch to partitions #0, OK                                                     
    mmc1(part 0) is current device                                                  
    => mmc info                                                                     
    Device: OMAP SD/MMC                                                             
    Manufacturer ID: 70                                                             
    OEM: 100                                                                        
    Name: M6270                                                                     
    Bus Speed: 48000000                                                             
    Mode : MMC High Speed (52MHz)                                                   
    Rd Block Len: 512                                                               
    MMC version 4.5                                                                 
    High Capacity: Yes                                                              
    Capacity: 3.6 GiB                                                               
    Bus Width: 4-bit                                                                
    Erase Group Size: 512 KiB                                                       
    HC WP Group Size: 4 MiB                                                         
    User Capacity: 3.6 GiB                                                          
    Boot Capacity: 2 MiB ENH                                                        
    RPMB Capacity: 512 KiB ENH                                                      
    => mmc list                                                                     
    OMAP SD/MMC: 0 (SD)                                                             
    OMAP SD/MMC: 1 (eMMC)                                                           
    =>

    # BBB boot from SD card 1 using SDK6.03 create-sdcard.sh

    U-Boot SPL 2019.01-g333c3e72d3 (Apr 19 2020 - 11:21:12 +0000)                   
    Trying to boot from MMC1                                                        
                                                                                    
                                                                                    
    U-Boot 2019.01-g333c3e72d3 (Apr 19 2020 - 11:21:12 +0000)                       
                                                                                    
    CPU  : AM335X-GP rev 2.1                                                        
    Model: TI AM335x BeagleBone Black                                               
    DRAM:  512 MiB                                                                  
    NAND:  0 MiB                                                                    
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                           
    Loading Environment from FAT... *** Warning - bad CRC, using default environment
                                                                                    
    <ethaddr> not set. Validating first E-fuse MAC                                  
    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  74:e1:82:5f:0d:34                                    
    , eth1: usb_ether                                                               
    Hit any key to stop autoboot:  0                                                
    => mmc list                                                                     
    OMAP SD/MMC: 0 (SD)                                                             
    OMAP SD/MMC: 1                                                                  
    => mmc dev 0                                                                    
    switch to partitions #0, OK                                                     
    mmc0 is current device                                                          
    => mmc info                                                                     
    Device: OMAP SD/MMC                                                             
    Manufacturer ID: 0                                                              
    OEM: 3432                                                                       
    Name: SD16G                                                                     
    Bus Speed: 48000000                                                             
    Mode : SD High Speed (50MHz)                                                    
    Rd Block Len: 512                                                               
    SD version 2.0                                                                  
    High Capacity: Yes                                                              
    Capacity: 3.8 GiB                                                               
    Bus Width: 4-bit                                                                
    Erase Group Size: 512 Bytes                                                     
    => mmc dev 1                                                                    
    switch to partitions #0, OK                                                     
    mmc1(part 0) is current device                                                  
    => mmc info                                                                     
    Device: OMAP SD/MMC                                                             
    Manufacturer ID: 70                                                             
    OEM: 100                                                                        
    Name: M6270                                                                     
    Bus Speed: 48000000                                                             
    Mode : MMC High Speed (52MHz)                                                   
    Rd Block Len: 512                                                               
    MMC version 4.5                                                                 
    High Capacity: Yes                                                              
    Capacity: 3.6 GiB                                                               
    Bus Width: 8-bit                                                                
    Erase Group Size: 512 KiB                                                       
    User Capacity: 3.6 GiB                                                          
    Boot Capacity: 2 MiB ENH                                                        
    RPMB Capacity: 512 KiB ENH                                                      
    => mmc list                                                                     
    OMAP SD/MMC: 0 (SD)                                                             
    OMAP SD/MMC: 1 (eMMC)                                                           
    =>

    # BBB boot from SD card 1a using re-built U-Boot

    U-Boot SPL 2019.01-gc14892445a-dirty (Apr 30 2020 - 22:17:38 -0500)             
    Trying to boot from MMC1                                                        
                                                                                    
                                                                                    
    U-Boot 2019.01-gc14892445a-dirty (Apr 30 2020 - 22:23:34 -0500)                 
                                                                                    
    CPU  : AM335X-GP rev 2.1                                                        
    Model: TI AM335x BeagleBone Black                                               
    DRAM:  512 MiB                                                                  
    NAND:  nand_base: timeout while waiting for chip to become ready                
    nand_base: No NAND device found                                                 
    0 MiB                                                                           
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                           
    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  74:e1:82:5f:0d:34                                    
    , eth1: usb_ether                                                               
    Hit any key to stop autoboot:  0                                                
    => mmc list                                                                     
    OMAP SD/MMC: 0 (SD)                                                             
    OMAP SD/MMC: 1                                                                  
    => mmc dev 0                                                                    
    switch to partitions #0, OK                                                     
    mmc0 is current device                                                          
    => mmc info                                                                     
    Device: OMAP SD/MMC                                                             
    Manufacturer ID: 0                                                              
    OEM: 3432                                                                       
    Name: SD16G                                                                     
    Bus Speed: 48000000                                                             
    Mode : SD High Speed (50MHz)                                                    
    Rd Block Len: 512                                                               
    SD version 2.0                                                                  
    High Capacity: Yes                                                              
    Capacity: 3.8 GiB                                                               
    Bus Width: 4-bit                                                                
    Erase Group Size: 512 Bytes                                                     
    => mmc dev 1                                                                    
    switch to partitions #0, OK                                                     
    mmc1(part 0) is current device                                                  
    => mmc info                                                                     
    Device: OMAP SD/MMC                                                             
    Manufacturer ID: 70                                                             
    OEM: 100                                                                        
    Name: M6270                                                                     
    Bus Speed: 48000000                                                             
    Mode : MMC High Speed (52MHz)                                                   
    Rd Block Len: 512                                                               
    MMC version 4.5                                                                 
    High Capacity: Yes                                                              
    Capacity: 3.6 GiB                                                               
    Bus Width: 8-bit                                                                
    Erase Group Size: 512 KiB                                                       
    User Capacity: 3.6 GiB                                                          
    Boot Capacity: 2 MiB ENH                                                        
    RPMB Capacity: 512 KiB ENH                                                      
    => mmc list                                                                     
    OMAP SD/MMC: 0 (SD)                                                             
    OMAP SD/MMC: 1 (eMMC)                                                           
    =>

    # ZCPU boot from SD card 4 using BeagleBoard 10.3 image

    U-Boot SPL 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600)             
    Trying to boot from MMC1                                                        
    Loading Environment from EXT4... ** File not found /boot/uboot.env **           
                                                                                    
    ** Unable to read "/boot/uboot.env" from mmc0:1 **                              
                                                                                    
                                                                                    
    U-Boot 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600), Build: jenkins7
                                                                                    
    CPU  : AM335X-GP rev 2.1                                                        
    I2C:   ready                                                                    
    DRAM:  512 MiB                                                                  
    No match for driver 'omap_hsmmc'                                                
    No match for driver 'omap_hsmmc'                                                
    Some drivers were not found                                                     
    Reset Source: Power-on reset has occurred.                                      
    RTC 32KCLK Source: External.                                                    
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                           
    Loading Environment from EXT4... ** File not found /boot/uboot.env **           
                                                                                    
    ** Unable to read "/boot/uboot.env" from mmc0:1 **                              
    Board: BeagleBone Black                                                         
    <ethaddr> not set. Validating first E-fuse MAC                                  
    BeagleBone Black:                                                               
    BeagleBone: cape eeprom: i2c_probe: 0x54:                                       
    BeagleBone: cape eeprom: i2c_probe: 0x55:                                       
    BeagleBone: cape eeprom: i2c_probe: 0x56:                                       
    BeagleBone: cape eeprom: i2c_probe: 0x57:                                       
    Net:   eth0: MII MODE                                                           
    cpsw, usb_ether                                                                 
    Press SPACE to abort autoboot in 0 seconds                                      
    => mmc list                                                                     
    OMAP SD/MMC: 0 (SD)                                                             
    OMAP SD/MMC: 1                                                                  
    => mmc dev 0                                                                    
    switch to partitions #0, OK                                                     
    mmc0 is current device                                                          
    => mmc info                                                                     
    Device: OMAP SD/MMC                                                             
    Manufacturer ID: 74                                                             
    OEM: 4a45                                                                       
    Name: SDU1                                                                      
    Bus Speed: 48000000                                                             
    Mode : SD High Speed (50MHz)                                                    
    Rd Block Len: 512                                                               
    SD version 3.0                                                                  
    High Capacity: Yes                                                              
    Capacity: 14.7 GiB                                                              
    Bus Width: 4-bit                                                                
    Erase Group Size: 512 Bytes                                                     
    => mmc dev 1                                                                    
    switch to partitions #0, OK                                                     
    mmc1(part 0) is current device                                                  
    => mmc info                                                                     
    Device: OMAP SD/MMC                                                             
    Manufacturer ID: 11                                                             
    OEM: 100                                                                        
    Name: 004GA                                                                     
    Bus Speed: 48000000                                                             
    Mode : MMC High Speed (52MHz)                                                   
    Rd Block Len: 512                                                               
    MMC version 5.0                                                                 
    High Capacity: Yes                                                              
    Capacity: 3.7 GiB                                                               
    Bus Width: 4-bit                                                                
    Erase Group Size: 512 KiB                                                       
    HC WP Group Size: 4 MiB                                                         
    User Capacity: 3.7 GiB WRREL                                                    
    Boot Capacity: 2 MiB ENH                                                        
    RPMB Capacity: 512 KiB ENH                                                      
    => mmc list                                                                     
    OMAP SD/MMC: 0 (SD)                                                             
    OMAP SD/MMC: 1 (eMMC)                                                           
    =>

    # ZCPU boot from SD card 1 using SDK6.03 create-sdcard.sh

    U-Boot SPL 2019.01-g333c3e72d3 (Apr 19 2020 - 11:21:12 +0000)                   
    Trying to boot from MMC1                                                        
                                                                                    
                                                                                    
    U-Boot 2019.01-g333c3e72d3 (Apr 19 2020 - 11:21:12 +0000)                       
                                                                                    
    CPU  : AM335X-GP rev 2.1                                                        
    Model: TI AM335x BeagleBone Black                                               
    DRAM:  512 MiB                                                                  
    NAND:  0 MiB                                                                    
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                           
    Loading Environment from FAT... <ethaddr> not set. Validating first E-fuse MAC  
    Net:   Could not get PHY for ethernet@4a100000: addr 0                          
    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  f4:5e:ab:32:87:06                                    
    , eth1: usb_ether                                                               
    Hit any key to stop autoboot:  0                                                
    => mmc list                                                                     
    OMAP SD/MMC: 0                                                                  
    OMAP SD/MMC: 1                                                                  
    => mmc dev 0                                                                    
    => mmc info                                                                     
    => mmc dev 1                                                                    
    switch to partitions #0, OK                                                     
    mmc1(part 0) is current device                                                  
    => mmc info                                                                     
    Device: OMAP SD/MMC                                                             
    Manufacturer ID: 11                                                             
    OEM: 100                                                                        
    Name: 004GA                                                                     
    Bus Speed: 48000000                                                             
    Mode : MMC High Speed (52MHz)                                                   
    Rd Block Len: 512                                                               
    MMC version 5.0                                                                 
    High Capacity: Yes                                                              
    Capacity: 3.7 GiB                                                               
    Bus Width: 4-bit                                                                
    Erase Group Size: 512 KiB                                                       
    User Capacity: 3.7 GiB WRREL                                                    
    Boot Capacity: 2 MiB ENH                                                        
    RPMB Capacity: 512 KiB ENH                                                      
    => mmc list                                                                     
    OMAP SD/MMC: 0                                                                  
    OMAP SD/MMC: 1 (eMMC)                                                           
    =>

    # ZCPU boot from SD card 1a using re-built U-Boot

    U-Boot SPL 2019.01-gc14892445a-dirty (Apr 30 2020 - 22:17:38 -0500)             
    Trying to boot from MMC1                                                        
                                                                                    
                                                                                    
    U-Boot 2019.01-gc14892445a-dirty (Apr 30 2020 - 22:23:34 -0500)                 
                                                                                    
    CPU  : AM335X-GP rev 2.1                                                        
    Model: TI AM335x BeagleBone Black                                               
    DRAM:  512 MiB                                                                  
    NAND:  nand_base: timeout while waiting for chip to become ready                
    nand_base: No NAND device found                                                 
    0 MiB                                                                           
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                           
    Loading Environment from FAT... MMC: no card present                            
    mmc_init: -123, time 1                                                          
    <ethaddr> not set. Validating first E-fuse MAC                                  
    Net:   Could not get PHY for ethernet@4a100000: addr 0                          
    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  f4:5e:ab:32:87:06                                    
    , eth1: usb_ether                                                               
    Hit any key to stop autoboot:  0                                                
    => mmc list                                                                     
    OMAP SD/MMC: 0                                                                  
    OMAP SD/MMC: 1                                                                  
    => mmc dev 0                                                                    
    MMC: no card present                                                            
    mmc_init: -123, time 2                                                          
    => mmc info                                                                     
    MMC: no card present                                                            
    mmc_init: -123, time 2                                                          
    => mmc dev 1                                                                    
    switch to partitions #0, OK                                                     
    mmc1(part 0) is current device                                                  
    => mmc info                                                                     
    Device: OMAP SD/MMC                                                             
    Manufacturer ID: 11                                                             
    OEM: 100                                                                        
    Name: 004GA                                                                     
    Bus Speed: 48000000                                                             
    Mode : MMC High Speed (52MHz)                                                   
    Rd Block Len: 512                                                               
    MMC version 5.0                                                                 
    High Capacity: Yes                                                              
    Capacity: 3.7 GiB                                                               
    Bus Width: 4-bit                                                                
    Erase Group Size: 512 KiB                                                       
    User Capacity: 3.7 GiB WRREL                                                    
    Boot Capacity: 2 MiB ENH                                                        
    RPMB Capacity: 512 KiB ENH                                                      
    => mmc list                                                                     
    OMAP SD/MMC: 0                                                                  
    OMAP SD/MMC: 1 (eMMC)                                                           
    =>

  • Hi Jack,

    Your last post was formatted in a way that made it very difficult to read but thanks for the additional details.

    I'd like to go back to your initial post. You said the SDK image works as-is on your own board, and you can access mmc0. But when you rebuild U-Boot, you can no longer access mmc0.

    Jack Knight said:
    #start with the am335x_evm_defconfig

    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm am335x_evm_defconfig
    cd am335x_evm
    make menuconfig
    # i started with am335x_evm_defconfig and made these changes
    CONFIG_BOOTDELAY=9
    CONFIG_LOGLEVEL=7
    CONFIG_SPL_LOG=y
    CONFIG_LOG_CONSOLE=y
    CONFIG_SPL_LOG_CONSOLE=y
    # save config
    #now do the actual build
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm

    Can you try this again, but with the following sequence:

    1. make [...] mrproper
    2. make [...] am335x_evm_defconfig
    3. DO NOT CHANGE THE CONFIG
    4. make [...]
    5. Then copy MLO and u-boot.img to the boot partition of the SD card you used before for the successful boot with the SDK image, effectivly overwriting the SPL and u-boot.img files that are on there.

    I don't see any reason why the above steps should not work. The SDK sources and the provided binaries are 100% in sync, so one should be able to re-build.

    Also can you try using the cross-toolchain that is part of the SDK, just to be sure. The current release (v6.3) uses ARM Toolchain (gcc) 8.3 2019.03 hard-float, see http://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Release_Specific_PLSDK_Release_Notes.html#release-06-03-00

    You can also try building U-Boot from the SDK root folder:

    $ make u-boot_clean
    $ make u-boot

    Thanks, Andreas