[U-Boot] [bug report] sunxi: booting from eMMC
Alexandr Bochkarev
aneox.inbox at gmail.com
Sun Oct 2 09:37:27 CEST 2016
Hi!
I am trying to boot my A20 board from eMMC KLM4G1FE3B-B001, but has no success.
Commenting mmc_change_freq has no effect.
U-Boot 2016.03 just says Could not determine boot source
I have found, that it stucks in sunxi_mmc_has_egon_boot_signature.
int sunxi_mmc_has_egon_boot_signature(struct mmc *mmc)
{
char *buf = malloc(512);
int valid_signature = 0;
if (buf == NULL)
panic("Failed to allocate memory\n");
if (mmc_getcd(mmc) && mmc_init(mmc) == 0 &&
mmc->block_dev.block_read(&mmc->block_dev, 16, 1, buf) == 1 &&
strncmp(&buf[4], "eGON.BT0", 8) == 0)
valid_signature = 1;
free(buf);
return valid_signature;
}
mmc_init(mmc) return no errors, seems good, but
block_read returns 0, seems it cant read emmc.
U-Boot 2016.09 says:
mmc_load_image_raw_sector: mmc block read error
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
More information about the U-Boot
mailing list