From 1370b3c0d4de1f80f80205ce12418ba6f4e0445a Mon Sep 17 00:00:00 2001 From: matteolel Date: Fri, 9 Dec 2022 18:09:44 +0100 Subject: [PATCH] Fix random stucks during boot With my device, around one boot out of 3 was not able to finish. I found that the mmc order was not correct in that cases. Fix: enforcing device order in DTS. --- recipes-kernel/linux/linux-mainline.inc | 1 + ...nanapi-m2-zreo-Enforce-consistent-MM.patch | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 recipes-kernel/linux/linux-mainline/0003-dts-allwinner-bananapi-m2-zreo-Enforce-consistent-MM.patch diff --git a/recipes-kernel/linux/linux-mainline.inc b/recipes-kernel/linux/linux-mainline.inc index 62ddb17..e03fa62 100644 --- a/recipes-kernel/linux/linux-mainline.inc +++ b/recipes-kernel/linux/linux-mainline.inc @@ -23,6 +23,7 @@ S = "${WORKDIR}/linux-${PV}" SRC_URI = "https://www.kernel.org/pub/linux/kernel/v5.x/linux-${PV}.tar.xz \ file://0001-dts-orange-pi-zero-Add-wifi-support.patch \ file://0002-dts-nanopi-neo-air-add-camera.patch \ + file://0003-dts-allwinner-bananapi-m2-zreo-Enforce-consistent-MM.patch \ file://defconfig \ " diff --git a/recipes-kernel/linux/linux-mainline/0003-dts-allwinner-bananapi-m2-zreo-Enforce-consistent-MM.patch b/recipes-kernel/linux/linux-mainline/0003-dts-allwinner-bananapi-m2-zreo-Enforce-consistent-MM.patch new file mode 100644 index 0000000..cbaf782 --- /dev/null +++ b/recipes-kernel/linux/linux-mainline/0003-dts-allwinner-bananapi-m2-zreo-Enforce-consistent-MM.patch @@ -0,0 +1,28 @@ +From 9b4baa9b5aab0511c46a1ae95485e1a3ea984352 Mon Sep 17 00:00:00 2001 +From: matteolel +Date: Fri, 9 Dec 2022 16:38:11 +0000 +Subject: [PATCH] dts: allwinner: bananapi-m2-zreo: Enforce consistent MMC + numbering + +Enforce MMC number (sometimes the order was wrong and the device does not boot). +--- + arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts +index 8e8634ff2..37a2ed937 100644 +--- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts ++++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts +@@ -20,6 +20,9 @@ / { + aliases { + serial0 = &uart0; + serial1 = &uart1; ++ mmc0 = &mmc0; ++ mmc1 = &mmc1; ++ mmc2 = &mmc2; + }; + + chosen { +-- +2.25.1 +