[PATCH v2 0/3] ipq40xx: remedy potential of producing soft-bricking images

Tomasz Maciej Nowak tmn505 at terefe.re
Fri Jul 7 08:11:40 PDT 2023


From: Tomasz Maciej Nowak <tmn505 at gmail.com>

Some of devices having kernel on NOR flash could reach limit of kernel
partition size at 4MiB and soft-brick them. Unfortunately we don't know
if all of them are affected, thus kernel size limit is added to all of
remaining ones. Later commit allows for some devices to prepare painless
transition, while the last one shows how it can be done for device i
introduced. I tried to make transition for the device as generic as
possible so it coulld be used on others, but unfortunately I own only
one device, which means the owners of the rest device need to verify if
it works for them and add their devices.

Tomasz Maciej Nowak (3):
  ipq40xx: image: limit kernel size for NOR devices
    v1 -> v2: no changes
  ipq40xx: dts: allow writing to U-Boot environment
    v1 -> v2: no changes
  ipq40xx: pakedge_wr-1: workaround for kernel bigger than 4MiB
    v1 -> v2: remove printing command from sed invocation which prints
              double output and breaks future 'bootcmd' modifications

 .../etc/uci-defaults/05_fix-compat-version        |  3 ++-
 .../base-files/lib/preinit/81_patch_uboot_env.sh  | 14 ++++++++++++++
 .../boot/dts/qcom-ipq4018-cs-w3-wd1200g-eup.dts   |  1 -
 .../arch/arm/boot/dts/qcom-ipq4018-dap-2610.dts   |  1 -
 .../arch/arm/boot/dts/qcom-ipq4018-eap1300.dts    |  1 -
 .../files/arch/arm/boot/dts/qcom-ipq4018-emd1.dts |  1 -
 .../arch/arm/boot/dts/qcom-ipq4018-emr3500.dts    |  1 -
 .../arch/arm/boot/dts/qcom-ipq4018-ens620ext.dts  |  1 -
 .../arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi  |  1 -
 .../files/arch/arm/boot/dts/qcom-ipq4018-wr-1.dts |  1 -
 .../arch/arm/boot/dts/qcom-ipq4018-wre6606.dts    |  1 -
 .../arch/arm/boot/dts/qcom-ipq4019-e2600ac-c1.dts |  1 -
 .../arm/boot/dts/qcom-ipq4019-habanero-dvk.dts    |  1 -
 .../arch/arm/boot/dts/qcom-ipq4019-u4019-32m.dts  |  1 -
 .../arch/arm/boot/dts/qcom-ipq4019-x1pro.dts      |  1 -
 .../arch/arm/boot/dts/qcom-ipq4028-wpj428.dts     |  1 -
 .../arch/arm/boot/dts/qcom-ipq4029-gl-b1300.dts   |  1 -
 .../arch/arm/boot/dts/qcom-ipq4029-gl-s1300.dts   |  1 -
 target/linux/ipq40xx/image/generic.mk             | 15 +++++++++++++++
 19 files changed, 31 insertions(+), 17 deletions(-)
 create mode 100644 target/linux/ipq40xx/base-files/lib/preinit/81_patch_uboot_env.sh

-- 
2.41.0




More information about the openwrt-devel mailing list