forked from openwrt/openwrt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ramips: add new flash layout support to Phicomm K2
Descriptions: Phicomm K2 (PSG1218) got a new "permanent_config" partition after update firmware to v22.5. This partition located in front of the firmware partition, same as The Phicomm K2P and K2G. Due to this change the new bootloader can't load previous firmware any more. This commit is aimed at add support for Phicomm K2 which official firmware version is 22.5.x or newer. For which runs old firmware version, just update OpenWrt that has a prefix of "k2-v22.4". For uniform naming, this commit also changed the model name PSG1218 to a more recognizable name K2, refer to Phicomm K2G, K2P K2T. OpenWrt selection table: official firmware version OpenWrt v22.4.x.x or older phicomm_k2-v22.4 v22.5.x.x or newer phicomm_k2-v22.5 Installation: Same as Phicomm K2G, K2P, PSG1208. a. TFTP + U-Boot b. Open telnet by some web page vulnerability (Search Baidu by key words "K2 telnet"), and then we can upload firmware image to /tmp and write it to firmware partition with mtd instruction. Signed-off-by: Shiji Yang <yangshiji66@qq.com> [rebase, add/harmonize version in model variables, fix version typo in commit message, wrap commit message properly] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
- Loading branch information
1 parent
c414350
commit 80e70be
Showing
4 changed files
with
56 additions
and
15 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...x/ramips/dts/mt7620a_phicomm_psg1218a.dts → ...x/ramips/dts/mt7620a_phicomm_k2-v22.4.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "mt7620a_phicomm_k2x.dtsi" | ||
|
||
/ { | ||
compatible = "phicomm,k2-v22.5", "ralink,mt7620a-soc"; | ||
model = "Phicomm K2 v22.5 or newer"; | ||
}; | ||
|
||
&partitions { | ||
partition@50000 { | ||
label = "permanent_config"; | ||
reg = <0x50000 0x50000>; | ||
read-only; | ||
}; | ||
|
||
partition@a0000 { | ||
compatible = "denx,uimage"; | ||
label = "firmware"; | ||
reg = <0xa0000 0x760000>; | ||
}; | ||
}; | ||
|
||
ðernet { | ||
mediatek,portmap = "llllw"; | ||
}; | ||
|
||
&wmac { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pa_pins>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters