OpenWrt Forum Archive

Topic: Update on Linksys WRT1900AC support

The content of this topic has been archived between 16 Sep 2014 and 7 May 2018. Unfortunately there are posts – most likely complete pages – missing.

Sorry if I sound too noob, but I don't know how to do that. I'm not sure where luci is. 'ls' shows bin dev etc, ... If you could get me started on how to get there, and how to open up an editor to edit the file, that would be appreciated. Thanks in advance. ^_^

(Last edited by ageofclark on 20 Apr 2015, 21:22)

ageofclark wrote:

Sorry if I sound too noob, but I don't know how to do that. I'm not sure where luci is. 'ls' shows bin dev etc, ... If you could get me started on how to get there, and how to open up an editor to edit the file, that would be appreciated. Thanks in advance. ^_^

Looking at the error it's pretty clear the dot isn't the culprit, or at least not all your problems:

wget: bad address 'downloads.openwrt.org'

Do you really have internet access from the router to the internet?

The error here is that it is trying to resolve 'downloads.openwrt.org' and failing, pointing at lack of internet from the router.

// Stefan

oh ok.. SOrry i ddint realize that you were trying to install Luci itself.
Sorry my router is currently down and i cant check the exact location. I think there should be a "opkg.conf" like file in /etc or some place. look in that file and see what the links look like i.e with no period at the end.

the text editor is "vi". So assuming the file is /etc/opkg.conf, you would do

vi /etc/opkg.conf

then hit "i" to be able to edit the file. Make the changes, if any to correct the links
type " :wq " and press enter.
Then try opkg update

EDIT: As the other user suggested, verify router's internet access. I was simply assuming the router had internet access.

(Last edited by alirz on 20 Apr 2015, 21:29)

@ageofclark

i think the openwrt repos are down. I tried building but git pull did not work so i had to resort to pulling from their mirror git page.

Easy to verify. Just open a browser and enter http://downloads.openwrt.org/ and you'll see it's up. Not saying it wasn't down a short while ago but it's up now.

// Stefan

There are no periods showing in the links. The entire list shows up as follows when I run vi /etc/opkg.conf:
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/ … kages/base
src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/ … ldpackages
src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/ … s/packages
src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/ … kages/luci
# src/gz chaos_calmer_routing http://downloads.openwrt.org/snapshots/ … es/routing
# src/gz chaos_calmer_telephony http://downloads.openwrt.org/snapshots/ … /telephony
# src/gz chaos_calmer_management http://downloads.openwrt.org/snapshots/ … management
# src/gz chaos_calmer_targets http://downloads.openwrt.org/snapshots/ … es/targets

Do I need to edit the opkg-lists file instead maybe?

ageofclark wrote:

There are no periods showing in the links. The entire list shows up as follows when I run vi /etc/opkg.conf:
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/ … kages/base
src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/ … ldpackages
src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/ … s/packages
src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/ … kages/luci
# src/gz chaos_calmer_routing http://downloads.openwrt.org/snapshots/ … es/routing
# src/gz chaos_calmer_telephony http://downloads.openwrt.org/snapshots/ … /telephony
# src/gz chaos_calmer_management http://downloads.openwrt.org/snapshots/ … management
# src/gz chaos_calmer_targets http://downloads.openwrt.org/snapshots/ … es/targets

Do I need to edit the opkg-lists file instead maybe?

No that looks fine. So the issue might be internet access or perhaps DNS issue
Can you ping www.google.com from the router?
If not, can you ping 206.126.112.143

I can ping google.com just fine. How do you stop it from continuously pinging once you start? I'll try the next address, but I'd like to know how to stop it first, without of course having to shut down the router. I tried escape, and q, but those didn't work. Thanks.

(Last edited by ageofclark on 20 Apr 2015, 21:49)

ageofclark wrote:

I can ping google.com just fine. How do you stop it from continuously pinging once you start? I'll try the next address, but I'd like to know how to stop it first, without of course having to shut down the router. I tried escape, and q, but those didn't work. Thanks.

ctrl C

PS. You are brave to venture into flashing openwrt on a router. Sounds like you dont have a lot of linux experience..Be careful though.. Things can get messy.. smile

(Last edited by alirz on 20 Apr 2015, 21:55)

i've managed to lock myself out of my router. Luci and ssh.....
Is the reset button suppose to revert to factory defaults? Is there any special sequence to trigger that or a simple press?

thanks

Thanks. I can ping both addresses just fine.

Here are the instructions for resetting back, but it has never worked for me.

Reset the router by holding the reset button in until the PWR light starts to flash {mine takes about 15 sec's} Once the power light stops flashing, you can power off the router with the power switch.

Turn the power back on and the PWR light will light. As soon as any other light turns on, power off the router with the power switch.

Turn the power back on and the PWR light will light. As soon as any other light turns on, power off the router with the power switch. Turn the power back on and the PWR light will light. As soon as any other light turns on, power off the router with the power switch.

Turn the power back on and the PWR light will light. This time just let the router power all the way up. It should now be on the alternate firmware.

I can ping downloads.openwrt.org and I get back 64 bytes from 78.24.191.177, so I'm really confused as to what is going on. I don't want to have to send this router back as having bricked.

Can anyone help me get this thing to load luci? From the wiki page, it states that Kaloz image "includes" all of the lates fixes and luci, so I installed that one. Unfortunately, it does not appear to be true.

If I don't include the http:// in the wget statement I am able to download the file. So should I change all of those links in the opkg.conf to not include the http://?

worst case scenario you can download luci .ipk files from the download links above. copy them to the router via scp and install the luci package manually. Its very easy as long as you have all the required packages.

look at the "Minimalistic offline installation" at this page : http://wiki.openwrt.org/doc/howto/luci.essentials

I can offer to help remotely via a remote session or something if you want. i.e team viewer etc...

(Last edited by alirz on 20 Apr 2015, 22:13)

ageofclark wrote:

If I don't include the http:// in the wget statement I am able to download the file. So should I change all of those links in the opkg.conf to not include the http://?

Sure you can try. No harm..

Turns out that the files were already there, but they weren't activated. I just skipped the first part of the instructions and continued on, and everything else worked great. I can log into the web interface now and configure my router. Phew. Thanks for the help. I think it will be much easier for me with future builds now. ^_^

Not sure what you mean by "activated". But anyways, good to know that its working.

Sorry. The web interface was not yet enabled. I just had to "activate" the gui, but I'm still curious as to why I was getting the error 404 instead of "file already exists" or something like that. Either way, I'm glad that it's now up and running. Now to configure it when I get home! ^_^

(Last edited by ageofclark on 20 Apr 2015, 22:37)

An administrator of the site might want to add a note to the instructions for people to skip the opkg update portion when using Kaloz img file. It might stop noobs like me from wasting the forum's time.

Thank you all for your awesome work on building these by the way. It must be a monster, but I'm glad that there are people out there making this happen. I get so much better performance out of these builds than I ever did with the stock FW.

These forums are great. Thanks to everyone else for all of your support and knowledge as well! ^_^

r45415 > r45511

BTY, I had to do it x2, I had some BAD blocks sad

Using username "root".
Authenticating with public key "rsa-key-20120810"


BusyBox v1.23.2 (2015-04-14 07:11:09 UTC) built-in shell (ash)

Linksys WRT1900AC (Mamba)
Security is enabled, and your IP address has been logged.

root@AC1900:~# cd /tmp
root@AC1900:/tmp# sysupgrade -c openwrt-mvebu-armada-xp-linksys-mamba-squashfs-s
ysupgrade.tar
Saving config files...
killall: watchdog: no process killed
Sending TERM to remaining processes ... logd rpcd netifd odhcpd crond minidlna uhttpd smbd nmbd collectd memcached ntpd vnstatd dnsmasq ubusd askfirst
Sending KILL to remaining processes ... askfirst
Switching to ramdisk...
Performing system upgrade...
Unlocking kernel1 ...

Writing from <stdin> to kernel1 ...
ubiattach: error!: cannot attach mtd5
           error 22 (Invalid argument)
ubiformat: mtd5 (nand), size 38797312 bytes (37.0 MiB), 296 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 295 -- 100 % complete
ubiformat: 120 eraseblocks have valid erase counter, mean value is 1
ubiformat: warning!: 176 of 296 eraseblocks contain non-UBI data
ubiformat: warning!: only 120 of 296 eraseblocks have valid erase counter
ubiformat: erase counter 0 will be used for all eraseblocks
ubiformat: note, arbitrary erase counter value may be specified using -e option
ubiformat: use erase counter 0 for all eraseblocks
ubiformat: formatting eraseblock 295 -- 100 % complete
UBI device number 2, total 296 LEBs (37584896 bytes, 35.8 MiB), available 272 LEBs (34537472 bytes, 32.9 MiB), LEB size 126976 bytes (124.0 KiB)
Volume ID 0, size 19 LEBs (2412544 bytes, 2.3 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 32124928
Volume ID 1, size 253 LEBs (32124928 bytes, 30.6 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs_data", alignment 1
sysupgrade successful



Using username "root".
Authenticating with public key "rsa-key-20120810"


BusyBox v1.23.2 (2015-04-20 18:55:26 UTC) built-in shell (ash)

Linksys WRT1900AC (Mamba)
Security is enabled, and your IP address has been logged.

root@AC1900:~# cd /tmp
root@AC1900:/tmp# sysupgrade -c openwrt-mvebu-armada-xp-linksys-mamba-squashfs-s
ysupgrade.tar
Saving config files...
killall: watchdog: no process killed
Sending TERM to remaining processes ... logd rpcd netifd odhcpd crond minidlna uhttpd smbd nmbd collectd memcached ntpd vnstatd dnsmasq ubusd askfirst
Sending KILL to remaining processes ... askfirst
Switching to ramdisk...
Performing system upgrade...
Unlocking kernel2 ...

Writing from <stdin> to kernel2 ...
UBI device number 2, total 296 LEBs (37584896 bytes, 35.8 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
Volume ID 0, size 19 LEBs (2412544 bytes, 2.3 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 32124928
Volume ID 1, size 253 LEBs (32124928 bytes, 30.6 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs_data", alignment 1
sysupgrade successful

Much better smile

(Last edited by gufus on 21 Apr 2015, 01:04)

So i think there is indeed something wrong with the repo

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/ … ckages.gz.
Collected errors:
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/ … ckages.gz, wget returned 8.

root@OpenWrt:~# ping www.google.com
PING www.google.com (216.58.219.196): 56 data bytes
64 bytes from 216.58.219.196: seq=0 ttl=56 time=23.348 ms
64 bytes from 216.58.219.196: seq=1 ttl=56 time=23.477 ms
^C
--- www.google.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 23.348/23.412/23.477 ms

Can someone please post the contents of "opkg.conf" from a build from a few days ago?

alirz wrote:

Can someone please post the contents of "opkg.conf" from a build from a few days ago?

BTY, this is r45511


dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/ … kages/base
src/gz chaos_calmer_luci http://downloads.openwrt.org/snapshots/ … kages/luci
src/gz chaos_calmer_management http://downloads.openwrt.org/snapshots/ … management
src/gz chaos_calmer_packages http://downloads.openwrt.org/snapshots/ … s/packages
src/gz chaos_calmer_routing http://downloads.openwrt.org/snapshots/ … es/routing
src/gz chaos_calmer_telephony http://downloads.openwrt.org/snapshots/ … /telephony
# src/gz chaos_calmer_targets http://downloads.openwrt.org/snapshots/ … es/targets

(Last edited by gufus on 21 Apr 2015, 00:09)

@gufus

Thanks.

Sorry, posts 4601 to 4600 are missing from our archive.