Skip to contentSkip to conversation

linux-yocto: remove mmc aliases

PATCH Applied Trevor Woerner 1 participant 6 messages Sep 29, 2021 – Oct 5, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 linux-yocto: remove mmc aliases

Now that we're booting via UUID, we no longer need these aliases in the DT. Personally I wasn't able to prove to myself that they actually worked (at least not with 5.13.y) and fiddling with these aliases didn't seem to affect the mmc probe order on boot. Additionally it looks like some of these aliases will be landing upstream shortly.

Build (core-image-base) and run tested (both systemd and sysvinit) on:
- rock64
- rock-pi-e

(i.e. the two rk3328 MACHINEs)

---
 ...an-dtsi-rk3328-add-mmc0-mmc1-aliases.patch | 27 -------------------
 recipes-kernel/linux/linux-yocto%.bbappend    |  3 ---
 2 files changed, 30 deletions(-)
 delete mode 100644 recipes-kernel/linux/files/0001-ayufan-dtsi-rk3328-add-mmc0-mmc1-aliases.patch
recipes-kernel/linux/files/0001-ayufan-dtsi-rk3328-add-mmc0-mmc1-aliases.patch deleted +0 -27
deleted file mode 100644
index 1ad3b9e..0000000
@@ -1,27 +0,0 @@
-From f10cfe01f753348d346374008b8e8f5f26ed94ab Mon Sep 17 00:00:00 2001
-From: Kamil Trzcinski <[email protected]>
-Date: Mon, 28 Aug 2017 11:24:37 +0200
-Subject: [PATCH] ayufan: dtsi: rk3328: add mmc0/mmc1 aliases
-Upstream-Status: Pending [https://github.com/ayufan-rock64/linux-mainline-kernel/commit/f10cfe01f753348d346374008b8e8f5f26ed94ab]
-
-Change-Id: I82a5394df8a505f7d1496393621c1198895c88b0
----
- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
-index 0afed15bc7ff..800f1c796882 100644
---- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi
-+++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
-@@ -27,6 +27,8 @@
- 		i2c1 = &i2c1;
- 		i2c2 = &i2c2;
- 		i2c3 = &i2c3;
-+		mmc0 = &emmc;
-+		mmc1 = &sdmmc;
- 		ethernet0 = &gmac2io;
- 		ethernet1 = &gmac2phy;
- 	};
--- 
-2.30.2
-
recipes-kernel/linux/linux-yocto%.bbappend +0 -3
index cf63a30..470dc09 100644
@@ -12,6 +12,3 @@ COMPATIBLE_MACHINE:rock64 = "rock64"
 COMPATIBLE_MACHINE:rock-pi-e = "rock-pi-e"
 
 FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
-
-# indeed applicable to all rk3328 boards
-SRC_URI:append:rock64 = " file://0001-ayufan-dtsi-rk3328-add-mmc0-mmc1-aliases.patch"
Signature · 1 line
2.30.0.rc0
#1 lore raw

PATCH 2/3 include/nanopi-m4: remove KMACHINE

There is no "nanopi-m4" defined in any yocto kernel metadata (yet?), therefore remove this superfluous line.

Build (core-image-base) and run tested (both systemd and sysvinit) on:
- nanopi-m4

---
 conf/machine/include/nanopi-m4.inc | 1 -
 1 file changed, 1 deletion(-)
conf/machine/include/nanopi-m4.inc +0 -1
index 3870b51..b8e1db1 100644
@@ -5,5 +5,4 @@ require conf/machine/include/rk3399.inc
 
 MACHINE_FEATURES += "usbhost serial"
 
-KMACHINE = "nanopi-m4"
 KERNEL_DEVICETREE = "rockchip/rk3399-nanopi-m4.dtb"
Signature · 1 line
2.30.0.rc0
author Applied
#2 lore raw

Re: [meta-rockchip][PATCH 2/3] include/nanopi-m4: remove KMACHINE

Quoted 10 lines · Trevor Woerner

There is no "nanopi-m4" defined in any yocto kernel metadata (yet?), therefore remove this superfluous line.

Build (core-image-base) and run tested (both systemd and sysvinit) on:
- nanopi-m4

---
 conf/machine/include/nanopi-m4.inc | 1 -
 1 file changed, 1 deletion(-)

Applied to meta-rockchip, master.

#3 lore raw

PATCH 3/3 nanopi-m4: add common override

In reply to Trevor Woerner

Add a common override for both nanopi-m4 MACHINEs.

---
 conf/machine/include/nanopi-m4.inc | 3 +++
 1 file changed, 3 insertions(+)
conf/machine/include/nanopi-m4.inc +3 -0
index b8e1db1..aaf07a3 100644
@@ -1,6 +1,9 @@
 # Copyright (C) 2021 Blade SAS
 # Common definitions for all NanoPi M4 RK3399 board variants
 
+# add a common override for all nanopi-m4
+MACHINEOVERRIDES =. "nanopi-m4:"
+
 require conf/machine/include/rk3399.inc
 
 MACHINE_FEATURES += "usbhost serial"
Signature · 1 line
2.30.0.rc0
author Applied
#4 lore raw

Re: [meta-rockchip][PATCH 3/3] nanopi-m4: add common override

Quoted 6 lines · Trevor Woerner

Add a common override for both nanopi-m4 MACHINEs.

---
 conf/machine/include/nanopi-m4.inc | 3 +++
 1 file changed, 3 insertions(+)

Applied to meta-rockchip, master.

author Applied
#5 lore raw
In reply to Trevor Woerner
Quoted 10 lines · Trevor Woerner

Now that we're booting via UUID, we no longer need these aliases in the DT. Personally I wasn't able to prove to myself that they actually worked (at least not with 5.13.y) and fiddling with these aliases didn't seem to affect the mmc probe order on boot. Additionally it looks like some of these aliases will be landing upstream shortly.

Build (core-image-base) and run tested (both systemd and sysvinit) on:
- rock64
- rock-pi-e

Quoted 8 lines

(i.e. the two rk3328 MACHINEs)

---
 ...an-dtsi-rk3328-add-mmc0-mmc1-aliases.patch | 27 -------------------
 recipes-kernel/linux/linux-yocto%.bbappend    |  3 ---
 2 files changed, 30 deletions(-)
 delete mode 100644 recipes-kernel/linux/files/0001-ayufan-dtsi-rk3328-add-mmc0-mmc1-aliases.patch

Applied to meta-rockchip, master.