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.

weedv2 wrote:
nitroshift wrote:

@brandthought, weedv2 & everyone else new here

I've said it before, I'll say it again:

NEVER flash from OpenWRT to OpenWRT. Always cycle flashes Linksys official / OpenWRT. If anything wrong happens, you will have NO OTHER CHOICE but the USB to TTL cable to revive the unit.

nitroshift

While i do understand and i already ordered a cable yesterday as i was willing to take the risk. That statement is not backed by any sort of evidence aside of people that got bricked doing that.

Ill get a cable and post hte log before fixing.

Same thing happened to me flashed from Kaloz to lifehacksback latest image. Not responding to reset button. I have ordered the USB to TTL cable as well. Should receive it tomorrow.

Hi,

I prefer to compile my own build so I wonder if someone can share the .config file and the revision number of a working trunk build?

Can someone recommend where can I buy a USB TTL cable that fits well?

Thanks!

qkpham wrote:

Same thing happened to me flashed from Kaloz to lifehacksback latest image. Not responding to reset button. I have ordered the USB to TTL cable as well. Should receive it tomorrow.

Careful on which tty-to-usb cable you buy. While waiting for the one it was suggested on the forum i lost patience and bought another from amazon with next day shipping. No matter what I tried it wouldnt work so in the end i had to wait for the one I had originally bought and was suggested by mmilburn

lifehacksback wrote:

Can someone explain when Vlan could be useful in a home environment?

Thank you. Sorry for all the questions tongue

VLAN isolation for a quest network and wireless AP.

ISP provides a VLAN for IPTV and such smile

andxmi4 wrote:

Hi,

I prefer to compile my own build so I wonder if someone can share the .config file and the revision number of a working trunk build?

Can someone recommend where can I buy a USB TTL cable that fits well?

Thanks!


I'll gladly share my frustration with COUNTERFEIT USB ttl cables and which one to avoid. smile

This is the one I ordered from amazon for about 5 bucks:

http://www.amazon.com/gp/product/B008AG … em_1p_0_ti

Unfortunately when ordering on Amazon they usually glom together multiple merchants under one review, with some of them selling counterfeits. If you read the Q&A section it's mentioned in the first question which I never bothered to read.

I didn't realize until I loaded the driver that is actually a counterfeit chip. It seems the latest Windows driver from Prolific (company that makes original chip) detects this and fails to initialize the device. You have to go to a site like this to find an older version of the driver to work. http://www.ifamilysoftware.com/news37.html

Oh, and don't be surprised to get a BSOD with this device once in a while. I'm just posting this in case anyone wants to avoid this model and order something else.

But hey, I managed to flash my firmware between the BSODs! smile

If someone does have a usb ttl they can recommend I'll gladly update the wiki with this info.

Perhaps if you use this from Linux your experience might be different.

(Last edited by tusc on 14 Jan 2015, 04:48)

lifehacksback wrote:

When i type 192.168.1.1 why does it not connect via https? but when i type https://openwrt/ it does?
                How do I disable http traffic?

/etc/config/uhttpd

config uhttpd 'main'
        list listen_http '0.0.0.0:80'
        list listen_http '[::]:80'
        list listen_https '0.0.0.0:443'
        list listen_https '[::]:443'

You could remove the listen_http statements.  It'd be nice to have something akin to mod_rewrite to redirect all http traffic to https, but I haven't found anything to do that with uhttpd yet.

http://wiki.openwrt.org/doc/uci/uhttpd

lifehacksback wrote:

also dnsmasq vs dnsmasq-dhcpv6 package? whats the difference since under kaloz's built he uses dnsmasq not dnsmasq-dhcpv6 yet it still gets ipv6?

I believe odhcpd is now the default dhcpv6 daemon.  Someone else may be able to give you more information.

(Last edited by mmilburn on 14 Jan 2015, 03:01)

andxmi4 wrote:

I prefer to compile my own build so I wonder if someone can share the .config file and the revision number of a working trunk build?

http://pastebin.com/jveuL3WR

Should be r43951 or so.  Note that CONFIG_CCACHE=y, you may not want that.

mmilburn wrote:
raven-au wrote:

Does anyone know how to enable the debug logging for the mwlwifi module at build time?

Messing with it, no success yet.

I was thinking that this:

make package/kernel/mwlwifi/{clean,prepare,compile} V=s QUILT=1 MWLDBG=1

would cause this statement in mwlwifi/Makefile to evaluate to true.

I tried similar, adding MWLDB=1 to the module make line in, from memory, packages/kernel/linux-mvebu/Makefile but it didn't work.

ifeq (1, $(MWLDBG))
EXTRA_CFLAGS+= -DMWL_DEBUG
endif

gotta do some more reading.

LOL, also tried using a patch that removed the ifeq and endif which also didn't work.

So I'm not the only one stumped by this, ha.

Ian

Try CONFIG_DEBUG=y in the make command and put a -O0 -g in the module make file.

Chadster766 wrote:

For low level kernel module debugging you can use kgdb. It's a little tricky and posts on its use would be helpful in the future. Below is what I have learn about OpenWRT and kgdb so far.

Thanks for the information on kgdb, it's much appreciated and will probably come in handy in the future.

Trying to use a kernel debugger is quite painful but has it's uses.

TBH the only thing I've used a debugger for when working on kernel code is to work out where in the C source the assembly backtrace corresponds to and to work out what the called function parameters where and so on for panics and such like.

I almost always use logging to debug kernel problems but, in this case, I've been looking at the code and now I want to try and understand what it is doing, what gets called, when and how often etc. which is best done by using the inbuilt logging.

I'm not familiar with the device driver architecture, let alone the mac80211 subsystem, it's not my area, so this is all new ground for me.
While the motivation is to find bugs I expect this will be just an exercise in leaning how everything hangs together which is interesting in itself.

Ian

(Last edited by raven-au on 14 Jan 2015, 03:37)

raven-au wrote:

LOL, also tried using a patch that removed the ifeq and endif which also didn't work.

So I'm not the only one stumped by this, ha.

It's a shame that WLDBG() was used instead of printk(KERN_DEBUG "sweet debug info!");

(Last edited by mmilburn on 14 Jan 2015, 03:52)

mmilburn wrote:
raven-au wrote:

LOL, also tried using a patch that removed the ifeq and endif which also didn't work.

So I'm not the only one stumped by this, ha.

It's a shame that WLDBG() was used instead of printk(KERN_DEBUG "sweet debug info!");

Or the pr_xxx() subsystem calls, that can be dynamically turned on or off or enabled at build time.

But the output in mwlwifi does do some not so trivial logging so perhaps there's a case to do it that way.

@Kaloz

About those books tongue maybe a primer to networking. Right now I'm reading "Understanding Linux Network Internals".

Thanks

weedv2 wrote:

While i do understand and i already ordered a cable yesterday as i was willing to take the risk. That statement is not backed by any sort of evidence aside of people that got bricked doing that.

People bricking their devices doing "that" IS the evidence.

weedv2 wrote:

Ill get a cable and post hte log before fixing.

You will most likely find yourself at the Marvell>> prompt with the message "ERROR: can't get kernel image!".

nitroshift

(Last edited by nitroshift on 14 Jan 2015, 06:22)

andxmi4 wrote:

Hi,

I prefer to compile my own build so I wonder if someone can share the .config file and the revision number of a working trunk build?

Can someone recommend where can I buy a USB TTL cable that fits well?

Thanks!

I would highly advise you to make your own config by doing "make menuconfig" and choosing the packages you need before running "make" to create the firmware image. Copying lifehackisback's config will create the same image that he posted online...

nitroshift

Chadster766 wrote:

Try CONFIG_DEBUG=y in the make command and put a -O0 -g in the module make file.

I'm not up to needing kgdb yet.

Turns out you need

-static u32 dbg_levels = 0;
+static u32 dbg_levels = 0xffff;

(or some other suitable integer) in mwl_debug.c to actually get it to output anything other than level 0 prints.

As a bonus enabling logging breaks the firmware upload.
The code in the firmware upload function has a comment that talks about a 1.3 msec delay for the registers to change but doesn't mention that if you spend several milliseconds in printk you can miss the register setting change altogether, LOL.

Ian

@kaloz

Vcool...

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


BusyBox v1.22.1 (2015-01-04 11:57:41 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

CHAOS CALMER (Bleeding Edge, r43827) 3.18.1
Security is enabled, and your IP address has been logged.

root@AC1900:~# sensors
gpio_fan-isa-0000
Adapter: ISA adapter
fan:            0 RPM  (min =    0 RPM, max = 4500 RPM)

tmp421-i2c-0-4c
Adapter: mv64xxx_i2c adapter
ddr:          +55.6 C
wifi:         +57.1 C

armada_thermal-virtual-0
Adapter: Virtual device
cpu:          +70.4 C

root@AC1900:~#

nitroshift wrote:
weedv2 wrote:

While i do understand and i already ordered a cable yesterday as i was willing to take the risk. That statement is not backed by any sort of evidence aside of people that got bricked doing that.

People bricking their devices doing "that" IS the evidence.

weedv2 wrote:

Ill get a cable and post hte log before fixing.

You will most likely find yourself at the Marvell>> prompt with the message "ERROR: can't get kernel image!".

nitroshift

Actually it isnt, as it does not happened all the time.
As you can observe from the other brick, it was the same firmware from and to as myself, so its only some firmwares that cant be flash back and forward. Knowing which ones not only helps understand what is not working or failing, but also what specific combinations to avoid instead of just avoiding it all together by doing a far more inefficient process.
It might also highlight a error/bug on one of the firmwares.

If i where to guide myself by your statement flashing openwrt its all together a possible brick coming from any firmware.

(Last edited by weedv2 on 14 Jan 2015, 09:49)

Chadster766 wrote:
lifehacksback wrote:

Can someone explain when Vlan could be useful in a home environment?

Thank you. Sorry for all the questions tongue

VLAN isolation for a quest network and wireless AP.

ISP provides a VLAN for IPTV and such smile

In my case I have one ADSL router thomson from my ISP with one network 192.168.1.0/24, and IPTV works on it, but PPPoE is established in my WRT1900AC with one network 192.168.0.0/24. To use some services like (MEO Remote, (is one phone app with remote control for my tv box), or MEO GO (is one phone APP for see tv in my phone) I have to have one IP in the same network of IPTV. to do that I'm using one Server with 2 fisical interfaces on 192.168.0.0/24 and one wireless in network 192.168.1.0/24 interface and I'm sharing one of this ports (kind of NAT), but this is like spaguetti.
I don't like this. If I have VLANS I create 2 interfaces VLANS and do some routing between them. and remove the mess in my server.

Hi guys,

what has to be done to have one full release with all packages so we can split this in one stable (Beta) and bleeding
So we don't all have to live of trunk and have all these dependency issues?

who can decide on a full release with all packages?

@kaloz

I almost got openvpnn  intto r43827 3.18.1

kmod-tun (3.14.27-1) was the only  problem sad

RATS!

----
tmp$ opkg --force-depends install openvpn-openssl_2.3.6-2_mvebu.ipk
Installing openvpn-openssl (2.3.6-2) to root...
Installing kmod-tun (3.14.27-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … mvebu.ipk.
Installing liblzo (2.08-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … mvebu.ipk.
Installing libopenssl (1.0.1j-4) to root...
Downloading http://downloads.openwrt.org/snapshots/ … mvebu.ipk.
Installing zlib (1.2.8-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … mvebu.ipk.
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for openvpn-openssl:
*     kernel (= 3.14.27-1-9a134909592224e5a02f8d510e58ddf8) *
Configuring kmod-tun.
Configuring liblzo.
Configuring zlib.
Configuring libopenssl.
Configuring openvpn-openssl.

nitroshift wrote:

@brandthought, weedv2 & everyone else new here

I've said it before, I'll say it again:

NEVER flash from OpenWRT to OpenWRT. Always cycle flashes Linksys official / OpenWRT. If anything wrong happens, you will have NO OTHER CHOICE but the USB to TTL cable to revive the unit.

nitroshift

WTH.. No, please flash from OpenWrt to OpenWrt, and if possible, use the .tar file instead of the .img.

lifehacksback wrote:

@Kaloz

About those books tongue maybe a primer to networking. Right now I'm reading "Understanding Linux Network Internals".

Thanks

That's a good starting point smile

Getting good performance from my latest build + more storage than any previous builds (then again i forgot to add block-mount) but overall pretty stable, fast, and my macbook connects big_smile thanks to the disassoc_low_ack = '0' hack/trick/workaround. I also started ssh with ecdsa + disabled http so only https (but this had to be done manually...for now). I haven't added openvpn or vlan support. kernel 3.18.2 and well it's been running for the past hour now with no complications big_smile

Would anyone care to shed some light AC wifi speed issues. I had posted about it in here but got no response. Would really like to know why my AC wifis performance is severely affected compared ome linksys Fw. Is this a known issue?

Sorry, posts 2376 to 2375 are missing from our archive.