All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 1/1] odroid-c2: enable MMC as boot target
@ 2017-04-14 14:33 Heinrich Schuchardt
  2017-04-14 14:35 ` Andreas Färber
  0 siblings, 1 reply; 8+ messages in thread
From: Heinrich Schuchardt @ 2017-04-14 14:33 UTC (permalink / raw)
  To: u-boot

To enable automatic booting from SD card or eMMC the MMC devices 0 and 1
are added to the BOOT_TARGET_DEVICES.

Booting from SD card, eMMC, and DHCP are tried in sequence.
A missing or failing device is gracefully handled.

Cc: Andreas Färber <afaerber@suse.de>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
v2:
  Enhance commit message to clearly indicate how the
  boot targets are sequenced.
v1:
  This is a resubmission of
  https://lists.denx.de/pipermail/u-boot/2017-April/287315.html
  where this patch was part of patch series which was no longer applicable.
---
 include/configs/meson-gxbb-common.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/configs/meson-gxbb-common.h b/include/configs/meson-gxbb-common.h
index cc2b5b6..388f239 100644
--- a/include/configs/meson-gxbb-common.h
+++ b/include/configs/meson-gxbb-common.h
@@ -39,6 +39,8 @@
 #include <config_distro_defaults.h>
 
 #define BOOT_TARGET_DEVICES(func) \
+	func(MMC, mmc, 0) \
+	func(MMC, mmc, 1) \
 	func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v2 1/1] odroid-c2: enable MMC as boot target
  2017-04-14 14:33 [U-Boot] [PATCH v2 1/1] odroid-c2: enable MMC as boot target Heinrich Schuchardt
@ 2017-04-14 14:35 ` Andreas Färber
  2017-04-15 19:16   ` Andreas Färber
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Färber @ 2017-04-14 14:35 UTC (permalink / raw)
  To: u-boot

Am 14.04.2017 um 16:33 schrieb Heinrich Schuchardt:
> To enable automatic booting from SD card or eMMC the MMC devices 0 and 1
> are added to the BOOT_TARGET_DEVICES.
> 
> Booting from SD card, eMMC, and DHCP are tried in sequence.
> A missing or failing device is gracefully handled.
> 
> Cc: Andreas Färber <afaerber@suse.de>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> v2:
>   Enhance commit message to clearly indicate how the
>   boot targets are sequenced.

Reviewed-by: Andreas Färber <afaerber@suse.de>

Thanks,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v2 1/1] odroid-c2: enable MMC as boot target
  2017-04-14 14:35 ` Andreas Färber
@ 2017-04-15 19:16   ` Andreas Färber
  2017-04-15 19:30     ` [U-Boot] [PATCH v3 1/1] meson: gxbb: " Heinrich Schuchardt
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Färber @ 2017-04-15 19:16 UTC (permalink / raw)
  To: u-boot

Am 14.04.2017 um 16:35 schrieb Andreas Färber:
> Am 14.04.2017 um 16:33 schrieb Heinrich Schuchardt:
>> To enable automatic booting from SD card or eMMC the MMC devices 0 and 1
>> are added to the BOOT_TARGET_DEVICES.
>>
>> Booting from SD card, eMMC, and DHCP are tried in sequence.
>> A missing or failing device is gracefully handled.
>>
>> Cc: Andreas Färber <afaerber@suse.de>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>> ---
>> v2:
>>   Enhance commit message to clearly indicate how the
>>   boot targets are sequenced.
> 
> Reviewed-by: Andreas Färber <afaerber@suse.de>

As pointed out by Heiner, while this works for the Odroid-C2, hardcoding
these two devices for GXBB blocks booting from eMMC where that shows up
as mmc2. So either this should be defined on the odroid-c2 level, so
that we can have board-specific device lists, or include mmc2 here as
well. There might also be devices with only one.

Regards,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v3 1/1] meson: gxbb: enable MMC as boot target
  2017-04-15 19:16   ` Andreas Färber
@ 2017-04-15 19:30     ` Heinrich Schuchardt
  2017-04-17 20:46       ` [U-Boot] [U-Boot, v3, " Vagrant Cascadian
                         ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Heinrich Schuchardt @ 2017-04-15 19:30 UTC (permalink / raw)
  To: u-boot

To enable automatic booting from SD card or eMMC the MMC
devices 0, 1, and 2 are added to the BOOT_TARGET_DEVICES.

Booting from SD card, eMMC, and DHCP are tried in sequence.
A missing or failing device is gracefully handled.

Cc: Andreas Färber <afaerber@suse.de>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
v3:
  Adjust patch title to reflect that this patch applies to all
  gxbb boards.
  Vega S95 Telos has 3 MMC devices.
  So add MMC 2.
v2:
  odroid-c2: enable MMC as boot target
  https://lists.denx.de/pipermail/u-boot/2017-April/287358.html
  Enhance commit message to clearly indicate how the
  boot targets are sequenced.
v1:
  This is a resubmission of
  https://lists.denx.de/pipermail/u-boot/2017-April/287315.html
  where this patch was part of patch series which was no longer applicable.
---
 include/configs/meson-gxbb-common.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/configs/meson-gxbb-common.h b/include/configs/meson-gxbb-common.h
index cc2b5b61d4..997ce2df19 100644
--- a/include/configs/meson-gxbb-common.h
+++ b/include/configs/meson-gxbb-common.h
@@ -39,6 +39,9 @@
 #include <config_distro_defaults.h>
 
 #define BOOT_TARGET_DEVICES(func) \
+	func(MMC, mmc, 0) \
+	func(MMC, mmc, 1) \
+	func(MMC, mmc, 2) \
 	func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [U-Boot] [U-Boot, v3, 1/1] meson: gxbb: enable MMC as boot target
  2017-04-15 19:30     ` [U-Boot] [PATCH v3 1/1] meson: gxbb: " Heinrich Schuchardt
@ 2017-04-17 20:46       ` Vagrant Cascadian
  2017-04-19  5:12       ` [U-Boot] [PATCH v3 " Andreas Färber
  2017-05-01 15:49       ` [U-Boot] [U-Boot, v3, " Tom Rini
  2 siblings, 0 replies; 8+ messages in thread
From: Vagrant Cascadian @ 2017-04-17 20:46 UTC (permalink / raw)
  To: u-boot

On 2017-04-15, xypron.glpk at gmx.de wrote:
> To enable automatic booting from SD card or eMMC the MMC
> devices 0, 1, and 2 are added to the BOOT_TARGET_DEVICES.
>
> Booting from SD card, eMMC, and DHCP are tried in sequence.
> A missing or failing device is gracefully handled.
>
> Cc: Andreas Färber <afaerber@suse.de>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Tested booting from microSD on an odroid-c2.

Tested-by: Vagrant Cascadian <vagrant@debian.org>

live well,
  vagrant

> ---
> v3:
>   Adjust patch title to reflect that this patch applies to all
>   gxbb boards.
>   Vega S95 Telos has 3 MMC devices.
>   So add MMC 2.
> v2:
>   odroid-c2: enable MMC as boot target
>   https://lists.denx.de/pipermail/u-boot/2017-April/287358.html
>   Enhance commit message to clearly indicate how the
>   boot targets are sequenced.
> v1:
>   This is a resubmission of
>   https://lists.denx.de/pipermail/u-boot/2017-April/287315.html
>   where this patch was part of patch series which was no longer applicable.
> ---
>  include/configs/meson-gxbb-common.h | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/include/configs/meson-gxbb-common.h b/include/configs/meson-gxbb-common.h
> index cc2b5b61d4..997ce2df19 100644
> --- a/include/configs/meson-gxbb-common.h
> +++ b/include/configs/meson-gxbb-common.h
> @@ -39,6 +39,9 @@
>  #include <config_distro_defaults.h>
>  
>  #define BOOT_TARGET_DEVICES(func) \
> +	func(MMC, mmc, 0) \
> +	func(MMC, mmc, 1) \
> +	func(MMC, mmc, 2) \
>  	func(DHCP, dhcp, na)
>  
>  #include <config_distro_bootcmd.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170417/47ba207e/attachment.sig>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v3 1/1] meson: gxbb: enable MMC as boot target
  2017-04-15 19:30     ` [U-Boot] [PATCH v3 1/1] meson: gxbb: " Heinrich Schuchardt
  2017-04-17 20:46       ` [U-Boot] [U-Boot, v3, " Vagrant Cascadian
@ 2017-04-19  5:12       ` Andreas Färber
  2017-05-01 14:20         ` Andreas Färber
  2017-05-01 15:49       ` [U-Boot] [U-Boot, v3, " Tom Rini
  2 siblings, 1 reply; 8+ messages in thread
From: Andreas Färber @ 2017-04-19  5:12 UTC (permalink / raw)
  To: u-boot

Am 15.04.2017 um 21:30 schrieb Heinrich Schuchardt:
> To enable automatic booting from SD card or eMMC the MMC
> devices 0, 1, and 2 are added to the BOOT_TARGET_DEVICES.
> 
> Booting from SD card, eMMC, and DHCP are tried in sequence.
> A missing or failing device is gracefully handled.
> 
> Cc: Andreas Färber <afaerber@suse.de>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Reviewed-by: Andreas Färber <afaerber@suse.de>

The issues with SDIO mmc 0 are being investigated at a different level,
so I think it is okay to merge this generalized version for -rc3.

Once done, Vagrant's PXE addition can be rebased.

Thanks,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v3 1/1] meson: gxbb: enable MMC as boot target
  2017-04-19  5:12       ` [U-Boot] [PATCH v3 " Andreas Färber
@ 2017-05-01 14:20         ` Andreas Färber
  0 siblings, 0 replies; 8+ messages in thread
From: Andreas Färber @ 2017-05-01 14:20 UTC (permalink / raw)
  To: u-boot

Am 19.04.2017 um 07:12 schrieb Andreas Färber:
> Am 15.04.2017 um 21:30 schrieb Heinrich Schuchardt:
>> To enable automatic booting from SD card or eMMC the MMC
>> devices 0, 1, and 2 are added to the BOOT_TARGET_DEVICES.
>>
>> Booting from SD card, eMMC, and DHCP are tried in sequence.
>> A missing or failing device is gracefully handled.
>>
>> Cc: Andreas Färber <afaerber@suse.de>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> 
> Reviewed-by: Andreas Färber <afaerber@suse.de>
> 
> The issues with SDIO mmc 0 are being investigated at a different level,
> so I think it is okay to merge this generalized version for -rc3.

Ping?

In case it helps, I can by now also add a second

Tested-by: Andreas Färber <afaerber@suse.de>

Regards,
Andreas

> Once done, Vagrant's PXE addition can be rebased.
> 
> Thanks,
> Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [U-Boot, v3, 1/1] meson: gxbb: enable MMC as boot target
  2017-04-15 19:30     ` [U-Boot] [PATCH v3 1/1] meson: gxbb: " Heinrich Schuchardt
  2017-04-17 20:46       ` [U-Boot] [U-Boot, v3, " Vagrant Cascadian
  2017-04-19  5:12       ` [U-Boot] [PATCH v3 " Andreas Färber
@ 2017-05-01 15:49       ` Tom Rini
  2 siblings, 0 replies; 8+ messages in thread
From: Tom Rini @ 2017-05-01 15:49 UTC (permalink / raw)
  To: u-boot

On Sat, Apr 15, 2017 at 09:30:39PM +0200, xypron.glpk at gmx.de wrote:

> To enable automatic booting from SD card or eMMC the MMC
> devices 0, 1, and 2 are added to the BOOT_TARGET_DEVICES.
> 
> Booting from SD card, eMMC, and DHCP are tried in sequence.
> A missing or failing device is gracefully handled.
> 
> Cc: Andreas Färber <afaerber@suse.de>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> Tested-by: Vagrant Cascadian <vagrant@debian.org>
> Reviewed-by: Andreas Färber <afaerber@suse.de>
> Tested-by: Andreas Färber <afaerber@suse.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170501/ffae0965/attachment.sig>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-05-01 15:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-14 14:33 [U-Boot] [PATCH v2 1/1] odroid-c2: enable MMC as boot target Heinrich Schuchardt
2017-04-14 14:35 ` Andreas Färber
2017-04-15 19:16   ` Andreas Färber
2017-04-15 19:30     ` [U-Boot] [PATCH v3 1/1] meson: gxbb: " Heinrich Schuchardt
2017-04-17 20:46       ` [U-Boot] [U-Boot, v3, " Vagrant Cascadian
2017-04-19  5:12       ` [U-Boot] [PATCH v3 " Andreas Färber
2017-05-01 14:20         ` Andreas Färber
2017-05-01 15:49       ` [U-Boot] [U-Boot, v3, " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.