Hello,
Thank you for your reply.
I know it is not the best to use an old version. I have to hack routers that where made in 2016.
I first tried with one of the last versions of openwrt. But as I faced many problems and as I lacked information and people with knowledge around me, I decided to start with something the closest as possible to the original version, hoping to keep it simple...
As you proposed me to try, this is the result of the command :
root@OpenWrt:/# dd if=/dev/mtd2 of=/lib/firmware/soc_wmac.eeprom
512+0 records in
512+0 records out
After rebooting, I still don't see the wifi (using ifconfig, iwconfig or iw list)
This is the dts file used for the compilation:
/dts-v1/;
/include/ "mt7620a.dtsi"
/ {
compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
model = "Ralink MT7620a V22SG High Power evaluation board";
/*palmbus@10000000 {
};*/
pinctrl {
state_default: pinctrl0 {
gpio {
ralink,group = "i2c", "uartf", "spi";
ralink,function = "gpio";
};
};
};
ethernet@10100000 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
ralink,port-map = "llllw";
port@4 {
status = "okay";
phy-handle = <&phy4>;
phy-mode = "rgmii";
};
port@5 {
status = "okay";
phy-handle = <&phy5>;
phy-mode = "rgmii";
};
mdio-bus {
status = "okay";
phy4: ethernet-phy@4 {
reg = <4>;
phy-mode = "rgmii";
};
phy5: ethernet-phy@5 {
reg = <5>;
phy-mode = "rgmii";
};
};
};
gsw@10110000 {
ralink,port4 = "gmac";
};
pcie@10140000 {
status = "okay";
};
ehci@101c0000 {
status = "okay";
};
ohci@101c1000 {
status = "okay";
};
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
reset {
label = "reset";
gpios = <&gpio0 1 1>;
linux,code = <0x198>;
};
aoss {
label = "aoss";
gpios = <&gpio0 2 1>;
linux,code = <0x211>;
};
};
nand {
#address-cells = <1>;
#size-cells = <1>;
compatible = "mtk,mt7620-nand";
partition@0 {
label = "u-boot";
reg = <0x0 0x80000>;
read-only;
};
partition@80000 {
label = "u-boot-env";
reg = <0x80000 0x80000>;
read-only;
};
factory: partition@100000 {
label = "factory";
reg = <0x100000 0x40000>;
read-only;
};
partition@140000 {
label = "firmware";
reg = <0x140000 0x8000000>;
};
};
};
and the result of hexdump :
root@OpenWrt:/# hexdump -C /dev/mtd2
00000000 20 76 05 01 80 0a 80 10 01 7d ff ff ff ff ff ff | v.......}......|
00000010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
00000020 ff ff ff ff ff ff ff ff 80 0a 80 10 01 7d 80 0a |.............}..|
00000030 80 10 01 7d 22 0c 04 00 ff ff 3f 01 55 77 a8 aa |...}".....?.Uw..|
00000040 8c 88 ff ff 0a 00 00 00 00 00 00 00 00 00 ff ff |................|
00000050 ff ff 02 02 02 02 02 02 02 02 02 02 02 02 02 02 |................|
00000060 03 03 03 03 03 03 03 03 03 03 03 03 03 03 80 ff |................|
00000070 ff ff 80 ff ff ff 00 00 ff ff ff ff ff ff ff ff |................|
00000080 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
000000d0 20 ff ff ff ff ff ff ff ff ff ff ff ff ff 08 08 | ...............|
000000e0 08 08 04 00 07 07 04 00 08 08 04 00 07 07 04 00 |................|
000000f0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
00040000
May be there is something I missed in the dts file. I used the one by default, just adding the modifications one the hexa addresses to fit the actual ones.
Best regards,
Cédric