Mi3g brick ... try to transfer kernel0.bin

Ok. I start again.

The router is mine. Long time ago I installed openwrt 19.07 on it.
Today I take it again. I would like to upgrade it, but brick the router.
So I try to debrick it.
With your help it is done.

It is now with the originel firmware of xiaomi.

I do not manage to link it in xiaomi app, therefore i can not have ths ssh password.

So In the openwrt help, it says we can install it via uart.

But it does not work. When I write setenv uart-en 1, and setenv ssh_en 1 saveenc. Then I write boot, and normally in the uart console I should have have the prompt after restart but it is not the case.

So now mk24 try to help me.

But I do not fin snapshots initramfs for xiaomi 3g
And the command line tftpboot 0x81000000 XXX.bin do not work for me...

Thank you

You should be in U-Boot, so this is confusing me.

Are you saying you restored Xaomi instead of OpenWrt?

All you have to do is:

  • TFTP boot OpenWrt
  • Login
  • Sysupgrade

???

Is this U-Boot???

Do you still have your TFTP server connected?

TFTP fails again???

Provide more information.

yes i m back to xiaomi firmware.

But i have access to uart serial console.

And yes the tftp do not work again. but thisbtime i have plugged rj 45 cable and set ip adress to 192.168.31.100 fotbthe server like the firstctimebitbwokrs.

So what can I do to install openwrt ? step by step please.

Thank you.

and what do you call uboot ? uart console ?

:open_mouth: Please re-read the exact steps and command given above.

Inquire if you have questions.

i would like to follow the steps but I don t understand it.

what is uboot ??

what means * TFTP boot OpenWrt ?

thank you

???

:confused: Do you recall when you first made your post?

screen66

The exact same location...this is U-Boot - the bootloader.

:bulb: If we say TFTP, you can be sure you need to be in U-Boot again and set it up your TFTP server in Windows again. This is not gonna change, so no need to be lost again - we'll be referencing the same place.

You really need to understand that menu and get there.

It's been a while since I've done this so I'm not sure that's the right syntax of the tftpboot command. Once you have the prompt from option 4 try help tftpboot

If you have the Mi 3G v1 which has a USB port (not the 3G V2 which is very similar to the 4A Gigabit-- neither of those have a USB port), use this file:
https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-xiaomi_mi-router-3g-initramfs-kernel.bin
Rename it something short like file.bin on your TFTP server.
Then sysupgrade to a release file like this one (so you will have the web interface):
https://downloads.openwrt.org/releases/22.03.0-rc1/targets/ramips/mt7621/openwrt-22.03.0-rc1-ramips-mt7621-xiaomi_mi-router-3g-squashfs-sysupgrade.bin
There is an intramfs-kernel file in the release directory which could also be used for the TFTP to RAM boot.

1 Like

Paste the Sysupgrade file for the OP too, please - if you're on the page you referenced.

We assume you want OpenWrt and not Xaomi. You accidentally re-flashed Xaomi?

We are simply telling you how to follow the instructions to boot OpenWrt and flash it back once it's running - but you seem to get confused when we suggest you want OpenWrt.

Do you want OpenWrt?

If so, you would tftpboot the OpenWrt *.bin file - not Xaomi.

ok. it seems to be better.
yes i want to instl openwrt

I ll make a new try later this day.

Thank you. I know it s borrig to take time to explain.

So i try again, but i can t transfer the initramfs file...

always timeout error.

I put this file in tftp directory on myvlaptop.
Serup my ip adress as 192.168.31.100.

I launch the uart cpnsole, choose option 4.
write tftpboot 0x81000000 ramfs.bin

it says our ip is 192.168.31.1, server 192.168.31.100...

I plug a rj45 cable in the blue port of xiaomi router to a switch.
and plug an another cable from the switch to my laptop...

what do i do wrong ?

Yes, now I manage to transfer the ramfs file.

I see openwrt is strating when I boot the router.

With ip scanner, I see the router takes IP 192.168.1.195, but impossible to reach the adress with firefox or chrome !!!

More weird, connectin with uart on the router, I can ping itself (192.168.1.195) and my laptop configure at 192.168.1.36 is responding.

But If I go on my laptop, 192.168.1.36 is responding, but not 192.168.1.195 !!!
Ip scanner sees it anyway ...

Thank you very to all of you.

I finally managed to reinstalled a working version of openwrt.
Option 4 was not working for transfering the file.
I gave a try to option 1, and it worked.

Last question. By default the interface adress of openwrt is 192.168.1.1. I would like to change it for 192.168.1.97, but it doesn't not work. If I change it in network/interface, it takes time. I can never naviagte to 192.168.1.97.
Then a few minutes later, the interface can be access with 192.168.1.1 again !!!

Thank you

(Feel free to use the search function.)

Also, if you're issue is solved, see: How to mark a topic as [Solved]

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.