Ansuel
8886
@dimfish we are planning to finally include the expanded rootfs in robi repo but i would like to add some intruction on how to install and upgrade without serial. Can you help me with that?
2 Likes
dimfish
8887
Yeah sure. I think many people already flashed ax3600 and ax6 with my instructions from post here and on Russian forum (4pda). So you can just copy paste steps to flash.
Here are my changes to support intiramfs & compat 2.0:
Ansuel
8888
Oh ok I missed that... So you need to use a specially crafted initramfs image, the one we are currently building is not ok. Can you confirm that?
dimfish
8889
Yep, you have to ubinize initramfs to make it flashable for ubiformat.
See my commit with ubinize-image.sh usage:
This commit also provides building of both variants:
openwrt-ipq807x-generic-xiaomi_ax3600-initramfs-fit-uImage.itb (your original)
openwrt-ipq807x-generic-xiaomi_ax3600-initramfs-factory.ubi (ubinized)
Ansuel
8890
@dimfish yep i'm checking that and i wonder if we can use some command in image-commands.mk
Ansuel
8891
@dimfish the with-initrd is needed? Can I get some info about it? I would love to have a separate image for a ubinized initramfs
dimfish
8892
Actually I've never tested without it, but probably it can be omitted.
If smb wants to test we'll be appreciated.
Ansuel
8893
mhh did you remember why it was added in the first place?
dimfish
8894
I've just looked at similar initramfs creation for other xiaomi devices (ax6s, ax6000) but they are base on mtk7xx
Ansuel
8895
from what i can see that option results in to args added to the mkits.sh since we don't have CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE enabled
Ansuel
8896
I need one user that can test this image
to migrate from normal partition layout to extended... using @dimfish instructions
REMEMBER THAT UART IS NEEDED IF THINGS GOES WRONG
I agree about decap. I've been manually removing "ath11k: enable ethernet offload by default" from my own builds since it appeared in -pr in order to have working WDS.
This new issue is slightly different. It appeared between 2022/10/02 and 2022/10/24. Something broke and now ath11k WDS AP can support only 1 client at a time - or so it seems to me.
I don't know where to start further debug. I've held my AX3600 AP on a 2022/10/02 build as a workaround, while the AX3600 clients are OK on latest builds.
Original post with some logs: (Adding OpenWrt support for Xiaomi AX3600 - #8713 by dspalu32)
dimfish
8898
Actually I know cases when somebody flashed ax6 image on ax3600 and got soft brick with extended partitions, but since we don't change boot image he was able to restore via MIWIFIRepairTool without UART.
Ansuel
8899
Well i just need to understand if that image works since I reworked your changes to a more clean approach so I don't want to cause brick since I don't know if it does actually work.
dont you have an ax3600 device?
Ansuel
8901
I use as my main router and I'm too lazy to disconnect and reset rootfs aahahhaha
3 Likes
There are three .ubi files mentioned in dimfish's instructions. There is only one file downloadable in wetransfer. Obviously I'm missing something here.
Ansuel
8903
the linked file is the one used for migration for point 1
For point 5 you can use dimfish images
@dimfish can you check instructions? https://github.com/Ansuel/openwrt/commit/cab8767c8a1531ff26e6cd71b9ab8183ef71b181
1 Like
dimfish
8904
Yeahh looks good
one thing is to add -y option on last step for mtd12 to automatically answer yes for resize question:
ubiformat /dev/mtd12 -y -f /tmp/openwrt-ipq807x-generic-xiaomi_ax3600-squashfs-nand-factory-rootfs.ubi
1 Like
Ansuel
8905
Now I just have to wait to make sure the migration image works with the artifacts change...
(I wanted to keep a clean initramfs since devs massively use initramfs to test and develop without stressing the nand)
1 Like