ARM: Odroid XU3: Enable DM_MMC support which is necessary for CONFIG_BLK
Subsystems (2)
cover ARM: Odroid XU3: Enable DM_MMC support which is necessary for CONFIG_BLK
This patch series provides following improvements to Odroid XU3:
- Fix sdr_timing problem with DW_MMC running with DM
- Clean up the defconfig file
- Allow default booting via SD card
- Fix potential memory leak when running under DM (DW_MMC)
Travis-CI: https://travis-ci.org/lmajewski/u-boot-dfu/builds/408080614
Lukasz Majewski (9):
ARM: dw_mmc: Exclude dwmci Exynos priv_data allocation from
exynos_dwmci_get_config()
ARM: Odroid XU3: config: Disable SDHCI support in the Odroid XU3
ARM: Odroid XU3: Enable driver model support for MMC (DM_MMC)
ARM: Odroid XU3: Fix autoboot.cmd to use ${mmcbootdev} instead of
hardcoded 0
ARM: Odroid XU3: Adjust BOOT_TARGET_DEVICES to allow booting from SD
card (mmc2)
ARM: Odroid XU3: MAINTAINERS: Add a co-maintainer for OdroidXU3
ARM: Odroid XU3: Fix the dwmci_exynos *priv data assignment for DM_MMC
(sdr_timing)
ARM: Odroid XU3: Modify exynos dw_mmc driver to support Odroid XU3 in
DM MMC
ARM: Odroid XU3: Modify Odroid XU3 config to boot by default from SD
card
board/samsung/common/bootscripts/autoboot.cmd | 6 ++--- board/samsung/smdk5420/MAINTAINERS | 1 + configs/odroid-xu3_defconfig | 3 +-- drivers/mmc/exynos_dw_mmc.c | 37 +++++++++++++++------------ include/configs/exynos5-common.h | 1 + include/configs/odroid_xu3.h | 7 +++-- 6 files changed, 32 insertions(+), 23 deletions(-)
Signature · 1 line
2.11.0
PATCH 1/9 ARM: dw_mmc: Exclude dwmci Exynos priv_data allocation from exynos_dwmci_get_config()
This commit prevents memory leak when this function is used with DM_MMC as the struct dwmci_exynos_priv_data is already allocated by DM.
It is necessary for NON DM aware devices to allocate this struct first.
---
drivers/mmc/exynos_dw_mmc.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)
drivers/mmc/exynos_dw_mmc.c +15 -15
@@ -146,17 +146,11 @@ static int do_dwmci_init(struct dwmci_host *host) }static int exynos_dwmci_get_config (const void *blob,int node, -struct dwmci_host *host) +struct dwmci_host *host, +struct dwmci_exynos_priv_data *priv) {int err =0 ;u32 base, timing[3 ]; -struct dwmci_exynos_priv_data *priv; - - priv =malloc (sizeof (struct dwmci_exynos_priv_data )); -if (!priv) { -pr_err ("dwmci_exynos_priv_data malloc fail!\n" ); -return -ENOMEM ; - }/* Extract device id for each mmc channel */ host->dev_id =pinmux_decode_periph_id (blob, node);
@@ -167,7 +161,6 @@ static int exynos_dwmci_get_config(const void *blob, int node,if (host->dev_index >4 ) {printf ("DWMMC%d: Can't get the dev index\n" , host->dev_index); -free (priv);return -EINVAL ; }
@@ -178,7 +171,6 @@ static int exynos_dwmci_get_config(const void *blob, int node, base =fdtdec_get_addr (blob, node,"reg" );if (!base) {printf ("DWMMC%d: Can't get base address\n" , host->dev_index); -free (priv);return -EINVAL ; } host->ioaddr = (void *)base;
@@ -188,7 +180,6 @@ static int exynos_dwmci_get_config(const void *blob, int node,if (err) {printf ("DWMMC%d: Can't get sdr-timings for devider\n" , host->dev_index); -free (priv);return -EINVAL ; }
@@ -208,14 +199,13 @@ static int exynos_dwmci_get_config(const void *blob, int node, host->bus_hz =fdtdec_get_int (blob, node,"bus_hz" ,0 ); host->div =fdtdec_get_int (blob, node,"div" ,0 ); - host->priv = priv; -return 0 ; }static int exynos_dwmci_process_node (const void *blob,int node_list[],int count) { +struct dwmci_exynos_priv_data *priv;struct dwmci_host *host;int i, node, err;
@@ -224,11 +214,20 @@ static int exynos_dwmci_process_node(const void *blob,if (node <=0 )continue ; host = &dwmci_host[i]; - err =exynos_dwmci_get_config (blob, node, host); + + priv =malloc (sizeof (struct dwmci_exynos_priv_data )); +if (!priv) { +pr_err ("dwmci_exynos_priv_data malloc fail!\n" ); +return -ENOMEM ; + } + + err =exynos_dwmci_get_config (blob, node, host, priv);if (err) {printf ("%s: failed to decode dev %d\n" , __func__, i); +free (priv);return err; } + host->priv = priv;do_dwmci_init (host); }
@@ -266,7 +265,8 @@ static int exynos_dwmmc_probe(struct udevice *dev)struct dwmci_host *host = &priv->host;int err; - err =exynos_dwmci_get_config (gd->fdt_blob,dev_of_offset (dev), host); + err =exynos_dwmci_get_config (gd->fdt_blob,dev_of_offset (dev), host, + priv);if (err)return err; err =do_dwmci_init (host);
Signature · 1 line
2.11.0
PATCH 1/9 ARM: dw_mmc: Exclude dwmci Exynos priv_data allocation from exynos_dwmci_get_config()
Hi Lukasz
Quoted 108 lines · Lukasz Majewski
This commit prevents memory leak when this function is used with
DM_MMCas the structdwmci_exynos_priv_datais already allocated by DM.It is necessary for NON DM aware devices to allocate this struct first.
Signed-off-by Lukasz Majewski <[email protected]>---
drivers/mmc/exynos_dw_mmc.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)drivers/mmc/exynos_dw_mmc.c +15
-16@@ -146,17 +146,11 @@ static int do_dwmci_init(struct dwmci_host *host) }static int exynos_dwmci_get_config (const void *blob,int node, -struct dwmci_host *host) +struct dwmci_host *host, +struct dwmci_exynos_priv_data *priv) {int err =0 ;u32 base, timing[3 ]; -struct dwmci_exynos_priv_data *priv; - - priv =malloc (sizeof (struct dwmci_exynos_priv_data )); -if (!priv) { -pr_err ("dwmci_exynos_priv_data malloc fail!\n" ); -return -ENOMEM ; - }/* Extract device id for each mmc channel */ host->dev_id =pinmux_decode_periph_id (blob, node);@@ -167,7 +161,6 @@ static int exynos_dwmci_get_config(const void *blob, int node,if (host->dev_index >4 ) {printf ("DWMMC%d: Can't get the dev index\n" , host->dev_index); -free (priv);return -EINVAL ; }@@ -178,7 +171,6 @@ static int exynos_dwmci_get_config(const void *blob, int node, base =fdtdec_get_addr (blob, node,"reg" );if (!base) {printf ("DWMMC%d: Can't get base address\n" , host->dev_index); -free (priv);return -EINVAL ; } host->ioaddr = (void *)base;@@ -188,7 +180,6 @@ static int exynos_dwmci_get_config(const void *blob, int node,if (err) {printf ("DWMMC%d: Can't get sdr-timings for devider\n" , host->dev_index); -free (priv);return -EINVAL ; }@@ -208,14 +199,13 @@ static int exynos_dwmci_get_config(const void *blob, int node, host->bus_hz =fdtdec_get_int (blob, node,"bus_hz" ,0 ); host->div =fdtdec_get_int (blob, node,"div" ,0 ); - host->priv = priv; -return 0 ; }static int exynos_dwmci_process_node (const void *blob,int node_list[],int count) { +struct dwmci_exynos_priv_data *priv;struct dwmci_host *host;int i, node, err;@@ -224,11 +214,20 @@ static int exynos_dwmci_process_node(const void *blob,if (node <=0 )continue ; host = &dwmci_host[i]; - err =exynos_dwmci_get_config (blob, node, host); + + priv =malloc (sizeof (struct dwmci_exynos_priv_data )); +if (!priv) { +pr_err ("dwmci_exynos_priv_data malloc fail!\n" ); +return -ENOMEM ; + } + + err =exynos_dwmci_get_config (blob, node, host, priv);if (err) {printf ("%s: failed to decode dev %d\n" , __func__, i); +free (priv);return err; } + host->priv = priv;do_dwmci_init (host); }@@ -266,7 +265,8 @@ static int exynos_dwmmc_probe(struct udevice *dev)struct dwmci_host *host = &priv->host;int err; - err =exynos_dwmci_get_config (gd->fdt_blob,dev_of_offset (dev), host); + err =exynos_dwmci_get_config (gd->fdt_blob,dev_of_offset (dev), host, + priv);if (err)return err; err =do_dwmci_init (host); --
Quoted 2 lines
2.11.0
Please add my.
Best Regards
-Anand
PATCH 2/9 ARM: Odroid XU3: config: Disable SDHCI support in the Odroid XU3
In reply to Lukasz MajewskiThe Exynos5422 is solely using DW MMC IP block to support eMMC/SD devices, hence the SDHCI code doesn't need to be compiled it.
---
configs/odroid-xu3_defconfig | 2 -- 1 file changed, 2 deletions(-)
configs/odroid-xu3_defconfig +0 -2
@@ -30,8 +30,6 @@ CONFIG_ADC=y CONFIG_ADC_EXYNOS=y CONFIG_DFU_MMC=y CONFIG_MMC_DW=y -CONFIG_MMC_SDHCI=y -CONFIG_MMC_SDHCI_S5P=y CONFIG_NETDEVICES=y CONFIG_SMC911X=y CONFIG_SMC911X_BASE=0x5000000
Signature · 1 line
2.11.0
PATCH 2/9 ARM: Odroid XU3: config: Disable SDHCI support in the Odroid XU3
Hi Lukasz
Quoted 23 lines · Lukasz Majewski
The Exynos5422 is solely using DW MMC IP block to support eMMC/SD devices, hence the SDHCI code doesn't need to be compiled it.
Signed-off-by Lukasz Majewski <[email protected]>---
configs/odroid-xu3_defconfig | 2 -- 1 file changed, 2 deletions(-)configs/odroid-xu3_defconfig +0
-3@@ -30,8 +30,6 @@ CONFIG_ADC=y CONFIG_ADC_EXYNOS=y CONFIG_DFU_MMC=y CONFIG_MMC_DW=y -CONFIG_MMC_SDHCI=y -CONFIG_MMC_SDHCI_S5P=y CONFIG_NETDEVICES=y CONFIG_SMC911X=y CONFIG_SMC911X_BASE=0x5000000 --
Quoted 2 lines
2.11.0
Please add my.
Best Regards
-Anand
PATCH 3/9 ARM: Odroid XU3: Enable driver model support for MMC (DM_MMC)
In reply to Lukasz MajewskiThis commit enables support for DW_MMC running with driver model.
---
configs/odroid-xu3_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/odroid-xu3_defconfig +1 -0
@@ -29,6 +29,7 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_ADC=y CONFIG_ADC_EXYNOS=y CONFIG_DFU_MMC=y +CONFIG_DM_MMC=y CONFIG_MMC_DW=y CONFIG_NETDEVICES=y CONFIG_SMC911X=y
Signature · 1 line
2.11.0
PATCH 3/9 ARM: Odroid XU3: Enable driver model support for MMC (DM_MMC)
Hi Lukasz
Quoted 21 lines · Lukasz Majewski
This commit enables support for
DW_MMCrunning with driver model.Signed-off-by Lukasz Majewski <[email protected]>---
configs/odroid-xu3_defconfig | 1 + 1 file changed, 1 insertion(+)configs/odroid-xu3_defconfig +1
-1@@ -29,6 +29,7 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_ADC=y CONFIG_ADC_EXYNOS=y CONFIG_DFU_MMC=y +CONFIG_DM_MMC=y CONFIG_MMC_DW=y CONFIG_NETDEVICES=y CONFIG_SMC911X=y --
Quoted 2 lines
2.11.0
Please add my.
Best Regards
-Anand
PATCH 4/9 ARM: Odroid XU3: Fix autoboot.cmd to use ${mmcbootdev} instead of hardcoded 0
In reply to Lukasz MajewskiThis commit adjusts the autoboot.cmd file to use ${mmcbootdev} instead of hardcoded value 0.
This is necessary to allow booting this board from the SD card.
---
board/samsung/common/bootscripts/autoboot.cmd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
board/samsung/common/bootscripts/autoboot.cmd +3 -3
@@ -74,15 +74,15 @@ setenv boot_img " #### Routine: autoboot - choose proper boot path setenv autoboot " -if test -e mmc 0:${mmcbootpart} Image.itb; then +if test -e mmc ${mmcbootdev}:${mmcbootpart} Image.itb; then echo Found kernel image: Image.itb; run setboot_fit; run boot_img; -elif test -e mmc 0:${mmcbootpart} zImage; then +elif test -e mmc ${mmcbootdev}:${mmcbootpart} zImage; then echo Found kernel image: zImage; run setboot_zimg; run boot_img; -elif test -e mmc 0:${mmcbootpart} uImage; then +elif test -e mmc ${mmcbootdev}:${mmcbootpart} uImage; then echo Found kernel image: uImage; run setboot_uimg; run boot_img;
Signature · 1 line
2.11.0
PATCH 4/9 ARM: Odroid XU3: Fix autoboot.cmd to use ${mmcbootdev} instead of hardcoded 0
Hi Lukasz
Quoted 35 lines · Lukasz Majewski
This commit adjusts the autoboot.cmd file to use ${mmcbootdev} instead of hardcoded value 0.
This is necessary to allow booting this board from the SD card.
Signed-off-by Lukasz Majewski <[email protected]>---
board/samsung/common/bootscripts/autoboot.cmd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)board/samsung/common/bootscripts/autoboot.cmd +3
-4@@ -74,15 +74,15 @@ setenv boot_img " #### Routine: autoboot - choose proper boot path setenv autoboot " -if test -e mmc 0:${mmcbootpart} Image.itb; then +if test -e mmc ${mmcbootdev}:${mmcbootpart} Image.itb; then echo Found kernel image: Image.itb; run setboot_fit; run boot_img; -elif test -e mmc 0:${mmcbootpart} zImage; then +elif test -e mmc ${mmcbootdev}:${mmcbootpart} zImage; then echo Found kernel image: zImage; run setboot_zimg; run boot_img; -elif test -e mmc 0:${mmcbootpart} uImage; then +elif test -e mmc ${mmcbootdev}:${mmcbootpart} uImage; then echo Found kernel image: uImage; run setboot_uimg; run boot_img; --
Quoted 2 lines
2.11.0
Please add my.
Best Regards
-Anand
PATCH 5/9 ARM: Odroid XU3: Adjust BOOT_TARGET_DEVICES to allow booting from SD card (mmc2)
In reply to Lukasz MajewskiThis change is necessary to allow booting the Odroid XU3 from SD card after enabling the DM_MMC support.
After this change the SD card mmc IP block is correctly enumerated as mmc2 (and not as mmc1 as in the legacy code).
---
include/configs/exynos5-common.h | 1 + 1 file changed, 1 insertion(+)
include/configs/exynos5-common.h +1 -0
@@ -138,6 +138,7 @@#define BOOT_TARGET_DEVICES (func) \ func(MMC, mmc, 1) \ func(MMC, mmc, 0) \ + func(MMC, mmc, 2) \ func(PXE, pxe, na) \ func(DHCP, dhcp, na)
Signature · 1 line
2.11.0
PATCH 5/9 ARM: Odroid XU3: Adjust BOOT_TARGET_DEVICES to allow booting from SD card (mmc2)
Hi Lukasz,
Quoted 25 lines · Lukasz Majewski
This change is necessary to allow booting the Odroid XU3 from SD card after enabling the
DM_MMCsupport.After this change the SD card mmc IP block is correctly enumerated as mmc2 (and not as mmc1 as in the legacy code).
Signed-off-by Lukasz Majewski <[email protected]>---
include/configs/exynos5-common.h | 1 + 1 file changed, 1 insertion(+)include/configs/exynos5-common.h +1
-1@@ -138,6 +138,7 @@#define BOOT_TARGET_DEVICES (func) \ func(MMC, mmc, 1) \ func(MMC, mmc, 0) \ + func(MMC, mmc, 2) \ func(PXE, pxe, na) \ func(DHCP, dhcp, na) --
Quoted 2 lines
2.11.0
Please add my.
Best Regards
-Anand
PATCH 6/9 ARM: Odroid XU3: MAINTAINERS: Add a co-maintainer for OdroidXU3
In reply to Lukasz Majewski---
board/samsung/smdk5420/MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
board/samsung/smdk5420/MAINTAINERS +1 -0
@@ -11,6 +11,7 @@ F: configs/peach-pi_defconfig ODROID-XU3 BOARD M: Jaehoon Chung <[email protected]> +M: Lukasz Majewski <[email protected]> S: Maintained F: board/samsung/smdk5420/ F: include/configs/odroid_xu3.h
Signature · 1 line
2.11.0
PATCH 7/9 ARM: Odroid XU3: Fix the dwmci_exynos *priv data assignment for DM_MMC (sdr_timing)
In reply to Lukasz MajewskiBy convention for DM_MMC the host->priv is used to store struct udevice *dev pointer.
Unfortunately, the legacy Exynos DW MMC code uses this field to store pointer to dwmci_exynos_priv_data struct
Hence, we do need to get data in other way - namely by using container_of when host pointer is present.
In this way the sdr_timing data is properly accessed.
---
drivers/mmc/exynos_dw_mmc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/mmc/exynos_dw_mmc.c +5 -1
@@ -46,8 +46,12 @@ struct dwmci_exynos_priv_data {*/ static void exynos_dwmci_clksel (struct dwmci_host *host) { +#ifdef CONFIG_DM_MMC +struct dwmci_exynos_priv_data *priv = + container_of(host, struct dwmci_exynos_priv_data, host); +#else struct dwmci_exynos_priv_data *priv = host->priv; - +#endif dwmci_writel (host,DWMCI_CLKSEL , priv->sdr_timing); }
Signature · 1 line
2.11.0
PATCH 7/9 ARM: Odroid XU3: Fix the dwmci_exynos *priv data assignment for DM_MMC (sdr_timing)
Hi Lukasz,
Quoted 34 lines · Lukasz Majewski
By convention for
DM_MMCthehost->privis used to store struct udevice *dev pointer.Unfortunately, the legacy Exynos DW MMC code uses this field to store pointer to
dwmci_exynos_priv_datastruct
Hence, we do need to get data in other way - namely by usingcontainer_ofwhen host pointer is present.
In this way thesdr_timingdata is properly accessed.Signed-off-by Lukasz Majewski <[email protected]>---
drivers/mmc/exynos_dw_mmc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/mmc/exynos_dw_mmc.c +5
-2@@ -46,8 +46,12 @@ struct dwmci_exynos_priv_data {*/ static void exynos_dwmci_clksel (struct dwmci_host *host) { +#ifdef CONFIG_DM_MMC +struct dwmci_exynos_priv_data *priv = + container_of(host, struct dwmci_exynos_priv_data, host); +#else struct dwmci_exynos_priv_data *priv = host->priv; - +#endif dwmci_writel (host,DWMCI_CLKSEL , priv->sdr_timing); } --
Quoted 2 lines
2.11.0
Please add my.
Best Regards
-Anand
PATCH 8/9 ARM: Odroid XU3: Modify exynos dw_mmc driver to support Odroid XU3 in DM MMC
In reply to Lukasz MajewskiThis commit enables support for Exynos Designware MMC driver based on DM.
---
drivers/mmc/exynos_dw_mmc.c | 1 + 1 file changed, 1 insertion(+)
drivers/mmc/exynos_dw_mmc.c +1 -0
@@ -295,6 +295,7 @@ static int exynos_dwmmc_bind(struct udevice *dev)static const struct udevice_id exynos_dwmmc_ids[] = { { .compatible ="samsung,exynos4412-dw-mshc" }, + { .compatible ="samsung,exynos-dwmmc" }, { } };
Signature · 1 line
2.11.0
PATCH 8/9 ARM: Odroid XU3: Modify exynos dw_mmc driver to support Odroid XU3 in DM MMC
Hi Lukasz,
Quoted 21 lines · Lukasz Majewski
This commit enables support for Exynos Designware MMC driver based on DM.
Signed-off-by Lukasz Majewski <[email protected]>---
drivers/mmc/exynos_dw_mmc.c | 1 + 1 file changed, 1 insertion(+)drivers/mmc/exynos_dw_mmc.c +1
-1@@ -295,6 +295,7 @@ static int exynos_dwmmc_bind(struct udevice *dev)static const struct udevice_id exynos_dwmmc_ids[] = { { .compatible ="samsung,exynos4412-dw-mshc" }, + { .compatible ="samsung,exynos-dwmmc" }, { } }; --
Quoted 2 lines
2.11.0
Please add my.
Best Regards
-Anand
PATCH 9/9 ARM: Odroid XU3: Modify Odroid XU3 config to boot by default from SD card
In reply to Lukasz MajewskiThis commit allows by default booting Odroid XU3 from the SD card (when e.g. eMMC module is not present).
---
include/configs/odroid_xu3.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
include/configs/odroid_xu3.h +5 -2
@@ -94,6 +94,9 @@#undef CONFIG_SYS_BOARD#define CONFIG_SYS_BOARD "odroid" +#undef CONFIG_SYS_MMC_ENV_DEV +#define CONFIG_SYS_MMC_ENV_DEV 2 +/* Define new extra env settings, including DFU settings */ #undef CONFIG_EXTRA_ENV_SETTINGS#define CONFIG_EXTRA_ENV_SETTINGS \
@@ -105,8 +108,8 @@"console=" CONFIG_DEFAULT_CONSOLE "\0" \"fdtfile=exynos5422-odroidxu3.dtb\0" \"boardname=odroidxu3\0" \ -"mmcbootdev=0\0" \ -"mmcrootdev=0\0" \ +"mmcbootdev=2\0" \ +"mmcrootdev=1\0" \"mmcbootpart=1\0" \"mmcrootpart=2\0" \"dfu_alt_system=" CONFIG_DFU_ALT_SYSTEM \
Signature · 1 line
2.11.0
PATCH 9/9 ARM: Odroid XU3: Modify Odroid XU3 config to boot by default from SD card
Hi Lukasz,
Quoted 36 lines · Lukasz Majewski
This commit allows by default booting Odroid XU3 from the SD card (when e.g. eMMC module is not present).
Signed-off-by Lukasz Majewski <[email protected]>---
include/configs/odroid_xu3.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)include/configs/odroid_xu3.h +5
-3@@ -94,6 +94,9 @@#undef CONFIG_SYS_BOARD#define CONFIG_SYS_BOARD "odroid" +#undef CONFIG_SYS_MMC_ENV_DEV +#define CONFIG_SYS_MMC_ENV_DEV 2 +/* Define new extra env settings, including DFU settings */ #undef CONFIG_EXTRA_ENV_SETTINGS#define CONFIG_EXTRA_ENV_SETTINGS \@@ -105,8 +108,8 @@"console=" CONFIG_DEFAULT_CONSOLE "\0" \"fdtfile=exynos5422-odroidxu3.dtb\0" \"boardname=odroidxu3\0" \ -"mmcbootdev=0\0" \ -"mmcrootdev=0\0" \ +"mmcbootdev=2\0" \ +"mmcrootdev=1\0" \"mmcbootpart=1\0" \"mmcrootpart=2\0" \"dfu_alt_system=" CONFIG_DFU_ALT_SYSTEM \ --
Quoted 2 lines
2.11.0
This changes probably breaks the booting from eMMC on Odroid-XU4
U-Boot 2018.07-00377-g80df37b417 (Jul 26 2018 - 10:50:16 +0000) for ODROID-XU3/XU4/HC1
CPU: Exynos5422 @ 800 MHz Model: Odroid XU3 based on EXYNOS5422 Board: Odroid XU3 based on EXYNOS5422 Type: xu4 DRAM: 2 GiB MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 2
Loading Environment from MMC... Card did not respond to voltage select! *** Warning - No block device, using default environment
Failed (-5)
In: serial Out: serial Err: serial Net: No ethernet found. Hit any key to stop autoboot: 0
MMC Device 1 not found
no mmc device at slot 1
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
3069 bytes read in 6 ms (499 KiB/s)
## Executing script at 50000000
Card did not respond to voltage select!
** Bad device mmc 2 **
Card did not respond to voltage select!
** Bad device mmc 2 **
Card did not respond to voltage select!
** Bad device mmc 2 **
SCRIPT FAILED: continuing...
63776 bytes read in 7 ms (8.7 MiB/s)
Card did not respond to voltage select!
starting USB...
USB0: USB EHCI 1.00 USB1: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
USB2: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found scanning bus 1 for devices... 3 USB Device(s) found scanning bus 2 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found scanning usb for ethernet devices... 1 Ethernet Device(s) found
Waiting for Ethernet connection... done.
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 10.0.0.144 (1021 ms)
*** Warning: no boot file name; using '0A000090.img'
Using r8152#0 device
TFTP from server 0.0.0.0; our IP address is 10.0.0.144; sending through gateway 10.0.0.1
Filename '0A000090.img'.
Load address: 0x43e00000
Loading: T
Best Regards
-Anand
PATCH 9/9 ARM: Odroid XU3: Modify Odroid XU3 config to boot by default from SD card
Hi Anand,
Quoted 35 lines
Hi Lukasz,
Quoted 32 lines · Lukasz Majewski
This commit allows by default booting Odroid XU3 from the SD card (when e.g. eMMC module is not present).
Signed-off-by Lukasz Majewski <[email protected]>---
include/configs/odroid_xu3.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/odroid_xu3.hindexf495f6219ba9..818a06515cb2100644 ---a/include/configs/odroid_xu3.h
+++b/include/configs/odroid_xu3.hinclude/configs/odroid_xu3.h +5
-2@@ -94,6 +94,9 @@#undef CONFIG_SYS_BOARD#define CONFIG_SYS_BOARD "odroid" +#undef CONFIG_SYS_MMC_ENV_DEV +#define CONFIG_SYS_MMC_ENV_DEV 2 +/* Define new extra env settings, including DFU settings */ #undef CONFIG_EXTRA_ENV_SETTINGS#define CONFIG_EXTRA_ENV_SETTINGS \@@ -105,8 +108,8 @@"console=" CONFIG_DEFAULT_CONSOLE "\0" \"fdtfile=exynos5422-odroidxu3.dtb\0" \"boardname=odroidxu3\0" \ -"mmcbootdev=0\0" \ -"mmcrootdev=0\0" \ +"mmcbootdev=2\0" \ +"mmcrootdev=1\0" \
Quoted 8 lines
Quoted 6 lines
include/configs/odroid_xu3.h +0
-1"mmcbootpart=1\0" \"mmcrootpart=2\0" \"dfu_alt_system=" CONFIG_DFU_ALT_SYSTEM \ --2.11.0
This changes probably breaks the booting from eMMC on Odroid-XU4
I suppose, that XU4 is also equipped with SD card slot as XU3.
Nonetheless, as I don't have eMMC card for mine XU3, the only way to boot my device is SD card.
If you believe that this may be a problem, then I can drop this patch.
Have you checked patches from 1-8?
Does it work for you? If yes, please send tested-by tag.
Quoted 61 lines
U-Boot 2018.07-00377-g80df37b417 (Jul 26 2018 - 10:50:16 +0000) for ODROID-XU3/XU4/HC1
CPU: Exynos5422 @ 800 MHz Model: Odroid XU3 based on EXYNOS5422 Board: Odroid XU3 based on EXYNOS5422 Type: xu4 DRAM: 2 GiB MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 2Loading Environment from MMC... Card did not respond to voltage select! *** Warning - No block device, using default environment
Failed (-5)
In: serial Out: serial Err: serial Net: No ethernet found. Hit any key to stop autoboot: 0MMC Device 1 not found
no mmc device at slot 1
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
3069 bytes read in 6 ms (499 KiB/s)
## Executing script at 50000000
Card did not respond to voltage select!
** Bad device mmc 2 **
Card did not respond to voltage select!
** Bad device mmc 2 **
Card did not respond to voltage select!
** Bad device mmc 2 **
SCRIPT FAILED: continuing...
63776 bytes read in 7 ms (8.7 MiB/s)
Card did not respond to voltage select!
starting USB...USB0: USB EHCI 1.00 USB1: Register 2000140 NbrPorts 2Starting the controller
USB XHCI 1.00
USB2: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found scanning bus 1 for devices... 3 USB Device(s) found scanning bus 2 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found scanning usb for ethernet devices... 1 Ethernet Device(s) found
Waiting for Ethernet connection... done.
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 10.0.0.144 (1021 ms)
*** Warning: no boot file name; using '0A000090.img'
Using r8152#0 device
TFTP from server 0.0.0.0; our IP address is 10.0.0.144; sending through gateway 10.0.0.1
Filename '0A000090.img'.
Load address:0x43e00000
Loading: T
Quoted 2 lines
Best Regards
-Anand
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180726/c1424138/attachment.sig>
PATCH 9/9 ARM: Odroid XU3: Modify Odroid XU3 config to boot by default from SD card
Hi Lukasz,
Quoted 48 lines · Lukasz Majewski
Hi Anand,
Quoted 35 lines
Hi Lukasz,
Quoted 32 lines · Lukasz Majewski
This commit allows by default booting Odroid XU3 from the SD card (when e.g. eMMC module is not present).
Signed-off-by Lukasz Majewski <[email protected]>---
include/configs/odroid_xu3.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/odroid_xu3.hindexf495f6219ba9..818a06515cb2100644 ---a/include/configs/odroid_xu3.h
+++b/include/configs/odroid_xu3.hinclude/configs/odroid_xu3.h +5
-2@@ -94,6 +94,9 @@#undef CONFIG_SYS_BOARD#define CONFIG_SYS_BOARD "odroid" +#undef CONFIG_SYS_MMC_ENV_DEV +#define CONFIG_SYS_MMC_ENV_DEV 2 +/* Define new extra env settings, including DFU settings */ #undef CONFIG_EXTRA_ENV_SETTINGS#define CONFIG_EXTRA_ENV_SETTINGS \@@ -105,8 +108,8 @@"console=" CONFIG_DEFAULT_CONSOLE "\0" \"fdtfile=exynos5422-odroidxu3.dtb\0" \"boardname=odroidxu3\0" \ -"mmcbootdev=0\0" \ -"mmcrootdev=0\0" \ +"mmcbootdev=2\0" \ +"mmcrootdev=1\0" \Quoted 8 lines
Quoted 6 lines
include/configs/odroid_xu3.h +0
-1"mmcbootpart=1\0" \"mmcrootpart=2\0" \"dfu_alt_system=" CONFIG_DFU_ALT_SYSTEM \ --2.11.0
This changes probably breaks the booting from eMMC on Odroid-XU4
I suppose, that XU4 is also equipped with SD card slot as XU3.
Quoted 8 lines
Nonetheless, as I don't have eMMC card for mine XU3, the only way to boot my device is SD card.
If you believe that this may be a problem, then I can drop this patch.
Have you checked patches from 1-8?
Does it work for you? If yes, please send tested-by tag.
Yes you probably need to drop this patch,
I had some tough time recovering my eMMC back to flash new u-boot.
I have tested my eMMC with default boot.scr its boot good. Need to modify the boot.scr to boot into SD card.
Best Regards
-Anand
PATCH 9/9 ARM: Odroid XU3: Modify Odroid XU3 config to boot by default from SD card
Quoted 61 lines · On Fri, 27 Jul 2018 08:34:15 +0530 Anand Moon <[email protected]> wrote:
Hi Lukasz,
Quoted 48 lines · Lukasz Majewski
Hi Anand,
Quoted 35 lines
Hi Lukasz,
Quoted 32 lines · Lukasz Majewski
This commit allows by default booting Odroid XU3 from the SD card (when e.g. eMMC module is not present).
Signed-off-by Lukasz Majewski <[email protected]>---
include/configs/odroid_xu3.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/odroid_xu3.hindexf495f6219ba9..818a06515cb2100644 ---a/include/configs/odroid_xu3.h
+++b/include/configs/odroid_xu3.hinclude/configs/odroid_xu3.h +5
-2@@ -94,6 +94,9 @@#undef CONFIG_SYS_BOARD#define CONFIG_SYS_BOARD "odroid" +#undef CONFIG_SYS_MMC_ENV_DEV +#define CONFIG_SYS_MMC_ENV_DEV 2 +/* Define new extra env settings, including DFU settings */ #undef CONFIG_EXTRA_ENV_SETTINGS#define CONFIG_EXTRA_ENV_SETTINGS \@@ -105,8 +108,8 @@"console=" CONFIG_DEFAULT_CONSOLE "\0" \"fdtfile=exynos5422-odroidxu3.dtb\0" \"boardname=odroidxu3\0" \ -"mmcbootdev=0\0" \ -"mmcrootdev=0\0" \ +"mmcbootdev=2\0" \ +"mmcrootdev=1\0" \Quoted 8 lines
Quoted 6 lines
include/configs/odroid_xu3.h +0
-1"mmcbootpart=1\0" \"mmcrootpart=2\0" \"dfu_alt_system=" CONFIG_DFU_ALT_SYSTEM \ --2.11.0
This changes probably breaks the booting from eMMC on Odroid-XU4
I suppose, that XU4 is also equipped with SD card slot as XU3.
Quoted 9 lines
Nonetheless, as I don't have eMMC card for mine XU3, the only way to boot my device is SD card.
If you believe that this may be a problem, then I can drop this patch.
Have you checked patches from 1-8?
Does it work for you? If yes, please send tested-by tag.
Quoted 5 lines
Yes you probably need to drop this patch,
I had some tough time recovering my eMMC back to flash new u-boot.I have tested my eMMC with default boot.scr its boot good. Need to modify the boot.scr to boot into SD card.
SD card has different layout than eMMC.
Despite above - you just shall need to apply patch 9/9 to get the board running from SD card.
Quoted 3 lines
Best Regards
-Anand
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180727/473f6810/attachment.sig>
PATCH 9/9 ARM: Odroid XU3: Modify Odroid XU3 config to boot by default from SD card
Hi Lukasz,
Quoted 67 lines · Lukasz Majewski
Quoted 64 lines · On Fri, 27 Jul 2018 08:34:15 +0530 Anand Moon <[email protected]> wrote:
Hi Lukasz,
Quoted 48 lines · Lukasz Majewski
Hi Anand,
Quoted 35 lines
Hi Lukasz,
Quoted 32 lines · Lukasz Majewski
This commit allows by default booting Odroid XU3 from the SD card (when e.g. eMMC module is not present).
Signed-off-by Lukasz Majewski <[email protected]>---
include/configs/odroid_xu3.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/odroid_xu3.hindexf495f6219ba9..818a06515cb2100644 ---a/include/configs/odroid_xu3.h
+++b/include/configs/odroid_xu3.hinclude/configs/odroid_xu3.h +5
-2@@ -94,6 +94,9 @@#undef CONFIG_SYS_BOARD#define CONFIG_SYS_BOARD "odroid" +#undef CONFIG_SYS_MMC_ENV_DEV +#define CONFIG_SYS_MMC_ENV_DEV 2 +/* Define new extra env settings, including DFU settings */ #undef CONFIG_EXTRA_ENV_SETTINGS#define CONFIG_EXTRA_ENV_SETTINGS \@@ -105,8 +108,8 @@"console=" CONFIG_DEFAULT_CONSOLE "\0" \"fdtfile=exynos5422-odroidxu3.dtb\0" \"boardname=odroidxu3\0" \ -"mmcbootdev=0\0" \ -"mmcrootdev=0\0" \ +"mmcbootdev=2\0" \ +"mmcrootdev=1\0" \Quoted 8 lines
Quoted 6 lines
include/configs/odroid_xu3.h +0
-1"mmcbootpart=1\0" \"mmcrootpart=2\0" \"dfu_alt_system=" CONFIG_DFU_ALT_SYSTEM \ --2.11.0
This changes probably breaks the booting from eMMC on Odroid-XU4
I suppose, that XU4 is also equipped with SD card slot as XU3.
Quoted 9 lines
Nonetheless, as I don't have eMMC card for mine XU3, the only way to boot my device is SD card.
If you believe that this may be a problem, then I can drop this patch.
Have you checked patches from 1-8?
Does it work for you? If yes, please send tested-by tag.Yes you probably need to drop this patch,
I had some tough time recovering my eMMC back to flash new u-boot.
Quoted 8 lines
Quoted 2 lines
I have tested my eMMC with default boot.scr its boot good. Need to modify the boot.scr to boot into SD card.
SD card has different layout than eMMC.
Despite above - you just shall need to apply patch 9/9 to get the board running from SD card.
Actually SD card are easy to modify and tune with just adding setenv mmcrootdev "1" to autoboot.cmd from sdcard.
but with eMMC module it's bit difficult to make this work, even if we modify the autoboot.cmd and with new boot.scr changes do not work out.
I have hard time to recover my eMMC module to boot again. well I have to boot from SD card with eMMC attach and then flash the new bootloader to eMMC to make this work.
best regards
-Anand
PATCH 9/9 ARM: Odroid XU3: Modify Odroid XU3 config to boot by default from SD card
Quoted 77 lines · On Fri, 27 Jul 2018 14:42:32 +0530 Anand Moon <[email protected]> wrote:
Hi Lukasz,
Quoted 74 lines · Lukasz Majewski
Quoted 63 lines · On Fri, 27 Jul 2018 08:34:15 +0530 Anand Moon <[email protected]> wrote:
Hi Lukasz,
Quoted 50 lines · Lukasz Majewski
Hi Anand,
Quoted 37 lines
Hi Lukasz,
Quoted 33 lines · Lukasz Majewski
This commit allows by default booting Odroid XU3 from the SD card (when e.g. eMMC module is not present).
Signed-off-by Lukasz Majewski <[email protected]>---
include/configs/odroid_xu3.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/odroid_xu3.hindexf495f6219ba9..818a06515cb2100644 ---a/include/configs/odroid_xu3.h+++b/include/configs/odroid_xu3.h@@ -94,6 +94,9 @@
#undefCONFIG_SYS_BOARD
#defineCONFIG_SYS_BOARD"odroid"include/configs/odroid_xu3.h +5
-2+#undef CONFIG_SYS_MMC_ENV_DEV +#define CONFIG_SYS_MMC_ENV_DEV 2 +/* Define new extra env settings, including DFU settings */ #undef CONFIG_EXTRA_ENV_SETTINGS#define CONFIG_EXTRA_ENV_SETTINGS \@@ -105,8 +108,8 @@"console=" CONFIG_DEFAULT_CONSOLE "\0" \"fdtfile=exynos5422-odroidxu3.dtb\0" \"boardname=odroidxu3\0" \ -"mmcbootdev=0\0" \ -"mmcrootdev=0\0" \ +"mmcbootdev=2\0" \ +"mmcrootdev=1\0" \"mmcbootpart=1\0" \Quoted 8 lines
Quoted 5 lines
include/configs/odroid_xu3.h +0
-1"mmcrootpart=2\0" \"dfu_alt_system=" CONFIG_DFU_ALT_SYSTEM \ --2.11.0
This changes probably breaks the booting from eMMC on Odroid-XU4
I suppose, that XU4 is also equipped with SD card slot as XU3.
Quoted 9 lines
Nonetheless, as I don't have eMMC card for mine XU3, the only way to boot my device is SD card.
If you believe that this may be a problem, then I can drop this patch.
Have you checked patches from 1-8?
Does it work for you? If yes, please send tested-by tag.Quoted 5 lines
Yes you probably need to drop this patch,
I had some tough time recovering my eMMC back to flash new u-boot.I have tested my eMMC with default boot.scr its boot good. Need to modify the boot.scr to boot into SD card.
SD card has different layout than eMMC.
Quoted 8 lines
Quoted 3 lines
Despite above - you just shall need to apply patch 9/9 to get the board running from SD card.
Actually SD card are easy to modify and tune with just adding setenv mmcrootdev "1" to autoboot.cmd from sdcard.
but with eMMC module it's bit difficult to make this work,
Ach.... Ok, I see
The problem is when you have both attached - the eMMC and SD card.
In that case I always thought that one shall boot from eMMC and the SD card shall be used as an extra storage space.
Also, please keep in mind that IIRC the ROM first tries to boot from eMMC, so you need BL1, u-boot placed there if it is present.
Quoted 9 lines
even if we modify the autoboot.cmd and with new boot.scr changes do not work out.
I have hard time to recover my eMMC module to boot again. well I have to boot from SD card with eMMC attach and then flash the new bootloader to eMMC to make this work.
best regards
-Anand
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180727/e2f346b7/attachment.sig>
PATCH 9/9 ARM: Odroid XU3: Modify Odroid XU3 config to boot by default from SD card
Hi Lukasz,
Quoted 91 lines · Lukasz Majewski
Quoted 77 lines · On Fri, 27 Jul 2018 14:42:32 +0530 Anand Moon <[email protected]> wrote:
Hi Lukasz,
Quoted 74 lines · Lukasz Majewski
Quoted 63 lines · On Fri, 27 Jul 2018 08:34:15 +0530 Anand Moon <[email protected]> wrote:
Hi Lukasz,
Quoted 50 lines · Lukasz Majewski
Hi Anand,
Quoted 37 lines
Hi Lukasz,
Quoted 33 lines · Lukasz Majewski
This commit allows by default booting Odroid XU3 from the SD card (when e.g. eMMC module is not present).
Signed-off-by Lukasz Majewski <[email protected]>---
include/configs/odroid_xu3.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/odroid_xu3.hindexf495f6219ba9..818a06515cb2100644 ---a/include/configs/odroid_xu3.h+++b/include/configs/odroid_xu3.h@@ -94,6 +94,9 @@
#undefCONFIG_SYS_BOARD
#defineCONFIG_SYS_BOARD"odroid"(quoted diff) +5
-2+#undef CONFIG_SYS_MMC_ENV_DEV +#define CONFIG_SYS_MMC_ENV_DEV 2 + /* Define new extra env settings, including DFU settings */ #undef CONFIG_EXTRA_ENV_SETTINGS #define CONFIG_EXTRA_ENV_SETTINGS \@@ -105,8 +108,8 @@ "console=" CONFIG_DEFAULT_CONSOLE "\0"\ "fdtfile=exynos5422-odroidxu3.dtb\0" \ "boardname=odroidxu3\0" \ - "mmcbootdev=0\0" \ - "mmcrootdev=0\0" \ + "mmcbootdev=2\0" \ + "mmcrootdev=1\0" \ "mmcbootpart=1\0" \Quoted 8 lines
Quoted 5 lines
(quoted diff) +0
-1"mmcrootpart=2\0" \ "dfu_alt_system="CONFIG_DFU_ALT_SYSTEM \ --2.11.0
This changes probably breaks the booting from eMMC on Odroid-XU4
I suppose, that XU4 is also equipped with SD card slot as XU3.
Quoted 9 lines
Nonetheless, as I don't have eMMC card for mine XU3, the only way to boot my device is SD card.
If you believe that this may be a problem, then I can drop this patch.
Have you checked patches from 1-8?
Does it work for you? If yes, please send tested-by tag.Quoted 5 lines
Yes you probably need to drop this patch,
I had some tough time recovering my eMMC back to flash new u-boot.I have tested my eMMC with default boot.scr its boot good. Need to modify the boot.scr to boot into SD card.
SD card has different layout than eMMC.
Quoted 8 lines
Quoted 3 lines
Despite above - you just shall need to apply patch 9/9 to get the board running from SD card.
Actually SD card are easy to modify and tune with just adding setenv mmcrootdev "1" to autoboot.cmd from sdcard.
but with eMMC module it's bit difficult to make this work,
Ach.... Ok, I see
Quoted 8 lines
The problem is when you have both attached - the eMMC and SD card.
In that case I always thought that one shall boot from eMMC and the SD card shall be used as an extra storage space.
Also, please keep in mind that IIRC the ROM first tries to boot from eMMC, so you need BL1, u-boot placed there if it is present.
Can we create a different board initialization file to fine tune the odroid xu3 platform.
for example Odroid U3 has # board/samsung/odroid/odroid.c
where we can initialize for Odroid XU3 platform boards with following features. board_clock_initboard_gpio_initexynos_power_initboard_usb_initboard_leds
Best Regards
-Anand
PATCH 9/9 ARM: Odroid XU3: Modify Odroid XU3 config to boot by default from SD card
Quoted 101 lines · On Tue, 31 Jul 2018 23:40:10 +0530 Anand Moon <[email protected]> wrote:
Hi Lukasz,
Quoted 98 lines · Lukasz Majewski
Quoted 79 lines · On Fri, 27 Jul 2018 14:42:32 +0530 Anand Moon <[email protected]> wrote:
Hi Lukasz,
Quoted 76 lines · Lukasz Majewski
Quoted 64 lines · On Fri, 27 Jul 2018 08:34:15 +0530 Anand Moon <[email protected]> wrote:
Hi Lukasz,
Quoted 50 lines · Lukasz Majewski
Hi Anand,
Quoted 37 lines
Hi Lukasz,
Quoted 33 lines · Lukasz Majewski
This commit allows by default booting Odroid XU3 from the SD card (when e.g. eMMC module is not present).
Signed-off-by Lukasz Majewski <[email protected]>---
include/configs/odroid_xu3.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/odroid_xu3.hindexf495f6219ba9..818a06515cb2100644 ---a/include/configs/odroid_xu3.h+++b/include/configs/odroid_xu3.h@@ -94,6 +94,9 @@
#undefCONFIG_SYS_BOARD
#defineCONFIG_SYS_BOARD"odroid"(quoted diff) +3
-0+#undef CONFIG_SYS_MMC_ENV_DEV +#define CONFIG_SYS_MMC_ENV_DEV 2 + /* Define new extra env settings, including DFU settings*/ #undef
CONFIG_EXTRA_ENV_SETTINGS
#defineCONFIG_EXTRA_ENV_SETTINGS\(quoted diff) +2
-2@@ -105,8 +108,8 @@ "console=" CONFIG_DEFAULT_CONSOLE "\0"\ "fdtfile=exynos5422-odroidxu3.dtb\0" \ "boardname=odroidxu3\0" \ - "mmcbootdev=0\0" \ - "mmcrootdev=0\0" \ + "mmcbootdev=2\0" \ + "mmcrootdev=1\0" \ "mmcbootpart=1\0" \Quoted 8 lines
Quoted 5 lines
(quoted diff) +0
-1"mmcrootpart=2\0" \ "dfu_alt_system="CONFIG_DFU_ALT_SYSTEM \ --2.11.0
This changes probably breaks the booting from eMMC on Odroid-XU4
I suppose, that XU4 is also equipped with SD card slot as XU3.
Quoted 9 lines
Nonetheless, as I don't have eMMC card for mine XU3, the only way to boot my device is SD card.
If you believe that this may be a problem, then I can drop this patch.
Have you checked patches from 1-8?
Does it work for you? If yes, please send tested-by tag.Quoted 6 lines
Yes you probably need to drop this patch,
I had some tough time recovering my eMMC back to flash new u-boot.I have tested my eMMC with default boot.scr its boot good. Need to modify the boot.scr to boot into SD card.
SD card has different layout than eMMC.
Quoted 8 lines
Quoted 3 lines
Despite above - you just shall need to apply patch 9/9 to get the board running from SD card.
Actually SD card are easy to modify and tune with just adding setenv mmcrootdev "1" to autoboot.cmd from sdcard.
but with eMMC module it's bit difficult to make this work,
Ach.... Ok, I see
The problem is when you have both attached - the eMMC and SD card.
In that case I always thought that one shall boot from eMMC and the SD card shall be used as an extra storage space.
Quoted 8 lines
Quoted 3 lines
Also, please keep in mind that IIRC the ROM first tries to boot from eMMC, so you need BL1, u-boot placed there if it is present.
Can we create a different board initialization file to fine tune the odroid xu3 platform.
for example Odroid U3 has #board/samsung/odroid/odroid.c
The idea was to use common board file (./board/samsung/common/board.c) for all Exynos5 based boards.
The potential differences were supposed to be added via device tree.
Quoted 5 lines
where we can initialize for Odroid XU3 platform boards with following features.
board_clock_initboard_gpio_initexynos_power_initboard_usb_init
Above two can be achieved with driver model. Providing such functions would be a step back from full XU3/XU4 conversion to DM.
Quoted 4 lines
board_ledsBest Regards
-Anand
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180801/1a3d650c/attachment.sig>