Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3914 - Failsafe button is inverted under TP-Link TL-WR842N/ND v2 #8912

Open
openwrt-bot opened this issue Jul 5, 2021 · 2 comments
Open

FS#3914 - Failsafe button is inverted under TP-Link TL-WR842N/ND v2 #8912

openwrt-bot opened this issue Jul 5, 2021 · 2 comments
Labels
flyspray release/19.07

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented Jul 5, 2021

George-TL:

My 2 routers (TL-WR842v1, TL-WR842v2) were modded to have 64MB of RAM.
I also have TL-WR842v3 for reference.

This is great time to move from 17.01 to 19.07 ("refs/heads/openwrt-19.07" branch).
My build configuration is very simple: stock .config + Luci.
Config files are differ only on this line:
CONFIG_TARGET_ath79_generic_DEVICE_tplink_tl-wr842n-v1=y
CONFIG_TARGET_ath79_generic_DEVICE_tplink_tl-wr842n-v2=y
CONFIG_TARGET_ath79_generic_DEVICE_tplink_tl-wr842n-v3=y
Builds were made on ec76c36 checkout (2021-06-14 - Koen Vandeputte - gitignore: add .ccache folder).

Boxes with hardware revisions v1 and v3 are working just fine.
But v2 almost always boots into failsafe mode :(
If I hold "wifi on/off" button v2 boots normal.
My wild guess: GPIO configuration is broken.

After 'git bisect' session I've found that following commit makes big difference:
2021-02-26 - Koen Vandeputte - kernel: bump 4.14 to 4.14.222 (b4a4d04)
I'm not skilled enough to dig into kernel bisecting territory.

Before above commit router almost always boots normal.
After it router almost always boots into failsafe mode. But if I reboot it using reboot@SSH command it will boot just fine. So, power cycle => failsafe, reboot command => boots normal.

Looks like some sort of hardware initialization is made "too late" in boot process and querying GPIO state gives wrong readings.
That explains proper behavior after soft reboot.

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jul 11, 2021

George-TL:

Hardware revision of above device: "Ver: 2.0".
Now I have another box. Same problem. This one is "Ver: 2.1".

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jul 11, 2021

@aparcar aparcar added the release/19.07 label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray release/19.07
Projects
None yet
Development

No branches or pull requests

2 participants