2021-03-21 08:45:24 +00:00
|
|
|
#include "mt7620a_phicomm_k2x.dtsi"
|
2017-04-20 22:53:03 +00:00
|
|
|
|
|
|
|
/ {
|
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>
2021-07-27 04:45:05 +00:00
|
|
|
compatible = "phicomm,k2-v22.5", "ralink,mt7620a-soc";
|
|
|
|
model = "Phicomm K2 v22.5 or newer";
|
2017-04-20 22:53:03 +00:00
|
|
|
};
|
|
|
|
|
2021-03-21 08:45:24 +00:00
|
|
|
&partitions {
|
|
|
|
partition@50000 {
|
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>
2021-07-27 04:45:05 +00:00
|
|
|
label = "permanent_config";
|
|
|
|
reg = <0x50000 0x50000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@a0000 {
|
2021-03-21 08:45:24 +00:00
|
|
|
compatible = "denx,uimage";
|
|
|
|
label = "firmware";
|
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>
2021-07-27 04:45:05 +00:00
|
|
|
reg = <0xa0000 0x760000>;
|
2021-03-21 08:45:24 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-04-20 22:53:03 +00:00
|
|
|
ðernet {
|
|
|
|
mediatek,portmap = "llllw";
|
|
|
|
};
|
2017-11-18 21:05:16 +00:00
|
|
|
|
|
|
|
&wmac {
|
2022-07-28 11:40:12 +00:00
|
|
|
pinctrl-names = "default", "pa_gpio";
|
2017-11-18 21:05:16 +00:00
|
|
|
pinctrl-0 = <&pa_pins>;
|
2022-07-28 11:40:12 +00:00
|
|
|
pinctrl-1 = <&pa_gpio_pins>;
|
2017-11-18 21:05:16 +00:00
|
|
|
};
|