Support for Xiaomi Wifi R3P Pro?


#343

Here's all logs, that you've asked.

And my friend has discovered, why changes to settings don't want to save. On the first login after first firmware installing you have to set New password and relogin. If you leave stock password and make changes to settings, they will work only to the next reboot and will reset after it.


#344

@lolyinseo that's pretty impressive... can you connect?


#345

@pellmen wait...

And my friend has discovered, why changes to settings don't want to save. On the first login after first firmware installing you have to set New password and relogin. If you leave stock password and make changes to settings, they will work only to the next reboot and will reset after it.

Do you mean if you set a new password then the subsequent changes become permanent?? That seems completely bizarre... but I'll look at the logs...

Thank you!

EDIT: er... at some point I was writing the "tftpboot" instructions off the top of my head, and I told people to press '2' at the boot menu... i should have said press '1' (ONE)... this explains why so many people have clobbered kernel0 (kernel_stock)s... the bootloader overwrites both kernel0 and kernel1 when you press '2'... that's pretty important. can you make sure the instructions on 4pda are fixed? (i changed the TOH the other day...)

EDIT2: Oh boy.... "some mundane detail"... but looking at the logs, because of my mistake very little makes sense... it's supposedly booting from 'flash" but actually it's just the initramfs file (partially written to disk).... how annoying...


#346

@andreykiselev ... i can read the driver code but honestly i'd rather not... in fact (for the time being) i'd rather not know anything about ECC (hardware or software) either... what you're saying seems logical... that the software would see if there's HW ECC and if not implement software ECC... i'm not sure it does that, though :wink: the mtd/nand driver code (unless I'm completely confused) seems lifted wholesale from the MTK SDK ... rather crap.


#347

I haven't made the instructions for initramfs yet. I think it's not important for common users)


#349

Nope ((
I can not figure out how to manage this module. Luci does not work and hostapd looks like build without nl80211 support


#350

I blink and there are so many posts I don't know where to go from here. What's new @ilyas ? Has there been any updates with your firmware, do you still want me to carry out an Install and collect the logs again?


#351

Let @ilyas to have a break) he was working on openwrt for our router for the last 2 month every day) maybe he want to have a time for the normal live, not only on this forum and coding for this router)


#352

@pellmen haha... yes i guess it has been a while. but i still want to figure out the "Micron" problem. (even though openwrt/r3p is already merged).... otherwise this isn't "finished" (and then there's the small matter of the wifi driver of course....)

I've found some bug reports against the mt7621 nand controller that would explain the problems (soft bricking) people are seeing when installing with bad blocks. i'm not sure, however, i understand what's going on with people without bad blocks where the installation is successful but the subsequent boot has problems (it might be the same bug)...

@souk yes you're right there's been a lot of traffic on this thread. if possible, what i'd like from you (i can't remember if you have bad blocks or not) is to fresh install (from stock, if possible) openwrt (my latest "release", just to keep the experiment controlled), and then send me the logs (of xiaomi stock booting, of your installation, and until the reboot finishes and you get to the prompt). after that, i'd appreciate it if you could send me the contents of your mtd9 partition. Then, do sysupgrade (to the same release's *sysupgrade.bin file), save the logs of everything, and send me the contents of the mtd9 partition again....

to get the contents of mtd9 (assuming you're using windows) install putty and do the following:

start->run "cmd.exe"
cd Desktop
plink -ssh root@192.168.1.1 "dd if=/dev/mtd9 bs=1M" > mtd9.bin

when the command terminates you'll have mtd9.bin on your desktop.

@andreykiselev has been extremely helpful but i want/need more data points..

EDIT: sorry i didn't answer your question "is there anything new with the firmware?"... small changes: i had been missing the SingleSKU.dat file that it wanted, so i fixed/added that, and i'm assuming now that the power "boost" is better (just guessing, really)... i can't remember who it was that was having coverage problems... i don't know if "latest" fixes them....


#353

Could you share a link to the bug report? Maybe there is something that we can fix...


#355

@andreykiselev this would seem to cause the problem Micron/with/bad/blocks users are seeing:

https://bugs.openwrt.org/index.php?do=details&task_id=1926

my guess is that the controller isn't consistent... it does shift_on_bbt when writing, but when reading it just reads directly (without shifting).... that's one guess (without having looked at the code really)... another guess would be that xiaomi stock is doing "shift" but openwrt isn't doing it in the same way... although, i need to actually verify that this is what's happening :wink:

and i'm not 100% convinced that the solution (don't shift_on_bbt) is the correct one in all cases... makes sense for UBI but not so much for raw partitions (such as "kernel")....


#356

Agree, UBI should take care of bad blocks and leveling by itself (since it was developed exactly for this), but for other parts we actually have to take care of it. I've been looking at the literature and actually get convinced that kernel volumes must be also placed on UBI, but that requires messing a bit with the bootloader if I understand the whole thing correctly...


#357

installed Xiaomi Mi Router 3 Pro (4.14.104+hsdma+fuse reloaded) and optional (untested) mt76/mt7615 drivers and was running fine and i decided to upgrade to http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/openwrt-ramips-mt7621-xiaomi_mir3p-squashfs-sysupgrade.bin via openwrt gui

now rooter is in boot loops. cant even ssh to router... is it bricked?


#358

@jincx hi and welcome!

let me start by saying... "crap!". i think you're the first one to "upgrade" to the "official" openwrt. i'm not sure off the top of my head what went wrong (possibly problems auto-loading the mt7615 kernel driver? or more partition/mtd weirdnesses? i wonder...)

you're going to need an UART... let me know if you don't know what that is. once you connect to the console it's easy to fix.

EDIT: however, it would be nice if (once you get the UART) you didn't immediately "fix" the problem but let me know so i can try to understand what went wrong (to really fix the problem)...


#359

connected to router thru serial com3 port but getting these codes

îN?!Ĭ¤)ÖjµL­!ÅýÛÞJ9ÅÍ
                      )TÕÏ
                          ø(Räö!à%?¾ß´Âe??m???!\¬´F¤äæÌÈ@AHÝE
(ÿ?¤HÅÅ!ÍJ¤ý9þµJ÷Ìö     )j¥Bµ?íÄÛ¤þ®9ÏíÈÿ¥                  +¬Æ´¶=ÅÅVÅõ>)ÿÕùôð-~0J!ÊÄÿ  ÏÏ@ÆH?1+îÎ0iå9
í       í   Ë
¥­ÝÕ!   ÍÌ)¤ÜP9s¥Lµ?
            ??B¦¶¤)!¥!åÕf1'1!ÆîÅD¤
                                  !¦Å¬)çÕƦ­
?!Ú!¶ôýJÇHN¦îü)¤@¤Ì?Ê×ý?Í9×Å!ÈäJÅJH¥äî!Än)® =Ý!æÍ
­!!?                                       )1Æ
    !)õÜü?)ýÅ¥  ýÝÈæ¤N  Ê!9,9s¥LµÍo¼Ì)ÁþÝÈæ¤N9Æ)O)¦
Í)JH­!!?¬ä1YO9å!×,9s¥Lµ¬ÈL¬Ý!R¤®                   )?
         9ÉßÅÈ]ÿÇõ¤¥¬)?þh¯?íÀ1$x?F?í¥
                                     ¥¥¥?¥
                                          ­?J§ÿ½H¾)ÆH¾)½H¾) !¤?Õ¤?Õ1ì)E¼?ÕJ¥Å í1î1¶HÅå!Aµ
                                                                                         ))´¦¤®¥¤?ÅÝÎ!­ì)L¥ÕÅͦµ?¦9!E¤?Å?µÝ¥¦9! å¥Æ¥©µÕ¥¦9! å¥Æ¥©µóä!äñÅÈ]Å9JÍÌÕtfä!
                ?9¦Æ!ÝÅÈ]í
                          ?ÄÍt8!?üíN?¤Î
                                       îHäÌÄN!¾çÝH!w!àFÅ!?)D?B!Îå!ä¬!Îù???      ´J?

                                                                                   ¾?9äå
                                                                                        #¤1$u¬Ì Ô)Æ1¶BJ§¹19!<ì!ÄL¬ä!JÅâ¥ø¥­¥À¥­¥¥¥öþ1¡¥)ÿ¥§Ù¥¤ý¦!¤J!õÅÄ)ÅNÿ&!û&HÞ
             §×¢!]ÿ¤!»1fi91!ß!­?

#360
U-Boot 1.1.3 (Jan 19 2017 - 17:14:12)

Board: Ralink APSoC DRAM:  256 MB
Power on memory test. Memory size= 256 MB...OK!
relocate_code Pointer at: 8ffac000

Config XHCI 40M PLL
******************************
Software System Reset Occurred
******************************
Allocate 16 byte aligned buffer: 8ffe0050
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [C8 DA 90 95 44]
Device found in MTK table, ID: c8da, EXT_ID: 909544
Support this Device in MTK table! c8da
select_chip
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Signature matched and data read!
load_fact_bbt success 2047
load fact bbt success
[mtk_nand] probe successfully!
mtd->writesize=2048 mtd->oobsize=64,    mtd->erasesize=131072  devinfo.iowidth=8
..============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: NAND Flash
Date:Jan 19 2017  Time:17:14:12
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 880 MHZ ####
 estimate memory size =256 Mbytes
#Reset_MT7530
set LAN/WAN LLLLW

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.

You choosed 3

 0
Booting System 2
..Erasing NAND Flash...
ranand_erase: start:40000, len:20000
.Writing to NAND Flash...
done

3: System Boot system code via Flash.
## Booting image at bc600000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.106
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1992336 Bytes =  1.9 MB
   Load Address: 80001000
   Entry Point:  80001000
...............................   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
commandline uart_en=0 factory_mode=0 usb_u3=1
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256

Starting kernel ...

[    0.000000] Linux version 4.14.106 (buildbot@slashdirt-03) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9662-3411399)) #0 SMP Thu Mar 21 01:04:57 2019
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Xiaomi Mi Router 3 Pro
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 1c000000 @ 00000000 (usable)
[    0.000000]  memory: 04000000 @ 20000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  [mem 0x0000000010000000-0x0000000023ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000001bffffff]
[    0.000000]   node   0: [mem 0x0000000020000000-0x0000000023ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000023ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x90/0x4ac with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @81491000 s26256 r8192 d22896 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130560
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=000740c0
[    0.000000] Readback ErrCtl register=000740c0
[    0.000000] Memory: 512620K/524288K available (4717K kernel code, 242K rwdata, 1040K rodata, 260K init, 254K bss, 11668K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007820] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073981] pid_max: default: 32768 minimum: 301
[    0.078751] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085260] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094059] Hierarchical SRCU implementation.
[    0.099223] smp: Bringing up secondary CPUs ...
[    0.119370] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.119379] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.119390] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.119530] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.163976] Synchronize counters for CPU 1: done.
[    0.213223] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.213230] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.213237] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.213312] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.255126] Synchronize counters for CPU 2: done.
[    0.300531] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.300539] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.300546] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.300629] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.340312] Synchronize counters for CPU 3: done.
[    0.370177] smp: Brought up 1 node, 4 CPUs
[    0.378059] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.387855] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.394156] pinctrl core: initialized pinctrl subsystem
[    0.400772] NET: Registered protocol family 16
[    0.415827] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.721143] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.726177] ***** Xtal 40MHz *****
[    0.729547] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.734659] Port 0 N_FTS = 1b105000
[    0.738099] Port 1 N_FTS = 1b105000
[    0.741557] Port 2 N_FTS = 1b102800
[    1.896729] PCIE2 no card, disable it(RST&CLK)
[    1.901073]  -> 21007f2
[    1.903491] PCIE0 enabled
[    1.906097] PCIE1 enabled
[    1.908686] PCI host bridge /pcie@1e140000 ranges:
[    1.913448]  MEM 0x0000000060000000..0x000000006fffffff
[    1.918633]   IO 0x000000001e160000..0x000000001e16ffff
[    1.923803] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    1.939749] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.945597] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.951316] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.958989] PCI host bridge to bus 0000:00
[    1.963028] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.969861] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    1.975713] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.982466] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.992512] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    1.999028] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.005959] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.012501] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.019432] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.026162] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[    2.032913] pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
[    2.039644] pci 0000:00:01.0: BAR 1: assigned [mem 0x60210000-0x6021ffff]
[    2.046405] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.053639] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.058570] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.065308] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
[    2.072578] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.077479] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    2.085701] clocksource: Switched to clocksource GIC
[    2.092136] NET: Registered protocol family 2
[    2.097248] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.104134] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.110583] TCP: Hash tables configured (established 2048 bind 2048)
[    2.117011] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.122778] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.129240] NET: Registered protocol family 1
[    2.365652] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.372033] Crashlog allocated RAM at address 0x3f00000
[    2.377634] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    2.388710] random: fast init done
[    2.393514] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.399310] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.412482] bounce: pool size: 64 pages
[    2.416307] io scheduler noop registered
[    2.420132] io scheduler deadline registered (default)
[    2.426462] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.436286] console [ttyS0] disabled
[    2.439829] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.448830] console [ttyS0] enabled
[    2.448830] console [ttyS0] enabled
[    2.455706] bootconsole [early0] disabled
[    2.455706] bootconsole [early0] disabled
[    2.464415] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.471327] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.478508] Enable NFI Clock
[    2.481379] # MTK NAND # : Use HW ECC
[    2.485040] Device found in MTK table, ID: c8da, EXT_ID: 909544
[    2.490951] Support this Device in MTK table! c8da
[    2.495922] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.502381] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xda
[    2.508717] nand: ESMT NAND 256MiB 3,3V 8-bit
[    2.513053] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.520630] Scanning device for bad blocks
[    2.810127] 10 fixed-partitions partitions found on MTD device MT7621-NAND
[    2.816987] Creating 10 MTD partitions on "MT7621-NAND":
[    2.822281] 0x000000000000-0x000000040000 : "Bootloader"
[    2.828709] 0x000000040000-0x000000080000 : "Config"
[    2.834675] 0x000000080000-0x0000000c0000 : "Bdata"
[    2.840613] 0x0000000c0000-0x000000100000 : "Factory"
[    2.846720] 0x000000100000-0x000000140000 : "crash"
[    2.852609] 0x000000140000-0x0000001c0000 : "crash_syslog"
[    2.859162] 0x0000001c0000-0x000000200000 : "reserved0"
[    2.865369] 0x000000200000-0x000000600000 : "kernel_stock"
[    2.871921] 0x000000600000-0x000000a00000 : "kernel"
[    2.877983] 0x000000a00000-0x00000ff80000 : "ubi"
[    2.885537] [mtk_nand] probe successfully!
[    2.890390] Signature matched and data read!
[    2.894639] load_fact_bbt success 2047
[    2.899154] libphy: Fixed MDIO Bus: probed
[    2.968267] libphy: mdio: probed
[    4.371868] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.378495] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    4.389160] NET: Registered protocol family 10
[    4.394981] Segment Routing with IPv6
[    4.398805] NET: Registered protocol family 17
[    4.403286] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.416204] 8021q: 802.1Q VLAN Support v1.8
[    4.423449] UBI: auto-attach mtd9
[    4.426842] ubi0: attaching mtd9
[    6.784245] ubi0: scanning is finished
[    6.805036] ubi0: attached mtd9 (name "ubi", size 245 MiB)
[    6.810541] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    6.817397] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    6.824150] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    6.831090] ubi0: good PEBs: 1964, bad PEBs: 0, corrupted PEBs: 0
[    6.837167] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
[    6.844356] ubi0: max/mean erase counter: 3/2, WL threshold: 4096, image sequence number: 975123993
[    6.853370] ubi0: available PEBs: 1920, total reserved PEBs: 44, PEBs reserved for bad PEB handling: 40
[    6.862756] ubi0: background thread "ubi_bgt0d" started, PID 391
[    6.862783] hctosys: unable to open rtc device (rtc0)
[    6.874048] usb_vbus: disabling
[    6.877770] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    6.885217] Please append a correct "root=" boot option; here are the available partitions:
[    6.893568] 1f00             256 mtdblock0
[    6.893575]  (driver?)
[    6.900096] 1f01             256 mtdblock1
[    6.900101]  (driver?)
[    6.906615] 1f02             256 mtdblock2
[    6.906620]  (driver?)
[    6.913121] 1f03             256 mtdblock3
[    6.913125]  (driver?)
[    6.919641] 1f04             256 mtdblock4
[    6.919645]  (driver?)
[    6.926160] 1f05             512 mtdblock5
[    6.926165]  (driver?)
[    6.932666] 1f06             256 mtdblock6
[    6.932670]  (driver?)
[    6.939185] 1f07            4096 mtdblock7
[    6.939189]  (driver?)
[    6.945704] 1f08            4096 mtdblock8
[    6.945708]  (driver?)
[    6.952209] 1f09          251392 mtdblock9
[    6.952213]  (driver?)
[    6.958728] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    6.968911] Rebooting in 1 seconds..

===================================================================
                MT7621   stage1 code 10:33:11 (ASIC)
                CPU=50000000 HZ BUS=16666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x11100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-1200Mhz ===
PLL3 FB_DL: 0xc, 1/0 = 714/310 31000000
PLL4 FB_DL: 0xf, 1/0 = 618/406 3D000000
PLL2 FB_DL: 0x11, 1/0 = 569/455 45000000
do DDR setting..[00320381]
Apply DDR3 Setting...(use customer AC)
          0    8   16   24   32   40   48   56   64   72   80   88   96  104  112  120
      --------------------------------------------------------------------------------
0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1
000E:|    0    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1
000F:|    0    0    0    0    1    1    1    1    1    1    1    1    1    1    0    0
0010:|    1    1    1    1    1    1    1    1    1    0    0    0    0    0    0    0
0011:|    1    1    1    1    0    0    0    0    0    0    0    0    0    0    0    0
0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
rank 0 coarse = 15
rank 0 fine = 72
B:|    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0
opt_dle value:9
DRAMC_R0DELDLY[018]=00001E1E
==================================================================
                RX      DQS perbit delay software calibration
==================================================================
1.0-15 bit dq delay value
==================================================================
bit|     0  1  2  3  4  5  6  7  8  9
--------------------------------------
0 |    9 8 8 9 7 5 8 6 7 7
10 |    9 10 9 10 7 8
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =30 DQS1 = 30
==================================================================
bit     DQS0     bit      DQS1
0  (1~60)30  8  (1~58)29
1  (1~58)29  9  (1~58)29
2  (1~55)28  10  (1~56)28
3  (1~59)30  11  (1~57)29
4  (1~60)30  12  (1~60)30
5  (0~57)28  13  (1~57)29
6  (1~58)29  14  (1~58)29
7  (1~60)30  15  (1~57)29
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    9 9 10 9 7 7 9 6 8 8
10 |    11 11 9 11 8 9
==================================================================
==================================================================
     TX  perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqsdly_pass[0]=15,  finish count=1
dqs_perbyte_dly.last_dqsdly_pass[1]=15,  finish count=2
DQ loop=15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=15,  finish count=1
dqs_perbyte_dly.last_dqdly_pass[1]=15,  finish count=2
byte:0, (DQS,DQ)=(8,8)
byte:1, (DQS,DQ)=(8,8)
20,data:88
[EMI] DRAMC calibration passed

===================================================================
                MT7621   stage1 code done
                CPU=50000000 HZ BUS=16666666 HZ
===================================================================

#361

@jincx yeah it's stupid, huh? we've seen a lot of those... to debrick you'll need to setup a tftp server and boot the *initramfs.bin file ("official" openwrt is fine). see https://openwrt.org/toh/xiaomi/xiaomi_r3p_pro

and if the instructions are unclear maybe we'll fix them up (post any questions here).

I would really appreciate it if you would send me your mtd9 partition (you can zip it or something to compress it) once you're running again (i mean, before you fix anything).


#362

how would i get mtd9 partition and zip ?


#363

it was in the link i added at the end, but nevermind:

to get the contents of mtd9 (assuming you're using windows) install putty and do the following:

start->run "cmd.exe"
cd Desktop
plink -ssh root@192.168.1.1 "dd if=/dev/mtd9 bs=1M" > mtd9.bin

when the command terminates you'll have mtd9.bin on your desktop.

when it's done use 7-zip or something to compress it


#364

:ok_hand:
understood