Current work in progress:
Currently need to figure out the GPIOs for the LEDs. No idea how that's done.
Same with the firmware header for stock firmware. The original tarball doesn't make it easy to figure out.
Current work in progress:
Currently need to figure out the GPIOs for the LEDs. No idea how that's done.
Same with the firmware header for stock firmware. The original tarball doesn't make it easy to figure out.
may be:
GPIO13: POWER (yellow)
GPIO14: POWER (blue)
GPIO15: INTERNET (yellow)
MT7621 SW port0 LED pin: INTERNET (blue)
ref: internet_led.sh
and power_wps_led.sh
in /etc/led/
in E7350's squashfs-root
from "cbttools/add_pattern.sh" and "profiles/GOLF/cbt-config" in GPL tar of E7350:
0x0 0x4 0x8 0xC
+-------------------+----+--------------+----+--------------+-------------------+
0x0 |Magic Number (GOLF)| *1 | FW Date *2 | *3 | FW Ver *4 | CRC32 (RootFS) |
+-------------------+----+--------------+----+--------------+-------------------+
0x10 | Length (RootFS) | CRC32 (Kernel) | Length (Kernel) | 5C 78 00 00 |
+-------------------+-------------------+-------------------+-------------------+
*1 (Image Type) -> 0x01
*2 (FW Date) -> 0x15060B: Year -> 21, Month -> 6, Day -> 11
*3 (HW Ver) -> 0x01
*4 (FW Ver) -> 0x010100: Major -> 1, Minor -> 1, Patch -> 0
In E7350, "Kernel" data and "RootFS" data for CRC32/Length are equal
Maybe it will pass the check even if the fields other than "Magic Number" are empty.
ref: /sbin/fw_upgrade_common.sh
When updating from WebUI, there is a high possibility that each field is checked...
ref: /bin/httpd
I'll test this when I can.
edit: alright so GPIO 13 and 14 control the same LED. 13 makes it an orange color. 14 makes it blue. Enabling both gives a mix. 15 is for an orange color for the WAN port.
No idea if the LAN LEDs are controllable. Also it seems I need to figure out the WPS and RESET button GPIOs.
edit2: RESET is at GPIO 7. No idea how to check the WPS one.
from extracted dts of E7350:
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <0x01>;
#size-cells = <0x00>;
poll-interval = <0x14>;
reset {
label = "reset";
gpios = <0x02 0x06 0x01>; // --> GPIO 6, Active Low
linux,code = <0x198>;
};
wps {
label = "wps";
gpios = <0x02 0x12 0x01>; // --> GPIO 18, Active Low
linux,code = <0x211>;
};
};
You are a miracle worker. And yes, it is 6. I misspoke.
The GPL tar of E7350 has the information about the header, I updated the previous comment.
Curious - any movement on this? Do we have to wait until the next OpenWrt release?
While I currently use this, I have no idea how to write a proper header so that the stock firmware accepts it. So stalled for now.
I wrote a example code:
$ hexdump -n 128 -C openwrt-ramips-mt7621-linksys_e7350-squashfs-factory2.bin
00000000 47 4f 4c 46 01 15 0c 16 01 09 09 09 85 a5 c9 62 |GOLF...........b|
00000010 00 86 00 00 85 a5 c9 62 00 86 00 00 5c 78 00 00 |.......b....\x..|
00000020 27 05 19 56 9b df 56 00 61 c3 30 67 00 29 7f 01 |'..V..V.a.0g.)..|
00000030 80 00 10 00 80 00 10 00 3d aa 86 e0 05 05 02 00 |........=.......|
00000040 4d 49 50 53 20 4f 70 65 6e 57 72 74 20 4c 69 6e |MIPS OpenWrt Lin|
00000050 75 78 2d 35 2e 31 30 2e 38 37 00 00 00 00 00 00 |ux-5.10.87......|
00000060 00 90 80 40 00 98 80 40 00 68 80 40 00 60 08 40 |...@...@.h.@.`.@|
00000070 00 10 09 3c 1f 00 29 35 25 40 09 01 1f 00 08 39 |...<..)5%@.....9|
00000080
Note: I don't have a E7350 and didn't test.
I'll take mine out of production soon and do some testing. Thanks.
This looks identical to the Belkin RT1800, which can be picked up for £23.99 here in the UK:
https://www.ebuyer.com/1425989-belkin-rt1800-wireless-router-ethernet-dual-band-2-4-ghz-5-ghz-5g-rt1800-uk
Same ODM Cybertan:
http://en.techinfodepot.shoutwiki.com/wiki/Linksys_E7350
yes it is.
Update: https://github.com/openwrt/openwrt/pull/4470 now includes support for the Belkin RT1800. I think all that's left is cosmetic stuff regarding the commit message. I also need to test the WAN LED to make sure it works properly.
This was merged.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.