board/orangepi/orangepi-lite: switch to extlinux
PATCH 1/2 board/orangepi/orangepi-lite: switch to extlinux
Switch to extlinux instead of U-Boot boot script. Drop custom boot script and genimage config. Instead use common orangepi files from board/orangepi/common.
--- board/orangepi/orangepi-lite/boot.cmd | 8 ----- board/orangepi/orangepi-lite/genimage.cfg | 37 ----------------------- configs/orangepi_lite_defconfig | 12 +++----- 3 files changed, 4 insertions(+), 53 deletions(-) delete mode 100644 board/orangepi/orangepi-lite/boot.cmd delete mode 100644 board/orangepi/orangepi-lite/genimage.cfg
board/orangepi/orangepi-lite/boot.cmd deleted +0 -8
@@ -1,8 +0,0 @@ -setenv fdt_high ffffffff - -setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait - -fatload mmc 0 $kernel_addr_r zImage -fatload mmc 0 $fdt_addr_r sun8i-h3-orangepi-lite.dtb - -bootz $kernel_addr_r - $fdt_addr_r
board/orangepi/orangepi-lite/genimage.cfg deleted +0 -37
@@ -1,37 +0,0 @@ -# Minimal SD card image for the OrangePi Lite -# -image boot.vfat { - vfat { - files = { - "zImage", - "sun8i-h3-orangepi-lite.dtb", - "boot.scr" - } - } - - size = 10M -} - -image sdcard.img { - hdimage { - } - - partition u-boot { - in-partition-table = "no" - image = "u-boot-sunxi-with-spl.bin" - offset = 8K - size = 1016K # 1MB - 8KB - } - - partition boot { - partition-type = 0xC - bootable = "true" - image = "boot.vfat" - } - - partition rootfs { - partition-type = 0x83 - image = "rootfs.ext4" - size = 512M - } -}
configs/orangepi_lite_defconfig +4 -8
@@ -4,6 +4,9 @@ BR2_ARM_FPU_VFPV4=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y BR2_TARGET_GENERIC_HOSTNAME="OrangePi_Lite" BR2_TARGET_GENERIC_ISSUE="Welcome to Buildroot for the Orange Pi Lite" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/orangepi/common/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c $(BINARIES_DIR)/genimage.cfg" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.1"
@@ -11,6 +14,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="sunxi" BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/orangepi/orangepi-lite/linux-extras.config" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun8i-h3-orangepi-lite" +BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y BR2_PACKAGE_RTL8189FS=y BR2_PACKAGE_WIRELESS_TOOLS=y
@@ -25,15 +29,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="orangepi_lite" BR2_TARGET_UBOOT_NEEDS_DTC=y -BR2_TARGET_UBOOT_NEEDS_PYTHON3=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y BR2_TARGET_UBOOT_SPL=y BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin" -BR2_PACKAGE_HOST_UBOOT_TOOLS=y -BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y -BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/orangepi/orangepi-lite/boot.cmd" -BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y -BR2_PACKAGE_HOST_MTOOLS=y -BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" -BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/orangepi/orangepi-lite/genimage.cfg"
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 configs/orangepi_lite: bump kernel and u-boot versions
Bump Linux to 6.6 and U-Boot to 2024.01.
--- configs/orangepi_lite_defconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
configs/orangepi_lite_defconfig +4 -4
@@ -1,7 +1,7 @@ BR2_arm=y BR2_cortex_a7=y BR2_ARM_FPU_VFPV4=y -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y BR2_TARGET_GENERIC_HOSTNAME="OrangePi_Lite" BR2_TARGET_GENERIC_ISSUE="Welcome to Buildroot for the Orange Pi Lite" BR2_ROOTFS_POST_BUILD_SCRIPT="board/orangepi/common/post-build.sh"
@@ -9,11 +9,11 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c $(BINARIES_DIR)/genimage.cfg" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.1" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.16" BR2_LINUX_KERNEL_DEFCONFIG="sunxi" BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/orangepi/orangepi-lite/linux-extras.config" BR2_LINUX_KERNEL_DTS_SUPPORT=y -BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun8i-h3-orangepi-lite" +BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun8i-h3-orangepi-lite" BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y BR2_PACKAGE_RTL8189FS=y
@@ -26,7 +26,7 @@ BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_VERSION=y -BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2024.01" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="orangepi_lite" BR2_TARGET_UBOOT_NEEDS_DTC=y BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 5 lines · On Tue, 20 Feb 2024 06:19:25 +0100 Jan Kraval <[email protected]> wrote:
Switch to extlinux instead of U-Boot boot script. Drop custom boot script and genimage config. Instead use common orangepi files from board/orangepi/common.
Signed-off-by Jan Kraval <[email protected]>
Thanks for this patch, it looks good, except for one question, below.
configs/orangepi_lite_defconfig BR2_TARGET_UBOOT_CUSTOM_VERSION=y · line 28
Quoted 5 lines
configs/orangepi_lite_defconfig +0
-1@@ -25,15 +29,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="orangepi_lite" BR2_TARGET_UBOOT_NEEDS_DTC=y -BR2_TARGET_UBOOT_NEEDS_PYTHON3=y
Why is this option being dropped? I don't see how the move to extlinux has anything to do with this. For a given version/configuration of U-Boot (which are not changed in this commit), whether host-python3 is needed or not should not change.
Could you clarify?
Make sure to test your configuration with ./utils/docker-run, to verify that you are not dependent on system-provided packages.
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 20 lines · Thomas Petazzoni
Quoted 5 lines · On Tue, 20 Feb 2024 06:19:25 +0100 Jan Kraval <[email protected]> wrote:
Switch to extlinux instead of U-Boot boot script. Drop custom boot script and genimage config. Instead use common orangepi files from board/orangepi/common.
Signed-off-by Jan Kraval <[email protected]>Thanks for this patch, it looks good, except for one question, below.
configs/orangepi_lite_defconfig BR2_TARGET_UBOOT_CUSTOM_VERSION=y · line 28
Quoted 5 lines
configs/orangepi_lite_defconfig +0
-1@@ -25,15 +29,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="orangepi_lite" BR2_TARGET_UBOOT_NEEDS_DTC=y -BR2_TARGET_UBOOT_NEEDS_PYTHON3=yWhy is this option being dropped? I don't see how the move to extlinux has anything to do with this. For a given version/configuration of U-Boot (which are not changed in this commit), whether host-python3 is needed or not should not change.
Quoted 1 line
Could you clarify?
Hi Thomas,
BR2_TARGET_UBOOT_NEEDS_PYTHON3=y was removed by make savedefconfig. Actual
value did not change, it is enabled automatically by|BR2_TARGET_UBOOT_NEEDS_PYLIBFDT, which remained unchanged in the defconfig. If there is some reason to keep the line in the defconfig, please let me know, I'll send patch v2 Regards, Jan |
Quoted 6 lines
Make sure to test your configuration with ./utils/docker-run, to verify that you are not dependent on system-provided packages.
Thanks!
Thomas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Jan,
Quoted 4 lines · On Wed, 22 May 2024 06:37:29 +0200 Jan Kraval <[email protected]> wrote:
BR2_TARGET_UBOOT_NEEDS_PYTHON3=y was removed by make savedefconfig. Actual
value did not change, it is enabled automatically by|BR2_TARGET_UBOOT_NEEDS_PYLIBFDT, which remained unchanged in the defconfig. If there is some reason to keep the line in the defconfig,
please let me know, I'll send patch v2 Regards, Jan |
Makes sense, no need to send a v2 then!
Best regards,
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Romain Naour via buildroot
AppliedHello Jan, All,
Le 30/05/2024 à 11:25, Thomas Petazzoni via buildroot a écrit :
Quoted 11 lines
Hello Jan,
Quoted 4 lines · On Wed, 22 May 2024 06:37:29 +0200 Jan Kraval <[email protected]> wrote:
BR2_TARGET_UBOOT_NEEDS_PYTHON3=y was removed by make savedefconfig. Actual
value did not change, it is enabled automatically by|BR2_TARGET_UBOOT_NEEDS_PYLIBFDT, which remained unchanged in the defconfig. If there is some reason to keep the line in the defconfig,
please let me know, I'll send patch v2 Regards, Jan |Makes sense, no need to send a v2 then!
Applied to master after adding BR2_DOWNLOAD_FORCE_CHECK_HASHES and hash files, thanks.
Best regards,
Romain
Quoted 4 lines
Best regards,
Thomas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello,
Le 14/07/2024 à 21:46, Romain Naour a écrit :
Quoted 13 lines
Hello Jan, All,
Le 30/05/2024 à 11:25, Thomas Petazzoni via buildroot a écrit :
Quoted 10 lines
Hello Jan,
Quoted 4 lines · On Wed, 22 May 2024 06:37:29 +0200 Jan Kraval <[email protected]> wrote:
BR2_TARGET_UBOOT_NEEDS_PYTHON3=y was removed by make savedefconfig. Actual
value did not change, it is enabled automatically by|BR2_TARGET_UBOOT_NEEDS_PYLIBFDT, which remained unchanged in the defconfig. If there is some reason to keep the line in the defconfig,
please let me know, I'll send patch v2 Regards, Jan |
Quoted 4 lines
Quoted 1 line
Makes sense, no need to send a v2 then!
Applied to master after adding
BR2_DOWNLOAD_FORCE_CHECK_HASHESand hash files, thanks.
I added a followup commit to add BR2_TARGET_UBOOT_NEEDS_OPENSSL=y since uboot was failing using docker-run.
https://gitlab.com/buildroot.org/buildroot/-/commit/14192d722c09ca5355566303e8808d9f2c83ad31
Best regards,
Romain
Quoted 10 lines
Best regards,
RomainQuoted 4 lines
Best regards,
Thomas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot