Linksys EA4500 luCi - opkg update - Failed to establish connection

Hello, I just flashed openwrt on my router, but now I am stuck at trying to install the luci gui.

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packag es/base/Packages.gz.
Failed to establish connection

Any help would be much appreciated

Here is the full log:

login as: root
root@192.168.1.1's password:

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


| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
|
_____|| |
||||___||| |____|
|
| W I R E L E S S F R E E D O M

DESIGNATED DRIVER (Bleeding Edge, 50072)

  • 2 oz. Orange Juice Combine all juices in a
  • 2 oz. Pineapple Juice tall glass filled with
  • 2 oz. Grapefruit Juice ice, stir well.
  • 2 oz. Cranberry Juice

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packag es/base/Packages.gz.
Failed to establish connection
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packag es/base/Packages.sig.
Failed to establish connection
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packag es/kernel/Packages.gz.
Failed to establish connection
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packag es/kernel/Packages.sig.
Failed to establish connection
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packag es/telephony/Packages.gz.
Failed to establish connection
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/telephony/Packages.sig.
Failed to establish connection
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/packages/Packages.gz.
Failed to establish connection
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/packages/Packages.sig.
Failed to establish connection
Failed to establish connection
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/routing/Packages.gz.
^C
root@OpenWrt:~#
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/base/Packages.gz.
Failed to establish connection
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/base/Packages.sig.
Failed to establish connection
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/kernel/Packages.gz.
Failed to establish connection
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/kernel/Packages.sig.
Failed to establish connection
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/telephony/Packages.gz.
Failed to establish connection
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/telephony/Packages.sig.
Failed to establish connection
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/packages/Packages.gz.
Failed to establish connection
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/packages/Packages.sig.
Failed to establish connection
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/routing/Packages.gz.
Failed to establish connection
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/routing/Packages.sig.
Failed to establish connection
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/luci/Packages.gz.
Failed to establish connection
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/luci/Packages.sig.
Failed to establish connection
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/management/Packages.gz.
Failed to establish connection
Downloading http://downloads.openwrt.org/snapshots/trunk/kirkwood/generic/packages/management/Packages.sig.
Failed to establish connection
Signature check failed.
Remove wrong Signature file.
Collected errors:

config defaults
option syn_flood 1
option input ACCEPT
option output ACCEPT
option forward REJECT

Uncomment this line to disable ipv6 rules

option disable_ipv6 1

config zone
option name lan
list network 'lan'
option input ACCEPT
option output ACCEPT
option forward ACCEPT

config zone
option name wan
list network 'wan'
list network 'wan6'
option input REJECT
option output ACCEPT
option forward REJECT
option masq 1
option mtu_fix 1

config forwarding
option src lan
option dest wan

We need to accept udp packets on port 68,

see https://dev.openwrt.org/ticket/4108

config rule
option name Allow-DHCP-Renew
option src wan
option proto udp
option dest_port 68
option target ACCEPT
option family ipv4

Allow IPv4 ping

config rule
option name Allow-Ping
option src wan
option proto icmp
option icmp_type echo-request
option family ipv4
option target ACCEPT

config rule
option name Allow-IGMP
option src wan
option proto igmp
option family ipv4
option target ACCEPT

Allow DHCPv6 replies

see https://dev.openwrt.org/ticket/10381

config rule
option name Allow-DHCPv6
option src wan
option proto udp
option src_ip fc00::/6
option dest_ip fc00::/6

  • /etc/config/firewall 1/194 0%

root@OpenWrt:~# vi /etc/config/network

config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config globals 'globals'
option ula_prefix 'fde2:f0c9:2eee::/48'

config interface 'lan'
option type 'bridge'
option ifname 'eth0'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'

config interface 'wan'
option ifname 'eth1'
option proto 'dhcp'

config interface 'wan6'
option ifname 'eth1'
option proto 'dhcpv6'

config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'

config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 5'

config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 6'

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~

  • /etc/config/network 1/41 2%

Blockquote

You have some strange old build. Likely the package repository has been moved.

You should install 18.06.2 which comes with LuCI.

3 Likes

@mk24 is correct. Designated Driver was the name of the development branch some years ago (circa 2015). Upgrade to a current and supported version.

1 Like

And if you would be so kind as to use the Pre-formatted text tool </> for including code in your posts, that would be very much appreciated!

1 Like

It should be a Pre-formatted text for code, as some carracters are used to indicate comments, so will display correctly if set to Pre-formatted text, otherwise if you include them as a quote the characters will be confused or formatting characters and you will end up getting these giant headings

1 Like

I have no idea how to revert back to stock firmware. I did a 30/30/30 hard reset.

No need to revert to stock, you should be able to upgrade to 18.06.2

Have a look here
https://openwrt.org/toh/start?dataflt[Model*~]=ea4500

Firmware OpenWrt Upgrade URL:
http://downloads.openwrt.org/releases/18.06.2/targets/kirkwood/generic/openwrt-18.06.2-kirkwood-linksys_viper-squashfs-sysupgrade.bin

Firmware OpenWrt snapshot Upgrade URL:
http://downloads.openwrt.org/snapshots/targets/kirkwood/generic/openwrt-kirkwood-linksys_viper-squashfs-sysupgrade.bin

1 Like

thanks, I am trying to follow this instructions but dont understand how to change the variables for the DOWNLOAD LINK

## Download and verify the OpenWrt firmware upgrade image

Download and use only OpenWrt firmware images ending in  **”-sysupgrade.bin“**  for command line upgrades.
For x86 systems there is no “sysupgrade” image, just be sure the new firmware image has the same family of filesystem as your old one.

![:!:](https://openwrt.org/lib/images/smileys/icon_exclaim.gif) Note: upgrade files must be placed in /tmp, as the sysupgrade procedure unmounts flash storage during the upgrade process. If the upgrade file is not in  **/tmp** , sysupgrade will NOT perform any upgrade and only reboot the system.

Download the desired upgrade file to your OpenWrt's  `/tmp`  directory and [verify firmware checksum](https://openwrt.org/docs/guide-quick-start/verify_firmware_checksum).  `/tmp`  directory is stored in the device RAM:

1. Check free memory is available: Run  `free` . Proceed, if “free Mem” is the size of your firmware file + some extra mem (at least twice the size of your firmware file is perfect).

2. Set the following variables to the download address of your OpenWrt firmware file (you must customize the URL!):

DOWNLOAD_LINK="http://URLOFFIRMWAREBIN"; SHA256SUMS="lhttp://URLOFSHA256"

3. Download and check the firmware checksum with:

cd /tmp;wget $DOWNLOAD_LINK;wget $SHA256SUMS;sha256sum -c sha256sums 2>/dev/null|grep OK

4. In the screen output, look for the correct checksum verification:

FILE_NAME: OK

5. Do not continue, if the checksum verification mismatches!

https://openwrt.org/docs/guide-user/installation/sysupgrade.cli

DOWNLOAD_LINK="http://downloads.openwrt.org/releases/18.06.2/targets/kirkwood/generic/openwrt-18.06.2-kirkwood-linksys_viper-squashfs-sysupgrade.bin"; SHA256SUMS="http://downloads.openwrt.org/releases/18.06.2/targets/kirkwood/generic/sha256sums"

1 Like
root@OpenWrt:/tmp# DOWNLOAD_LINK="http://downloads.openwrt.org/releases/18.06.2/targets/kirkwood/generic/openwrt-18.06.2-kirkwood-linksys_viper-squashfs-sysupgrade.bin"; SHA256SUMS="http://downloads.openwrt.org/releases/18.06.2/targets/k
irkwood/generic/sha256sums"
root@OpenWrt:/tmp# cd /tmp;wget $DOWNLOAD_LINK;wget $SHA256SUMS;sha256sum -c sha256sums 2>/dev/null|grep OK
Downloading 'http://downloads.openwrt.org/releases/18.06.2/targets/kirkwood/generic/openwrt-18.06.2-kirkwood-linksys_viper-squashfs-sysupgrade.bin'
Failed to establish connection
Downloading 'http://downloads.openwrt.org/releases/18.06.2/targets/kirkwood/generic/sha256sums'
Failed to establish connection
root@OpenWrt:/tmp#

Im still getting failed to establish connection error

root@OpenWrt:/# cd /tmp
root@OpenWrt:/tmp# wget http://downloads.openwrt.org/snapshots/targets/kirkwood/generic/openwrt-kirkwood-linksys_viper-squashfs-sysupgrade.bin
Downloading 'http://downloads.openwrt.org/snapshots/targets/kirkwood/generic/openwrt-kirkwood-linksys_viper-squashfs-sysupgrade.bin'
Failed to establish connection
root@OpenWrt:/tmp# root@OpenWrt:/tmp# wget http://downloads.openwrt.org/snapshots/targets/kirkwood/generic/openwrt-kirkwood-linksys_viper-squashfs-sysupgrade.bin
-ash: root@OpenWrt:/tmp#: not found
root@OpenWrt:/tmp# Downloading 'http://downloads.openwrt.org/snapshots/targets/kirkwood/generic/openwrt-kirkwood-linksys_viper-squashfs-sysupgrade.bin'
-ash: Downloading: not found
root@OpenWrt:/tmp# Failed to establish connection
-ash: Failed: not found
root@OpenWrt:/tmp# root@OpenWrt:/tmp#
-ash: root@OpenWrt:/tmp#: not found

do you have internet connection at all.
Is the router connected to the internet ?

You can download the files to your PC instead and copy them to the router using other methods
e.g ftp or scp

yes i have internet connection, that is how im replying to you, but im guessing theres some gateway/dns issue on the linksys im trying to configure. thiis is getting more complictaed i cant find any instruction on how to ftp scp the upgrade file

I have connected, the lan port on the linksys router to my pc ethernet port using rj45 cable, my pc has internet via usb tethered phone

The router can't connect itself to the Internet that way, so you would need to download to the PC disk first then copy to the router.

2 Likes

@realpandas,

I'm lost...if you're getting Internet through a tethered phone to your computer:

  • What do you intend to use the router for?
  • Is that reason related to why you thought it was connected already?
  • How do you intend to use the router after it's upgraded?

Basically, are you trying to connect your router to the phone, instead of the PC?

I’m setting up a pfsense firewall, and I need a wireless bridge for the wan on pfsense. The stock firmware doesn’t have the capability so instead of buying a new router/AP I thought I’d repurpose this old one.