Hi!
Im have a problem when I want to boot my am3352 based custom card from emmc. I can read the emmc in Linux so after booting from SD I prepared the emmc and created a boot partition and copied MLO and u-boot from my SD-card to it. But when booting I get this:
U-Boot SPL 2020.07-rc1-00146-gc693f212c5-dirty (May 14 2020 - 13:27:20 +0200)
Trying to boot from MMC2
spl_load_image_fat_os: error reading image args, err - -2
U-Boot 2020.07-rc1-00146-gc693f212c5-dirty (May 14 2020 - 13:27:20 +0200)
CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
mmc_init_stream: timedout waiting for cc!
omap_hsmmc_send_cmd : timeout: No status update
mmc_init_stream: timedout waiting for cc!
omap_hsmmc_send_cmd : timeout: No status update
Its, sort of, the same behaviour if I boot from SD-card and run mmc dev 1 in u-boot.
=> mmc list
OMAP SD/MMC: 0 (SD)
OMAP SD/MMC: 1
=> mmc dev 1
mmc_init_stream: timedout waiting for cc!
omap_hsmmc_send_cmd : timeout: No status update
Selection of mux.c in u-boot:
static struct module_pin_mux mmc1_pin_mux[] = {
{OFFSET(gpmc_ad7), (MODE(1) | RXACTIVE | PULLUP_EN)}, /* MMC1_DAT7 */
{OFFSET(gpmc_ad6), (MODE(1) | RXACTIVE | PULLUP_EN)}, /* MMC1_DAT6 */
{OFFSET(gpmc_ad5), (MODE(1) | RXACTIVE | PULLUP_EN)}, /* MMC1_DAT5 */
{OFFSET(gpmc_ad4), (MODE(1) | RXACTIVE | PULLUP_EN)}, /* MMC1_DAT4 */
{OFFSET(gpmc_ad3), (MODE(1) | RXACTIVE | PULLUP_EN)}, /* MMC1_DAT3 */
{OFFSET(gpmc_ad2), (MODE(1) | RXACTIVE | PULLUP_EN)}, /* MMC1_DAT2 */
{OFFSET(gpmc_ad1), (MODE(1) | RXACTIVE | PULLUP_EN)}, /* MMC1_DAT1 */
{OFFSET(gpmc_ad0), (MODE(1) | RXACTIVE | PULLUP_EN)}, /* MMC1_DAT0 */
{OFFSET(gpmc_csn1), (MODE(2) | RXACTIVE | PULLUP_EN)}, /* MMC1_CLK */
{OFFSET(gpmc_csn2), (MODE(2) | RXACTIVE | PULLUP_EN)}, /* MMC1_CMD */
{-1},
};
Any ideas what Im doing wrong?