Davidc502- wrt1200ac wrt1900acx wrt3200acm wrt32x builds

First off I apologize if I missed this from this post or David's site itself. I did do some searching but came up short. Feel free to light me up if there is already a location for this.

Question is.. is there a quick list of differences provided in David's build versus the standard openwrt images? I have a mamba and venom and really like openwrt. Trying to determine if I should be running David's build over the standard openwrt image.

Unfortunately, the GPIO does not seem to work for the LAN LEDs, at least I could not figure it out.

Concerning your issue:

I am using a WRT1900 for trials and yours should be similar. Use the "System - LED Configuration" in Davidc502 build where you can setup the following LEDS:
image

You can add/delete/modify as you need. I recommend that you setup an entry for all selections (11) and set to "Trigger" = "Always On" and then "Always OFF" to ensure you have control of the LEDs. Save & Apply in-between the changes. Save the original "/etc/config/system" so you can go back to it.

On my WRT3200ACM I could control all LEDs except the 4 LAN LEDs.

On the WRT1900AC V1 the 2.4 & 5 GHz did not work and the eSata turned on the Internet LED. Seems to be a mix-up of the LED controls on the WRT1900AC V1.

This is well beyond my expertise to figure out why.

https://davidc502sis.dynamic-dns.net/releases/lede-mvebu-cortexa9.manifest

The packages in the manifest are in addition to the daily snapshots.

1 Like

Hi,

Been running Davids version for the WRT1900AC v1

It really saved me from the dreaded reboots on the other "open versions"...

Today I decided to update the firmware (the old one worked great, but for security reasons I decided that it was not smart to use a year-old firmware), and it worked fine with flashing the bin-file for Mamba within the browser-GUI (I'm not an SSH kind of guy).

The router rebooted, and my Ubiquity AP works fine, and I have internet, and wireless connection through my AP.
However I have always been running wireless networks from the router also (different SSID from my primary SSID provided by the the AP), but none of the wireless LED on the front of the router is lit.

Inside the GUI I can se, that the following message is displayed under both 2,4 and 5 ghz wifi (my old SSID and settings is there): " Wireless is not associated"

I tried to restart with the button next to each wifi status. But that doesn't help.

Any idea what is up, and is there a fix?

Edit: My old settings used radio0 (2,4) and radio1 (5 ghz)..
I tried to disable those, and then change the settings at radio2 and radio3 with the SSID used with radio0 and radio1.

Everything seems to work now.. And i have just Radio0 and Radio1 as diabled, and Radio2 and Radio3 running.

1 Like

Thanks David

What's the default openwrt kernel timer frequency?

Hmmm.....

root@TTrollstation:/sys/class/leds# ls
mmc0::                      pca963x:0:68:15             pca963x:rango:white:usb2    rango:white:sata
pca963x:0:68:10             pca963x:0:68:2              pca963x:rango:white:usb3_1  rango:white:wlan_2g
pca963x:0:68:11             pca963x:0:68:3              pca963x:rango:white:usb3_2  rango:white:wlan_5g
pca963x:0:68:12             pca963x:0:68:4              pca963x:rango:white:wan
pca963x:0:68:13             pca963x:rango:amber:wan     pca963x:rango:white:wps
pca963x:0:68:14             pca963x:rango:amber:wps     rango:white:power

It's my 3200. I'm a bit away from it last days, but check pca's leds then return back.

PS: Did you read the first link i send? Don't use trigger (firmware will enable it again), use brightness instead.

100Hz as found in the config files under ./target/linux/generic/config-*. Mvebu inherits this value (however, some chipsets override this setting to 250Hz, like Lantiq).

Changing this might not be as useful as you think given that CONFIG_SCHED_HRTICK and CONFIG_HIGH_RES_TIMERS are enabled in the generic profile (and MVEBU inherits these values too). This means that only schedule_timeout() or anything else that uses jiffies for time accounting are the only things really affected by changing this value

Thanks! I had a hunch it was but was unsure.

I think I tried all suggestions without success but which one do you mean?

BTW the LED files in "/sys/class/leds" are symbolic links to various locations:

root@FIREBASEROUTER:/sys/class/leds# ls -la
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x   41 root     root             0 Jan  1  1970 ..
lrwxrwxrwx    1 root     root             0 Jan  1  1970 mmc0:: -> ../../devices/platform/soc/soc:internal-regs/f10d8000.sdhci/leds/mmc0::
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:0:68:10 -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:0:68:10
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:0:68:11 -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:0:68:11
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:0:68:12 -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:0:68:12
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:0:68:13 -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:0:68:13
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:0:68:14 -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:0:68:14
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:0:68:15 -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:0:68:15
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:0:68:2 -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:0:68:2
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:0:68:3 -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:0:68:3
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:0:68:4 -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:0:68:4
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:rango:amber:wan -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:rango:amber:wan
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:rango:amber:wps -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:rango:amber:wps
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:rango:white:usb2 -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:rango:white:usb2
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:rango:white:usb3_1 -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:rango:white:usb3_1
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:rango:white:usb3_2 -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:rango:white:usb3_2
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:rango:white:wan -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:rango:white:wan
lrwxrwxrwx    1 root     root             0 Jan  1  1970 pca963x:rango:white:wps -> ../../devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/0-0068/leds/pca963x:rango:white:wps
lrwxrwxrwx    1 root     root             0 Jan  1  1970 rango:white:power -> ../../devices/platform/gpio-leds/leds/rango:white:power
lrwxrwxrwx    1 root     root             0 Jan  1  1970 rango:white:sata -> ../../devices/platform/gpio-leds/leds/rango:white:sata
lrwxrwxrwx    1 root     root             0 Jan  1  1970 rango:white:wlan_2g -> ../../devices/platform/gpio-leds/leds/rango:white:wlan_2g
lrwxrwxrwx    1 root     root             0 Jan  1  1970 rango:white:wlan_5g -> ../../devices/platform/gpio-leds/leds/rango:white:wlan_5g
1 Like

https://davidc502sis.dynamic-dns.net/
says " The 1900ac has the cpu idle (Reboots on latest kernels) issue resolved"

I have been having reboot issues for a little while now (WRT1900AC - Random reboots) and just wondering if that comment could be the cause.

im running 18.06.01 openwrt on wrt1900ac (mamba) with the latest mwlwifi drivers (from: https://github.com/eduperez/mwlwifi_LEDE/releases) would/could it apply?

on that website it links to an img file, to flash lede, is there any equivalent patch for openwrt?

Not that I'm aware.

18.06.01 is from Fri Aug 17 2018. I recommend going to 18.06.02 OR download and flash the image from the davidc502 site. Ether of those are patched to resolve the reboot issue.

2 Likes

Has anyone tested at 1000hz kernel timer? Specifically refering to sqm for any relatable differences in performance on the 3200ACM...

It's probably best if you start a new topic instead of hijacking this one since kernel timer frequencies are done at compile time and I don't think @davidc502 or his users will or have had changed MVEBU's kconfigs.

I will say this though, I've tried running these kernel configurations on my 1900ACSv2:

  1. PREEMPT_NONE; HZ=100 - Ethernet has tight latencies with SQM but wifi will have a max latency of +20-40ms from the average (depending on number of clients connected).
  2. PREEMPT_FULL; HZ = 100 - Ethernet displays the same behaviors as standard config but wifi is incredibly jittery. I was experiencing quite a bit of packet loss and the max latency would randomly go up to the +100ms (for either upload/download/idle). Other tasks running on the device could have probably caused some important wireless/bufferbloat related irqs to pause.
  3. PREEMPT_VOLUNTARY; HZ = 250 - Again, ethernet displays the same behavior as in the default standard configuration. Wifi's max latencies is around +10-20ms from average (even with tens of clients).
  4. PREEMPT_VOLUNTARY; HZ = 1000 - Same behavior as (3).

Testing was mostly done with just dslreports, so take it all with a grain of salt. WAN speed at 30/30Mbps. Wireless tests were conducted from a distance of 2.4GHz and 5GHz at 10-15m away with an RSSI of -58 to -62 (noise -90) on a mid-2015 rMBP. I couldn't really be bothered to setup iperf on two machines. I didn't try PREEMPT_FULL; HZ = 1000 because that would have probably sacrificed throughput quite a lot (and may have been a bit unstable). So with this really crude method, ethernet latencies aren't affected, but wifi could be. However, I'd hesitate to state any conclusion given n=1 and a lack of a complete and proper testing tool/methodology.

Also, apologies to anyone reading this as it's unrelated to @davidc502's build.

2 Likes

@davidc502 : how come you use this config:
CONFIG_KERNEL_MIPS_FPU_EMULATOR=y

All Linksys WRT has built in hardware FPU, i never used that (only on my D-LINK D860L B1 - which needs FPU emulator), so how come you enable this?

(I found it in you config.seed file)
https://davidc502sis.dynamic-dns.net/releases/config.seed

If it was not built in (#CONFIG_KERNEL_MIPS_FPU_EMULATOR is not set) it would not worked at with NodeJs 11 (based on https://github.com/nxhack/openwrt-node-packages) and it works.

It is ARM, so i guess it is not used in the build?

Had been looking for a list of packages you added but never asked... Is there any benefit to us removing packages we don't need from your builds once installed? For example, I have the WRT32X and don't need all the mwlwifi firmwares you have, just the 8964. Or is the extra stuff not hurting anything being there?Thanks.

If you need the space, remove them. Otherwise.... eh :slight_smile:

I want to say thank you for your time as I don't have the any lately (70+ hours a week since Oct 2018). It's not hijacking; it pertains to the performance of the 3200acm. I know sqm is a good stress test and was wondering if anyone has seen better results overall. I don't per say have a need to increase timer resolutions, just curious. In essence, it appears leaving the default at 10ms is a good choice. One day when I get back to a normal schedule I'll be able to setup a lab but for now I have to rely on others for testing.

Sorry if I came off as harsh with the 'hi-jacking' comment. I didn't mean to. That 70+ hours work week sounds insane. I'd be glad to see your test results once your work load lightens up!

I'd actually really like to see some more controlled experiments on what effect voluntary or full preemption does on the consistency of the latency on WiFi (especially with mwlwifi) with SQM under higher WAN (or LAN!) speeds. Then maybe another test on 100Hz v. 1000Hz tick rate (to see the tradeoffs between latency consistency v. throughput), and subsequently the combination of various preemption levels and tick rate. I am actually still not sure if this even applies anymore (or if it even applies to routers!):

...default Linux kernels are often compiled with HZ=250 (or even lower), causing burstyness and non-uniform delivery of packets; building your kernels at HZ=1000 will reduce this effect...

For now, there is historical data (but mostly conjecture) on the r7800 build thread by @hnyman and this thread. User @shm0 probably has more solid evidence than I do, and his/her data is much more relevant to us given that he/she owns a WRT1200AC (and I think he/she has also managed to overclock it to 1.6GHz - up from 1.33GHz!).

This is hardset to 100Hz for unknown reasons (?)

I did suggest that it's being removed and we stick to what upstream suggests per arch instead
http://lists.infradead.org/pipermail/openwrt-devel/2019-February/015738.html