Xiaomi WiFi Router 3G

It seems to be solved by now. I built today an image. DFS is working and logging in systemlog. So auto channel is working. I didn't have problems with wifi, but it might solves issues which you encounter. I'll update a 12. build after i test it a few day.

Does the Netgear r6620 benefits of the improvements done for the Xiaomi WiFi Router 3G as it has the same processor and WiFi?

Yes, the work on this driver has effect on all devices that use this driver...

Did you tried this method to flash LEDE?http://telegra.ph/Xiaomi-Router-3G-proshivka-LEDE-11-23
I mean, In breed you flash original image to both system0 and system1, then you should just follow the instructions in this topic to flash lede kernel1, rootfs0 flash by mtd. And of course the nvram is unnecessary because you can set breed to autoboot kernel1 by the GUI. 0x600000 as you wrote it previously.

I want to flash breed but i need to make sure i will have an option to failsafe if i flash a not working lede... it happens some time.. :smiley: Maybe unleash some more power from this CPU by overclock it..

i have a lot a message like this.

"Data buffer not 16 bytes aligned: 8eac4198"

i don't know who did that or if it's a problem but everything seems to work.

Are you using my builds? or something else? In my build yes there are a lot of it but i didn't figured it out what's causing this. But i don't see any bugs. It doesn't connected to optimalizations like O2, O3,Os might be connected with 4.4 kernel.

Others also seem to have it...http://lists.infradead.org/pipermail/lede-dev/2017-July/008358.html
https://forum.openwrt.org/t/data-buffer-not-16-bytes-aligned-what-does-it-mean/10829

no it's my own build from openwrt master (from 3 or 4 days)
and i'm on a 4.14 kernel

It seems this comes from target/linux/ramips/patches-4.14/0039-mtd-add-mt7621-nand-support.patch (IIRC I've seen the same message on 4.9 kernel too, so similar patch must have existed also for older kernels. I think it was introduced first in b4b0a55aabd2839c5c995bb226f528efca73eea5, for kernel 3.10, back in 2013). So I guess there is either really an unaligned write happening, or the check is somehow incorrect. However I lack the knowledge to analyse C code at this level.

1 Like

Interesting...
I had never seen such a message on my device...
Did you write much on internal flash?

Hi there. I installed LEDE one month ago on my Xiaomi router and everything was working fine.
Today, I did "opkg update" of my packages.
The upgrade of the "netifd" failed and I my putty exited during the upgrade.

Since this bad upgrade, I'm not able to SSH or even ping the router on all interfaces or wifi.
Can someone tell me what I can do ?
May be I could try to connect with a serial cable as mentionned before ?Any other solutions ?
Thanks

Use reset button to factory reset the device(long press 10 sec). If it's not working then use failsafe mode.
Power off the router press reset after first blink of the led then it will blinking very fast. Set a static ip to your pc then connect through telnet.
then issuethis commands

mount_root
firstboot

Thanks you very much HeadLess, I use the failsafe mode and I get SSH access.

Can I flash an upgraded firmware and keep the old configs and packages?

If you wanted to update my firmware yes, but i didn't uploaded yet, because there was a luci error in sysupgrade and i didn't build since i report the problem which is solved.

Most of the time you can restore your backup from different openwrt also. Just you have to make sure you know what you do.

For example i migrated my config backup from 1043nd v2 i just removed the network/wireless config/firewall konfig and i copied the required lines to the new config.

Packages are not recommended to keep. Because those may be depend on kernel and other library.

You can use the script OpenWrtScripts#opkgscriptsh from richb-hanover to save a list of installed packages, do a sysupgrade and restore packages with that script also.

Ensure that /etc/sysupgade.conf includes your "special" config or files for backup.

1 Like

HI! I flashed the latest snapshot and added a wireguard interface. whenever I start the interface the device reboots. I had to enter the failsafemode and remove all settings. After this I switched back to HeadLess Image. On his image wireguard is working fine.

Is anyone using a wireguard interface on the latest snapshot?

Ok, I've earned the basic trust level, so now I can reply. :wink:

Not much actually. I've seen it usually after first boot following sysupgrade. I supposed it had something to do with 'opkg update' and 'opkg install', because after each sysupgrade I restore ddns-scripts (with dependencies). Except those, I haven't seen any new "Data buffer not 16 bytes aligned" message for 4 days of uptime. So I've checked it specifically, with 'opkg update' (nothing in logs) and 'opkg install mtr' (several "Data buffer not 16 bytes aligned" entries). This looks like an 100% reproducible way for me.

Just did a build (OpenWrt SNAPSHOT r6745-b1f5dd3) with standard kernel (4.14.34) and wireguard seems to work just as expected. No reboots. The interface goes up automatically when the router boots and my Android device that is also running latest wireguard snapshot (0.0.20180420) can connect without issues.

Ok, i did never write anything other than configs because i build my firmware always with all needed packages...
So the unaligned access is only on writes.
Hopfully with no data loss or corruption...
If i had time, i will take a look in the mentioned mtd patch...

1 Like

Hi, can someone post guide or link for wireguard installation guide? I never use it before. Thanks :wink: