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,