]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
qualcommbe: ipq95xx: Make RPM partition read-only
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 30 Jan 2025 15:55:57 +0000 (16:55 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 10 Apr 2025 13:01:12 +0000 (15:01 +0200)
Make the RPM partition read-only. This was a mistake and a leftover from
staging branch but I can take this mistake as an excuse to document the
current problem with RPM.

It might happen that a board ship with a broken RPM .mbn, broken not in
the sense that the board doesn't boot or it's a brick but broken in the
sense that it's outdaed and suffer from a bug fixed in new version.

This bug consist in a problem with the regulators between USB and NSS.
The old RPM mess with the NSS regulator (l2) and change the voltage for
it while configuring the USB regulator (l5).
This cause the ethernet subsystem to malfunction with the port not
working.

To workaround this, it's needed to disable RPM handling and CPUFreq.
With these 2 disabled, the old RPM doesn't touch regulators and Ethernet
works correctly.

New RPM correctly handle regulators for USB (l5) and doesn't suffer from
this problem. A solution for this is getting discussed with QCOM hoping
to get some good feedback for it.

Link: https://github.com/openwrt/openwrt/pull/17788
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/qualcommbe/patches-6.6/303-arm64-dts-qcom-add-partition-table-for-ipq9574-rdp-c.patch

index 526d559e343166daed1debdb187cb6ba41d80545..c45cc9811c329cae7dff2f44a057a6863beaab79 100644 (file)
@@ -104,7 +104,7 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
 +                      partition@4d0000 {
 +                              label = "0:rpm";
 +                              reg = <0x4d0000 0x20000>;
-+                              // read-only;
++                              read-only;
 +                      };
 +
 +                      partition@4f0000 {