All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] configs/minnowboard_max_defconfig: bump kernel to 5.10.11
@ 2021-01-30 10:19 Peter Korsgaard
  2021-01-30 10:19 ` [Buildroot] [PATCH 2/3] configs/minnowboard_max-graphical_defconfig: " Peter Korsgaard
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Peter Korsgaard @ 2021-01-30 10:19 UTC (permalink / raw)
  To: buildroot

Explicitly enable PCI support in the kernel after commit eb01d42a77785 (PCI:
consolidate PCI config entry in drivers/pci) and change to GPT partitions /
root=PARTLABEL to find the rootfs instead of hardcoding /dev/mmcblk2p2 as
the mmc probing order has changed since commit 21b2cec61c04bd1 (mmc: Set
PROBE_PREFER_ASYNCHRONOUS for drivers that existed in v4.4).

This has the additional advantage that the same image will work when written
to a USB drive instead of a microsd.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 board/minnowboard/genimage.cfg    | 5 +++--
 board/minnowboard/grub.cfg        | 2 +-
 board/minnowboard/linux.config    | 1 +
 configs/minnowboard_max_defconfig | 6 +++---
 4 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/board/minnowboard/genimage.cfg b/board/minnowboard/genimage.cfg
index 6cf7874307..c5b07179b4 100644
--- a/board/minnowboard/genimage.cfg
+++ b/board/minnowboard/genimage.cfg
@@ -19,15 +19,16 @@ image efi-part.vfat {
 #  * the efi-partition created above
 image sdcard.img {
 	hdimage {
+		gpt = true
 	}
 
 	partition boot {
-		partition-type = 0xEF
+		partition-type-uuid = U
 		image = "efi-part.vfat"
 	}
 
 	partition rootfs {
-		partition-type = 0x83
+		partition-type-uuid = L
 		image = "rootfs.ext4"
 		size = 512M
 	}
diff --git a/board/minnowboard/grub.cfg b/board/minnowboard/grub.cfg
index 3d6feb7023..206f734f13 100644
--- a/board/minnowboard/grub.cfg
+++ b/board/minnowboard/grub.cfg
@@ -2,5 +2,5 @@ set default="0"
 set timeout="5"
 
 menuentry "Buildroot" {
-	linux /bzImage root=/dev/mmcblk2p2 rootwait console=tty0 console=ttyS0,115200
+	linux /bzImage root=PARTLABEL=rootfs rootwait console=tty0 console=ttyS0,115200
 }
diff --git a/board/minnowboard/linux.config b/board/minnowboard/linux.config
index 27077dbcda..928e353c1c 100644
--- a/board/minnowboard/linux.config
+++ b/board/minnowboard/linux.config
@@ -14,6 +14,7 @@ CONFIG_NET=y
 CONFIG_PACKET=y
 CONFIG_UNIX=y
 CONFIG_INET=y
+CONFIG_PCI=y
 CONFIG_BLK_DEV_SD=y
 CONFIG_CHR_DEV_SG=y
 CONFIG_ATA=y
diff --git a/configs/minnowboard_max_defconfig b/configs/minnowboard_max_defconfig
index fef597c350..1270f23953 100644
--- a/configs/minnowboard_max_defconfig
+++ b/configs/minnowboard_max_defconfig
@@ -8,8 +8,8 @@ BR2_ROOTFS_POST_BUILD_SCRIPT="board/minnowboard/post-build.sh"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/minnowboard/genimage.cfg"
 
-# Linux headers same as kernel, a 4.19 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
+# Linux headers same as kernel, a 5.10 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
 # Needed for grub2
 BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
 
@@ -24,7 +24,7 @@ BR2_PACKAGE_LINUX_FIRMWARE_RTL_8169=y
 # Linux kernel
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.8"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.11"
 BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
 BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/minnowboard/linux.config"
 
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/3] configs/minnowboard_max-graphical_defconfig: bump kernel to 5.10.11
  2021-01-30 10:19 [Buildroot] [PATCH 1/3] configs/minnowboard_max_defconfig: bump kernel to 5.10.11 Peter Korsgaard
@ 2021-01-30 10:19 ` Peter Korsgaard
  2021-01-30 10:19 ` [Buildroot] [PATCH 3/3] board/minnowboard: grub.cfg: disable eudev network interface renaming Peter Korsgaard
  2021-01-31 20:32 ` [Buildroot] [PATCH 1/3] configs/minnowboard_max_defconfig: bump kernel to 5.10.11 Thomas Petazzoni
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2021-01-30 10:19 UTC (permalink / raw)
  To: buildroot

To match minnowboard_max_defconfig.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 configs/minnowboard_max-graphical_defconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configs/minnowboard_max-graphical_defconfig b/configs/minnowboard_max-graphical_defconfig
index 910c324e25..3b769ca6e7 100644
--- a/configs/minnowboard_max-graphical_defconfig
+++ b/configs/minnowboard_max-graphical_defconfig
@@ -3,7 +3,7 @@ BR2_x86_64=y
 BR2_x86_silvermont=y
 
 # Toolchain
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
 BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
 BR2_TOOLCHAIN_BUILDROOT_CXX=y
 # needed for TARGET_GRUB2
@@ -24,7 +24,7 @@ BR2_PACKAGE_HOST_MTOOLS=y
 # Linux
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.8"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.11"
 BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
 BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/minnowboard/linux.config"
 
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 3/3] board/minnowboard: grub.cfg: disable eudev network interface renaming
  2021-01-30 10:19 [Buildroot] [PATCH 1/3] configs/minnowboard_max_defconfig: bump kernel to 5.10.11 Peter Korsgaard
  2021-01-30 10:19 ` [Buildroot] [PATCH 2/3] configs/minnowboard_max-graphical_defconfig: " Peter Korsgaard
@ 2021-01-30 10:19 ` Peter Korsgaard
  2021-01-31 20:32 ` [Buildroot] [PATCH 1/3] configs/minnowboard_max_defconfig: bump kernel to 5.10.11 Thomas Petazzoni
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2021-01-30 10:19 UTC (permalink / raw)
  To: buildroot

So the normal DHCP-on-eth0 logic works for the graphical defconfig where
eudev is used.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 board/minnowboard/grub.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/minnowboard/grub.cfg b/board/minnowboard/grub.cfg
index 206f734f13..1f75f4d7ca 100644
--- a/board/minnowboard/grub.cfg
+++ b/board/minnowboard/grub.cfg
@@ -2,5 +2,5 @@ set default="0"
 set timeout="5"
 
 menuentry "Buildroot" {
-	linux /bzImage root=PARTLABEL=rootfs rootwait console=tty0 console=ttyS0,115200
+	linux /bzImage root=PARTLABEL=rootfs rootwait console=tty0 console=ttyS0,115200 net.ifnames=0
 }
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/3] configs/minnowboard_max_defconfig: bump kernel to 5.10.11
  2021-01-30 10:19 [Buildroot] [PATCH 1/3] configs/minnowboard_max_defconfig: bump kernel to 5.10.11 Peter Korsgaard
  2021-01-30 10:19 ` [Buildroot] [PATCH 2/3] configs/minnowboard_max-graphical_defconfig: " Peter Korsgaard
  2021-01-30 10:19 ` [Buildroot] [PATCH 3/3] board/minnowboard: grub.cfg: disable eudev network interface renaming Peter Korsgaard
@ 2021-01-31 20:32 ` Thomas Petazzoni
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2021-01-31 20:32 UTC (permalink / raw)
  To: buildroot

On Sat, 30 Jan 2021 11:19:13 +0100
Peter Korsgaard <peter@korsgaard.com> wrote:

> Explicitly enable PCI support in the kernel after commit eb01d42a77785 (PCI:
> consolidate PCI config entry in drivers/pci) and change to GPT partitions /
> root=PARTLABEL to find the rootfs instead of hardcoding /dev/mmcblk2p2 as
> the mmc probing order has changed since commit 21b2cec61c04bd1 (mmc: Set
> PROBE_PREFER_ASYNCHRONOUS for drivers that existed in v4.4).
> 
> This has the additional advantage that the same image will work when written
> to a USB drive instead of a microsd.
> 
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> ---
>  board/minnowboard/genimage.cfg    | 5 +++--
>  board/minnowboard/grub.cfg        | 2 +-
>  board/minnowboard/linux.config    | 1 +
>  configs/minnowboard_max_defconfig | 6 +++---
>  4 files changed, 8 insertions(+), 6 deletions(-)

Series applied, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-31 20:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-30 10:19 [Buildroot] [PATCH 1/3] configs/minnowboard_max_defconfig: bump kernel to 5.10.11 Peter Korsgaard
2021-01-30 10:19 ` [Buildroot] [PATCH 2/3] configs/minnowboard_max-graphical_defconfig: " Peter Korsgaard
2021-01-30 10:19 ` [Buildroot] [PATCH 3/3] board/minnowboard: grub.cfg: disable eudev network interface renaming Peter Korsgaard
2021-01-31 20:32 ` [Buildroot] [PATCH 1/3] configs/minnowboard_max_defconfig: bump kernel to 5.10.11 Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.