sedoxa
November 20, 2023, 6:01pm
1
Hi all,
Trying to wipe an older version and to bring a newer build. router model is xiaomi 4a. downloaded this version-
openwrt-23.05.0-ramips-mt7621-xiaomi_mi-router-4a-gigabit-squashfs-sysupgrade (1).bin
root@OpenWrt:/tmp# sysupgrade -n open_wrt.bin
Device xiaomi,mir3g-v2 not supported by this image
Supported devices: xiaomi,mi-router-4a-gigabit - Image version mismatch: image 1.1, device 1.0. Please wipe config during upgrade (force required) or reinstall. Reason: Config cannot be migrated from swconfig to DSA
Image check failed.
Version info
root@OpenWrt:/etc# cat openwrt_version
r13499-7b4877c204
root@OpenWrt:/etc# cat openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r13499-7b4877c204'
DISTRIB_TARGET='ramips/mt7621'
DISTRIB_ARCH='mipsel_24kc'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r13499-7b4877c204'
DISTRIB_TAINTS=''
What am I missing? Is this device bricked?
hnyman
November 20, 2023, 6:07pm
3
Are you sure that the image is correct?
The device claims to be mir3g-v2...
1 Like
There was such a strange maintainer as adschm .
He changed names for all Xiaomi routers. He also removed extra spaces, hyphens, commas, etc. from all files.
committed 04:18PM - 12 Nov 20 UTC
This device has previously been supported by the image
for Xiaomi Mi Router 3G v… 2. Since this is not obvious, the
4A is marketed as a new major revision and it also seems to
have a different bootloader, this will be both more tidy and
more helpful for the users.
Apart from that, note that there also is a 100M version of
the device that uses mt7628 platform, so a specifically named
image will also prevent confusion in this area.
Specifications:
- SoC: MediaTek MT7621
- Flash: 16 MiB NOR SPI
- RAM: 128 MiB DDR3
- Ethernet: 3x 10/100/1000 Mbps (switched, 2xLAN + WAN)
- WIFI0: MT7603E 2.4GHz 802.11b/g/n
- WIFI1: MT7612E 5GHz 802.11ac
- Antennas: 4x external (2 per radio), non-detachable
- LEDs: Programmable "power" LED (two-coloured, yellow/blue)
Non-programmable "internet" LED (shows WAN activity)
- Buttons: Reset
Installation:
Bootloader won't accept any serial input unless "boot_wait" u-boot
environment variable is changed to "on".
Vendor firmware won't accept any serial input until "uart_en" is
set to "1".
Using the https://github.com/acecilia/OpenWRTInvasion exploit you
can gain access to shell to enable these options:
To enable uart keyboard actions - 'nvram set uart_en=1'
To make uboot delay boot work - 'nvram set boot_wait=on'
Set boot delay to 5 - 'nvram set bootdelay=5'
Then run 'nvram commit' to make the changes permanent.
Once in the shell (following the OpenWRTInvasion instructions) you
can then run the following to flash OpenWrt and then reboot:
'cd /tmp; curl https://downloads.openwrt.org/...-sysupgrade.bin
--output firmware.bin; mtd -e OS1 -r write firmware.bin OS1'
Suggested-by: David Bentham <db260179@gmail.com>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
And now the @sedoxa must flash factory images of the kernel and rootfs.
NPeca75
November 20, 2023, 6:49pm
5
Hi
sedoxa:
(force required)
so if you really want to try, you could add force flag "-F | --force"
root@OpenWrt:/tmp# sysupgrade -n -F open_wrt.bin
1 Like
sedoxa
November 20, 2023, 8:27pm
6
this worked fine. for educational purposes, how do I switch back to the xiaomi firmware to show my friend the installation process?