Snapshot builds for the Redmi AX6S/Xiaomi AX3200 have been disabled on Feb 17, 2024 in this commit by @daniel
There are some discussions about the changes needed to re-enable this build buried in the main AX6S topic proposed by @remittor which I'm not sure it is the right solution.
So Iām creating this specific topic to track what is needed to re-enable AX6S snapshot builds in master/main (and future 24.xx builds).
The boot loader does not have a fixed size limit for the kernel,
so we're free to change the layout. This may break sysupgrade, but a fresh
flash from initramfs works.
Would this same approach (using initramfs) to apply a fresh flash to AX6S work the same way? If so, could the AX6S/AX3200 builds be re-enabled?
UPDATE 10-Mar-2024: there is a pull request by @981213 that would sove the problem with the following apprach:
(...) changed the flash layout and added a second u-boot where the kernel supposed to be. Now the vendor u-boot chainloads our mainline u-boot, and our u-boot reads kernel+rootfs from UBI, verifies it, and boot into OpenWrt. (...)
Both solutions are absolutely working!
Only the solution using an additional loader required modification of the code in XMiR-Patcher and facinstall (I've already fixed and checked everything).
Thank you. Personally I still have to try your suggestions (I need to find some spare time to do this).
My question here is more in the sense about how this will be fixed in the official builds by committing a patch to the main branch, and what would be the upgrade path from 23.05 to 24.xx. Since I am not a developer, the best I can do is to follow instructions to apply a patch, test and report results.
BTW, we need to provide instructions to both main use cases below:
Users who are on stock firmware and want to install a snapshot/24.xx build and
Users who are already on 23.05 builds and want to install a snapshot/24.xx build (no XMiR-Pacther required)
nvram set ssh_en=1
nvram set uart_en=1
nvram set boot_wait=on
nvram set flag_try_sys1_failed=8
nvram set flag_try_sys2_failed=8
nvram set flag_boot_rootfs=0
nvram set flag_boot_success=1
nvram set flag_last_success=1
nvram set "boot_fw1=run boot_rd_img;bootm"
nvram commit
mtd -r write /tmp/factory.bin firmware
Thanks, but as many I am already at 23.05.2. What's the upgrade path from 23.05? This is what many users will need, and honestly I believe this should he the main use case to be prioritized.
Speaking as an openwrt user (not developer) I would say that it does not really matter what method is used.
This is openwrt and as such not a main stream product.
It is reasonable to expect that users are able to do some fiddling and even semi complicated manual fixes.
The important thing is to get a working fix, not necessarily to evaluate every possible solution.
Even require UART access might be reasonable.
It is easy to install and as pointed out, this is an ageing product, in many cases out of warranty.
Also, would you mind in providing a patch file that can be applied on top of the official source tree? I do my own builds from official source tree, and it would be really good if you could provide a patch file.
I believe this would also be a forward path to try to get your changes merged into the official master/main repository in order to re-enable official support to the AX6S/AX3200.
mt76: mt7915: initialize rssi on adding stations
mt76: mt7915: fix mcu command format for mt7915 tx stats
mt76: mt7915: fix bogus Tx/Rx airtime duration values
mt76: mt7915: fix HE PHY capabilities IE for station mode
mt76: mt7915: only set MT76_MCU_RESET for the main phy
mt76: mt7996: only set MT76_MCU_RESET for the main phy
mt76: mt7915: add support for disabling in-band discovery
mt76: mt7915: add mt7986, mt7916 and mt7981 pre-calibration
mt76: mt7915: add fallback in case of missing precal data
Although I think we've left out necessary changes to the stock u-boot vars to stop it trying to boot from 2nd kernel partition offset from the commit message?
eg. setenv bootcmd boot_fw0 & saveenv or similar?
Although it shouldn't change anything if your device was already booting an OpenWrt image beforehand. Should only be an issue for new installs, which can just be addressed with updated instructions on the wiki entry.