immortalwrt/target/linux
Sven Eckelmann b4698d87c8 kernel: mtd: parser: cmdline: Fix parsing of part-names with colons
Some devices (especially QCA ones) are already using hardcoded partition
names with colons in it. The OpenMesh A62 for example provides following
mtd relevant information via cmdline:

  root=31:11 mtdparts=spi0.0:256k(0:SBL1),128k(0:MIBIB),384k(0:QSEE),64k(0:CDT),64k(0:DDRPARAMS),64k(0:APPSBLENV),512k(0:APPSBL),64k(0:ART),64k(custom),64k(0:KEYS),0x002b0000(kernel),0x00c80000(rootfs),15552k(inactive) rootfsname=rootfs rootwait

The change to split only on the last colon between mtd-id and partitions
will cause newpart to see following string for the first partition:

  KEYS),0x002b0000(kernel),0x00c80000(rootfs),15552k(inactive)

Such a partition list cannot be parsed and thus the device fails to boot.

Avoid this behavior by making sure that the start of the first part-name
("(") will also be the last byte the mtd-id split algorithm is using for
its colon search.

Fixes: 9c718b5478 ("kernel: bump 4.14 to 4.14.200")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
(backported from commit 223eec7e81)
2020-11-24 09:48:48 +01:00
..
apm821xx kernel: Update kernel 4.14 to version 4.14.195 2020-08-27 00:27:56 +02:00
ar71xx ar71xx,ath79: refresh 910-unaligned_access_hacks.patch 2020-11-24 09:27:50 +01:00
arc770 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
archs38 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
armvirt armvirt,x86: fix build breakage of crypto ccp module 2020-07-05 13:33:31 +02:00
at91 at91: disable legacy PTYs and virtual terminals 2019-12-17 11:27:20 +02:00
ath25 kernel: bump 4.14 to 4.14.171 2020-02-24 14:20:14 +01:00
ath79 ar71xx,ath79: refresh 910-unaligned_access_hacks.patch 2020-11-24 09:27:50 +01:00
bcm53xx bcm53xx: add support for Luxul FullMAC WiFi devices 2020-04-07 15:51:11 +02:00
brcm47xx kernel: Update to version 4.14.199 2020-09-28 01:04:35 +02:00
brcm63xx kernel: Update to version 4.14.199 2020-09-28 01:04:35 +02:00
brcm2708 kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
cns3xxx kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
gemini kernel: bump 4.14 to 4.14.156 2019-11-29 10:00:35 +01:00
generic kernel: mtd: parser: cmdline: Fix parsing of part-names with colons 2020-11-24 09:48:48 +01:00
imx6 treewide: remove 4.19 leftovers 2019-10-08 12:45:13 +02:00
ipq40xx kernel: bump 4.14 to 4.14.201 2020-10-14 17:18:54 +02:00
ipq806x kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
kirkwood kirkwood: support for button in Pogoplug V4 2020-07-10 13:55:54 +02:00
lantiq kernel: Update to version 4.14.199 2020-09-28 01:04:35 +02:00
layerscape layerscape: Fix check after kernel update 2020-11-16 19:31:23 +01:00
malta malta: remove CONFIG_LEGACY_PTY from kernel config 2019-12-17 11:27:30 +02:00
mediatek kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
mpc85xx kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
mvebu kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
mxs kernel: bump 4.14 to 4.14.178 2020-05-04 21:05:21 +02:00
octeon kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
octeontx kernel: bump 4.14 to 4.14.176 2020-04-16 13:23:52 +02:00
omap treewide: use new procd sysupgrade $UPGRADE_BACKUP variable 2019-09-12 13:27:29 +02:00
oxnas kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
pistachio kernel: Update kernel 4.14 to version 4.14.187 2020-07-04 19:22:23 +02:00
ramips ramips: fix logic level for DIR-645 buttons 2020-11-11 17:28:30 +01:00
rb532 kernel: bump 4.14 to 4.14.206 2020-11-16 09:35:05 +01:00
samsung kernel: fix nand_release() usage. 2020-07-04 21:04:11 +02:00
sunxi kernel: bump 4.14 to 4.14.169 2020-02-04 18:11:26 +01:00
tegra tegra: correct cpu subtype 2020-04-18 00:18:13 +02:00
uml kernel: bump 4.14 to 4.14.201 2020-10-14 17:18:54 +02:00
x86 x86: Add CONFIG_EFI_CUSTOM_SSDT_OVERLAYS 2020-08-11 20:44:31 +02:00
zynq zynq: make title consistent for all devices 2019-05-17 21:41:43 +02:00
Makefile