All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT
@ 2019-03-28  8:51 Faiz Abbas
  2019-03-28 13:03 ` Tom Rini
  0 siblings, 1 reply; 8+ messages in thread
From: Faiz Abbas @ 2019-03-28  8:51 UTC (permalink / raw)
  To: u-boot

With U-boot supporting environment in multiple places, enable only
ENV_IS_IN_EMMC.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
---
 configs/am57xx_evm_defconfig    | 1 +
 configs/am57xx_hs_evm_defconfig | 1 +
 2 files changed, 2 insertions(+)

diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
index 3d71020225..e4f0458d72 100644
--- a/configs/am57xx_evm_defconfig
+++ b/configs/am57xx_evm_defconfig
@@ -35,6 +35,7 @@ CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="am572x-idk"
 CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am57xx-beagle-x15-revc am572x-idk am571x-idk am574x-idk"
+# CONFIG_ENV_IS_IN_FAT is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
 CONFIG_DM=y
diff --git a/configs/am57xx_hs_evm_defconfig b/configs/am57xx_hs_evm_defconfig
index 9b71afa312..157ae1ea1c 100644
--- a/configs/am57xx_hs_evm_defconfig
+++ b/configs/am57xx_hs_evm_defconfig
@@ -38,6 +38,7 @@ CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="am57xx-beagle-x15"
 CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am57xx-beagle-x15-revc am572x-idk am571x-idk am574x-idk"
+# CONFIG_ENV_IS_IN_FAT is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
 CONFIG_DM=y
-- 
2.19.2

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

* [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT
  2019-03-28  8:51 [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT Faiz Abbas
@ 2019-03-28 13:03 ` Tom Rini
  2019-03-29  7:39   ` Faiz Abbas
  0 siblings, 1 reply; 8+ messages in thread
From: Tom Rini @ 2019-03-28 13:03 UTC (permalink / raw)
  To: u-boot

On Thu, Mar 28, 2019 at 02:21:03PM +0530, Faiz Abbas wrote:

> With U-boot supporting environment in multiple places, enable only
> ENV_IS_IN_EMMC.
> 
> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
> ---
>  configs/am57xx_evm_defconfig    | 1 +
>  configs/am57xx_hs_evm_defconfig | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
> index 3d71020225..e4f0458d72 100644
> --- a/configs/am57xx_evm_defconfig
> +++ b/configs/am57xx_evm_defconfig
> @@ -35,6 +35,7 @@ CONFIG_OF_CONTROL=y
>  CONFIG_SPL_OF_CONTROL=y
>  CONFIG_DEFAULT_DEVICE_TREE="am572x-idk"
>  CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am57xx-beagle-x15-revc am572x-idk am571x-idk am574x-idk"
> +# CONFIG_ENV_IS_IN_FAT is not set
>  CONFIG_ENV_IS_IN_MMC=y
>  CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
>  CONFIG_DM=y

Is this really a good idea for the config we use for Beagle X15?

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

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

* [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT
  2019-03-28 13:03 ` Tom Rini
@ 2019-03-29  7:39   ` Faiz Abbas
  2019-03-29 11:15     ` Tom Rini
  0 siblings, 1 reply; 8+ messages in thread
From: Faiz Abbas @ 2019-03-29  7:39 UTC (permalink / raw)
  To: u-boot

Tom,

On 28/03/19 6:33 PM, Tom Rini wrote:
> On Thu, Mar 28, 2019 at 02:21:03PM +0530, Faiz Abbas wrote:
> 
>> With U-boot supporting environment in multiple places, enable only
>> ENV_IS_IN_EMMC.
>>
>> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
>> ---
>>  configs/am57xx_evm_defconfig    | 1 +
>>  configs/am57xx_hs_evm_defconfig | 1 +
>>  2 files changed, 2 insertions(+)
>>
>> diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
>> index 3d71020225..e4f0458d72 100644
>> --- a/configs/am57xx_evm_defconfig
>> +++ b/configs/am57xx_evm_defconfig
>> @@ -35,6 +35,7 @@ CONFIG_OF_CONTROL=y
>>  CONFIG_SPL_OF_CONTROL=y
>>  CONFIG_DEFAULT_DEVICE_TREE="am572x-idk"
>>  CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am57xx-beagle-x15-revc am572x-idk am571x-idk am574x-idk"
>> +# CONFIG_ENV_IS_IN_FAT is not set
>>  CONFIG_ENV_IS_IN_MMC=y
>>  CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
>>  CONFIG_DM=y
> 
> Is this really a good idea for the config we use for Beagle X15?
> 

There is an eMMC on beagle X15 which is being used to support android
boot. Do you have any other concerns?

Thanks,
Faiz

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

* [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT
  2019-03-29  7:39   ` Faiz Abbas
@ 2019-03-29 11:15     ` Tom Rini
  2019-03-29 13:23       ` Lokesh Vutla
  0 siblings, 1 reply; 8+ messages in thread
From: Tom Rini @ 2019-03-29 11:15 UTC (permalink / raw)
  To: u-boot

On Fri, Mar 29, 2019 at 01:09:25PM +0530, Faiz Abbas wrote:
> Tom,
> 
> On 28/03/19 6:33 PM, Tom Rini wrote:
> > On Thu, Mar 28, 2019 at 02:21:03PM +0530, Faiz Abbas wrote:
> > 
> >> With U-boot supporting environment in multiple places, enable only
> >> ENV_IS_IN_EMMC.
> >>
> >> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
> >> ---
> >>  configs/am57xx_evm_defconfig    | 1 +
> >>  configs/am57xx_hs_evm_defconfig | 1 +
> >>  2 files changed, 2 insertions(+)
> >>
> >> diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
> >> index 3d71020225..e4f0458d72 100644
> >> --- a/configs/am57xx_evm_defconfig
> >> +++ b/configs/am57xx_evm_defconfig
> >> @@ -35,6 +35,7 @@ CONFIG_OF_CONTROL=y
> >>  CONFIG_SPL_OF_CONTROL=y
> >>  CONFIG_DEFAULT_DEVICE_TREE="am572x-idk"
> >>  CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am57xx-beagle-x15-revc am572x-idk am571x-idk am574x-idk"
> >> +# CONFIG_ENV_IS_IN_FAT is not set
> >>  CONFIG_ENV_IS_IN_MMC=y
> >>  CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
> >>  CONFIG_DM=y
> > 
> > Is this really a good idea for the config we use for Beagle X15?
> 
> There is an eMMC on beagle X15 which is being used to support android
> boot. Do you have any other concerns?

Yes, I know there's eMMC, but usually in "maker" type devices we have
specifically moved from eMMC to FAT.  Lokesh, are you OK with this
change?

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

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

* [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT
  2019-03-29 11:15     ` Tom Rini
@ 2019-03-29 13:23       ` Lokesh Vutla
  2019-03-29 15:07         ` Sam Protsenko
  0 siblings, 1 reply; 8+ messages in thread
From: Lokesh Vutla @ 2019-03-29 13:23 UTC (permalink / raw)
  To: u-boot

+ Praneeth

On 29/03/19 4:45 PM, Tom Rini wrote:
> On Fri, Mar 29, 2019 at 01:09:25PM +0530, Faiz Abbas wrote:
>> Tom,
>>
>> On 28/03/19 6:33 PM, Tom Rini wrote:
>>> On Thu, Mar 28, 2019 at 02:21:03PM +0530, Faiz Abbas wrote:
>>>
>>>> With U-boot supporting environment in multiple places, enable only
>>>> ENV_IS_IN_EMMC.
>>>>
>>>> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
>>>> ---
>>>>  configs/am57xx_evm_defconfig    | 1 +
>>>>  configs/am57xx_hs_evm_defconfig | 1 +
>>>>  2 files changed, 2 insertions(+)
>>>>
>>>> diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
>>>> index 3d71020225..e4f0458d72 100644
>>>> --- a/configs/am57xx_evm_defconfig
>>>> +++ b/configs/am57xx_evm_defconfig
>>>> @@ -35,6 +35,7 @@ CONFIG_OF_CONTROL=y
>>>>  CONFIG_SPL_OF_CONTROL=y
>>>>  CONFIG_DEFAULT_DEVICE_TREE="am572x-idk"
>>>>  CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am57xx-beagle-x15-revc am572x-idk am571x-idk am574x-idk"
>>>> +# CONFIG_ENV_IS_IN_FAT is not set
>>>>  CONFIG_ENV_IS_IN_MMC=y
>>>>  CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
>>>>  CONFIG_DM=y
>>>
>>> Is this really a good idea for the config we use for Beagle X15?
>>
>> There is an eMMC on beagle X15 which is being used to support android
>> boot. Do you have any other concerns?
> 
> Yes, I know there's eMMC, but usually in "maker" type devices we have
> specifically moved from eMMC to FAT.  Lokesh, are you OK with this
> change?

This is more of an android requirement who requested for having eMMC as env
partition. am57xx x15 is one of the board tested along with asop project. I
guess it is fine to have this change.

Thanks and regards,
Lokesh

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

* [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT
  2019-03-29 13:23       ` Lokesh Vutla
@ 2019-03-29 15:07         ` Sam Protsenko
  2019-04-03  9:29           ` Faiz Abbas
  0 siblings, 1 reply; 8+ messages in thread
From: Sam Protsenko @ 2019-03-29 15:07 UTC (permalink / raw)
  To: u-boot

Hi Faiz,

On Fri, Mar 29, 2019 at 3:24 PM Lokesh Vutla <lokeshvutla@ti.com> wrote:
>
> + Praneeth
>
> On 29/03/19 4:45 PM, Tom Rini wrote:
> > On Fri, Mar 29, 2019 at 01:09:25PM +0530, Faiz Abbas wrote:
> >> Tom,
> >>
> >> On 28/03/19 6:33 PM, Tom Rini wrote:
> >>> On Thu, Mar 28, 2019 at 02:21:03PM +0530, Faiz Abbas wrote:
> >>>
> >>>> With U-boot supporting environment in multiple places, enable only
> >>>> ENV_IS_IN_EMMC.
> >>>>

Can you please describe in more details, which exactly problem you are
trying to fix in this patch? As I understand, we support SD boot in
Linux SDK [1], so saving env in FAT can be useful in this case. Could
this issue be fixed in some other way, rather than dropping
multi-environment feature?

Thanks!

[1] http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_U-Boot.html#sd-emmc-or-usb-storage

> >>>> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
> >>>> ---
> >>>>  configs/am57xx_evm_defconfig    | 1 +
> >>>>  configs/am57xx_hs_evm_defconfig | 1 +
> >>>>  2 files changed, 2 insertions(+)
> >>>>
> >>>> diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
> >>>> index 3d71020225..e4f0458d72 100644
> >>>> --- a/configs/am57xx_evm_defconfig
> >>>> +++ b/configs/am57xx_evm_defconfig
> >>>> @@ -35,6 +35,7 @@ CONFIG_OF_CONTROL=y
> >>>>  CONFIG_SPL_OF_CONTROL=y
> >>>>  CONFIG_DEFAULT_DEVICE_TREE="am572x-idk"
> >>>>  CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am57xx-beagle-x15-revc am572x-idk am571x-idk am574x-idk"
> >>>> +# CONFIG_ENV_IS_IN_FAT is not set
> >>>>  CONFIG_ENV_IS_IN_MMC=y
> >>>>  CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
> >>>>  CONFIG_DM=y
> >>>
> >>> Is this really a good idea for the config we use for Beagle X15?
> >>
> >> There is an eMMC on beagle X15 which is being used to support android
> >> boot. Do you have any other concerns?
> >
> > Yes, I know there's eMMC, but usually in "maker" type devices we have
> > specifically moved from eMMC to FAT.  Lokesh, are you OK with this
> > change?
>
> This is more of an android requirement who requested for having eMMC as env
> partition. am57xx x15 is one of the board tested along with asop project. I
> guess it is fine to have this change.
>
> Thanks and regards,
> Lokesh
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot

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

* [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT
  2019-03-29 15:07         ` Sam Protsenko
@ 2019-04-03  9:29           ` Faiz Abbas
  2019-04-03 14:47             ` Tom Rini
  0 siblings, 1 reply; 8+ messages in thread
From: Faiz Abbas @ 2019-04-03  9:29 UTC (permalink / raw)
  To: u-boot

Hi Sam,

On 29/03/19 8:37 PM, Sam Protsenko wrote:
> Hi Faiz,
> 
> On Fri, Mar 29, 2019 at 3:24 PM Lokesh Vutla <lokeshvutla@ti.com> wrote:
>>
>> + Praneeth
>>
>> On 29/03/19 4:45 PM, Tom Rini wrote:
>>> On Fri, Mar 29, 2019 at 01:09:25PM +0530, Faiz Abbas wrote:
>>>> Tom,
>>>>
>>>> On 28/03/19 6:33 PM, Tom Rini wrote:
>>>>> On Thu, Mar 28, 2019 at 02:21:03PM +0530, Faiz Abbas wrote:
>>>>>
>>>>>> With U-boot supporting environment in multiple places, enable only
>>>>>> ENV_IS_IN_EMMC.
>>>>>>
> 
> Can you please describe in more details, which exactly problem you are
> trying to fix in this patch? As I understand, we support SD boot in
> Linux SDK [1], so saving env in FAT can be useful in this case. Could
> this issue be fixed in some other way, rather than dropping
> multi-environment feature?
> 
> Thanks!

Today U-boot comes up and always looks for environment first in SD Fat
partition and then in the eMMC. We should not allow U-boot to look for
environment in every single boot media that is enabled. We have had a
policy of saving environment in eMMC since a long time (before the
multi-environment feature was added) even when booting from SD card. I
know that most people would prefer it to be in SD card but because of
android requirements, we chose it to be in eMMC.

Furthermore, the error message when it looks for environment in SD card
and fails is an invitation for trouble from users (even more so when
there is a confusion regarding where the environment should be and how
to change it).

Thanks,
Faiz

> 
> [1] http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_U-Boot.html#sd-emmc-or-usb-storage
> 
>>>>>> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
>>>>>> ---
>>>>>>  configs/am57xx_evm_defconfig    | 1 +
>>>>>>  configs/am57xx_hs_evm_defconfig | 1 +
>>>>>>  2 files changed, 2 insertions(+)
>>>>>>
>>>>>> diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
>>>>>> index 3d71020225..e4f0458d72 100644
>>>>>> --- a/configs/am57xx_evm_defconfig
>>>>>> +++ b/configs/am57xx_evm_defconfig
>>>>>> @@ -35,6 +35,7 @@ CONFIG_OF_CONTROL=y
>>>>>>  CONFIG_SPL_OF_CONTROL=y
>>>>>>  CONFIG_DEFAULT_DEVICE_TREE="am572x-idk"
>>>>>>  CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am57xx-beagle-x15-revc am572x-idk am571x-idk am574x-idk"
>>>>>> +# CONFIG_ENV_IS_IN_FAT is not set
>>>>>>  CONFIG_ENV_IS_IN_MMC=y
>>>>>>  CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
>>>>>>  CONFIG_DM=y
>>>>>
>>>>> Is this really a good idea for the config we use for Beagle X15?
>>>>
>>>> There is an eMMC on beagle X15 which is being used to support android
>>>> boot. Do you have any other concerns?
>>>
>>> Yes, I know there's eMMC, but usually in "maker" type devices we have
>>> specifically moved from eMMC to FAT.  Lokesh, are you OK with this
>>> change?
>>
>> This is more of an android requirement who requested for having eMMC as env
>> partition. am57xx x15 is one of the board tested along with asop project. I
>> guess it is fine to have this change.
>>
>> Thanks and regards,
>> Lokesh
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> https://lists.denx.de/listinfo/u-boot

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

* [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT
  2019-04-03  9:29           ` Faiz Abbas
@ 2019-04-03 14:47             ` Tom Rini
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Rini @ 2019-04-03 14:47 UTC (permalink / raw)
  To: u-boot

On Wed, Apr 03, 2019 at 02:59:28PM +0530, Faiz Abbas wrote:
> Hi Sam,
> 
> On 29/03/19 8:37 PM, Sam Protsenko wrote:
> > Hi Faiz,
> > 
> > On Fri, Mar 29, 2019 at 3:24 PM Lokesh Vutla <lokeshvutla@ti.com> wrote:
> >>
> >> + Praneeth
> >>
> >> On 29/03/19 4:45 PM, Tom Rini wrote:
> >>> On Fri, Mar 29, 2019 at 01:09:25PM +0530, Faiz Abbas wrote:
> >>>> Tom,
> >>>>
> >>>> On 28/03/19 6:33 PM, Tom Rini wrote:
> >>>>> On Thu, Mar 28, 2019 at 02:21:03PM +0530, Faiz Abbas wrote:
> >>>>>
> >>>>>> With U-boot supporting environment in multiple places, enable only
> >>>>>> ENV_IS_IN_EMMC.
> >>>>>>
> > 
> > Can you please describe in more details, which exactly problem you are
> > trying to fix in this patch? As I understand, we support SD boot in
> > Linux SDK [1], so saving env in FAT can be useful in this case. Could
> > this issue be fixed in some other way, rather than dropping
> > multi-environment feature?
> > 
> > Thanks!
> 
> Today U-boot comes up and always looks for environment first in SD Fat
> partition and then in the eMMC. We should not allow U-boot to look for
> environment in every single boot media that is enabled. We have had a
> policy of saving environment in eMMC since a long time (before the
> multi-environment feature was added) even when booting from SD card. I
> know that most people would prefer it to be in SD card but because of
> android requirements, we chose it to be in eMMC.
> 
> Furthermore, the error message when it looks for environment in SD card
> and fails is an invitation for trouble from users (even more so when
> there is a confusion regarding where the environment should be and how
> to change it).

Maybe this is motivation to implement some of the ideas (or propose a
new one) for "make env not found on X trying Y" less scary and/or
something other than link order for order we look for environment in.

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

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

end of thread, other threads:[~2019-04-03 14:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-28  8:51 [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT Faiz Abbas
2019-03-28 13:03 ` Tom Rini
2019-03-29  7:39   ` Faiz Abbas
2019-03-29 11:15     ` Tom Rini
2019-03-29 13:23       ` Lokesh Vutla
2019-03-29 15:07         ` Sam Protsenko
2019-04-03  9:29           ` Faiz Abbas
2019-04-03 14:47             ` 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.