Support for Linksys E2500 V4

This version keeps going into failsafe mode. Also WPS light is always blinking on the back.

Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
- failsafe button reset was pressed -
- failsafe -
[    6.921717] random: dropbearkey: uninitialized urandom read (32 bytes read)
Generating 1024 [    6.930471] random: dropbearkey: uninitialized urandom read (32 bytes read)
bit rsa key, this may take a while...
[    8.073882] rt3050-esw 10110000.esw: link changed 0x10
[    8.205205] rt3050-esw 10110000.esw: link changed 0x11
[    9.412493] random: dropbearkey: uninitialized urandom read (32 bytes read)
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCQ[    9.514364] random: dropbear: uninitialized urandom read (32 bytes read)
/9zLILfBh+K0p3EVK2zzedIjErB5OzJXa4GIEa+9lVkHkSJWr8hc5Uqqu9UMcMElYELw4ZxAUMCjkehN2K+Xa7CsgPH/AdHv9S0aaFiilaIxjn1EJII35GeR75Kqflz/ubOWb//EfbZPgBiTdL3zgI8FitoJaUwQM5N43mUS8Q== root@(none)
Fingerprint: sha1!! 45:f7:77:5b:02:9d:e0:b6:98:b1:70:d1:ef:ad:30:22:d7:5d:59:61


BusyBox v1.30.1 () built-in shell (ash)

ash: can't access tty; job control turned off
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 19.07.1, r10911-c155900f66
 -----------------------------------------------------
================= FAILSAFE MODE active ================
special commands:
* firstboot          reset settings to factory defaults
* mount_root     mount root-partition with config files

after mount_root:
* passwd                         change root's password
* /etc/config               directory with config files

for more help see:
https://openwrt.org/docs/guide-user/troubleshooting/
- failsafe_and_factory_reset
- root_password_reset
=======================================================

root@(none):/#

It means that reset button is pressed from openwrt point of view. I've changed gpio polarity.

It's standard indication of openwrt safemode. I've set wps led as openwrt status led.
New version here:

Also check macaddress. Prev version openwrt was (as output of "ifconfig -a"):
br-lan Link encap:Ethernet HWaddr 30:23:03:FE:CB:75
eth0 Link encap:Ethernet HWaddr 30:23:03:FE:CB:75
eth0.1 Link encap:Ethernet HWaddr 30:23:03:FE:CB:75
eth0.2 Link encap:Ethernet HWaddr 30:23:03:FE:CB:76
wlan0 Link encap:Ethernet HWaddr 00:11:22:00:00:30
wlan1 Link encap:Ethernet HWaddr 00:00:00:00:00:10

but linksys firmware:
WAN_MAC_ADDR=30:23:03:FE:CB:76
wan_hwaddr=30:23:03:FE:CB:76
lan_hwaddr=30:23:03:FE:CB:75
wl0_hwaddr=30:23:03:FE:CB:77
wl1_hwaddr=30:23:03:FE:CB:78

I've tried to fix this.

back into failsafe mode again.

Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
- failsafe button reset was pressed -
- failsafe -
[    6.921785] random: dropbearkey: uninitialized urandom read (32 bytes read)
Generating 1024 [    6.930562] random: dropbearkey: uninitialized urandom read (32 bytes read)
bit rsa key, this may take a while...
[    8.057684] rt3050-esw 10110000.esw: link changed 0x10
[    8.177151] random: dropbearkey: uninitialized urandom read (32 bytes read)
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCN[    8.278803] random: dropbear: uninitialized urandom read (32 bytes read)
sux9QEwY81xERonn1HY41anNvoNAm4E/X8T/Zxc7zJ0+vS6D/XaYPx1ikpt+geANm7f0RxH2HGFtXxmBGnSs/PGl/KdudoinyvizpIj/OmpWOLZtnEajIQclhab2Parcj27+IyKEhvjEs3KRL8v0UpEbK6oWhlMqoGkoeXSgWw== root@(none)
Fingerprint: sha1!! 9a:1f:62:0a:3d:25:4e:5f:96:29:6a:ba:31:db:24:31:dc:e0:46:c0


BusyBox v1.30.1 () built-in shell (ash)

ash: can't access tty; job control turned off
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 19.07.1, r10911-c155900f66
 -----------------------------------------------------
================= FAILSAFE MODE active ================
special commands:
* firstboot          reset settings to factory defaults
* mount_root     mount root-partition with config files

after mount_root:
* passwd                         change root's password
* /etc/config               directory with config files

for more help see:
https://openwrt.org/docs/guide-user/troubleshooting/
- failsafe_and_factory_reset
- root_password_reset
=======================================================

ifconfig -a

root@(none):/# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 30:23:03:FE:9B:01
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::3223:3ff:fefe:9b01/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:314 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:30343 (29.6 KiB)  TX bytes:1839 (1.7 KiB)
          Interrupt:5

lo        Link encap:Local Loopback
          LOOPBACK  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Something wrong with reset gpio. May be incorrectly found gpio?
In failsafe mode command line do

cat /sys/kernel/debug/gpio

then press and hold(!) reset button and again

cat /sys/kernel/debug/gpio

BTW macaddress is different from prev. Another device?

cat /sys/kernel/debug/gpio

root@(none):/# cat /sys/kernel/debug/gpio
cat: can't open '/sys/kernel/debug/gpio': No such file or directory

I have to check mac. more concerned with getting GPIO sorted.

I've removed reset button. Last archive is refreshed. Install it and check gpio again. Show macaddress too.

cat /sys/kernel/debug/gpio

root@OpenWrt:/# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/10000600.gpio, 10000600.gpio:

gpiochip1: GPIOs 32-63, parent: platform/10000600.gpio, 10000600.gpio:
 gpio-37  (                    |e2500-v4:green:wps  ) out hi
 gpio-38  (                    |wps                 ) in  hi

gpiochip2: GPIOs 64-95, parent: platform/10000600.gpio, 10000600.gpio:
root@OpenWrt:/#

ifconfig -a

br-lan    Link encap:Ethernet  HWaddr 30:23:03:FE:9B:01
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::3223:3ff:fefe:9b01/64 Scope:Link
          inet6 addr: fdae:9979:a208::1/60 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:352 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:95431 (93.1 KiB)  TX bytes:3914 (3.8 KiB)

eth0      Link encap:Ethernet  HWaddr 30:23:03:FE:9B:01
          inet6 addr: fe80::3223:3ff:fefe:9b01/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:420 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:123504 (120.6 KiB)  TX bytes:16963 (16.5 KiB)
          Interrupt:5

eth0.1    Link encap:Ethernet  HWaddr 30:23:03:FE:9B:01
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:352 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:95431 (93.1 KiB)  TX bytes:3914 (3.8 KiB)

eth0.2    Link encap:Ethernet  HWaddr 30:23:03:FE:9B:02
          inet6 addr: fe80::3223:3ff:fefe:9b02/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:10624 (10.3 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:44 errors:0 dropped:0 overruns:0 frame:0
          TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2992 (2.9 KiB)  TX bytes:2992 (2.9 KiB)

wlan0     Link encap:Ethernet  HWaddr 30:23:03:FE:9B:03
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan1     Link encap:Ethernet  HWaddr 30:23:03:FE:9B:04
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

macadresses are ok.
Now you can test reset gpio 8 by hand:

  1. Export gpio 8 for easy test:
echo 8 >/sys/class/gpio/export
echo in >/sys/class/gpio/gpio8/direction
  1. Then check with that gpio8 is visiable:
cat /sys/kernel/debug/gpio
  1. Press and hold reset button. Than do again:
cat /sys/kernel/debug/gpio
  1. If state of gpio8 don't change high/low than it's not reset button :frowning:

The same procedure is made by script from openwrt site. But I don't understand why reset gpio was determined incorrectly. In this case you need repeat script more carefully.

.2

root@OpenWrt:/# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/10000600.gpio, 10000600.gpio:
 gpio-8   (                    |sysfs               ) in  lo

gpiochip1: GPIOs 32-63, parent: platform/10000600.gpio, 10000600.gpio:
 gpio-37  (                    |e2500-v4:green:wps  ) out lo
 gpio-38  (                    |wps                 ) in  hi

gpiochip2: GPIOs 64-95, parent: platform/10000600.gpio, 10000600.gpio:
root@OpenWrt:/#

.3

root@OpenWrt:/# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/10000600.gpio, 10000600.gpio:
 gpio-8   (                    |sysfs               ) in  lo

gpiochip1: GPIOs 32-63, parent: platform/10000600.gpio, 10000600.gpio:
 gpio-37  (                    |e2500-v4:green:wps  ) out lo
 gpio-38  (                    |wps                 ) in  hi

gpiochip2: GPIOs 64-95, parent: platform/10000600.gpio, 10000600.gpio:

So this

is incorrect. Try script for button again. And check it result by hand.

now [gpiochip0:11:in] is changing with reset.

Archive is updated.

we have working reset button! :grinning:
i guess thats pretty much it for this than right? all the GPIO's are mapped, MAC addresses are fixed and the router runs the software very well now.

If I understand correctly all is working? wps led is green (cosmetic)?

yes, WPS LED is on and green.

What is your next plan? Do you want to sent patches to openwrt source tree?
I can help but I hate to support device not owned by me :slight_smile:

yes go ahead and submit it to them, it makes me happy to to contribute to the community here. i dont know what all is involved in that process to do it myself. also you have all the data from building the firmware that i do not.

See
https://openwrt.org/submitting-patches
https://openwrt.org/wiki/wikirules
and the only done
https://openwrt.org/docs/guide-developer/add.new.device
A lot of tedious work... :frowning:
If you are a linux user I can help but I don't want to do it myself.

i will look at it.

This model was available openbox, I bought it. I am willing to try to get it committed if no one else is working on it. I was wondering if @123serge123 has the *.dts, image *.mk and board.d files in one of the links. My other project is stalled waiting for parts from the PRC to repair my backup,

Edit found the *.dts in the last download.

Edit2: Is the the recommended Installation procedure?
https://forum.openwrt.org/t/support-for-linksys-e2500-v4/56695/12?u=shep