* [Buildroot] [PATCH 1/2] board/orangepi/orangepi-lite: switch to extlinux
@ 2024-02-20 5:19 Jan Kraval
2024-02-20 5:19 ` [Buildroot] [PATCH 2/2] configs/orangepi_lite: bump kernel and u-boot versions Jan Kraval
2024-05-13 21:30 ` [Buildroot] [PATCH 1/2] board/orangepi/orangepi-lite: switch to extlinux Thomas Petazzoni via buildroot
0 siblings, 2 replies; 7+ messages in thread
From: Jan Kraval @ 2024-02-20 5:19 UTC (permalink / raw)
To: buildroot; +Cc: Jan Kraval
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 <jan.kraval@gmail.com>
---
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
diff --git a/board/orangepi/orangepi-lite/boot.cmd b/board/orangepi/orangepi-lite/boot.cmd
deleted file mode 100644
index 5c29dabfe8..0000000000
--- a/board/orangepi/orangepi-lite/boot.cmd
+++ /dev/null
@@ -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
diff --git a/board/orangepi/orangepi-lite/genimage.cfg b/board/orangepi/orangepi-lite/genimage.cfg
deleted file mode 100644
index b422a751a8..0000000000
--- a/board/orangepi/orangepi-lite/genimage.cfg
+++ /dev/null
@@ -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
- }
-}
diff --git a/configs/orangepi_lite_defconfig b/configs/orangepi_lite_defconfig
index e834816456..eff5af938b 100644
--- a/configs/orangepi_lite_defconfig
+++ b/configs/orangepi_lite_defconfig
@@ -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"
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 7+ messages in thread* [Buildroot] [PATCH 2/2] configs/orangepi_lite: bump kernel and u-boot versions
2024-02-20 5:19 [Buildroot] [PATCH 1/2] board/orangepi/orangepi-lite: switch to extlinux Jan Kraval
@ 2024-02-20 5:19 ` Jan Kraval
2024-05-13 21:30 ` [Buildroot] [PATCH 1/2] board/orangepi/orangepi-lite: switch to extlinux Thomas Petazzoni via buildroot
1 sibling, 0 replies; 7+ messages in thread
From: Jan Kraval @ 2024-02-20 5:19 UTC (permalink / raw)
To: buildroot; +Cc: Jan Kraval
Bump Linux to 6.6 and U-Boot to 2024.01.
Signed-off-by: Jan Kraval <jan.kraval@gmail.com>
---
configs/orangepi_lite_defconfig | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/configs/orangepi_lite_defconfig b/configs/orangepi_lite_defconfig
index eff5af938b..1bb1bf3ad1 100644
--- a/configs/orangepi_lite_defconfig
+++ b/configs/orangepi_lite_defconfig
@@ -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
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [Buildroot] [PATCH 1/2] board/orangepi/orangepi-lite: switch to extlinux
2024-02-20 5:19 [Buildroot] [PATCH 1/2] board/orangepi/orangepi-lite: switch to extlinux Jan Kraval
2024-02-20 5:19 ` [Buildroot] [PATCH 2/2] configs/orangepi_lite: bump kernel and u-boot versions Jan Kraval
@ 2024-05-13 21:30 ` Thomas Petazzoni via buildroot
2024-05-22 4:37 ` Jan Kraval
1 sibling, 1 reply; 7+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-05-13 21:30 UTC (permalink / raw)
To: Jan Kraval; +Cc: buildroot
On Tue, 20 Feb 2024 06:19:25 +0100
Jan Kraval <jan.kraval@gmail.com> 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 <jan.kraval@gmail.com>
Thanks for this patch, it looks good, except for one question, below.
> @@ -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
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] [PATCH 1/2] board/orangepi/orangepi-lite: switch to extlinux
2024-05-13 21:30 ` [Buildroot] [PATCH 1/2] board/orangepi/orangepi-lite: switch to extlinux Thomas Petazzoni via buildroot
@ 2024-05-22 4:37 ` Jan Kraval
2024-05-30 9:25 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 7+ messages in thread
From: Jan Kraval @ 2024-05-22 4:37 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: buildroot
On 13. 05. 24 23:30, Thomas Petazzoni wrote:
> On Tue, 20 Feb 2024 06:19:25 +0100
> Jan Kraval <jan.kraval@gmail.com> 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 <jan.kraval@gmail.com>
> Thanks for this patch, it looks good, except for one question, below.
>
>> @@ -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?
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 |
> 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
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] [PATCH 1/2] board/orangepi/orangepi-lite: switch to extlinux
2024-05-22 4:37 ` Jan Kraval
@ 2024-05-30 9:25 ` Thomas Petazzoni via buildroot
2024-07-14 19:46 ` Romain Naour via buildroot
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-05-30 9:25 UTC (permalink / raw)
To: Jan Kraval; +Cc: buildroot
Hello Jan,
On Wed, 22 May 2024 06:37:29 +0200
Jan Kraval <jan.kraval@gmail.com> 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
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] [PATCH 1/2] board/orangepi/orangepi-lite: switch to extlinux
2024-05-30 9:25 ` Thomas Petazzoni via buildroot
@ 2024-07-14 19:46 ` Romain Naour via buildroot
2024-07-14 20:27 ` Romain Naour via buildroot
0 siblings, 1 reply; 7+ messages in thread
From: Romain Naour via buildroot @ 2024-07-14 19:46 UTC (permalink / raw)
To: Thomas Petazzoni, Jan Kraval; +Cc: buildroot
Hello Jan, All,
Le 30/05/2024 à 11:25, Thomas Petazzoni via buildroot a écrit :
> Hello Jan,
>
> On Wed, 22 May 2024 06:37:29 +0200
> Jan Kraval <jan.kraval@gmail.com> 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
>
> Best regards,
>
> Thomas
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Buildroot] [PATCH 1/2] board/orangepi/orangepi-lite: switch to extlinux
2024-07-14 19:46 ` Romain Naour via buildroot
@ 2024-07-14 20:27 ` Romain Naour via buildroot
0 siblings, 0 replies; 7+ messages in thread
From: Romain Naour via buildroot @ 2024-07-14 20:27 UTC (permalink / raw)
To: Thomas Petazzoni, Jan Kraval; +Cc: buildroot
Hello,
Le 14/07/2024 à 21:46, Romain Naour a écrit :
> Hello Jan, All,
>
> Le 30/05/2024 à 11:25, Thomas Petazzoni via buildroot a écrit :
>> Hello Jan,
>>
>> On Wed, 22 May 2024 06:37:29 +0200
>> Jan Kraval <jan.kraval@gmail.com> 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.
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
>
> Best regards,
> Romain
>
>
>>
>> Best regards,
>>
>> Thomas
>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-07-14 20:28 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-20 5:19 [Buildroot] [PATCH 1/2] board/orangepi/orangepi-lite: switch to extlinux Jan Kraval
2024-02-20 5:19 ` [Buildroot] [PATCH 2/2] configs/orangepi_lite: bump kernel and u-boot versions Jan Kraval
2024-05-13 21:30 ` [Buildroot] [PATCH 1/2] board/orangepi/orangepi-lite: switch to extlinux Thomas Petazzoni via buildroot
2024-05-22 4:37 ` Jan Kraval
2024-05-30 9:25 ` Thomas Petazzoni via buildroot
2024-07-14 19:46 ` Romain Naour via buildroot
2024-07-14 20:27 ` Romain Naour via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox