openwrt/target/linux
Sven Eckelmann 223eec7e81 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: d6a9a92e32 ("kernel: bump 5.4 to 5.4.69")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-11-23 22:53:15 +01:00
..
apm821xx kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
arc770 arc770: drop support for kernel 4.14 2020-09-02 16:29:22 +02:00
archs38 treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
armvirt kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
at91 at91: explicitly set CONFIG_USB_SUPPORT for sam9x subtarget 2020-08-27 16:36:18 +02:00
ath25 ath25: fix preinit Ethernet port configuration 2020-09-10 18:52:15 +02:00
ath79 ath79: move the squashfs feature to the parent target 2020-11-23 13:20:53 +01:00
bcm27xx kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
bcm47xx kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
bcm53xx kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
bcm63xx bcm63xx: reorganize board patches into fewer files 2020-10-26 23:48:08 +01:00
gemini kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
generic kernel: mtd: parser: cmdline: Fix parsing of part-names with colons 2020-11-23 22:53:15 +01:00
imx6 kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
ipq40xx ipq40xx: DTS style updates for OpenMesh devices 2020-11-23 13:44:47 +01:00
ipq806x kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
ipq807x kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-06 12:37:04 +02:00
kirkwood target: update SPDX license names 2020-09-22 20:58:26 +02:00
lantiq kernel: bump 5.4 to 5.4.73 2020-11-01 14:44:06 +01:00
layerscape kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
malta kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
mediatek kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
mpc85xx kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
mvebu kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
mxs treewide: make dependency on kmod-usb-net selective 2020-08-10 12:54:30 +02:00
octeon kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
octeontx kernel: move F2FS_FS_XATTR and F2FS_STAT_FS symbols to generic 2020-10-09 23:20:19 +01:00
omap kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
oxnas kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
pistachio kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
ramips ramips: add support for TP-Link MR6400 v4 2020-11-23 00:46:40 +00:00
rockchip rockchip: remove unused config symbols 2020-11-04 23:58:27 +01:00
rtl838x rtl838x: Add switch and ethernet driver support for RTL839x SoCs 2020-11-12 18:21:55 +01:00
sunxi sunxi: add support for Libre Computer ALL-H3-CC H5 2020-11-12 18:21:17 +01:00
tegra kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
uml kernel: bump 5.4 to 5.4.71 2020-10-15 17:46:54 +02:00
x86 x86: generic: disable CONFIG_EFI_VARS 2020-11-12 18:21:55 +01:00
zynq kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
Makefile build: add 'make kernel_xconfig' command 2020-07-08 16:07:05 +02:00