Skip to contentSkip to conversation

arch: arm: Kconfig: Enable BOOTSTD_FULL for Rockchip SoCs

PATCH Superseded Shantur Rathore 6 participants 26 messages Nov 19, 2023 – Jan 21, 2024 Arm (32-bit)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 arch: arm: Kconfig: Enable BOOTSTD_FULL for Rockchip SoCs

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
 	imply CMD_DM
 	imply DEBUG_UART_BOARD_INIT
 	imply BOOTSTD_DEFAULTS
+	imply BOOTSTD_FULL if BOOTSTD_DEFAULTS
 	imply FAT_WRITE
 	imply SARADC_ROCKCHIP
 	imply SPL_SYSRESET
Signature · 1 line
2.40.1
#1 lore raw

Hi Tom / Kever

Quoted 28 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/Kconfig +1 -1
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
        imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS
        imply FAT_WRITE
        imply SARADC_ROCKCHIP
        imply SPL_SYSRESET
--
Quoted 2 lines

2.40.1

Can this please be merged in ?

Kind regards,
Shantur

#2 lore raw
Quoted 18 lines · Shantur Rathore

Hi Tom / Kever

Quoted 15 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 14 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1992

Quoted 12 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
        imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS
        imply FAT_WRITE
        imply SARADC_ROCKCHIP
        imply SPL_SYSRESET

Can this please be merged in ?

I wonder if we shouldn't really globally default to BOOTSTD_FULL if BOOTSTD_DEFAULTS for everyone.

Signature · 1 line
Tom
#3 lore raw
Quoted 36 lines · Tom Rini
Quoted 18 lines · Shantur Rathore

Hi Tom / Kever

Quoted 15 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 14 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1992

Quoted 12 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
        imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS
        imply FAT_WRITE
        imply SARADC_ROCKCHIP
        imply SPL_SYSRESET

Can this please be merged in ?

Quoted 3 lines

I wonder if we shouldn't really globally default to BOOTSTD_FULL if BOOTSTD_DEFAULTS for everyone.

Its matter of ~21KB in size, unless any platform is really to its limits it should be alright.

Regards,
Shantur

#4 lore raw
Quoted 37 lines · Shantur Rathore
Quoted 36 lines · Tom Rini
Quoted 32 lines · Shantur Rathore

Hi Tom / Kever

Quoted 20 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/Kconfig +0 -0
index d812685c98..fca6ef6d7e 100644

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1992

Quoted 7 lines
arch/arm/Kconfig +1 -0
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
        imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS
        imply FAT_WRITE
        imply SARADC_ROCKCHIP
        imply SPL_SYSRESET

Can this please be merged in ?

Quoted 6 lines
Quoted 3 lines

I wonder if we shouldn't really globally default to BOOTSTD_FULL if BOOTSTD_DEFAULTS for everyone.

Its matter of ~21KB in size, unless any platform is really to its limits it should be alright.

Maybe I need to re-check things too, since I wonder how much of that growth is re-enabling things that were removed when dropping the DISTRO stuff, and so for platforms just migrating over now it would be smaller in size if much.

Signature · 1 line
Tom
#5 lore raw

Hi Shantur, Tom,

Quoted 37 lines · Tom Rini
Quoted 36 lines · Shantur Rathore
Quoted 35 lines · Tom Rini
Quoted 17 lines · Shantur Rathore

Hi Tom / Kever

Quoted 14 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

  arch/arm/Kconfig | 1 +
  1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1992

Quoted 12 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
         imply CMD_DM
         imply DEBUG_UART_BOARD_INIT
         imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS
         imply FAT_WRITE
         imply SARADC_ROCKCHIP
         imply SPL_SYSRESET

Can this please be merged in ?

I wonder if we shouldn't really globally default to BOOTSTD_FULL if BOOTSTD_DEFAULTS for everyone.

Quoted 6 lines
Quoted 2 lines

Its matter of ~21KB in size, unless any platform is really to its limits it should be alright.

Maybe I need to re-check things too, since I wonder how much of that growth is re-enabling things that were removed when dropping the DISTRO stuff, and so for platforms just migrating over now it would be smaller in size if much.

A board maintainer is free to enable this option, but I don't agree to enable this for everyone.

Not like rk3399 and rk3588, some of other SoCs always want a clean and simple but usable U-Boot,

eg. rk3036 and rk3308 are still in the list.

Thanks,
- Kever

Quoted 1 line
#6 lore raw

Hi Kever,

Quoted 48 lines · Kever Yang

Hi Shantur, Tom,

Quoted 37 lines · Tom Rini
Quoted 36 lines · Shantur Rathore
Quoted 35 lines · Tom Rini
Quoted 17 lines · Shantur Rathore

Hi Tom / Kever

Quoted 14 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

  arch/arm/Kconfig | 1 +
  1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1992

Quoted 12 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
         imply CMD_DM
         imply DEBUG_UART_BOARD_INIT
         imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS
         imply FAT_WRITE
         imply SARADC_ROCKCHIP
         imply SPL_SYSRESET

Can this please be merged in ?

I wonder if we shouldn't really globally default to BOOTSTD_FULL if BOOTSTD_DEFAULTS for everyone.

Quoted 6 lines
Quoted 2 lines

Its matter of ~21KB in size, unless any platform is really to its limits it should be alright.

Maybe I need to re-check things too, since I wonder how much of that growth is re-enabling things that were removed when dropping the DISTRO stuff, and so for platforms just migrating over now it would be smaller in size if much.

Quoted 8 lines

A board maintainer is free to enable this option, but I don't agree to enable this for everyone.

Not like rk3399 and rk3588, some of other SoCs always want a clean and simple but usable U-Boot,

eg. rk3036 and rk3308 are still in the list.

The discussion is what we consider "usable U-Boot"
By default bootstd doesn't have any options and not even to show what it's going to boot.

Would it be acceptable if BOOTSTD_FULL is enabled for SoCs rather than boards?

Kind regards,
Shantur

#7 lore raw

Hi Kever,

Quoted 58 lines · Shantur Rathore

Hi Kever,

Quoted 54 lines · Kever Yang

Hi Shantur, Tom,

Quoted 37 lines · Tom Rini
Quoted 36 lines · Shantur Rathore
Quoted 35 lines · Tom Rini
Quoted 17 lines · Shantur Rathore

Hi Tom / Kever

Quoted 14 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

  arch/arm/Kconfig | 1 +
  1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1992

Quoted 12 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
         imply CMD_DM
         imply DEBUG_UART_BOARD_INIT
         imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS
         imply FAT_WRITE
         imply SARADC_ROCKCHIP
         imply SPL_SYSRESET

Can this please be merged in ?

I wonder if we shouldn't really globally default to BOOTSTD_FULL if BOOTSTD_DEFAULTS for everyone.

Quoted 6 lines
Quoted 2 lines

Its matter of ~21KB in size, unless any platform is really to its limits it should be alright.

Maybe I need to re-check things too, since I wonder how much of that growth is re-enabling things that were removed when dropping the DISTRO stuff, and so for platforms just migrating over now it would be smaller in size if much.

A board maintainer is free to enable this option, but I don't agree to enable this for everyone.

Not like rk3399 and rk3588, some of other SoCs always want a clean and simple but usable U-Boot,

Quoted 9 lines
Quoted 2 lines

eg. rk3036 and rk3308 are still in the list.

The discussion is what we consider "usable U-Boot"
By default bootstd doesn't have any options and not even to show what it's going to boot.

Would it be acceptable if BOOTSTD_FULL is enabled for SoCs rather than boards?

Can you please suggest the way forward?
Initially the patch was for RockPro64 and then after discussion it was suggested that as BOOTSTD_DEFAULT is very very limited
we should enable BOOTSTD_FULL for SoCs that can support multiple boot modes.

Kind regards,
Shantur

#8 lore raw

Hi Shantur,

Quoted 64 lines · Shantur Rathore

Hi Kever,

Quoted 61 lines · Shantur Rathore

Hi Kever,

Quoted 46 lines · Kever Yang

Hi Shantur, Tom,

Quoted 37 lines · Tom Rini
Quoted 36 lines · Shantur Rathore
Quoted 35 lines · Tom Rini
Quoted 17 lines · Shantur Rathore

Hi Tom / Kever

Quoted 14 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

   arch/arm/Kconfig | 1 +
   1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1992

Quoted 12 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
          imply CMD_DM
          imply DEBUG_UART_BOARD_INIT
          imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS
          imply FAT_WRITE
          imply SARADC_ROCKCHIP
          imply SPL_SYSRESET

Can this please be merged in ?

I wonder if we shouldn't really globally default to BOOTSTD_FULL if BOOTSTD_DEFAULTS for everyone.

Quoted 6 lines
Quoted 2 lines

Its matter of ~21KB in size, unless any platform is really to its limits it should be alright.

Maybe I need to re-check things too, since I wonder how much of that growth is re-enabling things that were removed when dropping the DISTRO stuff, and so for platforms just migrating over now it would be smaller in size if much.

Quoted 8 lines

A board maintainer is free to enable this option, but I don't agree to enable this for everyone.

Not like rk3399 and rk3588, some of other SoCs always want a clean and simple but usable U-Boot,

eg. rk3036 and rk3308 are still in the list.

The discussion is what we consider "usable U-Boot"
By default bootstd doesn't have any options and not even to show what it's going to boot.

Quoted 6 lines
Quoted 2 lines

Would it be acceptable if BOOTSTD_FULL is enabled for SoCs rather than boards?

Can you please suggest the way forward?
Initially the patch was for RockPro64 and then after discussion it was suggested that as BOOTSTD_DEFAULT is very very limited
we should enable BOOTSTD_FULL for SoCs that can support multiple boot modes.

Let's enable it for RK3588 first and then maybe other SoCs which not code size sensitive.

Thanks,

- Kever

Quoted 3 lines

Kind regards,
Shantur

#9 lore raw

Hi Kever,

Quoted 79 lines · Kever Yang

Hi Shantur,

On 2024/1/17 14:26, Shantur Rathore wrote:

Hi Kever,

On Wed, Jan 10, 2024 at 11:58 AM Shantur Rathore <[email protected]> wrote:

Hi Kever,

On Tue, Jan 9, 2024 at 10:55 AM Kever Yang <[email protected]> wrote:

Hi Shantur, Tom,

On 2023/12/10 04:45, Tom Rini wrote:

On Sat, Dec 09, 2023 at 07:49:04PM +0000, Shantur Rathore wrote:

On Sat, Dec 9, 2023 at 7:18 PM Tom Rini <[email protected]> wrote:

On Fri, Dec 08, 2023 at 10:52:02AM +0000, Shantur Rathore wrote:

Hi Tom / Kever

On Sun, Nov 19, 2023 at 5:24 PM Shantur Rathore <[email protected]> wrote:

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

  arch/arm/Kconfig | 1 +
  1 file changed, 1 insertion(+)
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
         imply CMD_DM
         imply DEBUG_UART_BOARD_INIT
         imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS
         imply FAT_WRITE
         imply SARADC_ROCKCHIP
         imply SPL_SYSRESET

Can this please be merged in ?

I wonder if we shouldn't really globally default to BOOTSTD_FULL if BOOTSTD_DEFAULTS for everyone.

Its matter of ~21KB in size, unless any platform is really to its limits it should be alright.

Maybe I need to re-check things too, since I wonder how much of that growth is re-enabling things that were removed when dropping the DISTRO stuff, and so for platforms just migrating over now it would be smaller in size if much.

A board maintainer is free to enable this option, but I don't agree to enable this for everyone.

Not like rk3399 and rk3588, some of other SoCs always want a clean and simple but usable U-Boot,

eg. rk3036 and rk3308 are still in the list.

The discussion is what we consider "usable U-Boot"
By default bootstd doesn't have any options and not even to show what it's going to boot.

Quoted 9 lines

Would it be acceptable if BOOTSTD_FULL is enabled for SoCs rather than boards?

Can you please suggest the way forward?
Initially the patch was for RockPro64 and then after discussion it was suggested that as BOOTSTD_DEFAULT is very very limited
we should enable BOOTSTD_FULL for SoCs that can support multiple boot modes.

Let's enable it for RK3588 first and then maybe other SoCs which not code size sensitive.

My requirement is for RK3399, so I will enable BOOTSTD_FULL for it. While at it do you want me to enable it for RK3588 as well ?

Kind regards,
Shantur

#10 lore raw

Hi Shantur,

Quoted 88 lines · Shantur Rathore

Hi Kever,

Quoted 85 lines · Kever Yang

Hi Shantur,

On 2024/1/17 14:26, Shantur Rathore wrote:

Hi Kever,

On Wed, Jan 10, 2024 at 11:58 AM Shantur Rathore <[email protected]> wrote:

Hi Kever,

On Tue, Jan 9, 2024 at 10:55 AM Kever Yang <[email protected]> wrote:

Hi Shantur, Tom,

On 2023/12/10 04:45, Tom Rini wrote:

On Sat, Dec 09, 2023 at 07:49:04PM +0000, Shantur Rathore wrote:

On Sat, Dec 9, 2023 at 7:18 PM Tom Rini <[email protected]> wrote:

On Fri, Dec 08, 2023 at 10:52:02AM +0000, Shantur Rathore wrote:

Hi Tom / Kever

On Sun, Nov 19, 2023 at 5:24 PM Shantur Rathore <[email protected]> wrote:

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

   arch/arm/Kconfig | 1 +
   1 file changed, 1 insertion(+)
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
          imply CMD_DM
          imply DEBUG_UART_BOARD_INIT
          imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS
          imply FAT_WRITE
          imply SARADC_ROCKCHIP
          imply SPL_SYSRESET

Can this please be merged in ?

I wonder if we shouldn't really globally default to BOOTSTD_FULL if BOOTSTD_DEFAULTS for everyone.

Its matter of ~21KB in size, unless any platform is really to its limits it should be alright.

Maybe I need to re-check things too, since I wonder how much of that growth is re-enabling things that were removed when dropping the DISTRO stuff, and so for platforms just migrating over now it would be smaller in size if much.

A board maintainer is free to enable this option, but I don't agree to enable this for everyone.

Not like rk3399 and rk3588, some of other SoCs always want a clean and simple but usable U-Boot,

eg. rk3036 and rk3308 are still in the list.

The discussion is what we consider "usable U-Boot"
By default bootstd doesn't have any options and not even to show what it's going to boot.

Would it be acceptable if BOOTSTD_FULL is enabled for SoCs rather than boards?

Can you please suggest the way forward?
Initially the patch was for RockPro64 and then after discussion it was suggested that as BOOTSTD_DEFAULT is very very limited
we should enable BOOTSTD_FULL for SoCs that can support multiple boot modes.

Quoted 4 lines
Quoted 2 lines

Let's enable it for RK3588 first and then maybe other SoCs which not code size sensitive.

My requirement is for RK3399, so I will enable BOOTSTD_FULL for it. While at it do you want me to enable it for RK3588 as well ?

You can add for RK3399 or both RK3399 and RK3588.

Thanks,

- Kever

Quoted 3 lines

Kind regards,
Shantur

#11 lore raw

Hi Kever,

Quoted 92 lines · Kever Yang

Hi Shantur,

Quoted 88 lines · Shantur Rathore

Hi Kever,

Quoted 85 lines · Kever Yang

Hi Shantur,

On 2024/1/17 14:26, Shantur Rathore wrote:

Hi Kever,

On Wed, Jan 10, 2024 at 11:58 AM Shantur Rathore <[email protected]> wrote:

Hi Kever,

On Tue, Jan 9, 2024 at 10:55 AM Kever Yang <[email protected]> wrote:

Hi Shantur, Tom,

On 2023/12/10 04:45, Tom Rini wrote:

On Sat, Dec 09, 2023 at 07:49:04PM +0000, Shantur Rathore wrote:

On Sat, Dec 9, 2023 at 7:18 PM Tom Rini <[email protected]> wrote:

On Fri, Dec 08, 2023 at 10:52:02AM +0000, Shantur Rathore wrote:

Hi Tom / Kever

On Sun, Nov 19, 2023 at 5:24 PM Shantur Rathore <[email protected]> wrote:

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

   arch/arm/Kconfig | 1 +
   1 file changed, 1 insertion(+)
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
          imply CMD_DM
          imply DEBUG_UART_BOARD_INIT
          imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS
          imply FAT_WRITE
          imply SARADC_ROCKCHIP
          imply SPL_SYSRESET

Can this please be merged in ?

I wonder if we shouldn't really globally default to BOOTSTD_FULL if BOOTSTD_DEFAULTS for everyone.

Its matter of ~21KB in size, unless any platform is really to its limits it should be alright.

Maybe I need to re-check things too, since I wonder how much of that growth is re-enabling things that were removed when dropping the DISTRO stuff, and so for platforms just migrating over now it would be smaller in size if much.

A board maintainer is free to enable this option, but I don't agree to enable this for everyone.

Not like rk3399 and rk3588, some of other SoCs always want a clean and simple but usable U-Boot,

eg. rk3036 and rk3308 are still in the list.

The discussion is what we consider "usable U-Boot"
By default bootstd doesn't have any options and not even to show what it's going to boot.

Would it be acceptable if BOOTSTD_FULL is enabled for SoCs rather than boards?

Can you please suggest the way forward?
Initially the patch was for RockPro64 and then after discussion it was suggested that as BOOTSTD_DEFAULT is very very limited
we should enable BOOTSTD_FULL for SoCs that can support multiple boot modes.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Let's enable it for RK3588 first and then maybe other SoCs which not code size sensitive.

My requirement is for RK3399, so I will enable BOOTSTD_FULL for it. While at it do you want me to enable it for RK3588 as well ?

You can add for RK3399 or both RK3399 and RK3588.

Patch v5 [0] has been submitted with RK3399 and RK3588

[0] - https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

Kind regards,
Shantur

#12 lore raw
In reply to Shantur Rathore
Quoted 20 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/Kconfig +0 -0
index d812685c98..fca6ef6d7e 100644

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1989

Quoted 4 lines
arch/arm/Kconfig +1 -0
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
        imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS

Yes, but better to give this option to specific board vendors as defaults are enough to boot 1st bootflow and what ever media's it has.

Jagan.

#13 lore raw

Hi Jagan,

Quoted 17 lines · Jagan Teki
Quoted 15 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1989

Quoted 9 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
        imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS

Yes, but better to give this option to specific board vendors as defaults are enough to boot 1st bootflow and what ever media's it has.

Yes, that's correct it is enough to boot but by default there is no option to choose what to boot from.
This was discussed in an earlier version of this patch [0] where I was explicitly enabling only for RP64.

[0] - https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

Kind regards,
Shantur

#14 lore raw
Quoted 35 lines · Shantur Rathore

Hi Jagan,

Quoted 17 lines · Jagan Teki
Quoted 15 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1989

Quoted 9 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
        imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS

Yes, but better to give this option to specific board vendors as defaults are enough to boot 1st bootflow and what ever media's it has.

Quoted 4 lines

Yes, that's correct it is enough to boot but by default there is no option to choose what to boot from.
This was discussed in an earlier version of this patch [0] where I was explicitly enabling only for RP64.

What actual extra functionality does this provide, what is the impact on the size of images? You've not provided reasonable justification outside of very vague statements, it would be useful to know what the added options actually solves.

#15 lore raw

Hi Peter,

Quoted 42 lines · Peter Robinson
Quoted 35 lines · Shantur Rathore

Hi Jagan,

Quoted 17 lines · Jagan Teki
Quoted 15 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1989

Quoted 9 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
        imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS

Yes, but better to give this option to specific board vendors as defaults are enough to boot 1st bootflow and what ever media's it has.

Quoted 4 lines

Yes, that's correct it is enough to boot but by default there is no option to choose what to boot from.
This was discussed in an earlier version of this patch [0] where I was explicitly enabling only for RP64.

Quoted 4 lines

What actual extra functionality does this provide, what is the impact on the size of images? You've not provided reasonable justification outside of very vague statements, it would be useful to know what the added options actually solves.

BOOTSTD_FULL enables all the options in bootflow commands. This is needed if
- you want to choose between multiple available bootflows rather than just boot one default.
- if you need to list the available bootflows that bootstd has found
- if you need to select and boot any bootflow other than default. By default all other commands in U-boot come with options to show details For example, nvme info, nvme detail, usb info, usb tree but with bootstd no way to know anything.

Image size - u-boot.itd without BOOTSTD_FULL - 1193984 bytes Image size - u-boot.itb with BOOTSTD_FULL - 1214976 bytes Difference - 20992 bytes

According to binman for RK3399 u-boot can take upto 4M [1] so we have ample space.

This was discussed in the previous patch in the link below [0]

[0] - https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
[1] - https://github.com/shantur/u-boot/blob/master/arch/arm/dts/rk3399-u-boot.dtsi#L68

Kind regards,
Shantur

#16 lore raw
Quoted 63 lines · Shantur Rathore

Hi Peter,

Quoted 42 lines · Peter Robinson
Quoted 35 lines · Shantur Rathore

Hi Jagan,

Quoted 17 lines · Jagan Teki
Quoted 15 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1989

Quoted 9 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
        imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS

Yes, but better to give this option to specific board vendors as defaults are enough to boot 1st bootflow and what ever media's it has.

Quoted 4 lines

Yes, that's correct it is enough to boot but by default there is no option to choose what to boot from.
This was discussed in an earlier version of this patch [0] where I was explicitly enabling only for RP64.

Quoted 4 lines

What actual extra functionality does this provide, what is the impact on the size of images? You've not provided reasonable justification outside of very vague statements, it would be useful to know what the added options actually solves.

BOOTSTD_FULL enables all the options in bootflow commands. This is needed if
- you want to choose between multiple available bootflows rather than just boot one default.
- if you need to list the available bootflows that bootstd has found
- if you need to select and boot any bootflow other than default. By default all other commands in U-boot come with options to show details For example, nvme info, nvme detail, usb info, usb tree but with bootstd no way to know anything.

Image size - u-boot.itd without BOOTSTD_FULL - 1193984 bytes Image size - u-boot.itb with BOOTSTD_FULL - 1214976 bytes Difference - 20992 bytes

Quoted 7 lines

According to binman for RK3399 u-boot can take upto 4M [1] so we have ample space.

This was discussed in the previous patch in the link below [0]

[0] - https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
[1] - https://github.com/shantur/u-boot/blob/master/arch/arm/dts/rk3399-u-boot.dtsi#L68

If I'm recalling everything right, this also brings "bootflow" as a command more in line with what could be done with distro_bootcmd in terms of "cover every possible case and let the user override things"

Signature · 1 line
Tom
#17 lore raw
Quoted 68 lines · Tom Rini
Quoted 66 lines · Shantur Rathore

Hi Peter,

Quoted 42 lines · Peter Robinson
Quoted 35 lines · Shantur Rathore

Hi Jagan,

Quoted 17 lines · Jagan Teki
Quoted 15 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1989

Quoted 9 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
        imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS

Yes, but better to give this option to specific board vendors as defaults are enough to boot 1st bootflow and what ever media's it has.

Quoted 4 lines

Yes, that's correct it is enough to boot but by default there is no option to choose what to boot from.
This was discussed in an earlier version of this patch [0] where I was explicitly enabling only for RP64.

Quoted 4 lines

What actual extra functionality does this provide, what is the impact on the size of images? You've not provided reasonable justification outside of very vague statements, it would be useful to know what the added options actually solves.

BOOTSTD_FULL enables all the options in bootflow commands. This is needed if
- you want to choose between multiple available bootflows rather than just boot one default.
- if you need to list the available bootflows that bootstd has found
- if you need to select and boot any bootflow other than default. By default all other commands in U-boot come with options to show details For example, nvme info, nvme detail, usb info, usb tree but with bootstd no way to know anything.

Image size - u-boot.itd without BOOTSTD_FULL - 1193984 bytes Image size - u-boot.itb with BOOTSTD_FULL - 1214976 bytes Difference - 20992 bytes

According to binman for RK3399 u-boot can take upto 4M [1] so we have ample space.

Quoted 9 lines
Quoted 4 lines

This was discussed in the previous patch in the link below [0]

[0] - https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
[1] - https://github.com/shantur/u-boot/blob/master/arch/arm/dts/rk3399-u-boot.dtsi#L68

If I'm recalling everything right, this also brings "bootflow" as a command more in line with what could be done with distro_bootcmd in terms of "cover every possible case and let the user override things"

Yes,
That's correct.

U_BOOT_LONGHELP(bootflow,
#ifdef CONFIG_CMD_BOOTFLOW_FULL
"scan [-abeGl] [bdev] - scan for valid bootflows (-l list, -a all, -e errors, -b boot, -G no global)\n"
"bootflow list [-e] - list scanned bootflows (-e errors)\n"
"bootflow select [<num>|<name>] - select a bootflow\n"
"bootflow info [-ds] - show info on current bootflow (-d
dump bootflow)\n"

"bootflow read                  - read all current-bootflow files\n"
"bootflow boot                  - boot current bootflow\n"
"bootflow menu [-t]             - show a menu of available bootflows\n"
"bootflow cmdline [set|get|clear|delete|auto] <param> [<value>] -

update cmdline"
#else
"scan - boot first available bootflow\n"
#endif
);

#18 lore raw

Hi,

Quoted 94 lines · Shantur Rathore
Quoted 68 lines · Tom Rini
Quoted 66 lines · Shantur Rathore

Hi Peter,

Quoted 42 lines · Peter Robinson
Quoted 35 lines · Shantur Rathore

Hi Jagan,

Quoted 17 lines · Jagan Teki
Quoted 15 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1989

Quoted 9 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
        imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS

Yes, but better to give this option to specific board vendors as defaults are enough to boot 1st bootflow and what ever media's it has.

Quoted 4 lines

Yes, that's correct it is enough to boot but by default there is no option to choose what to boot from.
This was discussed in an earlier version of this patch [0] where I was explicitly enabling only for RP64.

Quoted 4 lines

What actual extra functionality does this provide, what is the impact on the size of images? You've not provided reasonable justification outside of very vague statements, it would be useful to know what the added options actually solves.

BOOTSTD_FULL enables all the options in bootflow commands. This is needed if
- you want to choose between multiple available bootflows rather than just boot one default.
- if you need to list the available bootflows that bootstd has found
- if you need to select and boot any bootflow other than default. By default all other commands in U-boot come with options to show details For example, nvme info, nvme detail, usb info, usb tree but with bootstd no way to know anything.

Image size - u-boot.itd without BOOTSTD_FULL - 1193984 bytes Image size - u-boot.itb with BOOTSTD_FULL - 1214976 bytes Difference - 20992 bytes

According to binman for RK3399 u-boot can take upto 4M [1] so we have ample space.

Quoted 9 lines
Quoted 4 lines

This was discussed in the previous patch in the link below [0]

[0] - https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
[1] - https://github.com/shantur/u-boot/blob/master/arch/arm/dts/rk3399-u-boot.dtsi#L68

If I'm recalling everything right, this also brings "bootflow" as a command more in line with what could be done with distro_bootcmd in terms of "cover every possible case and let the user override things"

Yes,
That's correct.

U_BOOT_LONGHELP(bootflow,
#ifdef CONFIG_CMD_BOOTFLOW_FULL
"scan [-abeGl] [bdev] - scan for valid bootflows (-l list, -a all, -e errors, -b boot, -G no global)\n"
"bootflow list [-e] - list scanned bootflows (-e errors)\n"
"bootflow select [<num>|<name>] - select a bootflow\n"
"bootflow info [-ds] - show info on current bootflow (-d
dump bootflow)\n"

"bootflow read                  - read all current-bootflow files\n"
"bootflow boot                  - boot current bootflow\n"
"bootflow menu [-t]             - show a menu of available bootflows\n"
"bootflow cmdline [set|get|clear|delete|auto] <param> [<value>] -
Quoted 5 lines

update cmdline"
#else
"scan - boot first available bootflow\n"
#endif
);

I suggest we keep it off for now, as we did put in quite a bit of effort to reduce code size. It would be a shame to throw it all away.

That said, I can imagine this becoming a pain for people over time, as the 'bootflow' command becomes the common way to interact with U-Boot. I just wonder if it is too early to make the switch?

Regards,
Simon

#19 lore raw
Quoted 103 lines · Simon Glass

Hi,

Quoted 94 lines · Shantur Rathore
Quoted 68 lines · Tom Rini
Quoted 66 lines · Shantur Rathore

Hi Peter,

Quoted 42 lines · Peter Robinson
Quoted 35 lines · Shantur Rathore

Hi Jagan,

Quoted 17 lines · Jagan Teki
Quoted 15 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1989

Quoted 9 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
        imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS

Yes, but better to give this option to specific board vendors as defaults are enough to boot 1st bootflow and what ever media's it has.

Quoted 4 lines

Yes, that's correct it is enough to boot but by default there is no option to choose what to boot from.
This was discussed in an earlier version of this patch [0] where I was explicitly enabling only for RP64.

Quoted 4 lines

What actual extra functionality does this provide, what is the impact on the size of images? You've not provided reasonable justification outside of very vague statements, it would be useful to know what the added options actually solves.

BOOTSTD_FULL enables all the options in bootflow commands. This is needed if
- you want to choose between multiple available bootflows rather than just boot one default.
- if you need to list the available bootflows that bootstd has found
- if you need to select and boot any bootflow other than default. By default all other commands in U-boot come with options to show details For example, nvme info, nvme detail, usb info, usb tree but with bootstd no way to know anything.

Image size - u-boot.itd without BOOTSTD_FULL - 1193984 bytes Image size - u-boot.itb with BOOTSTD_FULL - 1214976 bytes Difference - 20992 bytes

According to binman for RK3399 u-boot can take upto 4M [1] so we have ample space.

Quoted 9 lines
Quoted 4 lines

This was discussed in the previous patch in the link below [0]

[0] - https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
[1] - https://github.com/shantur/u-boot/blob/master/arch/arm/dts/rk3399-u-boot.dtsi#L68

If I'm recalling everything right, this also brings "bootflow" as a command more in line with what could be done with distro_bootcmd in terms of "cover every possible case and let the user override things"

Yes,
That's correct.

U_BOOT_LONGHELP(bootflow,
#ifdef CONFIG_CMD_BOOTFLOW_FULL
"scan [-abeGl] [bdev] - scan for valid bootflows (-l list, -a all, -e errors, -b boot, -G no global)\n"
"bootflow list [-e] - list scanned bootflows (-e errors)\n"
"bootflow select [<num>|<name>] - select a bootflow\n"
"bootflow info [-ds] - show info on current bootflow (-d
dump bootflow)\n"

"bootflow read                  - read all current-bootflow files\n"
"bootflow boot                  - boot current bootflow\n"
"bootflow menu [-t]             - show a menu of available bootflows\n"
"bootflow cmdline [set|get|clear|delete|auto] <param> [<value>] -
Quoted 5 lines

update cmdline"
#else
"scan - boot first available bootflow\n"
#endif
);

Quoted 6 lines

I suggest we keep it off for now, as we did put in quite a bit of effort to reduce code size. It would be a shame to throw it all away.

That said, I can imagine this becoming a pain for people over time, as the 'bootflow' command becomes the common way to interact with U-Boot. I just wonder if it is too early to make the switch?

I think in hind-sight too much stuff is omitted without BOOTSTD_FULL. The option itself then enables other stuff too by default, but some parts of the bootflow command itself should be visible even without FULL to make things easier on the user.

Signature · 1 line
Tom
#20 lore raw

Hi Tom,

Quoted 108 lines · Tom Rini
Quoted 106 lines · Simon Glass

Hi,

Quoted 94 lines · Shantur Rathore
Quoted 68 lines · Tom Rini
Quoted 66 lines · Shantur Rathore

Hi Peter,

Quoted 42 lines · Peter Robinson
Quoted 35 lines · Shantur Rathore

Hi Jagan,

Quoted 17 lines · Jagan Teki
Quoted 15 lines · Shantur Rathore

Rockchip SoCs can support wide range of bootflows. Without full bootflow commands, it can be difficult to figure out issues if any, hence enable by default.

---

(no changes since v1)

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

arch/arm/Kconfig config ARCH_ROCKCHIP · line 1989

Quoted 9 lines
arch/arm/Kconfig +1 -0
index d812685c98..fca6ef6d7e 100644
@@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP
        imply CMD_DM
        imply DEBUG_UART_BOARD_INIT
        imply BOOTSTD_DEFAULTS
+       imply BOOTSTD_FULL if BOOTSTD_DEFAULTS

Yes, but better to give this option to specific board vendors as defaults are enough to boot 1st bootflow and what ever media's it has.

Quoted 4 lines

Yes, that's correct it is enough to boot but by default there is no option to choose what to boot from.
This was discussed in an earlier version of this patch [0] where I was explicitly enabling only for RP64.

Quoted 4 lines

What actual extra functionality does this provide, what is the impact on the size of images? You've not provided reasonable justification outside of very vague statements, it would be useful to know what the added options actually solves.

BOOTSTD_FULL enables all the options in bootflow commands. This is needed if
- you want to choose between multiple available bootflows rather than just boot one default.
- if you need to list the available bootflows that bootstd has found
- if you need to select and boot any bootflow other than default. By default all other commands in U-boot come with options to show details For example, nvme info, nvme detail, usb info, usb tree but with bootstd no way to know anything.

Image size - u-boot.itd without BOOTSTD_FULL - 1193984 bytes Image size - u-boot.itb with BOOTSTD_FULL - 1214976 bytes Difference - 20992 bytes

According to binman for RK3399 u-boot can take upto 4M [1] so we have ample space.

Quoted 9 lines
Quoted 4 lines

This was discussed in the previous patch in the link below [0]

[0] - https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
[1] - https://github.com/shantur/u-boot/blob/master/arch/arm/dts/rk3399-u-boot.dtsi#L68

If I'm recalling everything right, this also brings "bootflow" as a command more in line with what could be done with distro_bootcmd in terms of "cover every possible case and let the user override things"

Yes,
That's correct.

U_BOOT_LONGHELP(bootflow,
#ifdef CONFIG_CMD_BOOTFLOW_FULL
"scan [-abeGl] [bdev] - scan for valid bootflows (-l list, -a all, -e errors, -b boot, -G no global)\n"
"bootflow list [-e] - list scanned bootflows (-e errors)\n"
"bootflow select [<num>|<name>] - select a bootflow\n"
"bootflow info [-ds] - show info on current bootflow (-d
dump bootflow)\n"

"bootflow read                  - read all current-bootflow files\n"
"bootflow boot                  - boot current bootflow\n"
"bootflow menu [-t]             - show a menu of available bootflows\n"
"bootflow cmdline [set|get|clear|delete|auto] <param> [<value>] -
Quoted 5 lines

update cmdline"
#else
"scan - boot first available bootflow\n"
#endif
);

I suggest we keep it off for now, as we did put in quite a bit of effort to reduce code size. It would be a shame to throw it all away.

Quoted 8 lines
Quoted 3 lines

That said, I can imagine this becoming a pain for people over time, as the 'bootflow' command becomes the common way to interact with U-Boot. I just wonder if it is too early to make the switch?

I think in hind-sight too much stuff is omitted without BOOTSTD_FULL. The option itself then enables other stuff too by default, but some parts of the bootflow command itself should be visible even without FULL to make things easier on the user.

At the time the goal was to avoid growth compared to the distro scripts. We could perhaps add some more things in with BOOTSTD_FULL but still have it as an option?

Regards,
Simon

#21 lore raw
Quoted 1 line · Simon Glass

Hi Tom,

[snip]

Quoted 8 lines
Quoted 4 lines

I think in hind-sight too much stuff is omitted without BOOTSTD_FULL. The option itself then enables other stuff too by default, but some parts of the bootflow command itself should be visible even without FULL to make things easier on the user.

At the time the goal was to avoid growth compared to the distro scripts. We could perhaps add some more things in with BOOTSTD_FULL but still have it as an option?

Right. But now that we've tried this, some of the feedback has been that it's just too minimal right now. Like looking at the help message for bootflow, list and info should probably always be available. And maybe the flags for "scan" should be re-thought? Too late to change things now but "bootflow scan -b" should maybe how it's always been for "scan and boot".

Signature · 1 line
Tom
#22 lore raw

Hi all,

Quoted 13 lines · Tom Rini
Quoted 1 line · Simon Glass

Hi Tom,

[snip]

Quoted 8 lines
Quoted 4 lines

I think in hind-sight too much stuff is omitted without BOOTSTD_FULL. The option itself then enables other stuff too by default, but some parts of the bootflow command itself should be visible even without FULL to make things easier on the user.

At the time the goal was to avoid growth compared to the distro scripts. We could perhaps add some more things in with BOOTSTD_FULL but still have it as an option?

Quoted 6 lines

Right. But now that we've tried this, some of the feedback has been that it's just too minimal right now. Like looking at the help message for bootflow, list and info should probably always be available. And maybe the flags for "scan" should be re-thought? Too late to change things now but "bootflow scan -b" should maybe how it's always been for "scan and boot".

What would be the preferred approach for this patch?
Is it to update the default capabilities of bootflow or we can have this patch?

Thanks
Shantur

Quoted 3 lines

--
Tom

#23 lore raw
Quoted 23 lines · Shantur Rathore

Hi all,

Quoted 13 lines · Tom Rini
Quoted 1 line · Simon Glass

Hi Tom,

[snip]

Quoted 8 lines
Quoted 4 lines

I think in hind-sight too much stuff is omitted without BOOTSTD_FULL. The option itself then enables other stuff too by default, but some parts of the bootflow command itself should be visible even without FULL to make things easier on the user.

At the time the goal was to avoid growth compared to the distro scripts. We could perhaps add some more things in with BOOTSTD_FULL but still have it as an option?

Quoted 6 lines

Right. But now that we've tried this, some of the feedback has been that it's just too minimal right now. Like looking at the help message for bootflow, list and info should probably always be available. And maybe the flags for "scan" should be re-thought? Too late to change things now but "bootflow scan -b" should maybe how it's always been for "scan and boot".

Quoted 2 lines

What would be the preferred approach for this patch?
Is it to update the default capabilities of bootflow or we can have this patch?

Well, I don't see a problem with just adding this to the platforms which enable BOOTSTD_FULL until we can rework what's included/excluded by that flag, and there's an issue filed for it now.

Signature · 1 line
Tom
#24 lore raw
Quoted 28 lines · Tom Rini
Quoted 23 lines · Shantur Rathore

Hi all,

Quoted 13 lines · Tom Rini
Quoted 1 line · Simon Glass

Hi Tom,

[snip]

Quoted 8 lines
Quoted 4 lines

I think in hind-sight too much stuff is omitted without BOOTSTD_FULL. The option itself then enables other stuff too by default, but some parts of the bootflow command itself should be visible even without FULL to make things easier on the user.

At the time the goal was to avoid growth compared to the distro scripts. We could perhaps add some more things in with BOOTSTD_FULL but still have it as an option?

Quoted 6 lines

Right. But now that we've tried this, some of the feedback has been that it's just too minimal right now. Like looking at the help message for bootflow, list and info should probably always be available. And maybe the flags for "scan" should be re-thought? Too late to change things now but "bootflow scan -b" should maybe how it's always been for "scan and boot".

Quoted 2 lines

What would be the preferred approach for this patch?
Is it to update the default capabilities of bootflow or we can have this patch?

Quoted 6 lines

Well, I don't see a problem with just adding this to the platforms which enable BOOTSTD_FULL until we can rework what's included/excluded by that flag, and there's an issue filed for it now.

--
Tom

Great, can we have this merged in please then [0]

[0] - https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

Regards,
Shantur

#25 lore raw

Hi,

Quoted 34 lines · Shantur Rathore
Quoted 32 lines · Tom Rini
Quoted 23 lines · Shantur Rathore

Hi all,

Quoted 13 lines · Tom Rini
Quoted 1 line · Simon Glass

Hi Tom,

[snip]

Quoted 8 lines
Quoted 4 lines

I think in hind-sight too much stuff is omitted without BOOTSTD_FULL. The option itself then enables other stuff too by default, but some parts of the bootflow command itself should be visible even without FULL to make things easier on the user.

At the time the goal was to avoid growth compared to the distro scripts. We could perhaps add some more things in with BOOTSTD_FULL but still have it as an option?

Quoted 6 lines

Right. But now that we've tried this, some of the feedback has been that it's just too minimal right now. Like looking at the help message for bootflow, list and info should probably always be available. And maybe the flags for "scan" should be re-thought? Too late to change things now but "bootflow scan -b" should maybe how it's always been for "scan and boot".

Quoted 2 lines

What would be the preferred approach for this patch?
Is it to update the default capabilities of bootflow or we can have this patch?

Well, I don't see a problem with just adding this to the platforms which enable BOOTSTD_FULL until we can rework what's included/excluded by that flag, and there's an issue filed for it now.

Quoted 7 lines
Quoted 2 lines

--
Tom

Great, can we have this merged in please then [0]

[0] - https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

I tried this patch over the next branch and it failed to build.

Sent v4 here :
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

Regards,
Shantur