Skip to contentSkip to conversation

configs/pine64_defconfig: bump Linux version to 6.1 Linux Kernel and Header version upgraded to 6.1.50 LTS

PATCH In review Javad Rahimipetroudi 2 participants 12 messages Nov 4, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 configs/pine64_defconfig: bump Linux version to 6.1 Linux Kernel and Header version upgraded to 6.1.50 LTS

---
 configs/pine64_defconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
configs/pine64_defconfig +3 -3
index c454114d2a..e2549628ee 100644
@@ -2,8 +2,8 @@ BR2_aarch64=y
 BR2_cortex_a53=y
 BR2_ARM_FPU_VFPV4=y
 
-# Linux headers same as kernel, a 5.0 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0=y
+# Linux headers same as kernel, a 6.1 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y
 
 # Firmware
 BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
@@ -32,7 +32,7 @@ BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/pine64/pine64/boot.cmd"
 # Kernel
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.0"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.60"
 BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun50i-a64-pine64"
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/7 configs/pine64_defconfig: bump ATF version to v2.9

---
 configs/pine64_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/pine64_defconfig +1 -1
index e2549628ee..8d2324260c 100644
@@ -8,7 +8,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y
 # Firmware
 BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y
-BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.7"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.9"
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50i_a64"
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y
 
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH 3/7 configs/pine64_defconfig: bump Uboot version to 2023.04

In reply to Javad Rahimipetroudi

The Uboot version has upgraded to 2023.04.
Furthermore, the custom itb was no longer required. So it has been deleted.

---
 configs/pine64_defconfig | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
configs/pine64_defconfig +4 -2
index 8d2324260c..b567462f5d 100644
@@ -16,15 +16,17 @@ BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.01"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2023.04"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="pine64_plus"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
 BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
 BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"
 BR2_TARGET_UBOOT_SPL=y
-BR2_TARGET_UBOOT_SPL_NAME="spl/sunxi-spl.bin"
+BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
+BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="SCP=/dev/null"
 BR2_PACKAGE_HOST_UBOOT_TOOLS=y
 BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y
 BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/pine64/pine64/boot.cmd"
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Re: [Buildroot] [PATCH 3/7] configs/pine64_defconfig: bump Uboot version to 2023.04

Quoted 2 lines · On Sat, 4 Nov 2023 10:54:54 +0330 Javad Rahimipetroudi…

The Uboot version has upgraded to 2023.04.
Furthermore, the custom itb was no longer required. So it has been deleted.

Where is it deleted? I don't see anything related in this commit.

Quoted 11 lines
configs/pine64_defconfig +1 -1
index 8d2324260c..b567462f5d 100644
@@ -16,15 +16,17 @@ BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.01"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2023.04"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="pine64_plus"

configs/pine64_defconfig BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y · line 29

Quoted 10 lines
configs/pine64_defconfig +3 -1
 BR2_TARGET_UBOOT_NEEDS_DTC=y
 BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
 BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"
 BR2_TARGET_UBOOT_SPL=y
-BR2_TARGET_UBOOT_SPL_NAME="spl/sunxi-spl.bin"
+BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
+BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="SCP=/dev/null"

These should most likely have some explanations in the commit log.

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
#4 lore raw

PATCH 4/7 configs/pine64_defconfig: add dynamic mdev To add networking support, dynamic mdev is required to load network drivers.

In reply to Javad Rahimipetroudi
---
 configs/pine64_defconfig | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
configs/pine64_defconfig +5 -1
index b567462f5d..5cb4b4a0b5 100644
@@ -42,9 +42,13 @@ BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
 # Filesystem
 BR2_TARGET_GENERIC_ISSUE="Welcome to PINE64"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
+BR2_SYSTEM_DHCP="eth0"
+
 BR2_TARGET_ROOTFS_EXT2=y
 BR2_TARGET_ROOTFS_EXT2_4=y
-BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="128M"
+
 BR2_PACKAGE_HOST_GENIMAGE=y
 BR2_PACKAGE_HOST_MTOOLS=y
 BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

Re: [Buildroot] [PATCH 4/7] configs/pine64_defconfig: add dynamic mdev To add networking support, dynamic mdev is required to load network drivers.

Hello,

The commit title is too long.

Quoted 10 lines · On Sat, 4 Nov 2023 10:54:55 +0330 Javad Rahimipetroudi…
---
 configs/pine64_defconfig | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
configs/pine64_defconfig +0 -0
index b567462f5d..5cb4b4a0b5 100644

configs/pine64_defconfig BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y · line 47

Quoted 9 lines
configs/pine64_defconfig +3 -1
@@ -42,9 +42,13 @@ BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
 # Filesystem
 BR2_TARGET_GENERIC_ISSUE="Welcome to PINE64"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
+BR2_SYSTEM_DHCP="eth0"
+
 BR2_TARGET_ROOTFS_EXT2=y
 BR2_TARGET_ROOTFS_EXT2_4=y
-BR2_PACKAGE_HOST_DOSFSTOOLS=y

Why are you removing this package?

configs/pine64_defconfig BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y · line 50

Quoted 1 line
configs/pine64_defconfig +1 -0
+BR2_TARGET_ROOTFS_EXT2_SIZE="128M"

This is not explained in the commit log. Why does the size needs to be increased? Is it because the Linux 6.1 kernel is bigger, and has more kernel modules? If so, this change should be together with the kernel update.

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
#6 lore raw

PATCH 5/7 configs/pine64_defconfig: remove unnecessary configs

In reply to Javad Rahimipetroudi
---
 configs/pine64_defconfig | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
configs/pine64_defconfig +1 -4
index 5cb4b4a0b5..c58bb12d94 100644
@@ -1,5 +1,4 @@
 BR2_aarch64=y
-BR2_cortex_a53=y
 BR2_ARM_FPU_VFPV4=y
 
 # Linux headers same as kernel, a 6.1 series
@@ -10,7 +9,7 @@ BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.9"
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50i_a64"
-BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y
+
 
 # Bootloader
 BR2_TARGET_UBOOT=y
@@ -22,8 +21,6 @@ BR2_TARGET_UBOOT_NEEDS_DTC=y
 BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
 BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
 BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
-BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
-BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"
 BR2_TARGET_UBOOT_SPL=y
 BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
 BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="SCP=/dev/null"
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw

PATCH 6/7 board/pine64/genimage.cfg: rename uboot bin image The generated image name modified according to uboot output

In reply to Javad Rahimipetroudi
---
 board/pine64/pine64/genimage.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/pine64/pine64/genimage.cfg +1 -1
index 06b4ed1056..37ebe5ea6e 100644
@@ -16,7 +16,7 @@ image sdcard.img {
 
 	partition spl {
 		in-partition-table = "no"
-		image = "sunxi-spl.bin"
+		image = "u-boot-sunxi-with-spl.bin"
 		offset = 8K
 	}
 
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#8 lore raw

Re: [Buildroot] [PATCH 6/7] board/pine64/genimage.cfg: rename uboot bin image The generated image name modified according to uboot output

Quoted 10 lines · On Sat, 4 Nov 2023 10:54:57 +0330 Javad Rahimipetroudi…
---
 board/pine64/pine64/genimage.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/pine64/pine64/genimage.cfg +0 -0
index 06b4ed1056..37ebe5ea6e 100644

board/pine64/pine64/genimage.cfg image sdcard.img { · line 19

Quoted 5 lines
board/pine64/pine64/genimage.cfg +1 -1
@@ -16,7 +16,7 @@ image sdcard.img {
 
 	partition spl {
 		in-partition-table = "no"
-		image = "sunxi-spl.bin"
+		image = "u-boot-sunxi-with-spl.bin"

This should go together with the U-Boot update, otherwise your series is not bisectable.

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
#9 lore raw

PATCH 7/7 board/pine64/genimage.cfg: remove unnecessary partition for itb For minimal booting, uboot.itf is no longer required, so the correspondig partition deleted.

In reply to Javad Rahimipetroudi
---
 board/pine64/pine64/genimage.cfg | 7 -------
 1 file changed, 7 deletions(-)
board/pine64/pine64/genimage.cfg +0 -7
index 37ebe5ea6e..23b02973dd 100644
@@ -20,13 +20,6 @@ image sdcard.img {
 		offset = 8K
 	}
 
-	partition u-boot {
-		in-partition-table = "no"
-		image = "u-boot.itb"
-		offset = 40K
-		size = 1M # 1MB - 40KB
-	}
-
 	partition boot {
 		partition-type = 0xC
 		bootable = "true"
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#10 lore raw

Re: [Buildroot] [PATCH 7/7] board/pine64/genimage.cfg: remove unnecessary partition for itb For minimal booting, uboot.itf is no longer required, so the correspondig partition deleted.

Hello,

Commit title is too long. You need to have a short title, then an empty new line, then a longer commit log, potentially in multiple paragraphs, that explains in more details what is happening.

Quoted 10 lines · On Sat, 4 Nov 2023 10:54:58 +0330 Javad Rahimipetroudi…
---
 board/pine64/pine64/genimage.cfg | 7 -------
 1 file changed, 7 deletions(-)
board/pine64/pine64/genimage.cfg +0 -0
index 37ebe5ea6e..23b02973dd 100644

board/pine64/pine64/genimage.cfg image sdcard.img { · line 28

Quoted 9 lines
board/pine64/pine64/genimage.cfg +0 -6
@@ -20,13 +20,6 @@ image sdcard.img {
 		offset = 8K
 	}
 
-	partition u-boot {
-		in-partition-table = "no"
-		image = "u-boot.itb"
-		offset = 40K
-		size = 1M # 1MB - 40KB
-	}

Not sure where this should go. Together with the U-Boot update, probably, as it's following the U-Boot update that there's no longer any u-boot.itb? But then, where is U-Boot stored now?

Overall, your patch series is not correctly split into logical patches that each do one thing, but do it completely. Your series is not bisectable, which also isn't good.

Could you rework your patch series according to those comments, and submit a new version?

Thanks a lot,

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
#11 lore raw

Re: [Buildroot] [PATCH 7/7] board/pine64/genimage.cfg: remove unnecessary partition for itb For minimal booting, uboot.itf is no longer required, so the correspondig partition deleted.

Hello Thomas,
Thanks fot your feedback.

Quoted 34 lines · Thomas Petazzoni

Hello,

Commit title is too long. You need to have a short title, then an empty new line, then a longer commit log, potentially in multiple paragraphs, that explains in more details what is happening.

Quoted 10 lines · On Sat, 4 Nov 2023 10:54:58 +0330 Javad Rahimipetroudi…
---
 board/pine64/pine64/genimage.cfg | 7 -------
 1 file changed, 7 deletions(-)
board/pine64/pine64/genimage.cfg +0 -0
index 37ebe5ea6e..23b02973dd 100644

board/pine64/pine64/genimage.cfg image sdcard.img { · line 28

Quoted 9 lines
board/pine64/pine64/genimage.cfg +0 -6
@@ -20,13 +20,6 @@ image sdcard.img {
              offset = 8K
      }
 
-     partition u-boot {
-             in-partition-table = "no"
-             image = "u-boot.itb"
-             offset = 40K
-             size = 1M # 1MB - 40KB
-     }

Not sure where this should go. Together with the U-Boot update, probably, as it's following the U-Boot update that there's no longer any u-boot.itb? But then, where is U-Boot stored now?

Quoted 6 lines

Overall, your patch series is not correctly split into logical patches that each do one thing, but do it completely. Your series is not bisectable, which also isn't good.

Could you rework your patch series according to those comments, and submit a new version?

Sure, I will rework on the patch to merge the related changes in a single patch.

Quoted 3 lines

Thanks a lot,

Thanks for your feedback on my patch series. I acknowledge your comments and will rework the series to address the issues you've raised. I will split the patches into logical and complete ones and make sure the commit title is short and the commit log is detailed.

I will submit a new version of the patch series once I'm done with the changes.

Thanks again for your feedback.

Best regards,
Javad

Quoted 5 lines

Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.comHi Thomas,

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot