diff options
author | Stefan Lippers-Hollmann <s.l-h@gmx.de> | 2017-10-29 02:55:27 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-10-29 02:55:27 +0100 |
commit | b583aaf5aa57173100b6569ffc60c34405b7dc38 (patch) | |
tree | 6c3e72c09e0bea92ca3297458efab244ddcec10a /target/linux/ipq806x/files-4.9/arch | |
parent | 06d5d01e8acb4c7012bfa1ce8d432816b98088b0 (diff) | |
download | mtk-20170518-b583aaf5aa57173100b6569ffc60c34405b7dc38.zip mtk-20170518-b583aaf5aa57173100b6569ffc60c34405b7dc38.tar.gz mtk-20170518-b583aaf5aa57173100b6569ffc60c34405b7dc38.tar.bz2 |
ip806x: nbg6817: don't hardcode the rootfs location by using append-rootblock instead
This changes the cmdline from:
Kernel command line: root=/dev/mmcblk0p5 rootfstype=squashfs,ext4 rootwait noinitrd
Bootloader command line (ignored): board=NBG6817 root=/dev/mmcblk0p5 rootwait zld_ver=2.04 console=ttyHSL1,115200n8 mtdparts=m25p80:0xC0000(SBL)ro,0x40000(TZ)ro,0x40000(RPM)ro,0x80000(u-boot)ro,0x10000(env)ro,0x10000(ART)ro,0x10000(dualflag),0x210000(reserved)
to
Kernel command line: rootfstype=squashfs,ext4 rootwait noinitrd root=/dev/mmcblk0p5
Bootloader command line (ignored): board=NBG6817 root=/dev/mmcblk0p5 rootwait zld_ver=2.04 console=ttyHSL1,115200n8 mtdparts=m25p80:0xC0000(SBL)ro,0x40000(TZ)ro,0x40000(RPM)ro,0x80000(u-boot)ro,0x10000(env)ro,0x10000(ART)ro,0x10000(dualflag),0x210000(reserved)
As a consequence booting from the alternative dual-boot partition set
(root=/dev/mmcblk0p8) becomes possible.
Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Diffstat (limited to 'target/linux/ipq806x/files-4.9/arch')
-rw-r--r-- | target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts b/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts index 930f2ad..15165b9 100644 --- a/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts +++ b/target/linux/ipq806x/files-4.9/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts @@ -33,8 +33,9 @@ }; chosen { - bootargs = "root=/dev/mmcblk0p5 rootfstype=squashfs,ext4 rootwait noinitrd"; + bootargs = "rootfstype=squashfs,ext4 rootwait noinitrd"; linux,stdout-path = "serial0:115200n8"; + append-rootblock = "root=/dev/mmcblk0p"; }; soc { |