Skip to contentSkip to conversation

rpi: Convert to standard boot

PATCH Superseded Simon Glass 2 participants 10 messages Apr 2, 2023 – Jul 11, 2023 Broadcom BCM2711/BCM2835 Arm architecture

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover rpi: Convert to standard boot

This series moves Raspberry Pi boards over to use standard boot.

It also moves rpi over to use a text-based environment. Unfortunately it is not possible to empty the header file due to several CFG options.

Fix the repeated "and and" while we are here.

Note that this reduces rodata size by about 4.5KB. We could get another

for a total image-size saving of about 15KB. This is mostly because HUSH_PARSER is not enabled anymore and the environment shrinks down by about 3.5K. Hush is not actually needed anymore, since standard boot does not use it. Also CMD_SYSBOOT is dropped since standard boot calls the pxe_utils code directly in that case.

Changes in v2:
- Rebase to -next
- Add new patch to disable DISTRO_DEFAULTS

Simon Glass (3):
arm: rpi: Switch to standard boot
rpi: Disable DISTRO_DEFAULTS
arm: rpi: Switch to a text environment

 board/raspberrypi/rpi/rpi.env  |  77 +++++++++++++++++++
 configs/rpi_0_w_defconfig      |   2 +-
 configs/rpi_2_defconfig        |   2 +-
 configs/rpi_3_32b_defconfig    |   2 +-
 configs/rpi_3_b_plus_defconfig |   2 +-
 configs/rpi_3_defconfig        |   2 +-
 configs/rpi_4_32b_defconfig    |   2 +-
 configs/rpi_4_defconfig        |   2 +-
 configs/rpi_arm64_defconfig    |   2 +-
 configs/rpi_defconfig          |   2 +-
 include/configs/rpi.h          | 134 ---------------------------------
 11 files changed, 86 insertions(+), 143 deletions(-)
 create mode 100644 board/raspberrypi/rpi/rpi.env
Signature · 1 line
2.40.0.348.gf938b09366-goog
#1 lore raw

PATCH v2 1/3 arm: rpi: Switch to standard boot

Drop use of the distro scripts and use standard boot instead.

We don't need to specify the mmc devices individually, since they are used in order from 0 to 2, and standard boot uses that order anyway.

---

Changes in v2:
- Rebase to -next

 configs/rpi_0_w_defconfig      |  1 +
 configs/rpi_2_defconfig        |  1 +
 configs/rpi_3_32b_defconfig    |  1 +
 configs/rpi_3_b_plus_defconfig |  1 +
 configs/rpi_3_defconfig        |  1 +
 configs/rpi_4_32b_defconfig    |  1 +
 configs/rpi_4_defconfig        |  1 +
 configs/rpi_arm64_defconfig    |  1 +
 configs/rpi_defconfig          |  1 +
 include/configs/rpi.h          | 38 ++--------------------------------
 10 files changed, 11 insertions(+), 36 deletions(-)
configs/rpi_0_w_defconfig +1 -0
index 2a442373f116..a61f7f7feacf 100644
@@ -11,6 +11,7 @@ CONFIG_ENV_SIZE=0x4000
 CONFIG_DEFAULT_DEVICE_TREE="bcm2835-rpi-zero-w"
 CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_SYS_LOAD_ADDR=0x1000000
+CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
configs/rpi_2_defconfig +1 -0
index 1c462f36b479..193f15c15bae 100644
@@ -12,6 +12,7 @@ CONFIG_ENV_SIZE=0x4000
 CONFIG_DEFAULT_DEVICE_TREE="bcm2836-rpi-2-b"
 CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_SYS_LOAD_ADDR=0x1000000
+CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
configs/rpi_3_32b_defconfig +1 -0
index ed14571d20f1..51662dc5d2a8 100644
@@ -11,6 +11,7 @@ CONFIG_ENV_SIZE=0x4000
 CONFIG_DEFAULT_DEVICE_TREE="bcm2837-rpi-3-b"
 CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_SYS_LOAD_ADDR=0x1000000
+CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
configs/rpi_3_b_plus_defconfig +1 -0
index d29bc7d61c71..0ea27eee4b2f 100644
@@ -10,6 +10,7 @@ CONFIG_ENV_SIZE=0x4000
 CONFIG_DEFAULT_DEVICE_TREE="bcm2837-rpi-3-b-plus"
 CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_SYS_LOAD_ADDR=0x1000000
+CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
configs/rpi_3_defconfig +1 -0
index eb9251937126..8077ccbe0b54 100644
@@ -10,6 +10,7 @@ CONFIG_ENV_SIZE=0x4000
 CONFIG_DEFAULT_DEVICE_TREE="bcm2837-rpi-3-b"
 CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_SYS_LOAD_ADDR=0x1000000
+CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
configs/rpi_4_32b_defconfig +1 -0
index 2fdc4b2360dc..1441d9a5cc6e 100644
@@ -9,6 +9,7 @@ CONFIG_DEFAULT_DEVICE_TREE="bcm2711-rpi-4-b"
 CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_DM_RESET=y
 CONFIG_SYS_LOAD_ADDR=0x1000000
+CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
configs/rpi_4_defconfig +1 -0
index efa42569b109..b812a093c493 100644
@@ -9,6 +9,7 @@ CONFIG_DEFAULT_DEVICE_TREE="bcm2711-rpi-4-b"
 CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_DM_RESET=y
 CONFIG_SYS_LOAD_ADDR=0x1000000
+CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
configs/rpi_arm64_defconfig +1 -0
index 53bf410a7922..b824f739a151 100644
@@ -9,6 +9,7 @@ CONFIG_DEFAULT_DEVICE_TREE="bcm2711-rpi-4-b"
 CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_DM_RESET=y
 CONFIG_SYS_LOAD_ADDR=0x1000000
+CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
configs/rpi_defconfig +1 -0
index dfd0c6bbae79..5a538225f200 100644
@@ -11,6 +11,7 @@ CONFIG_ENV_SIZE=0x4000
 CONFIG_DEFAULT_DEVICE_TREE="bcm2835-rpi-b"
 CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_SYS_LOAD_ADDR=0x1000000
+CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
include/configs/rpi.h +2 -36
index 4da982f73578..4160db2d8e14 100644
@@ -122,47 +122,13 @@
 	"fdt_addr_r=0x02600000\0" \
 	"ramdisk_addr_r=0x02700000\0"
 
-#if IS_ENABLED(CONFIG_CMD_MMC)
-	#define BOOT_TARGET_MMC(func) \
-		func(MMC, mmc, 0) \
-		func(MMC, mmc, 1) \
-		func(MMC, mmc, 2)
-#else
-	#define BOOT_TARGET_MMC(func)
-#endif
-
-#if IS_ENABLED(CONFIG_CMD_USB)
-	#define BOOT_TARGET_USB(func) func(USB, usb, 0)
-#else
-	#define BOOT_TARGET_USB(func)
-#endif
-
-#if CONFIG_IS_ENABLED(CMD_PXE)
-	#define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
-#else
-	#define BOOT_TARGET_PXE(func)
-#endif
-
-#if CONFIG_IS_ENABLED(CMD_DHCP)
-	#define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
-#else
-	#define BOOT_TARGET_DHCP(func)
-#endif
-
-#define BOOT_TARGET_DEVICES(func) \
-	BOOT_TARGET_MMC(func) \
-	BOOT_TARGET_USB(func) \
-	BOOT_TARGET_PXE(func) \
-	BOOT_TARGET_DHCP(func)
-
-#include <config_distro_bootcmd.h>
+#define BOOT_TARGETS	"mmc usb pxe dhcp"
 
 #define CFG_EXTRA_ENV_SETTINGS \
 	"dhcpuboot=usb start; dhcp u-boot.uimg; bootm\0" \
 	ENV_DEVICE_SETTINGS \
 	ENV_DFU_SETTINGS \
 	ENV_MEM_LAYOUT_SETTINGS \
-	BOOTENV
-
+	"boot_targets=" BOOT_TARGETS "\0"
 
 #endif
Signature · 1 line
2.40.0.348.gf938b09366-goog
#2 lore raw

PATCH v2 2/3 rpi: Disable DISTRO_DEFAULTS

In reply to Simon Glass

Disable this option to reclaim some space, since bootstd requires less functionality to operate (e.g. hush parser).

---

Changes in v2:
- Add new patch to disable DISTRO_DEFAULTS

 configs/rpi_0_w_defconfig      | 1 -
 configs/rpi_2_defconfig        | 1 -
 configs/rpi_3_32b_defconfig    | 1 -
 configs/rpi_3_b_plus_defconfig | 1 -
 configs/rpi_3_defconfig        | 1 -
 configs/rpi_4_32b_defconfig    | 1 -
 configs/rpi_4_defconfig        | 1 -
 configs/rpi_arm64_defconfig    | 1 -
 configs/rpi_defconfig          | 1 -
 9 files changed, 9 deletions(-)
configs/rpi_0_w_defconfig +0 -1
index a61f7f7feacf..ded8b774b959 100644
@@ -13,7 +13,6 @@ CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_SYS_LOAD_ADDR=0x1000000
 CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
-CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
configs/rpi_2_defconfig +0 -1
index 193f15c15bae..4de65f64ff06 100644
@@ -14,7 +14,6 @@ CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_SYS_LOAD_ADDR=0x1000000
 CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
-CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
configs/rpi_3_32b_defconfig +0 -1
index 51662dc5d2a8..df2261fc51d0 100644
@@ -13,7 +13,6 @@ CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_SYS_LOAD_ADDR=0x1000000
 CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
-CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
configs/rpi_3_b_plus_defconfig +0 -1
index 0ea27eee4b2f..a19fe42d1952 100644
@@ -12,7 +12,6 @@ CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_SYS_LOAD_ADDR=0x1000000
 CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
-CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
configs/rpi_3_defconfig +0 -1
index 8077ccbe0b54..7f972ce62d42 100644
@@ -12,7 +12,6 @@ CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_SYS_LOAD_ADDR=0x1000000
 CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
-CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
configs/rpi_4_32b_defconfig +0 -1
index 1441d9a5cc6e..a1c1c227ebd5 100644
@@ -11,7 +11,6 @@ CONFIG_DM_RESET=y
 CONFIG_SYS_LOAD_ADDR=0x1000000
 CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
-CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
 CONFIG_PREBOOT="pci enum; usb start;"
 # CONFIG_DISPLAY_CPUINFO is not set
configs/rpi_4_defconfig +0 -1
index b812a093c493..555b5c420be7 100644
@@ -11,7 +11,6 @@ CONFIG_DM_RESET=y
 CONFIG_SYS_LOAD_ADDR=0x1000000
 CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
-CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
 CONFIG_PREBOOT="pci enum; usb start;"
 # CONFIG_DISPLAY_CPUINFO is not set
configs/rpi_arm64_defconfig +0 -1
index b824f739a151..7fbdd91e013f 100644
@@ -11,7 +11,6 @@ CONFIG_DM_RESET=y
 CONFIG_SYS_LOAD_ADDR=0x1000000
 CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
-CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
 CONFIG_PREBOOT="pci enum; usb start;"
 # CONFIG_DISPLAY_CPUINFO is not set
configs/rpi_defconfig +0 -1
index 5a538225f200..8adfbefd537f 100644
@@ -13,7 +13,6 @@ CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_SYS_LOAD_ADDR=0x1000000
 CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
-CONFIG_DISTRO_DEFAULTS=y
 CONFIG_USE_PREBOOT=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
Signature · 1 line
2.40.0.348.gf938b09366-goog
#3 lore raw

PATCH v2 3/3 arm: rpi: Switch to a text environment

In reply to Simon Glass

Use the new environment format so we can drop most of the config.h file.

---

(no changes since v1)

 board/raspberrypi/rpi/rpi.env |  77 ++++++++++++++++++++++++++
 include/configs/rpi.h         | 100 ----------------------------------
 2 files changed, 77 insertions(+), 100 deletions(-)
 create mode 100644 board/raspberrypi/rpi/rpi.env
board/raspberrypi/rpi/rpi.env new file +77 -0
new file mode 100644
index 000000000000..30228285edde
@@ -0,0 +1,77 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+
+/* environment for Raspberry Pi boards */
+
+dhcpuboot=usb start; dhcp u-boot.uimg; bootm
+
+/* Environment */
+stdin=serial,usbkbd
+stdout=serial,vidconsole
+stderr=serial,vidconsole
+
+/* DFU over USB/UDC */
+#ifdef CONFIG_CMD_DFU
+dfu_alt_info=u-boot.bin fat 0 1;uboot.env fat 0 1;
+  config.txt fat 0 1;
+#ifdef CONFIG_ARM64
+dfu_alt_info+=Image fat 0 1
+#else
+dfu_alt_info+=zImage fat 0 1
+#endif
+#endif  /* CONFIG_CMD_DFU */
+
+/*
+ * Memory layout for where various images get loaded by boot scripts:
+ *
+ * I suspect address 0 is used as the SMP pen on the RPi2, so avoid this.
+ *
+ * Older versions of the boot firmware place the firmware-loaded DTB at 0x100,
+ * newer versions place it in high memory. So prevent U-Boot from doing its own
+ * DTB + initrd relocation so that we won't accidentally relocate the initrd
+ * over the firmware-loaded DTB and generally try to lay out things starting
+ * from the bottom of RAM.
+ *
+ * kernel_addr_r has different constraints on ARM and Aarch64.  For 32-bit ARM,
+ * it must be within the first 128M of RAM in order for the kernel's
+ * CONFIG_AUTO_ZRELADDR option to work. The kernel itself will be decompressed
+ * to 0x8000 but the decompressor clobbers 0x4000-0x8000 as well. The
+ * decompressor also likes to relocate itself to right past the end of the
+ * decompressed kernel, so in total the sum of the compressed and
+ * decompressed kernel needs to be reserved.
+ *
+ *   For Aarch64, the kernel image is uncompressed and must be loaded at
+ *   text_offset bytes (specified in the header of the Image) into a 2MB
+ *   boundary. The 'booti' command relocates the image if necessary. Linux uses
+ *   a default text_offset of 0x80000.  In summary, loading at 0x80000
+ *   satisfies all these constraints and reserving memory up to 0x02400000
+ *   permits fairly large (roughly 36M) kernels.
+ *
+ * scriptaddr and pxefile_addr_r can be pretty much anywhere that doesn't
+ * conflict with something else. Reserving 1M for each of them at
+ * 0x02400000-0x02500000 and 0x02500000-0x02600000 should be plenty.
+ *
+ * On ARM, both the DTB and any possible initrd must be loaded such that they
+ * fit inside the lowmem mapping in Linux. In practice, this usually means not
+ * more than ~700M away from the start of the kernel image but this number can
+ * be larger OR smaller depending on e.g. the 'vmalloc=xxxM' command line
+ * parameter given to the kernel. So reserving memory from low to high
+ * satisfies this constraint again. Reserving 1M at 0x02600000-0x02700000 for
+ * the DTB leaves rest of the free RAM to the initrd starting at 0x02700000.
+ * Even with the smallest possible CPU-GPU memory split of the CPU getting
+ * only 64M, the remaining 25M starting at 0x02700000 should allow quite
+ * large initrds before they start colliding with U-Boot.
+ */
+#ifdef CONFIG_ARM64
+fdt_high=ffffffffffffffff
+initrd_high=ffffffffffffffff
+#else
+fdt_high=ffffffff
+initrd_high=ffffffff
+#endif
+kernel_addr_r=0x00080000
+scriptaddr=0x02400000
+pxefile_addr_r=0x02500000
+fdt_addr_r=0x02600000
+ramdisk_addr_r=0x02700000
+
+boot_targets=mmc usb pxe dhcp
include/configs/rpi.h +0 -100

110 lines not on this page · raw message

Signature · 1 line
2.40.0.348.gf938b09366-goog
#4 lore raw
In reply to Simon Glass

Hi Peter,

Quoted 39 lines · Simon Glass

This series moves Raspberry Pi boards over to use standard boot.

It also moves rpi over to use a text-based environment. Unfortunately it is not possible to empty the header file due to several CFG options.

Fix the repeated "and and" while we are here.

Note that this reduces rodata size by about 4.5KB. We could get another

for a total image-size saving of about 15KB. This is mostly because HUSH_PARSER is not enabled anymore and the environment shrinks down by about 3.5K. Hush is not actually needed anymore, since standard boot does not use it. Also CMD_SYSBOOT is dropped since standard boot calls the pxe_utils code directly in that case.

Changes in v2:
- Rebase to -next
- Add new patch to disable DISTRO_DEFAULTS

Simon Glass (3):
arm: rpi: Switch to standard boot
rpi: Disable DISTRO_DEFAULTS
arm: rpi: Switch to a text environment

 board/raspberrypi/rpi/rpi.env  |  77 +++++++++++++++++++
 configs/rpi_0_w_defconfig      |   2 +-
 configs/rpi_2_defconfig        |   2 +-
 configs/rpi_3_32b_defconfig    |   2 +-
 configs/rpi_3_b_plus_defconfig |   2 +-
 configs/rpi_3_defconfig        |   2 +-
 configs/rpi_4_32b_defconfig    |   2 +-
 configs/rpi_4_defconfig        |   2 +-
 configs/rpi_arm64_defconfig    |   2 +-
 configs/rpi_defconfig          |   2 +-
 include/configs/rpi.h          | 134 ---------------------------------
 11 files changed, 86 insertions(+), 143 deletions(-)
 create mode 100644 board/raspberrypi/rpi/rpi.env
Quoted 3 lines

--
2.40.0.348.gf938b09366-goog

Any thoughts on this series, please?

Regards,
Simon

#5 lore raw

Hi Simon,

Quoted 43 lines · Simon Glass

Hi Peter,

Quoted 39 lines · Simon Glass

This series moves Raspberry Pi boards over to use standard boot.

It also moves rpi over to use a text-based environment. Unfortunately it is not possible to empty the header file due to several CFG options.

Fix the repeated "and and" while we are here.

Note that this reduces rodata size by about 4.5KB. We could get another

for a total image-size saving of about 15KB. This is mostly because HUSH_PARSER is not enabled anymore and the environment shrinks down by about 3.5K. Hush is not actually needed anymore, since standard boot does not use it. Also CMD_SYSBOOT is dropped since standard boot calls the pxe_utils code directly in that case.

Changes in v2:
- Rebase to -next
- Add new patch to disable DISTRO_DEFAULTS

Simon Glass (3):
arm: rpi: Switch to standard boot
rpi: Disable DISTRO_DEFAULTS
arm: rpi: Switch to a text environment

 board/raspberrypi/rpi/rpi.env  |  77 +++++++++++++++++++
 configs/rpi_0_w_defconfig      |   2 +-
 configs/rpi_2_defconfig        |   2 +-
 configs/rpi_3_32b_defconfig    |   2 +-
 configs/rpi_3_b_plus_defconfig |   2 +-
 configs/rpi_3_defconfig        |   2 +-
 configs/rpi_4_32b_defconfig    |   2 +-
 configs/rpi_4_defconfig        |   2 +-
 configs/rpi_arm64_defconfig    |   2 +-
 configs/rpi_defconfig          |   2 +-
 include/configs/rpi.h          | 134 ---------------------------------
 11 files changed, 86 insertions(+), 143 deletions(-)
 create mode 100644 board/raspberrypi/rpi/rpi.env
Quoted 5 lines
Quoted 3 lines

--
2.40.0.348.gf938b09366-goog

Any thoughts on this series, please?

It's in my backlog to review, I've been focused on other things so my time is limited ATM but I'm also a little hesitant given the issues with the rockchip conversion and still outstanding issues there.

Peter

#6 lore raw

Hi Peter,

Quoted 51 lines · Peter Robinson

Hi Simon,

Quoted 47 lines · Simon Glass

Hi Peter,

Quoted 42 lines · Simon Glass

This series moves Raspberry Pi boards over to use standard boot.

It also moves rpi over to use a text-based environment. Unfortunately it is not possible to empty the header file due to several CFG options.

Fix the repeated "and and" while we are here.

Note that this reduces rodata size by about 4.5KB. We could get another

for a total image-size saving of about 15KB. This is mostly because HUSH_PARSER is not enabled anymore and the environment shrinks down by about 3.5K. Hush is not actually needed anymore, since standard boot does not use it. Also CMD_SYSBOOT is dropped since standard boot calls the pxe_utils code directly in that case.

Changes in v2:
- Rebase to -next
- Add new patch to disable DISTRO_DEFAULTS

Simon Glass (3):
arm: rpi: Switch to standard boot
rpi: Disable DISTRO_DEFAULTS
arm: rpi: Switch to a text environment

 board/raspberrypi/rpi/rpi.env  |  77 +++++++++++++++++++
 configs/rpi_0_w_defconfig      |   2 +-
 configs/rpi_2_defconfig        |   2 +-
 configs/rpi_3_32b_defconfig    |   2 +-
 configs/rpi_3_b_plus_defconfig |   2 +-
 configs/rpi_3_defconfig        |   2 +-
 configs/rpi_4_32b_defconfig    |   2 +-
 configs/rpi_4_defconfig        |   2 +-
 configs/rpi_arm64_defconfig    |   2 +-
 configs/rpi_defconfig          |   2 +-
 include/configs/rpi.h          | 134 ---------------------------------
 11 files changed, 86 insertions(+), 143 deletions(-)
 create mode 100644 board/raspberrypi/rpi/rpi.env

--
2.40.0.348.gf938b09366-goog

Quoted 5 lines
Quoted 1 line

Any thoughts on this series, please?

It's in my backlog to review, I've been focused on other things so my time is limited ATM but I'm also a little hesitant given the issues with the rockchip conversion and still outstanding issues there.

Yes, there is an outstanding series on that side also. I hope you can find the time soon, as the merge window closes in a week or so (getting it in before then gives us the most test time before the release).

Regards,
Simon

#7 lore raw
Quoted 57 lines · Simon Glass

Hi Peter,

Quoted 53 lines · Peter Robinson

Hi Simon,

Quoted 48 lines · Simon Glass

Hi Peter,

Quoted 39 lines · Simon Glass

This series moves Raspberry Pi boards over to use standard boot.

It also moves rpi over to use a text-based environment. Unfortunately it is not possible to empty the header file due to several CFG options.

Fix the repeated "and and" while we are here.

Note that this reduces rodata size by about 4.5KB. We could get another

for a total image-size saving of about 15KB. This is mostly because HUSH_PARSER is not enabled anymore and the environment shrinks down by about 3.5K. Hush is not actually needed anymore, since standard boot does not use it. Also CMD_SYSBOOT is dropped since standard boot calls the pxe_utils code directly in that case.

Changes in v2:
- Rebase to -next
- Add new patch to disable DISTRO_DEFAULTS

Simon Glass (3):
arm: rpi: Switch to standard boot
rpi: Disable DISTRO_DEFAULTS
arm: rpi: Switch to a text environment

 board/raspberrypi/rpi/rpi.env  |  77 +++++++++++++++++++
 configs/rpi_0_w_defconfig      |   2 +-
 configs/rpi_2_defconfig        |   2 +-
 configs/rpi_3_32b_defconfig    |   2 +-
 configs/rpi_3_b_plus_defconfig |   2 +-
 configs/rpi_3_defconfig        |   2 +-
 configs/rpi_4_32b_defconfig    |   2 +-
 configs/rpi_4_defconfig        |   2 +-
 configs/rpi_arm64_defconfig    |   2 +-
 configs/rpi_defconfig          |   2 +-
 include/configs/rpi.h          | 134 ---------------------------------
 11 files changed, 86 insertions(+), 143 deletions(-)
 create mode 100644 board/raspberrypi/rpi/rpi.env
Quoted 3 lines

--
2.40.0.348.gf938b09366-goog

Any thoughts on this series, please?

Quoted 8 lines
Quoted 3 lines

It's in my backlog to review, I've been focused on other things so my time is limited ATM but I'm also a little hesitant given the issues with the rockchip conversion and still outstanding issues there.

Yes, there is an outstanding series on that side also. I hope you can find the time soon, as the merge window closes in a week or so (getting it in before then gives us the most test time before the release).

This isn't my day job, I do it when I get time, I'm in the midst of renovations and recovery from a broken wrist. My time currently is limited.

#8 lore raw

Hi Peter,

Quoted 63 lines · Peter Robinson
Quoted 61 lines · Simon Glass

Hi Peter,

Quoted 56 lines · Peter Robinson

Hi Simon,

Quoted 43 lines · Simon Glass

Hi Peter,

Quoted 39 lines · Simon Glass

This series moves Raspberry Pi boards over to use standard boot.

It also moves rpi over to use a text-based environment. Unfortunately it is not possible to empty the header file due to several CFG options.

Fix the repeated "and and" while we are here.

Note that this reduces rodata size by about 4.5KB. We could get another

for a total image-size saving of about 15KB. This is mostly because HUSH_PARSER is not enabled anymore and the environment shrinks down by about 3.5K. Hush is not actually needed anymore, since standard boot does not use it. Also CMD_SYSBOOT is dropped since standard boot calls the pxe_utils code directly in that case.

Changes in v2:
- Rebase to -next
- Add new patch to disable DISTRO_DEFAULTS

Simon Glass (3):
arm: rpi: Switch to standard boot
rpi: Disable DISTRO_DEFAULTS
arm: rpi: Switch to a text environment

 board/raspberrypi/rpi/rpi.env  |  77 +++++++++++++++++++
 configs/rpi_0_w_defconfig      |   2 +-
 configs/rpi_2_defconfig        |   2 +-
 configs/rpi_3_32b_defconfig    |   2 +-
 configs/rpi_3_b_plus_defconfig |   2 +-
 configs/rpi_3_defconfig        |   2 +-
 configs/rpi_4_32b_defconfig    |   2 +-
 configs/rpi_4_defconfig        |   2 +-
 configs/rpi_arm64_defconfig    |   2 +-
 configs/rpi_defconfig          |   2 +-
 include/configs/rpi.h          | 134 ---------------------------------
 11 files changed, 86 insertions(+), 143 deletions(-)
 create mode 100644 board/raspberrypi/rpi/rpi.env
Quoted 5 lines
Quoted 3 lines

--
2.40.0.348.gf938b09366-goog

Any thoughts on this series, please?

It's in my backlog to review, I've been focused on other things so my time is limited ATM but I'm also a little hesitant given the issues with the rockchip conversion and still outstanding issues there.

Quoted 8 lines
Quoted 4 lines

Yes, there is an outstanding series on that side also. I hope you can find the time soon, as the merge window closes in a week or so (getting it in before then gives us the most test time before the release).

This isn't my day job, I do it when I get time, I'm in the midst of renovations and recovery from a broken wrist. My time currently is limited.

Thanks for the response. Yes I understand. A lot of people are in the same boat. This isn't my day job either and I have a few things going on.

The initial series was sent in February. One option is to apply it and let people test it and find any remaining problems. But we should do it at the same time as the rockchip, since they are now linked.

In the meantime I'll see if I can pick up the rockchip fixes, in case they relate to any testing you might be able to do.

Regards,
Simon

#9 lore raw

Hi Peter,

Quoted 80 lines · Simon Glass

Hi Peter,

Quoted 63 lines · Peter Robinson
Quoted 61 lines · Simon Glass

Hi Peter,

Quoted 56 lines · Peter Robinson

Hi Simon,

Quoted 43 lines · Simon Glass

Hi Peter,

Quoted 39 lines · Simon Glass

This series moves Raspberry Pi boards over to use standard boot.

It also moves rpi over to use a text-based environment. Unfortunately it is not possible to empty the header file due to several CFG options.

Fix the repeated "and and" while we are here.

Note that this reduces rodata size by about 4.5KB. We could get another

for a total image-size saving of about 15KB. This is mostly because HUSH_PARSER is not enabled anymore and the environment shrinks down by about 3.5K. Hush is not actually needed anymore, since standard boot does not use it. Also CMD_SYSBOOT is dropped since standard boot calls the pxe_utils code directly in that case.

Changes in v2:
- Rebase to -next
- Add new patch to disable DISTRO_DEFAULTS

Simon Glass (3):
arm: rpi: Switch to standard boot
rpi: Disable DISTRO_DEFAULTS
arm: rpi: Switch to a text environment

 board/raspberrypi/rpi/rpi.env  |  77 +++++++++++++++++++
 configs/rpi_0_w_defconfig      |   2 +-
 configs/rpi_2_defconfig        |   2 +-
 configs/rpi_3_32b_defconfig    |   2 +-
 configs/rpi_3_b_plus_defconfig |   2 +-
 configs/rpi_3_defconfig        |   2 +-
 configs/rpi_4_32b_defconfig    |   2 +-
 configs/rpi_4_defconfig        |   2 +-
 configs/rpi_arm64_defconfig    |   2 +-
 configs/rpi_defconfig          |   2 +-
 include/configs/rpi.h          | 134 ---------------------------------
 11 files changed, 86 insertions(+), 143 deletions(-)
 create mode 100644 board/raspberrypi/rpi/rpi.env
Quoted 5 lines
Quoted 3 lines

--
2.40.0.348.gf938b09366-goog

Any thoughts on this series, please?

It's in my backlog to review, I've been focused on other things so my time is limited ATM but I'm also a little hesitant given the issues with the rockchip conversion and still outstanding issues there.

Quoted 8 lines
Quoted 4 lines

Yes, there is an outstanding series on that side also. I hope you can find the time soon, as the merge window closes in a week or so (getting it in before then gives us the most test time before the release).

This isn't my day job, I do it when I get time, I'm in the midst of renovations and recovery from a broken wrist. My time currently is limited.

Thanks for the response. Yes I understand. A lot of people are in the same boat. This isn't my day job either and I have a few things going on.

Quoted 6 lines

The initial series was sent in February. One option is to apply it and let people test it and find any remaining problems. But we should do it at the same time as the rockchip, since they are now linked.

In the meantime I'll see if I can pick up the rockchip fixes, in case they relate to any testing you might be able to do.

Well here we are three months later.

Shall we go ahead and pick these up and see what happens? We need to give people plenty of time to test, so now is the best time.

Regards,
Simon