configs: rockpro64: Enable SPI command and full BOOTSTD
PATCH 1/1 configs: rockpro64: Enable SPI command and full BOOTSTD
RockPro64 has a 16MB onboard SPI chip and current u-boot takes around 2MB, we can enable more features.
Updating config to enable SPI commands and full BootSTD support.
--- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+)
configs/rockpro64-rk3399_defconfig +2 -0
@@ -46,10 +46,12 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_SPI=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_CMD_BOOTSTAGE=y +CONFIG_BOOTSTD_FULL=y CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y
Signature · 1 line
2.40.1
Hi Shantur,
Quoted 3 lines · Shantur Rathore
RockPro64 has a 16MB onboard SPI chip and current u-boot takes around 2MB, we can enable more features.
What takes 2MB? I have never seen U-Boot get close to that large!
Regards,
Simon
Quoted 25 lines
Updating config to enable SPI commands and full BootSTD support.
--- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/rockpro64-rk3399_defconfig +2
-1@@ -46,10 +46,12 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_SPI=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_CMD_BOOTSTAGE=y +CONFIG_BOOTSTD_FULL=y CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y --2.40.1
Quoted 12 lines · Shantur Rathore
RockPro64 has a 16MB onboard SPI chip and current u-boot takes around 2MB, we can enable more features.
Updating config to enable SPI commands and full BootSTD support.--- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/rockpro64-rk3399_defconfig +0
-0
configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 49
Quoted 4 lines
configs/rockpro64-rk3399_defconfig +1
-0@@ -46,10 +46,12 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_SPI=y
The CMD_SPI is not used to interact with the SPI flash.
CMD_SF is already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.
configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 54
Quoted 5 lines
configs/rockpro64-rk3399_defconfig +1
-0CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_CMD_BOOTSTAGE=y +CONFIG_BOOTSTD_FULL=y
What is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Regards,
Jonas
Quoted 3 lines
configs/rockpro64-rk3399_defconfig +0
-0CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y
Hi Jonas,
Quoted 5 lines
The
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.
You are right, this is not needed, thanks for correcting me. I will update my patch.
Quoted 5 lines
What is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
By default standard boot only allows you to boot from the first available boot device.
This board supports SDCard, NVME (via PCIe port), USB and network boot and with BOOTSTD_FULL we can choose what to exactly boot. The boot_targets environment variable only allows you to choose which device to boot, not which boot method / flow to use.
We have ample space in SPI Flash, so why not let it have the full potential of U-Boot by default.
Kind regards,
Shantur
Quoted 43 lines · Jonas Karlman
Quoted 12 lines · Shantur Rathore
RockPro64 has a 16MB onboard SPI chip and current u-boot takes around 2MB, we can enable more features.
Updating config to enable SPI commands and full BootSTD support.--- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/rockpro64-rk3399_defconfig +0
-0configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 49
Quoted 4 lines
configs/rockpro64-rk3399_defconfig +1
-0@@ -46,10 +46,12 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_SPI=yThe
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 54
Quoted 5 lines
configs/rockpro64-rk3399_defconfig +1
-0CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_CMD_BOOTSTAGE=y +CONFIG_BOOTSTD_FULL=yWhat is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Regards,
JonasQuoted 3 lines
configs/rockpro64-rk3399_defconfig +0
-0CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y
Hi Shantur,
Quoted 17 lines · Shantur Rathore
Hi Jonas,
Quoted 5 lines
The
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.You are right, this is not needed, thanks for correcting me. I will update my patch.
Quoted 5 lines
What is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Quoted 8 lines
By default standard boot only allows you to boot from the first available boot device.
This board supports SDCard, NVME (via PCIe port), USB and network boot and withBOOTSTD_FULLwe can choose what to exactly boot. Theboot_targetsenvironment variable only allows you to choose which device to boot, not which boot method / flow to use.
We have ample space in SPI Flash, so why not let it have the full potential of U-Boot by default.
You can control boot targets using the boot_targets env var and boot methods using the bootmeths env var.
https://docs.u-boot.org/en/latest/develop/bootstd.html#controlling-ordering
For normal generic use the full bootstd commands should not be needed, do you have special scripting requirements that require access to full bootstd commands?
All rockchip boards use standard boot, this only enables full commands for one particular board, why is this board special? Or is there merit to imply enable of full commands for all rockchip boards?
Regards,
Jonas
Quoted 48 lines
Kind regards,
ShanturQuoted 43 lines · Jonas Karlman
Quoted 12 lines · Shantur Rathore
RockPro64 has a 16MB onboard SPI chip and current u-boot takes around 2MB, we can enable more features.
Updating config to enable SPI commands and full BootSTD support.--- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/rockpro64-rk3399_defconfig +0
-0configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 49
Quoted 4 lines
configs/rockpro64-rk3399_defconfig +1
-0@@ -46,10 +46,12 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_SPI=yThe
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 54
Quoted 5 lines
configs/rockpro64-rk3399_defconfig +1
-0CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_CMD_BOOTSTAGE=y +CONFIG_BOOTSTD_FULL=yWhat is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Regards,
JonasQuoted 3 lines
configs/rockpro64-rk3399_defconfig +0
-0CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y
Hey Jonas,
Quoted 6 lines
For normal generic use the full bootstd commands should not be needed, do you have special scripting requirements that require access to full bootstd commands?
All rockchip boards use standard boot, this only enables full commands for one particular board, why is this board special? Or
This board isn't special.
Quoted 2 lines
is there merit
to imply enable of full commands for all rockchip boards?
Maybe not only on rockchip boards but all boards.
Do we need full commands in general ? - Maybe not
Then why did you need to enable full commands ?
Bootstd works when the distro used is supporting it. In my case when I installed the distro (Armbian), EFI was installed to /boot/efi/EFI/debian by default instead of /boot/efi/EFI/boot as expected by Bootstd.
Bootstd couldn't find the EFI and failed to boot. In this scenario there is no way to figure out what's going on, what bootmethods / bootflows is bootstd able to find or try to manually boot some. To be able to support the smallest bit of debugging you end up building U-Boot from scratch to enable bootstd full for bootstd info commands.
All other commands in U-boot by default come with options to display more information ( for ex. nvme info, nvme detail, usb tree, usb info, usb dev, fatinfo and many more ) then why is bootstd restricted? Thus, in my opinion we should enable BOOTSTD_FULL for users to be able to see more information.
Restricting might be beneficial for end user devices but atleast development devices like RockPro64 should come with BOOTSTD_FULL by default.
Kind regards,
Shantur
Quoted 95 lines · Jonas Karlman
Hi Shantur,
Quoted 17 lines · Shantur Rathore
Hi Jonas,
Quoted 5 lines
The
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.You are right, this is not needed, thanks for correcting me. I will update my patch.
Quoted 5 lines
What is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Quoted 8 lines
By default standard boot only allows you to boot from the first available boot device.
This board supports SDCard, NVME (via PCIe port), USB and network boot and withBOOTSTD_FULLwe can choose what to exactly boot. Theboot_targetsenvironment variable only allows you to choose which device to boot, not which boot method / flow to use.
We have ample space in SPI Flash, so why not let it have the full potential of U-Boot by default.You can control boot targets using the
boot_targetsenv var and boot methods using the bootmeths env var.https://docs.u-boot.org/en/latest/develop/bootstd.html#controlling-ordering
For normal generic use the full bootstd commands should not be needed, do you have special scripting requirements that require access to full bootstd commands?
All rockchip boards use standard boot, this only enables full commands for one particular board, why is this board special? Or is there merit to imply enable of full commands for all rockchip boards?
Regards,
JonasQuoted 48 lines
Kind regards,
ShanturQuoted 43 lines · Jonas Karlman
Quoted 12 lines · Shantur Rathore
RockPro64 has a 16MB onboard SPI chip and current u-boot takes around 2MB, we can enable more features.
Updating config to enable SPI commands and full BootSTD support.--- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/rockpro64-rk3399_defconfig +0
-0configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 49
Quoted 4 lines
configs/rockpro64-rk3399_defconfig +1
-0@@ -46,10 +46,12 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_SPI=yThe
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 54
Quoted 5 lines
configs/rockpro64-rk3399_defconfig +1
-0CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_CMD_BOOTSTAGE=y +CONFIG_BOOTSTD_FULL=yWhat is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Regards,
JonasQuoted 3 lines
configs/rockpro64-rk3399_defconfig +0
-0CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y
Hi Shantur,
Quoted 29 lines · Shantur Rathore
Hey Jonas,
Quoted 6 lines
For normal generic use the full bootstd commands should not be needed, do you have special scripting requirements that require access to full bootstd commands?
All rockchip boards use standard boot, this only enables full commands for one particular board, why is this board special? Or
This board isn't special.
Quoted 2 lines
is there merit
to imply enable of full commands for all rockchip boards?Maybe not only on rockchip boards but all boards.
Do we need full commands in general ? - Maybe not
Then why did you need to enable full commands ?
Bootstd works when the distro used is supporting it. In my case when I installed the distro (Armbian), EFI was installed to/boot/efi/EFI/debianby default instead of/boot/efi/EFI/bootas expected by Bootstd.
Bootstd couldn't find the EFI and failed to boot. In this scenario there is no way to figure out what's going on, what bootmethods / bootflows is bootstd able to find or try to manually boot some. To be able to support the smallest bit of debugging you end up building U-Boot from scratch to enable bootstd full for bootstd info commands.
Quoted 8 lines
All other commands in U-boot by default come with options to display more information ( for ex. nvme info, nvme detail, usb tree, usb info, usb dev, fatinfo and many more ) then why is bootstd restricted? Thus, in my opinion we should enable
BOOTSTD_FULLfor users to be able to see more information.
Restricting might be beneficial for end user devices but atleast development devices like RockPro64 should come withBOOTSTD_FULLby default.
Thanks for clarifying the need! And I also see the benefit of having full feature commands enabled.
For RK35xx family of devices I have tried to ensure all boards have same features and sounds like something like below could benefit all rk boards, or at least for ROCKCHIP_RK3568 and ROCKCHIP_RK3588 boards.
arch/arm/Kconfig +1 -0
@@ -1987,6 +1987,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
Regards,
Jonas
Quoted 100 lines
Kind regards,
ShanturQuoted 95 lines · Jonas Karlman
Hi Shantur,
Quoted 17 lines · Shantur Rathore
Hi Jonas,
Quoted 5 lines
The
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.You are right, this is not needed, thanks for correcting me. I will update my patch.
Quoted 5 lines
What is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Quoted 8 lines
By default standard boot only allows you to boot from the first available boot device.
This board supports SDCard, NVME (via PCIe port), USB and network boot and withBOOTSTD_FULLwe can choose what to exactly boot. Theboot_targetsenvironment variable only allows you to choose which device to boot, not which boot method / flow to use.
We have ample space in SPI Flash, so why not let it have the full potential of U-Boot by default.You can control boot targets using the
boot_targetsenv var and boot methods using the bootmeths env var.https://docs.u-boot.org/en/latest/develop/bootstd.html#controlling-ordering
For normal generic use the full bootstd commands should not be needed, do you have special scripting requirements that require access to full bootstd commands?
All rockchip boards use standard boot, this only enables full commands for one particular board, why is this board special? Or is there merit to imply enable of full commands for all rockchip boards?
Regards,
JonasQuoted 48 lines
Kind regards,
ShanturQuoted 43 lines · Jonas Karlman
Quoted 12 lines · Shantur Rathore
RockPro64 has a 16MB onboard SPI chip and current u-boot takes around 2MB, we can enable more features.
Updating config to enable SPI commands and full BootSTD support.--- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/rockpro64-rk3399_defconfig +0
-0configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 49
Quoted 4 lines
configs/rockpro64-rk3399_defconfig +1
-0@@ -46,10 +46,12 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_SPI=yThe
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 54
Quoted 5 lines
configs/rockpro64-rk3399_defconfig +1
-0CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_CMD_BOOTSTAGE=y +CONFIG_BOOTSTD_FULL=yWhat is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Regards,
JonasQuoted 3 lines
configs/rockpro64-rk3399_defconfig +0
-0CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y
Hey Jonas,
This sounds like a good idea.
Please implement this.
Kind regards,
Shantur
Quoted 168 lines · Jonas Karlman
Hi Shantur,
Quoted 29 lines · Shantur Rathore
Hey Jonas,
Quoted 6 lines
For normal generic use the full bootstd commands should not be needed, do you have special scripting requirements that require access to full bootstd commands?
All rockchip boards use standard boot, this only enables full commands for one particular board, why is this board special? Or
This board isn't special.
Quoted 2 lines
is there merit
to imply enable of full commands for all rockchip boards?Maybe not only on rockchip boards but all boards.
Do we need full commands in general ? - Maybe not
Then why did you need to enable full commands ?
Bootstd works when the distro used is supporting it. In my case when I installed the distro (Armbian), EFI was installed to/boot/efi/EFI/debianby default instead of/boot/efi/EFI/bootas expected by Bootstd.
Bootstd couldn't find the EFI and failed to boot. In this scenario there is no way to figure out what's going on, what bootmethods / bootflows is bootstd able to find or try to manually boot some. To be able to support the smallest bit of debugging you end up building U-Boot from scratch to enable bootstd full for bootstd info commands.Quoted 8 lines
All other commands in U-boot by default come with options to display more information ( for ex. nvme info, nvme detail, usb tree, usb info, usb dev, fatinfo and many more ) then why is bootstd restricted? Thus, in my opinion we should enable
BOOTSTD_FULLfor users to be able to see more information.
Restricting might be beneficial for end user devices but atleast development devices like RockPro64 should come withBOOTSTD_FULLby default.Thanks for clarifying the need! And I also see the benefit of having full feature commands enabled.
For RK35xx family of devices I have tried to ensure all boards have same features and sounds like something like below could benefit all rk boards, or at least for
ROCKCHIP_RK3568andROCKCHIP_RK3588boards.arch/arm/Kconfig +1
-0@@ -1987,6 +1987,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_SYSRESETRegards,
JonasQuoted 100 lines
Kind regards,
ShanturQuoted 95 lines · Jonas Karlman
Hi Shantur,
Quoted 17 lines · Shantur Rathore
Hi Jonas,
Quoted 5 lines
The
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.You are right, this is not needed, thanks for correcting me. I will update my patch.
Quoted 5 lines
What is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Quoted 8 lines
By default standard boot only allows you to boot from the first available boot device.
This board supports SDCard, NVME (via PCIe port), USB and network boot and withBOOTSTD_FULLwe can choose what to exactly boot. Theboot_targetsenvironment variable only allows you to choose which device to boot, not which boot method / flow to use.
We have ample space in SPI Flash, so why not let it have the full potential of U-Boot by default.You can control boot targets using the
boot_targetsenv var and boot methods using the bootmeths env var.https://docs.u-boot.org/en/latest/develop/bootstd.html#controlling-ordering
For normal generic use the full bootstd commands should not be needed, do you have special scripting requirements that require access to full bootstd commands?
All rockchip boards use standard boot, this only enables full commands for one particular board, why is this board special? Or is there merit to imply enable of full commands for all rockchip boards?
Regards,
JonasQuoted 48 lines
Kind regards,
ShanturQuoted 43 lines · Jonas Karlman
Quoted 12 lines · Shantur Rathore
RockPro64 has a 16MB onboard SPI chip and current u-boot takes around 2MB, we can enable more features.
Updating config to enable SPI commands and full BootSTD support.--- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/rockpro64-rk3399_defconfig +0
-0configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 49
Quoted 4 lines
configs/rockpro64-rk3399_defconfig +1
-0@@ -46,10 +46,12 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_SPI=yThe
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 54
Quoted 5 lines
configs/rockpro64-rk3399_defconfig +1
-0CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_CMD_BOOTSTAGE=y +CONFIG_BOOTSTD_FULL=yWhat is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Regards,
JonasQuoted 3 lines
configs/rockpro64-rk3399_defconfig +0
-0CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y
PATCH v2 1/1 arch: arm: Kconfig: Enable BOOTSTD_FULL for Rockchip SoCs
--- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
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
Signature · 1 line
2.40.1
Re: [PATCH v2] arch: arm: Kconfig: Enable BOOTSTD_FULL for Rockchip SoCs
Quoted 5 lines · Shantur Rathore
Signed-off-by Shantur Rathore <[email protected]>--- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
But it needs a commit message
Quoted 16 lines
arch/arm/Kconfig +1
-1@@ -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 --2.40.1
Hi Jonas / Simon,
I have submitted a patch based on Jonas's suggestion. Apologies, I am new to email based patch management and it went as new thread (at least for me)
It's here - https://lore.kernel.org/u-boot/[email protected]/
Kind regards,
Shantur
Quoted 178 lines · Shantur Rathore
Hey Jonas,
This sounds like a good idea.
Please implement this.Kind regards,
ShanturQuoted 168 lines · Jonas Karlman
Hi Shantur,
Quoted 29 lines · Shantur Rathore
Hey Jonas,
Quoted 6 lines
For normal generic use the full bootstd commands should not be needed, do you have special scripting requirements that require access to full bootstd commands?
All rockchip boards use standard boot, this only enables full commands for one particular board, why is this board special? Or
This board isn't special.
Quoted 2 lines
is there merit
to imply enable of full commands for all rockchip boards?Maybe not only on rockchip boards but all boards.
Do we need full commands in general ? - Maybe not
Then why did you need to enable full commands ?
Bootstd works when the distro used is supporting it. In my case when I installed the distro (Armbian), EFI was installed to/boot/efi/EFI/debianby default instead of/boot/efi/EFI/bootas expected by Bootstd.
Bootstd couldn't find the EFI and failed to boot. In this scenario there is no way to figure out what's going on, what bootmethods / bootflows is bootstd able to find or try to manually boot some. To be able to support the smallest bit of debugging you end up building U-Boot from scratch to enable bootstd full for bootstd info commands.Quoted 8 lines
All other commands in U-boot by default come with options to display more information ( for ex. nvme info, nvme detail, usb tree, usb info, usb dev, fatinfo and many more ) then why is bootstd restricted? Thus, in my opinion we should enable
BOOTSTD_FULLfor users to be able to see more information.
Restricting might be beneficial for end user devices but atleast development devices like RockPro64 should come withBOOTSTD_FULLby default.Thanks for clarifying the need! And I also see the benefit of having full feature commands enabled.
For RK35xx family of devices I have tried to ensure all boards have same features and sounds like something like below could benefit all rk boards, or at least for
ROCKCHIP_RK3568andROCKCHIP_RK3588boards.arch/arm/Kconfig +1
-0@@ -1987,6 +1987,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_SYSRESETRegards,
JonasQuoted 100 lines
Kind regards,
ShanturQuoted 95 lines · Jonas Karlman
Hi Shantur,
Quoted 17 lines · Shantur Rathore
Hi Jonas,
Quoted 5 lines
The
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.You are right, this is not needed, thanks for correcting me. I will update my patch.
Quoted 5 lines
What is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Quoted 8 lines
By default standard boot only allows you to boot from the first available boot device.
This board supports SDCard, NVME (via PCIe port), USB and network boot and withBOOTSTD_FULLwe can choose what to exactly boot. Theboot_targetsenvironment variable only allows you to choose which device to boot, not which boot method / flow to use.
We have ample space in SPI Flash, so why not let it have the full potential of U-Boot by default.You can control boot targets using the
boot_targetsenv var and boot methods using the bootmeths env var.https://docs.u-boot.org/en/latest/develop/bootstd.html#controlling-ordering
For normal generic use the full bootstd commands should not be needed, do you have special scripting requirements that require access to full bootstd commands?
All rockchip boards use standard boot, this only enables full commands for one particular board, why is this board special? Or is there merit to imply enable of full commands for all rockchip boards?
Regards,
JonasQuoted 48 lines
Kind regards,
ShanturQuoted 43 lines · Jonas Karlman
Quoted 12 lines · Shantur Rathore
RockPro64 has a 16MB onboard SPI chip and current u-boot takes around 2MB, we can enable more features.
Updating config to enable SPI commands and full BootSTD support.--- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/rockpro64-rk3399_defconfig +0
-0configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 49
Quoted 4 lines
configs/rockpro64-rk3399_defconfig +1
-0@@ -46,10 +46,12 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_SPI=yThe
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 54
Quoted 5 lines
configs/rockpro64-rk3399_defconfig +1
-0CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_CMD_BOOTSTAGE=y +CONFIG_BOOTSTD_FULL=yWhat is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Regards,
JonasQuoted 3 lines
configs/rockpro64-rk3399_defconfig +0
-0CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y
Simon Glass
Reviewed-byHi Jonas,
Quoted 35 lines · Jonas Karlman
Hi Shantur,
Quoted 17 lines · Shantur Rathore
Hi Jonas,
Quoted 5 lines
The
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.You are right, this is not needed, thanks for correcting me. I will update my patch.
Quoted 5 lines
What is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Quoted 8 lines
By default standard boot only allows you to boot from the first available boot device.
This board supports SDCard, NVME (via PCIe port), USB and network boot and withBOOTSTD_FULLwe can choose what to exactly boot. Theboot_targetsenvironment variable only allows you to choose which device to boot, not which boot method / flow to use.
We have ample space in SPI Flash, so why not let it have the full potential of U-Boot by default.You can control boot targets using the
boot_targetsenv var and boot methods using the bootmeths env var.https://docs.u-boot.org/en/latest/develop/bootstd.html#controlling-ordering
Quoted 7 lines
For normal generic use the full bootstd commands should not be needed, do you have special scripting requirements that require access to full bootstd commands?
All rockchip boards use standard boot, this only enables full commands for one particular board, why is this board special? Or is there merit to imply enable of full commands for all rockchip boards?
I suppose we do this in a lot of cases, where we enable commands and other features on various boards. So I don't have any objection to this. Certainly it is a pain to use bootstd for development and debugging of booting if you cannot use the full command set.
Regards,
Simon
Quoted 53 lines
Regards,
JonasQuoted 48 lines
Kind regards,
ShanturQuoted 43 lines · Jonas Karlman
Quoted 12 lines · Shantur Rathore
RockPro64 has a 16MB onboard SPI chip and current u-boot takes around 2MB, we can enable more features.
Updating config to enable SPI commands and full BootSTD support.--- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/rockpro64-rk3399_defconfig +0
-0configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 49
Quoted 4 lines
configs/rockpro64-rk3399_defconfig +1
-0@@ -46,10 +46,12 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_SPI=yThe
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 54
Quoted 5 lines
configs/rockpro64-rk3399_defconfig +1
-0CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_CMD_BOOTSTAGE=y +CONFIG_BOOTSTD_FULL=yWhat is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Regards,
JonasQuoted 3 lines
configs/rockpro64-rk3399_defconfig +0
-0CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y
Hi Simon,
Quoted 42 lines · Simon Glass
Hi Jonas,
Quoted 39 lines · Jonas Karlman
Hi Shantur,
Quoted 17 lines · Shantur Rathore
Hi Jonas,
Quoted 5 lines
The
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.You are right, this is not needed, thanks for correcting me. I will update my patch.
Quoted 5 lines
What is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Quoted 8 lines
By default standard boot only allows you to boot from the first available boot device.
This board supports SDCard, NVME (via PCIe port), USB and network boot and withBOOTSTD_FULLwe can choose what to exactly boot. Theboot_targetsenvironment variable only allows you to choose which device to boot, not which boot method / flow to use.
We have ample space in SPI Flash, so why not let it have the full potential of U-Boot by default.You can control boot targets using the
boot_targetsenv var and boot methods using the bootmeths env var.https://docs.u-boot.org/en/latest/develop/bootstd.html#controlling-ordering
For normal generic use the full bootstd commands should not be needed, do you have special scripting requirements that require access to full bootstd commands?
Quoted 8 lines
Quoted 3 lines
All rockchip boards use standard boot, this only enables full commands for one particular board, why is this board special? Or is there merit to imply enable of full commands for all rockchip boards?
I suppose we do this in a lot of cases, where we enable commands and other features on various boards. So I don't have any objection to this. Certainly it is a pain to use bootstd for development and debugging of booting if you cannot use the full command set.
I have no particular objection either, I just want to understand the need, and if this is something we should apply to more boards.
For RK35xx family of devices I have tried to ensure all boards have similar commands and features enabled, at least for the features the board support. So my thought now is if we should imply this Kconfig option for ROCKCHIP_RK3568 and ROCKCHIP_RK3588.
Use of different features is also rather annoying for a distro that wants to support a broad range of devices of a soc family, and U-Boot for boards of the same soc family behave differently.
Regards,
Jonas
Quoted 59 lines
Reviewed-by Simon Glass <[email protected]>Regards,
SimonQuoted 53 lines
Regards,
JonasQuoted 48 lines
Kind regards,
ShanturQuoted 43 lines · Jonas Karlman
Quoted 12 lines · Shantur Rathore
RockPro64 has a 16MB onboard SPI chip and current u-boot takes around 2MB, we can enable more features.
Updating config to enable SPI commands and full BootSTD support.--- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/rockpro64-rk3399_defconfig +0
-0configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 49
Quoted 4 lines
configs/rockpro64-rk3399_defconfig +1
-0@@ -46,10 +46,12 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_SPI=yThe
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 54
Quoted 5 lines
configs/rockpro64-rk3399_defconfig +1
-0CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_CMD_BOOTSTAGE=y +CONFIG_BOOTSTD_FULL=yWhat is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Regards,
JonasQuoted 3 lines
configs/rockpro64-rk3399_defconfig +0
-0CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y
Hi Jonas,
Quoted 55 lines · Jonas Karlman
Hi Simon,
Quoted 42 lines · Simon Glass
Hi Jonas,
Quoted 39 lines · Jonas Karlman
Hi Shantur,
Quoted 17 lines · Shantur Rathore
Hi Jonas,
Quoted 5 lines
The
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.You are right, this is not needed, thanks for correcting me. I will update my patch.
Quoted 5 lines
What is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Quoted 8 lines
By default standard boot only allows you to boot from the first available boot device.
This board supports SDCard, NVME (via PCIe port), USB and network boot and withBOOTSTD_FULLwe can choose what to exactly boot. Theboot_targetsenvironment variable only allows you to choose which device to boot, not which boot method / flow to use.
We have ample space in SPI Flash, so why not let it have the full potential of U-Boot by default.You can control boot targets using the
boot_targetsenv var and boot methods using the bootmeths env var.https://docs.u-boot.org/en/latest/develop/bootstd.html#controlling-ordering
For normal generic use the full bootstd commands should not be needed, do you have special scripting requirements that require access to full bootstd commands?
Quoted 8 lines
Quoted 3 lines
All rockchip boards use standard boot, this only enables full commands for one particular board, why is this board special? Or is there merit to imply enable of full commands for all rockchip boards?
I suppose we do this in a lot of cases, where we enable commands and other features on various boards. So I don't have any objection to this. Certainly it is a pain to use bootstd for development and debugging of booting if you cannot use the full command set.
Quoted 7 lines
I have no particular objection either, I just want to understand the need, and if this is something we should apply to more boards.
For RK35xx family of devices I have tried to ensure all boards have similar commands and features enabled, at least for the features the board support. So my thought now is if we should imply this
Kconfigoption forROCKCHIP_RK3568andROCKCHIP_RK3588.
Yes, I understand...I happen to use rockpro64 for things so often find myself enabling various options. I enabled bootstage a while back to help with boot timing.
Quoted 4 lines
Use of different features is also rather annoying for a distro that wants to support a broad range of devices of a soc family, and U-Boot for boards of the same soc family behave differently.
Indeed. We need the basics supported on all boards and distros need to be careful not to use commands that are not widely enabled.
Regards,
Simon
Quoted 64 lines
Regards,
JonasQuoted 59 lines
Reviewed-by Simon Glass <[email protected]>Regards,
SimonQuoted 53 lines
Regards,
JonasQuoted 48 lines
Kind regards,
ShanturQuoted 43 lines · Jonas Karlman
Quoted 12 lines · Shantur Rathore
RockPro64 has a 16MB onboard SPI chip and current u-boot takes around 2MB, we can enable more features.
Updating config to enable SPI commands and full BootSTD support.--- configs/rockpro64-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/rockpro64-rk3399_defconfig +0
-0configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 49
Quoted 4 lines
configs/rockpro64-rk3399_defconfig +1
-0@@ -46,10 +46,12 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y CONFIG_CMD_PCI=y +CONFIG_CMD_SPI=yThe
CMD_SPIis not used to interact with the SPI flash.
CMD_SFis already enabled and you can use "sf probe" and any other sf related action to interact with the SPI flash on this board.configs/rockpro64-rk3399_defconfig CONFIG_CMD_BOOTZ=y · line 54
Quoted 5 lines
configs/rockpro64-rk3399_defconfig +1
-0CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_CMD_BOOTSTAGE=y +CONFIG_BOOTSTD_FULL=yWhat is the reasoning behind enabling full bootstd commands? Especially why just this board need it enabled by default.
Standard boot is already fully functional, it just does not have full features commands enabled by default.
Regards,
JonasQuoted 3 lines
configs/rockpro64-rk3399_defconfig +0
-0CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y