[openwrt/openwrt] mediatek: mt7623: bpi-r2: set root=/dev/fit0 in bootargs

LEDE Commits lede-commits at lists.infradead.org
Sat Feb 24 09:28:58 PST 2024


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/79dae141570d9c003e0af7f39c6ee22730590998

commit 79dae141570d9c003e0af7f39c6ee22730590998
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sat Feb 24 17:00:46 2024 +0000

    mediatek: mt7623: bpi-r2: set root=/dev/fit0 in bootargs
    
    Set root=/dev/fit0 cmdline parameter as the kernel won't mount rootfs
    otherwise after the change from the FIT partition parser to the fitblk
    driver which replaces it.
    
    Fixes: 6368ed1ae5 ("mediatek: mt7623: phase out uImage.FIT partition parser")
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 .../patches-6.1/164-dts-mt7623-bpi-r2-rootdisk-for-fitblk.patch     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/target/linux/mediatek/patches-6.1/164-dts-mt7623-bpi-r2-rootdisk-for-fitblk.patch b/target/linux/mediatek/patches-6.1/164-dts-mt7623-bpi-r2-rootdisk-for-fitblk.patch
index 06d54ec462..2675aa2589 100644
--- a/target/linux/mediatek/patches-6.1/164-dts-mt7623-bpi-r2-rootdisk-for-fitblk.patch
+++ b/target/linux/mediatek/patches-6.1/164-dts-mt7623-bpi-r2-rootdisk-for-fitblk.patch
@@ -1,9 +1,11 @@
 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
 +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
-@@ -27,6 +27,8 @@
+@@ -26,7 +26,9 @@
+ 
  	chosen {
  		stdout-path = "serial2:115200n8";
- 		bootargs = "earlycon=uart8250,mmio32,0x11004000 console=ttyS2,115200n8 console=tty1";
+-		bootargs = "earlycon=uart8250,mmio32,0x11004000 console=ttyS2,115200n8 console=tty1";
++		bootargs = "root=/dev/fit0 earlycon=uart8250,mmio32,0x11004000 console=ttyS2,115200n8 console=tty1";
 +		rootdisk-emmc = <&emmc_rootdisk>;
 +		rootdisk-sd = <&sd_rootdisk>;
  	};




More information about the lede-commits mailing list