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.

Hi everyone. I accidentally bricked my router so I bought a serial-usb cable and I'm attempting to reload the firmware from there. so I went through the forums (this one included), and tried to reload the u-boot by following this tutorial: https://github.com/jimmychungbelkin/Mam … 6280ba28fb

I end up getting a bunch of:

BootROM: Bad Header at offset xxxxxxxx

and then finally:

BootROM: Trying UART.

I have tried everything and looked everywhere. Been working on this now for almost 3 days straigh and have had no luck. Any advice would be greatly appreciated. Let me know if you need any other details!

Thanks!

(Last edited by Lemmikens on 4 Mar 2016, 19:22)

Lemmikens wrote:

Hi everyone. I accidentally bricked my router so I bought a serial-usb cable and I'm attempting to reload the firmware from there. so I went through the forums (this one included), and tried to reload the u-boot by following this tutorial: https://github.com/jimmychungbelkin/Mam … 6280ba28fb

I end up getting a bunch of:

BootROM: Bad Header at offset xxxxxxxx

and then finally:

BootROM: Trying UART.

I have tried everything and looked everywhere. Been working on this now for almost 3 days straigh and have had no luck. Any advice would be greatly appreciated. Let me know if you need any other details!

Thanks!

You erased you u-boot partition and the only way to recover is to reload u-boot.

https://wiki.openwrt.org/toh/linksys/wrt1900ac

Chadster! You have been my hero throughout all this. I see your name pop up everywhere. Thank you for all you've done on this. I followed the instructions and now when I reset the router through:

Marvell>>> reset

I'm stuck on:

Loading kernel ...

and it freezes. Any ideas? I was looking at this thread:

https://dev.openwrt.org/ticket/21712#no2

but wasn't really following (I'm relatively new to Linux).

Thanks again!

InkblotAdmirer wrote:

So far so good -- rebuilt with the latest commits.

5G network:  sustained file transfers over 50MB/s (peaks into 60MB/s!!)
2G network:  sustained file transfers over 17MB/s

Now for the long-term stability testing...

There was a recent flurry of commits for mac80211 and kernel update, so I rebuilt.  5G network speed was hit pretty hard (down to 3MB/sec) so I did a bit of debugging.

Rebuilt without this commit:

http://git.openwrt.org/?p=15.05/openwrt … 440cc4a0f1

And speeds are back up.  Since they are "pending fixes" I don't know that I'm going to pick and choose patches to figure out which is the culprit -- I expect the issue will be resolved in the final fix.

All other commits included in my build, and running on 3.18.27 kernel.  5G speeds back to normal.

@InkblotAdmirer

The mac80211 fixes address kernel 4.4. 3.18.27 is pretty old.

nitroshift

Hi all.
I offer a script, as a toy, for management of speed of the fan. The logic of its work is based on classical PID a regulator. The regulator considers a level of a mismatch between a preset value and current, dynamics of change of temperature and time of a mismatch in a contour of regulation.
It is possible to enter factors into a script changing work of a regulator in only in the form of integers.
Unfortunately a code not so beautiful, as my knowledge of programming too small. Can who can it will improve.

#!/bin/bash

############ The task of temperature
TaskTemp=75443                  # 75 C CPU & WiFi
K_DDR=$((TaskTemp-60000))       # 60 C DDR

############ The task of factors of a regulator
FanCtrl=`cat /sys/class/hwmon/hwmon0/pwm1`
K_Prop=200      # 50...400 default - 200
K_Dif=30        # 10...100 default - 40

############
while true ; do

T[1]=$((`cat /sys/class/hwmon/hwmon1/temp1_input` + K_DDR))
T[2]=`cat /sys/class/hwmon/hwmon1/temp2_input`
T[3]=`cat /sys/class/hwmon/hwmon2/temp1_input`
CurTemp=0
FanCtrl=`cat /sys/class/hwmon/hwmon0/pwm1`

############ Choice of the greatest temperature
for ((i=1; i<=${#T[*]}; i++)); do

        T=$((T[$i]))

        if [ $T -gt $CurTemp ]
        then
                CurTemp=$T
        fi
done

############ Proportional part
FctrProp=$(((CurTemp - TaskTemp) / K_Prop))

############ Differential part
FctrDif=$(((CurTemp - PrevTemp) / K_Dif))

############ Control Fan + Integrated & Filter

if [ $((CurTemp-TaskTemp)) -ge -800 ] && [ $((CurTemp-TaskTemp)) -le 800 ]
        then
                FanCtrl=$((FanCtrl + (FctrProp + FctrDif) / 2))
        else
                FanCtrl=$((FctrProp + FctrDif + FanCtrl))
fi

        if [ $FanCtrl -ge 255 ]
        then
                FanCtrl=255
        fi
        if [ $FanCtrl -le 0 ]
        then
                FanCtrl=0
        fi

        if [ $FanCtrl -ge 255 ] && [ $CurTemp -ge 90000 ]
        then
                echo "`date`: Dangerous Temperature" >> /root/overheat.log
                echo `sensors|grep +` >> /root/overheat.log
                echo 255 > /sys/class/leds/mamba:amber:wps/brightness
        else
                echo 0 > /sys/class/leds/mamba:amber:wps/brightness
        fi

echo $FanCtrl > /sys/class/hwmon/hwmon0/pwm1
echo $FanCtrl > /sys/class/leds/mamba:amber:wan/brightness
#printf "%s      %s      %s      %s      %s\n" $FctrProp $FctrDif $FanCtrl $CurTemp
sleep 10
PrevTemp=$CurTemp
done

(Last edited by ValCher on 15 Mar 2016, 00:18)

@nitroshift

May I ask how your use your edgerouter lite? Is that doing dhcp? or does that split your 1 ip to the two routers? I'm looking into making a similar network setup since the wrt are unstable hmm Mine went down 3 times 2 days ago then i turned off the wifi and used another router as an ap only to find the network went down as well and a reboot solved the problem.

nitroshift wrote:

@InkblotAdmirer

The mac80211 fixes address kernel 4.4. 3.18.27 is pretty old.

Thanks for the note.  I somewhat expected that, given the reports that late model trunk builds were stable.

In any event, I bit the bullet and ported my build to trunk and rebuilt based on the latest as of right now.  I figured that it is likely that a 15.05.1 would require a complete re-setup if the kernel is moving to 4.4, although perhaps that won't be the case.  Also, I had a 2.4G wireless halt after about 2 days so I figured CC is not going to be stable on wireless until kernel 4.4 is ported.

In any event... I'm up and running with a trunk build and network speeds are very nice with no mac80211 patches omitted.  Other than personalization I added only two patches, Chadster's mwlwifi patch and the 4.4 NAND timeout patch.

@lifehacksback

My EdgeRouter Lite (running 1.8.0 firmware, no DHCP) is set up in 1WAN+2LAN mode. Its only job is to handle the PPPoE connection and split the connection in 2 separate LAN's that can't access each other (one is my home network and the other is for guests). On each network I have a static WAN address WRT1900AC with its own set of firewall rules and separate SSID's and passwords (in turn they are both running DHCP servers). I had to come up with this setup since the WRT1900AC can't handle a gigabit PPPoE connection.

nitroshift

nitroshift wrote:

the WRT1900AC can't handle a gigabit PPPoE connection.

Is that because no hardware acceleration has been made available for OpenWRT ? Cause with PPPoE, i reached 800Mbps with stock firmware and around 380-450 (depending on packet size) with OpenWRT.

Do you know if Marvell released a bit of code for this ? Or if an OpenWRT dev is on it ?

mrfrezee wrote:
nitroshift wrote:

the WRT1900AC can't handle a gigabit PPPoE connection.

Is that because no hardware acceleration has been made available for OpenWRT ? Cause with PPPoE, i reached 800Mbps with stock firmware and around 380-450 (depending on packet size) with OpenWRT.

Do you know if Marvell released a bit of code for this ? Or if an OpenWRT dev is on it ?

What about pure Ethernet?
Anyone measured max bandwidth on ETTH connection, that WRT1900AC is able to reach?

No issues reaching 950-975mbps via the switch ports.

On WAN port with NAT?

belliash wrote:

On WAN port with NAT?

The current build I'm on, I have no issues reaching 700-850mbps on the WAN port with NAT.

Anyone else seeing mvebu folder as empty on snapshots and if you manually type 15.05.1 into the URL you get 403 forbidden but 404 errors for any other address? Is it dropping today? Anyone have a most recent snapshot you could link me? wifi hangs are getting annoying.

tului wrote:

Anyone else seeing mvebu folder as empty on snapshots and if you manually type 15.05.1 into the URL you get 403 forbidden but 404 errors for any other address?

Buildbot is back online since a few days, but mvebu has been unlucky. After the svn-to-git transition was done and builds started to work, there were upload problems by the buildslaves and a successful snapshot build was wasted, and the last few attempts have run into faulty buildslaves or config changes in middle of the build.
http://buildbot.openwrt.org:8010/builders/mvebu

Roughly half fo the platforms have got new snapshots (date is March 7 or later in https://downloads.openwrt.org/snapshots … =M&O=D ), but mvebu and e.g. the popular ar71xx/generic are still without snapshots :-(

In principle it should be built roughly once per day, so the snapshot be done in 1-2 days (unless there is again some unluck with a buildslave.)

And yes, the 15.05.1 dir has been 403 for 2-3 days. Hopefully the release is forthcoming.

is that the reason why the package repos are down for trunk? im unable to run "opkg update". It says url not found...
i have had the following in my conf for months without and problem. I tried opkg update today after like 3 months and got the error

my sources:

src/gz designated_driver_base http://downloads.openwrt.org/snapshots/ … kages/base
src/gz designated_driver_luci http://downloads.openwrt.org/snapshots/ … kages/luci
src/gz designated_driver_management http://downloads.openwrt.org/snapshots/ … management
src/gz designated_driver_packages http://downloads.openwrt.org/snapshots/ … s/packages
src/gz designated_driver_routing http://downloads.openwrt.org/snapshots/ … es/routing
src/gz designated_driver_telephony http://downloads.openwrt.org/snapshots/ … /telephony


error when updating opkg list:

Downloading http://downloads.openwrt.org/snapshots/ … ckages.gz.
Downloading http://downloads.openwrt.org/snapshots/ … ckages.gz.
Downloading http://downloads.openwrt.org/snapshots/ … ckages.gz.
Downloading http://downloads.openwrt.org/snapshots/ … ckages.gz.
Downloading http://downloads.openwrt.org/snapshots/ … ckages.gz.
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.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/ … ckages.gz, wget returned 8.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/ … ckages.gz, wget returned 8.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/ … ckages.gz, wget returned 8.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/ … ckages.gz, wget returned 8.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/ … ckages.gz, wget returned 8.

(Last edited by alirz on 9 Mar 2016, 04:23)

hnyman wrote:
tului wrote:

Anyone else seeing mvebu folder as empty on snapshots

Buildbot is back online since a few days, but mvebu has been unlucky. ... the last few attempts have run into faulty buildslaves or config changes in middle of the build.
http://buildbot.openwrt.org:8010/builders/mvebu

alirz wrote:

is that the reason why the package repos are down for trunk? im unable to run "opkg update". It says url not found....

@alirz
Yes, the previous messages discuss just that.
A new mvebu build run has just started in buildbot, so if all goes well, the snapshot should be ready in 14-16 hours.
http://buildbot.openwrt.org:8010/builde … builds/168

hnyman wrote:

Roughly half fo the platforms have got new snapshots (date is March 7 or later in https://downloads.openwrt.org/snapshots … =M&O=D ), but mvebu and e.g. the popular ar71xx/generic are still without snapshots :-(

RATS !

davidc502 wrote:
belliash wrote:

On WAN port with NAT?

The current build I'm on, I have no issues reaching 700-850mbps on the WAN port with NAT.

I'm seeing 870 MBps with 20 - 25% CPU load due to some improvements that aren't public yet.

nitroshift

as it is now to collect firmware?

hI @ALL!

For one and the last time before i drive to by somethink else than my Netgear R7000.

Will there be wifi support from openWRT ?
If not, why not? Somebody need to tell me why this will not be done?!

Is there a nother way to implement the wifi drivers into openwrt chaoscalmer 15.05? Mey not supported from openwrt dev?

I am really unhappy about not supporting the wifi at the R7000 and if i read correct than as well on R8000 and above??? My htought was to get one of the higher one next..

Running right now dd-wrt with entware. But i like it how openwrt and that not all is installed by default.

If hopeless with th RXXXX series, wich router hasd the same or even better perfomance and hardware fully supported of all of the costum firmware stuff, WITHOUT problems and extra installation rules and so on?
Than i am going to buy a total different one...cry, i liked this R7000... May Linksys WRT1900ACS ?

Please give me an update!

Thank you all!

Regards,

Thomas

(Last edited by NeuerLinuxfan on 10 Mar 2016, 12:02)

NeuerLinuxfan wrote:

hI @ALL!

For one and the last time before i drive to by somethink else than my Netgear R7000.

Will there be wifi support from openWRT ?
If not, why not? Somebody need to tell me why this will not be done?!

Is there a nother way to implement the wifi drivers into openwrt chaoscalmer 15.05? Mey not supported from openwrt dev?

Please give me an update!

Thomas


I have to assume that English is not your native language and don’t realize the demanding tone you are conveying.  Also, hopefully you understand that any and all development for OpenWRT is provided free of charge and there is no official support.  The developers do this on their own free time without asking anything except possibly some gratitude for their efforts.

(Last edited by kirkgbr on 10 Mar 2016, 14:28)

Dear kirkgbr,

I really don't know what your problem is...

For the first: I have nothing written what was against the developers and you, for sure, don't need to teach me something about open source.
And at second place, if you don't understand what I am writing than you can kindly ask what I mean before you write such a stupid stuff.

Are you one off those who think they have to play officer here?

May if you think a little bit more about what I have written, and do this without being so frustrated, than you would possibly understand what i was talking about!

At least there is no complain at all to the development!

At last point, I am so far happy with my english, let's see how good you are in the other languages I am speaking.

Have a nice day my dear and relax a little more before you categorize that what you read.

(Last edited by NeuerLinuxfan on 10 Mar 2016, 15:41)

We should all remember OpenWRT is an international project with many of the devs and users living in countries where English is not the native language. 

We shouldn't infer a specific tonality when we recognize the post is being made by a user whose native language is not English... especially if a translator app/website is being utilized, as sentence structure in most languages is completely different than the sentence structure in English.

(Last edited by JW0914 on 10 Mar 2016, 16:17)