openwrt/target/linux/ipq806x/files-4.14/arch/arm/boot/dts
Hannu Nyman dba362772e ipq806x: remove "firmware" partition definition from netgear routers
Remove the "firmware" partition definition from the DTS of R7800
to fix sysupgrade.

Commit 4645a6d3 defined CONFIG_MTD_SPLIT_UIMAGE_FW=y for ipq806x
and that causes mtd to misbehave as additional kernel and ubi
partitions are detected from inside the "firmware" partition.
  [    1.111324] 0x000001480000-0x000001880000 : "kernel"
  [    1.121005] 0x000001880000-0x000007900000 : "ubi"
  [    1.283912] 0x000007900000-0x000008000000 : "reserve"
  [    1.296407] 0x000001480000-0x000007900000 : "firmware"
  [    1.468043] no rootfs found after FIT image in "firmware"
  [    2.426860] 2 uimage-fw partitions found on MTD device firmware
  [    2.426931] 0x000001480000-0x000001880000 : "kernel"
  [    2.440420] 0x000001880000-0x000007900000 : "ubi"

Both kernel and ubi are already defined in DTS, so this duplication
leads into errors in sysupgrade:
  Writing from <stdin> to kernel ...
  ubiattach: error!: strtoul: unable to parse the number '6 mtd10'
  ubiattach: error!: bad MTD device number: "6 mtd10"

The partition is defined to same area as kernel+ubi, and is not
needed for sysupgrade anymore. Remove it to fix things.

Only tested for the R7800 but all of them should behave equal.

Fixes: FS#1617

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
[squashed commits, add "tested on" note]
Signed-off-by: Mathias Kresin <dev@kresin.me>
2018-06-27 22:10:23 +02:00
..
qcom-ipq8064-ap148.dts
qcom-ipq8064-c2600.dts ipq806x: remove rpm pinctrl from board dts 2018-05-24 17:24:31 +02:00
qcom-ipq8064-d7800.dts ipq806x: remove "firmware" partition definition from netgear routers 2018-06-27 22:10:23 +02:00
qcom-ipq8064-db149.dts
qcom-ipq8064-ea8500.dts ipq806x: remove rpm pinctrl from board dts 2018-05-24 17:24:31 +02:00
qcom-ipq8064-r7500.dts ipq806x: remove "firmware" partition definition from netgear routers 2018-06-27 22:10:23 +02:00
qcom-ipq8064-r7500v2.dts ipq806x: remove "firmware" partition definition from netgear routers 2018-06-27 22:10:23 +02:00
qcom-ipq8064-v2.0.dtsi ipq806x: fix pcie tx termination offset 2018-05-24 17:24:31 +02:00
qcom-ipq8064-vr2600v.dts ipq806x: remove rpm pinctrl from board dts 2018-05-24 17:24:31 +02:00
qcom-ipq8064-wg2600hp.dts ipq806x: add support for NEC Aterm WG2600HP 2018-06-19 22:44:27 +02:00
qcom-ipq8064-wpq864.dts
qcom-ipq8064.dtsi ipq806x: move mmc specific nodes into v1.0 dtsi 2018-05-24 17:24:31 +02:00
qcom-ipq8065-nbg6817.dts ipq806x: remove rpm pinctrl from board dts 2018-05-24 17:24:31 +02:00
qcom-ipq8065-r7800.dts ipq806x: remove "firmware" partition definition from netgear routers 2018-06-27 22:10:23 +02:00
qcom-ipq8065.dtsi ipq806x: move mmc specific nodes into v1.0 dtsi 2018-05-24 17:24:31 +02:00