rpi: Convert to standard boot
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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH v2 2/3 rpi: Disable DISTRO_DEFAULTS
In reply to Simon GlassDisable 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH v2 3/3 arm: rpi: Switch to a text environment
In reply to Simon GlassUse 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
@@ -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
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_PARSERis 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. AlsoCMD_SYSBOOTis dropped since standard boot calls thepxe_utilscode directly in that case.Changes in v2:
- Rebase to -next
- Add new patch to disableDISTRO_DEFAULTSSimon Glass (3):
arm: rpi: Switch to standard boot
rpi: DisableDISTRO_DEFAULTS
arm: rpi: Switch to a text environmentboard/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
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_PARSERis 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. AlsoCMD_SYSBOOTis dropped since standard boot calls thepxe_utilscode directly in that case.Changes in v2:
- Rebase to -next
- Add new patch to disableDISTRO_DEFAULTSSimon Glass (3):
arm: rpi: Switch to standard boot
rpi: DisableDISTRO_DEFAULTS
arm: rpi: Switch to a text environmentboard/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-googAny 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
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_PARSERis 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. AlsoCMD_SYSBOOTis dropped since standard boot calls thepxe_utilscode directly in that case.Changes in v2:
- Rebase to -next
- Add new patch to disableDISTRO_DEFAULTSSimon Glass (3):
arm: rpi: Switch to standard boot
rpi: DisableDISTRO_DEFAULTS
arm: rpi: Switch to a text environmentboard/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
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_PARSERis 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. AlsoCMD_SYSBOOTis dropped since standard boot calls thepxe_utilscode directly in that case.Changes in v2:
- Rebase to -next
- Add new patch to disableDISTRO_DEFAULTSSimon Glass (3):
arm: rpi: Switch to standard boot
rpi: DisableDISTRO_DEFAULTS
arm: rpi: Switch to a text environmentboard/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.envQuoted 3 lines
--
2.40.0.348.gf938b09366-googAny 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.
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_PARSERis 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. AlsoCMD_SYSBOOTis dropped since standard boot calls thepxe_utilscode directly in that case.Changes in v2:
- Rebase to -next
- Add new patch to disableDISTRO_DEFAULTSSimon Glass (3):
arm: rpi: Switch to standard boot
rpi: DisableDISTRO_DEFAULTS
arm: rpi: Switch to a text environmentboard/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.envQuoted 5 lines
Quoted 3 lines
--
2.40.0.348.gf938b09366-googAny 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
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_PARSERis 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. AlsoCMD_SYSBOOTis dropped since standard boot calls thepxe_utilscode directly in that case.Changes in v2:
- Rebase to -next
- Add new patch to disableDISTRO_DEFAULTSSimon Glass (3):
arm: rpi: Switch to standard boot
rpi: DisableDISTRO_DEFAULTS
arm: rpi: Switch to a text environmentboard/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.envQuoted 5 lines
Quoted 3 lines
--
2.40.0.348.gf938b09366-googAny 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