OpenWrt 19.07.x ath79 tiny LuCI

@Ashus Hello
First of all, thanks for the build, it's running quite well on my 841n v11 :smiley: Though except for the wireless part.
I was doing research on openwrt on those cheap tp-link routers and I stumbled upon your build of openwrt. Seeing you've removed some unnecessary stuff, I thought why not give my 841n a try.
So I downloaded your build, got a tftp server running to serve the firmware, got into u-boot prompt and manually wrote the firmware into the flash (the reset button recovery method didn't really work, it did download the firmware but didn't write it to the flash, strange).
After some initial setup, I got it working with a wired connection but there's no option to change wireless settings. I checked the kernel log and saw these 6 lines:

[   13.756969] ath: EEPROM regdomain: 0xe1fa
[   13.756981] ath: EEPROM indicates we should expect a country code
[   13.756998] ath: invalid regulatory domain/country code 0xa1fa
[   13.757001] ath: Invalid EEPROM contents
[   13.761147] ath9k 18100000.wmac: failed to initialize device
[   13.767062] ath9k: probe of 18100000.wmac failed with error -22

ifconfig or ip a didn't yield anything about the wireless interface. I came here from dd-wrt FYI, wondering if that might have affected something... Before flashing openwrt I flashed dd-wrt's wr841nv11_webrevert.bin to revert back to tp-link's stock firmware. Then strangely it didn't give my PC any IP address at all nor did it have any AP broadcasted. I shrugged off then did a manual install of your openwrt build. And now there's that. I doubt dd-wrt's web revert firmware overwrote the ART partition.

Do you have any idea what to do to get wifi running? I do have the flash's full backup here (all partitions on it) dumped from its stock firmware before I installed dd-wrt (including the ART partition, yes).
I'd really appreciate your help!!
OpenWRT really is better than dd-wrt at some points (i decided to switch to openwrt cause' dd-wrt doesn't have ipv6 support for 4/32 devices)

I'd try to change the configured country on the wifi interface a few times. If it doesn't help and you still have the backups, try to upload them all back to get stock working as it was in the beginning. Maybe even do factory reset after flashing stock. Besides that, I don't think I can help you.

Hi, do you have any older version with SQM working fine??

Thanks in advance

@Jebnael Sorry, SQM needs a lot of space. I've seen some 18.06 builds with SQM support. Maybe someone could fit it to a custom build of 19.07 with much other things removed. But IMO there is no way it could fit into 21.02 build.

Guys, new version 21.02.0 is compiled here:

Thank you very much @Ashus. You're doing an excellent job with this. I'm just looking for an old version, like 18.x or 17.x but with SQM working on it.

What can I do for managing my broadband with this version that you compile?
Will it improve the quality of my connection? Will it improve the bufferbloat?

Thanks. Since you didn't mention what device you have, maybe this could help you:

My apologies. WR940N v6

I googled it for you, this should be ok for you:

The same link to these builds is even higher in this thread.
Next time please try to do more searching :slight_smile:

1 Like

Thank you very much @Ashus. I saw it few days ago but I'm just inloved with your job.

Well, I'm going to try that one. I just hope it works fine, because it's a little pain in the a** to go back to stock in this hardware. I don't want to mess it. I'm so scared about it :confounded: :confounded:

CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_tiny=y
CONFIG_TARGET_MULTI_PROFILE=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr740n-v1=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr740n-v3=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr740n-v4=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr740n-v5=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr740n-v6=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr741nd-v1=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr741nd-v2=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr741nd-v4=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr741nd-v5=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr743nd-v1=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr743nd-v2=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr802n-v1=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr802n-v2=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr840n-v2=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr840n-v3=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v1.5=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v10=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v11=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v12=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v3=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v5=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v7=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v8=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v9=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr843nd-v1=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr847n-v8=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr940n-v4=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr940n-v6=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr941nd-v2=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr941nd-v3=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr941nd-v4=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr941nd-v5=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr941nd-v6=y
CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr941nd-v6-cn=y
# CONFIG_BUSYBOX_DEFAULT_FEATURE_IPV6 is not set
CONFIG_CLEAN_IPKG=y
# CONFIG_IPV6 is not set
# CONFIG_KERNEL_CRASHLOG is not set
# CONFIG_KERNEL_DEBUG_FS is not set
# CONFIG_KERNEL_IPV6 is not set
# CONFIG_KERNEL_MAGIC_SYSRQ is not set
# CONFIG_KERNEL_PRINTK is not set
CONFIG_KERNEL_SQUASHFS_FRAGMENT_CACHE_SIZE=1
CONFIG_LUCI_SRCDIET=y
# CONFIG_PACKAGE_MAC80211_DEBUGFS is not set
# CONFIG_PACKAGE_MAC80211_MESH is not set
CONFIG_PACKAGE_cgi-io=y
CONFIG_PACKAGE_ddns-scripts=y
CONFIG_PACKAGE_iptables-mod-conntrack-extra=y
CONFIG_PACKAGE_iptables-mod-ipopt=y
CONFIG_PACKAGE_kmod-ifb=y
CONFIG_PACKAGE_kmod-ipt-conntrack-extra=y
CONFIG_PACKAGE_kmod-ipt-ipopt=y
CONFIG_PACKAGE_kmod-ipt-raw=y
# CONFIG_PACKAGE_kmod-nf-ipt6 is not set
CONFIG_PACKAGE_kmod-sched-cake=y
CONFIG_PACKAGE_kmod-sched-core=y
CONFIG_PACKAGE_libelf=y
# CONFIG_PACKAGE_libip6tc is not set
CONFIG_PACKAGE_libiwinfo-lua=y
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_liblucihttp=y
CONFIG_PACKAGE_liblucihttp-lua=y
CONFIG_PACKAGE_libubus-lua=y
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_luci=y
**CONFIG_PACKAGE_luci-app-ddns=y**
CONFIG_PACKAGE_luci-app-firewall=y
**CONFIG_PACKAGE_luci-app-opkg=y**
**CONFIG_PACKAGE_luci-app-sqm=y**
CONFIG_PACKAGE_luci-base=y
CONFIG_PACKAGE_luci-compat=y
CONFIG_PACKAGE_luci-lib-ip=y
**CONFIG_PACKAGE_luci-lib-ipkg=y**
CONFIG_PACKAGE_luci-lib-jsonc=y
CONFIG_PACKAGE_luci-lib-nixio=y
CONFIG_PACKAGE_luci-mod-admin-full=y
CONFIG_PACKAGE_luci-mod-network=y
CONFIG_PACKAGE_luci-mod-status=y
CONFIG_PACKAGE_luci-mod-system=y
CONFIG_PACKAGE_luci-proto-ppp=y
CONFIG_PACKAGE_luci-theme-bootstrap=y
CONFIG_PACKAGE_rpcd=y
CONFIG_PACKAGE_rpcd-mod-file=y
CONFIG_PACKAGE_rpcd-mod-iwinfo=y
CONFIG_PACKAGE_rpcd-mod-luci=y
CONFIG_PACKAGE_rpcd-mod-rrdns=y
**CONFIG_PACKAGE_sqm-scripts=y**
**CONFIG_PACKAGE_sqm-scripts-extra=y**
CONFIG_PACKAGE_tc=y
CONFIG_PACKAGE_uhttpd=y
# CONFIG_PACKAGE_urandom-seed is not set
# CONFIG_PACKAGE_urngd is not set
CONFIG_PACKAGE_zlib=y
CONFIG_STRIP_KERNEL_EXPORTS=y
CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=512
CONFIG_USE_MKLIBS=y
CONFIG_PACKAGE_getrandom=y

Looks like those mentioned features are present, not excluded from the build. Do you think it will work fine?

If that is a build config from the build mentioned above and people respond it's ok in the thread, it should be fine. If you go down the path of flashing, once in a while, you will brick something, it comes with the territory; you could buy a serial cable and learn new things :slight_smile: On the bright side, these old devices with 4MB flash are really cheap now; even new routers like Xiaomi Mi Router 4A Gigabit is cheaper than those and it's a nice opportunity to upgrade if you have configuration backup from any older OpenWRT. There is only one reason to ever go back to stock - hardware optimization makes some speeds higher, at the cost of security of course.

Hi,
TL-WA701ND v2.x Atheros AR9331 and TL-WA801ND v2 Atheros AR9341 rev3 no ath79 custom builds?

TL-MR3420 v2, v2.1, v2.2, v2.3, v2.4 Atheros AR9341
https://openwrt.ashus.net/19.07.7-targets-ath79-tiny-luci-upnp/openwrt-ath79-tiny-tplink_tl-mr3420-v2-squashfs-factory.bin . Does it works?

Unfortunately it looks like TL-WA701ND v2.x Atheros AR9331 and TL-WA801ND v2 Atheros AR9341 rev3 have not been ported from ar71xx to ath79 architecture, so latest available firmwares are with OpenWRT 18.
TL-MR3420 v2 - have you tried it?

Thanks for sharing newer firmwares on the openwrt.ashus.net website, i was able to flash my TL-WR941ND v3 and it works very well, but i want to ask you for something, i know that is probably too much to ask for help, i have tried to make a firmware for this router with usb support (you can check it out here: WR941nd v2/v3 usb support patches for 20.02 but every time that i got 1 step forward i go 2 backwards (i've never compiled anything in my life), but the usb mod is ready (imgur.com/a/rh8TqUC) and i'm very happy with the mod, unfortunately the only firmware that i tested was openwrt 14.04 and it doesn't have many features/packages, it would make my day if i could see it running with Extroot configuration, definitively will make the router much more useful, if for any reason this isn't possible i still appreciate your effort :slight_smile:

As you seem to have put a lot of effort to this, I've decided to try to make you a build without LuCI and IPv6 support - and with the USB packages mentioned in the post there. That was the only way it could fit in.
https://openwrt.ashus.net/21.02.0-targets-ath79-tiny-usb-tl-wr941-v2/
If you need a router to support USB and tinker more, you should just buy an Archer C7 that has two USB ports already and a lot of space to install additional packages.

1 Like

Thank you so much for your time, i installed the firmware but somehow i can't get the usb to recognize using "block detect" and "block info" the flash drive doesn't appear, i'm still trying to find out why, it's funny that you mention the archer c7, because after i did the usb mod and couldn't do the software side i decided to buy the archer c7 and i got up and running with usb extroot, i will test some others flash drives, maybe the one i choose don't work with this router

Unfortunatly the router isn't identifying the usb flash drive, i plug the disk and using "dmesg" it doesn't appear anything, also the flash drive doesn't flash the indicator led, i tested some others and it's the same thing, those disks work fine on the Archer c7

Hi @Ashus . Nice to talk to you again.
I need your help please... I see in OP post that you removed OPKG package.

How did you do it? Because, I'm trying to compile latest openwrt v19 (openwrt-v19.07.8) and when I try to "untick" the opkg option, it is not possible, doesn't let me unselect that option.

May you give me a hand please?

P.S.: I tryed even with command -opkg and doesn't work.

1 Like

Hi. There are dependencies, so removing one package is not possible separately. I'd recommend to take my config file, rename it to .config and move it to the sources before running make menuconfig. Or you can use TortoiseGit Merge tool and compare enabled and disabled parts easily.

1 Like

Thank you very much master. I appreciate your help :+1:t2:

EDIT:
Sorry bro, that config file... Where exactly do I have to move it? In which folder I mean