I've been using ondemand on three RT3200s for months without any issues. I've left the other parameters that you've modified at their default, though (well, prior to the frequency default being changed I did set it to the 437500 value, but I think it was like June or July when that was fixed).
I'll try out your values for up_threshold and sampling_down_factor on my local one, and see if that yields any clues (although I keep it on SNAPSHOT, updated weekly, so that might be a confounding factor).
My RT3200 is running snapshot r21070. Can anybody confirm if irqbalance is running correctly?
To my knowledge int 142 and 143 should be spread across both cores (as in earlier builds).
I set cron to reboot the RT3200 at 0500 every night, which rebooted last night without issue. Maybe I'll set it to ever hour and see if I can get more samples.
To which should I switch to get WED/irqbalance working?
In my case /sys/kernel/debug/ppe0/bind does not exist,
/sys/kernel/debug/mtk_ppe/bind is empty,
/sys/module/mt7915e/parameters/wed_enable contains an "Y" correctly
/etc/modules.conf does not exist, added WED config to /etc/modules.d/mt7915e.
irqbalance does not seem to work, interrupts look like below:
What's also interesting on a 2.5Gb wired interface I get ~150MBps transfer from the internet (speedtest) while on AX 80MHz wifi I get almost 180MBps (tried multiple times both ways, same time)...
Well, I know nobody wants to hear that, but:
MediaTek (and hence also Linksys) only ever runs the MT7622 SoC at full speed. They have told us so multiple times, and said clearly that QA only ever saw the device running at max speed.
So it can absolutely be that the RAM chips in earlier batches of RT3200/E8450 only have problems with reboot when CPU voltage is less than 1.0V. However, that may not be true for newer batches with potentially different RAM chips, and any problem with that wouldn't ever be detected by either MediaTek's or the board vendor's QA process, because none of them care about anything but the highest CPU clock rate.
@ka2107 why are you setting up periodic rebooting? If it is a wan IP refresh issue you might be able to use something like:
#!/bin/sh
renew_wan_lease=0
ip monitor link dev eth0 | while read event; do
# logger "maintain-wan-lease detected eth0 event: "$event
case $event in
*'NO-CARRIER'* )
if [ $renew_wan_lease -eq 0 ]; then
logger "maintain-wan-lease detected eth0 state change to: 'NO-CARRIER', so forcing udhcpc to release wan lease."
killall -SIGUSR2 udhcpc
renew_wan_lease=1
fi
;;
*'LOWER_UP'* )
if [ $renew_wan_lease -eq 1 ]; then
logger "maintain-wan-lease detected eth0 state change from: 'NO-CARRIER' to: 'LOWER_UP', so forcing udhcpc to renew wan lease."
killall -SIGUSR1 udhcpc
renew_wan_lease=0
fi
;;
esac
done
n.b. this was for an Asus router running Asus Merlin and I have not needed it with same upstream bridge modem because OpenWrt properly handled this situation.
But my point is that perhaps you can solve the root cause like I did with the above and thereby obviate the need to setup the manual reboot, which seems to me like a hack anyway.
I have a brand new RT3200 with stock 1.0 firmware and I wanna flash UBI. Before that I decide to backup vendor's firmware. I follow the instructions of the Device flash complete backup procedure. It's all going well until the final factory reset step. After I did factory reset, it just went soft-bricked. Apparently the factory reset corrupt the vendor firmware and I cannot boot into it anymore. It would just keep blinking white light.
I'm still able to get into the recovery initramfs or fail_safe mode if I press reset button during booting, and I have a complete backup of vendor‘s firmware(with total size of 127.75MB). However the procedure explicitly warned not to flash anything in that recovery, it also warned that flashing back vendor's backup also has risk if there is a bad block in the first 22M of NAND.
So now I'm stuck. I really don't want to end up having to open it up and serial/JTAG it. Any suggestion?
Usually the device boots again to vendor firmware after a few warm and/or cold reboots. You could of course just write back the backup files you have now, but as that is indeed a bit risky, I'd first try to reboot-torture it a bit and see if that helps to bring vendor firmware back (it usually does).
(Edit: to explain: the vendor firmware has a bootcount-based A/B dual-boot mechanism which is a bit broken. When booting the UBI recovery image, the bootcount is not maintained by that image, so the vendor bootloader should detect that sooner or later boot the other A/B image which should be the vendor firmware)
During the "reboot-torture" each time I waited is about 90 seconds.
I setup my client with 192.168.1.254 and keep ping 192.168.1.1. Since there is no ARP nor ICMP response from 192.168.1.1 after 90 seconds I presume it must have failed.
So just let you know. I went hail mary and restore mtd3 backup to the nand. Lucky for me all the bad-blocks is located after 63M. It is now running on stock firmware.
I've installed ksmbd on the RT3200 (set as Dumb AP) to use network shares. When I copy a file to the USB flash memory the Wi-Fi stops sending data to the clients and I have to reboot. Any clues?