From 8c03ad06da7f79be55a723dc77d22465111a65b2 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Wed, 16 Apr 2014 15:22:01 +0200 Subject: colibri_t20: fix/hack sd boot environment We wrongly set an obsolete define so the U-Boot environment ended up at the wrong location on the SD card. Add a hack introducing a short delays before doing MMC_CMD_SET_BLOCKLEN as otherwise all 4GB Kingston or SanDisk cards I have failed. While at it fix the USB port naming in the device tree comments to adhere to the standard Colibri convention. --- include/configs/colibri_t20_sdboot.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/configs/colibri_t20_sdboot.h') diff --git a/include/configs/colibri_t20_sdboot.h b/include/configs/colibri_t20_sdboot.h index 588419a5f99..6629f42c2f2 100644 --- a/include/configs/colibri_t20_sdboot.h +++ b/include/configs/colibri_t20_sdboot.h @@ -34,7 +34,7 @@ SD-BOOT The sd sector numbers are used as follows: u-boot needs to find ENV and LNX to get to the environment and the kernel, the kernel needs to find the APP partition for the rootfs. ENV: colibri_t20_sdboot.h -Set CONFIG_ENV_MMC_OFFSET to the byte start address of ENV, take the sector address of Partid 6 (which is in 2048 byte sectors) +Set CONFIG_ENV_OFFSET to the byte start address of ENV, take the sector address of Partid 6 (which is in 2048 byte sectors) LNX: colibri_t20.h Set the u-boot environment SDBOOTCMD below, mmc read RAMloadaddr, 512byte sector start, 512byte copy length. @@ -86,8 +86,11 @@ sector start address 6784 * 2048 -> 27137 * 512 -> GPT start sector is 27137. #if defined(CONFIG_ENV_IS_IN_MMC) #define CONFIG_SYS_MMC_ENV_DEV 0 /* use MMC0, slot on eval board and Iris */ -/* once the eMMC is detected the corresponding setting is taken */ -#define CONFIG_ENV_MMC_OFFSET (gd->env_offset * 512) +#ifdef CONFIG_ENV_OFFSET +#undef CONFIG_ENV_OFFSET +#endif +/* once the SD card is detected the corresponding setting is taken */ +#define CONFIG_ENV_OFFSET (gd->env_offset * 512) #endif #endif /* __CONFIG_H */ -- cgit v1.2.3