[facinstall] Package for easy installation factory images

I made a convenient tool for installing factory images or for revert to stock firmware.
This package facinstall_all.ipk can be installed on any version of OpenWrt (but not lower than v21).

Supported routers
asus,rt-ax89x
asus,rt-ax52
asus,rt-ax57m
asus,rt-ax59u
asus,tuf-ax4200
asus,tuf-ax6000
xiaomi,mi-router-3-pro
xiaomi,mi-router-3g
xiaomi,mi-router-4
xiaomi,mi-router-ac2100
xiaomi,redmi-router-ac2100
xiaomi,r3d
xiaomi,redmi-router-ax6s
xiaomi,redmi-router-ax6000-stock
xiaomi,mi-router-ax3000t-stock

Source code: https://github.com/openwrt-xiaomi/facinstall/tree/main/files

Screenshot after check Xiaomi stock image:

16 Likes

NIce work. Hope to be able to test it soon on a tuf-ax4200.

Thx

I can confirm it worked without any problems on ASUS TUF-AX6000.

Since I had issues with a snapshot, nothing else was working (other than the serial port). And this tool helped me restore my the stock firmware.

Thank you for your hard work! @remittor Just make sure to mention on which devices will this thing work on.

2 Likes

Nice work! I can confirm that the package works without any problems on the Redmi AX6000 router.
Thanks!

1 Like

Thank you very much! Asus rescue failed to restore stock firmware on a rt-ax59u, but your tool worked without a hitch. Very nice!

I tried to install the lastest OpenWRT snapshot, but found that there were no WiFi available... I guess I will wait for a stable version.

1 Like

It also worked on TUF-AX4200Q
from openwrt 23.05.3 to ASUS stock firmware. :slight_smile:

Thx for the help.

facinstall is installed by software not sysuprgrade image

i has also use faceinstall and he work perfectly wit my asus 4200

Thank you for the replay, I appriciate you take the time to reply.
I also now confirm it is working perfect.
Great job to the creator(s) thank you, happy dude here now :smiley:

1 Like

I'm using an ASUS TUF-AX6000 with OpenWRT 23.05.3 and I'm unable to restore the trx image from asus. The "flash new firmware" dialog says it detected a trx stock image and after I click continue it just restarts and I can login again to luci - I'm very confused :slight_smile:

You made my day. After hours of searching, I finally found the solution. Works perfectly with ASUS RT-AX59U.
Many thanks Oliver

@remittor

When installing facinstall on recent snapshot builds I get this error/warning:

/lib/upgrade/facinstall/facinstall.sh: line 159: luci-reload: not found

@Gingernut , luci installed?

1 Like

@remittor yes

same error here, with the 20240626 snapshot:

root@OpenWrt:/tmp# opkg install facinstall_1.8-20240317_all.ipk
Installing facinstall (1.8-20240317) to root...
Configuring facinstall.
/lib/upgrade/facinstall/facinstall.sh: line 159: luci-reload: not found

So I think I have the general idea on how this might work, but I still wish you would at least put some instructions on how to use this tool of yours.

EDIT: ok so this was actually alot easier than I thought.

go to the OpenWRT web gui AKA "Luci". If you get "no page found", install it via the ssh console "opkg install luci".

Now in the webgui, go to system tab, click software, and look for a blue button that says "upload package".

upload the "facinstall_full.ipk" that you downloaded from remittors github AKA the guy who started this thread and click install.

You might get something about luci. just ignore it.

Now go get your factory stock firmware for the router and upload it. facinstall will detect it and show it show right when you are about to have it commence the factory stock firmware install.

2 Likes

I have already installed facinstall_all.ipk on my AX3000T with OpenWrt.

When I tried to flash the image with the original Xiaomi firmware, a screen like the first post appeared, but without the "faciinstall: Detect HDR1-image.".
Can I continue with the installation?

Do I need to do anything more than upload the "facinstall_full_ipk" package in the Luci interface?
I'm not sure if "facinstal" is working.

Press RESTART on page System / Startup / 99-facinstall
Check log on page Status / System Log

Upload where exactly, same interface you use for uploading regular firmware upgrades?

I want to double check my SFP+ port works so I need to go back to stock firmware temporarily.

UPDATE:

Yep, I managed to flash the stock firmware by uploading it.

luci-reload: not found

error can be ignored. There is indeed no such binary. You can just reload the uhttpd service manually for that.

2 Likes

No way to use without Luci?

1 Like

Hi all, this may be a silly question - but when I installed the facinstall package I successfully added this to OpenWRT through the web console. I have not yet reverted back to the ASUS stock firmware but where can I find the TRX stock for the TUF 4200X and TUF 6000? Thank you.

Update:

Never mind - silly me I just needed to go to the Asus website and download the firmware which is in TRX format. Sorry folks.