sunxi:Added difference MMC SLOT for booting
PATCH 3/3 sunxi:Added difference MMC SLOT for booting
PATCH 3/3 sunxi:Added difference MMC SLOT for booting
Hi,
Quoted 6 lines · ???????
From
94a30632fb9db555b8dbfac4e46c922c73371960Mon Sep 17 00:00:00 2001
From: Zhi Yuan Wan <[email protected]>
Date: Thu, 25 Jun 2015 20:03:58 +0800
Subject: [PATCH 3/3] sunxi:Added difference MMC SLOT for bootingSigned-off-by Zhi Yuan Wan <[email protected]>
There is a much simpler / easier way to do this, simply add a:
CONFIG_MMC_SUNXI_SLOT_EXTRA=2
Line to the defconfig, then an u-boot will be build which supports booting from both the external sdcard slot as well as from the emmc, and it will figure out where it is booting from and use that as bootdevice itself.
Regards,
Hans
Quoted 61 lines
--- board/sunxi/Kconfig | 6 ++++++ configs/Mele_I7_SD2_defconfig | 16 ++++++++++++++++ include/configs/sunxi-common.h | 2 ++ 3 files changed, 24 insertions(+)create mode 100644 configs/Mele_I7_SD2_defconfig
board/sunxi/Kconfig +6
-0@@ -280,6 +280,12 @@ config MMC_SUNXI_SLOT_EXTRA slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable support for this. +config MMC_SUNXI_SLOT + int "default boot mmc slot number" + default 0 + ---help--- + sunxi always boot from slot 0, but you still can modify the default setting of mmc slot number. + config SPL_NAND_SUPPORT bool "SPL/NAND mode support" depends on SPLconfigs/Mele_I7_SD2_defconfig new file +16
-0@@ -0,0 +1,16 @@ +CONFIG_ARM=y +CONFIG_ARCH_SUNXI=y +CONFIG_MACH_SUN6I=y +CONFIG_MMC_SUNXI_SLOT=2 +CONFIG_MMC_SUNXI_SLOT_EXTRA=0 +CONFIG_DRAM_ZQ=120 +CONFIG_USB1_VBUS_PIN="PC27" +CONFIG_USB2_VBUS_PIN="" +CONFIG_DEFAULT_DEVICE_TREE="sun6i-a31-i7" +CONFIG_SPL=y +CONFIG_SYS_EXTRA_OPTIONS="USB_EHCI,SUNXI_GMAC" +CONFIG_ETH_DESIGNWARE=y +CONFIG_AXP221_DCDC1_VOLT=3300 +CONFIG_AXP221_DLDO1_VOLT=3300 +CONFIG_AXP221_DLDO4_VOLT=3300 +CONFIG_AXP221_ALDO1_VOLT=3300include/configs/sunxi-common.h +2
-0@@ -146,7 +146,9 @@#define CONFIG_GENERIC_MMC #define CONFIG_CMD_MMC #define CONFIG_MMC_SUNXI +#ifndef CONFIG_MMC_SUNXI_SLOT #define CONFIG_MMC_SUNXI_SLOT 0 +#endif #if !defined(CONFIG_SPL_NAND_SUPPORT )#define CONFIG_ENV_IS_IN_MMC #define CONFIG_SYS_MMC_ENV_DEV 0/* first detected MMC controller */