Xiaomi mi wifi 3 support

yes, except that chen's image doesn't include the web interface. so you have to do everything through ssh until you install the luci package.

Well,you can include Luci when using make menuconfig

1 Like

Thanks for the info. The question here is, upgrade using the "known" procedure, no matter if using cli or web-gu, after this first Lede step is made. I'll try next week, after getting a spare wireless router.

Nice! disabling the KERNEL_KALLSYMS did the trick.

Thanks for the support @ptpt52!

Now i'm going to get back to stock, and flash.

I'll keep you updated!

Reverted back to stock and flashed .... the light is always yellow and it seems that there is no network, (192.168.1.1 is not responding to arp) although the ethernet lights are blinking. I'll get back to stock and begin again.

Though i'm not sure that i have disabled the KALLSYMS kernel option. I noticed that Config.in was not referencing config/Config-kernel.in and added that line. Also changed in the Config-kernel.in the KERNEL_KALLSYMS to default n. Is that ok?

I have no uart to check error log, so i'm a little blind on what is possibly failing

Thanks in advance!

Well, end of the line for me. I officially bricked the router :joy:
:joy::joy:

If you have a soldering iron at hand (or know someone who has) it should be fairly easy to get a serial connection using a cheap UART adapter and some wires. Just search CP2102 on eBay. I have not tried it on the Xiaomi 3 but I've done it on the Xiaomi 3G and several other routers.

1 Like

i'm guessing you did, but just to make sure - did you try 192.168.15.1?

1 Like

AFAIK, Xiaomi routers default IP is 192.168.31.1

yep totally, but to no success :frowning:

Yep, too. and no success. Also i tried DHCP but no luck too.

i'll tried to revert back to xiaomi firmware using the usb and reset button but no blinking light of flashing process. I guess the bootloader is stuck prior loading the kernel.

I'll grab a serial adapter and solder a 4pin header. This mod is pretty simple and probably i can check out the boot log and see what's wrong.

Thanks y'all for your responses!

U-Boot 1.1.3 (Apr 15 2016 - 17:46:โ–’โ–’โ–’โ–’โ–’โ–’โ–’Board: Ralink APSoC DRAM:  128 MB
Power on memory tesโ–’โ–’โ–’โ–’ory size= 128 MB...OK!
relocate_code Pointer at: 87fb8000
enable ephy clock...done. rf reg 29 = 5
SSร โ–’โ–’โ–’โ–’bled.
!!! nand page size = 2048, addr len=4
..===============โ–’โ–’โ–’โ–’โ–’โ–’=======================
Ralink UBoot Version: 4.2.S.โ–’โ–’โ–’โ–’โ–’โ–’โ–’----------------------------------------
ASIC 7620_Mะ โ–’โ–’โ–’โ–’t5<->None)
DRAM_CONF_FROM: Auto-detection
DRAM_TYPE:โ–’โ–’โ–’าฒโ–’
DRAM component: 1024 Mbits
DRAM bus: 16 bit
Total mโ–’โ–’โ–’โ–’โ–’ 128 MBytes
Flash component: NAND Flash
Date:Apr 15 โ–’โ–’โ–’โ–’โ–’โ–’Time:17:46:32
icache: sets:512, ways:4, linesz:32 ,total:65536
dcacโ–’ๅบ โ–’โ–’ts:256, ways:4, linesz:32 ,total:32768

 ##### The โ–’โ–’ี โ–’โ–’โ–’q = 580 MHZ ####
 estimate memory size =128 Mbytes
โ–’โ–’โ–’โ–’โ–’ase choose the operation:
   1: Load system code to โ–’โ–’โ–’โ–’อ โ–’ia TFTP.
   2: Load system code then write to Flash โ–’โ–’โ–’โ–’โ–’TP.
   3: Boot system code via Flash (default).
   4โ–’โ–’โ–’โ–’โ–’โ–’ boot command line interface.
   9: Load Boot Loader โ–’โ–’โ–’โ–’โ–’โ–’en write to Flash via TFTP.                      4 โ–’โ–’โ–’ 0

3: โ–’โ–’โ–’โ–’โ–’โ–’ Boot system code via Flash.
Booting System 2
โ–’.ranaโ–’โ–’โ–’โ–’โ–’โ–’se_write: offs:40000, count:20000
.Doneโ–’โ–’โ–’โ–’โ–’โ–’e
โ–’โ–’โ–’โ–’โ–’โ–’ting image at bc600000 ...
   Image Name:   MIPS LEDE Linuโ–’โ–’65
   Image Type:   MIPS Linux Kernel Image (lzma compโ–’โ–’โ–’โ–’โ–’โ–’)
   Data Size:    1364072 Bytes =  1.3 MB
   Load Aโ–’โ–’โ–’โ–’โ–’โ–’ 80000000
   Entry Point:  80000000
..โ–’.................โ–’   Verifying Checksum ... OK
   Uncompโ–’โ–’โ–’โ–’โ–’โ–’โ–’ Kernel Image ... OK
commandlโ–’โ–’โ–’โ–’โ–’rt_en=1 factory_mode=0 mem=128m
No initrd
## Transferโ–’โ–’โ–’โ–’โ–’ontrol to Linux (at address 80000000) ...
## Giving lโ–’โ–’โ–’โ–’โ–’โ–’msize in MB, 128

Starting kernel ...

Now i cant write in console, my device will be bricked

oops, if that so, it is bricked and can never revert back.

Please, make sure you are following the steps in here:
https://github.com/ptpt52/lede-source/issues/1

Maybe you can tell me what I did wrong
here is my config https://pastebin.com/VVUcRU7k

maybe nothing is wrong, but the first time to flash you may forget to do this:

nvram set boot_wait=on
nvram set uart_en=1
nvram commit

so you cannot input in ttl console

As i remember i did wrote all this commands.See the logs commandlโ–’โ–’โ–’โ–’โ–’rt_en=1
Perhaps it was necessary to use uboot from padavan

So when there will be ready made version will be available ?
that i can simply download and install in my Xiaomi R3 router ?

Maybe, a first stable release will need you to tinker at command line, and after that, you will be able to "simply install" on your router any update firmware

checkout my working rom binarys here https://dev.ptpt52.com/rom/
my working custom builds tend to be used by Chinese people to cross the firewall
but you can use it as you wish.

1 Like

Instructions to install remain the same right? Downgrade to that known dev version of the stock rom, enable ssh and then:

nvram set flag_last_success=1
nvram set boot_wait=on
nvram set uart_en=1
nvram commit
mtd write natcap-3.0.0-build201712081736-ramips-mt7620nand-miwifi-r3-squashfs-kernel1.bin kernel1
mtd write natcap-3.0.0-build201712081736-ramips-mt7620nand-miwifi-r3-squashfs-rootfs0.bin rootfs0
reboot