linux-sunxi / u-boot-sunxi

Allwinner A1x native u-boot support
https://github.com/linux-sunxi/u-boot-sunxi/wiki
317 stars 333 forks source link

upgrading 2017.09 -> 2017.11 breaks env loading on mele m3 #100

Open p5n opened 6 years ago

p5n commented 6 years ago

I need to set CONFIG_SYS_MMC_ENV_DEV in sunxi-common.h to 0 always to make it work again.

#if defined(CONFIG_ENV_IS_IN_MMC)
#if CONFIG_MMC_SUNXI_SLOT_EXTRA != -1
/* If we have two devices (most likely eMMC + MMC), favour the eMMC */
#define CONFIG_SYS_MMC_ENV_DEV          0 // <<<========== 1 was here
#else
/* Otherwise, use the only device we have */
#define CONFIG_SYS_MMC_ENV_DEV          0
#endif
#define CONFIG_SYS_MMC_MAX_DEVICE       4
#elif defined(CONFIG_ENV_IS_NOWHERE)
#define CONFIG_ENV_SIZE                 (128 << 10)
#endif

Running u-boot shows sdcard as mmc0. mmc1 does not work.