Support for Xiaomi Wifi R3P Pro?

@Charleslcso i'm fairly sure the problem isn't with mt7621 (which is the SoC)... most likely it isn't with the mt7615 (the wifi chip) either... it might be the driver or it might be the driver configuration (most likely the latter). we're doing something rather unorthodox with the wifi driver (that is, using binary modules compiled with unknown settings, most likely for DBDC mode) and trying to hack it to get it to work... so the short answer is 'i don't think (at all) that it's a hardware problem'...

@pelllmen how did it go compiling the wifi driver from source? i tried over the weekend but the instructions (on the page you linked to) don't seem to make sense or fit the code i've downloaded (for example, no "patches", but it talks about patches).... also the convoluted way he describes to get it to compile (at least, configure) makes me think that that can't really be the proper way of doing things... with the earlier (2016) sdk, mt7615 is a "package" which makes sense... except that uses an older driver (4.4.0.2 or something), so the patches don't all fit (and the newer driver might need other patches).

btw, did you notice (from @lukasz92 's answer on the mt7615 thread) that mt76 apparently already has some kind of support for mt7615?! incredible!

btw2, messing with the driver source, i'm pretty sure @nossiac's binary modules are compiled for DBDC mode (one chip with two frequencies) like the K2P has... I'm hoping recompiling without DBDC mode will result in something saner.

@ilyas, my friend is trying to repair the system of compiling - he said it's broken. He said, that getting working driver can take a week or more becase he can watch it only a few hours in evening.

@pellmen tell your friend not to spend too much time on it.. it's annoying. i got the source for version 5.0.2.0 to compile ... @nossiac uses 4.4.1.2 (iinm)... the "latest" may be a good or a bad thing (honestly I was just playing around and tried to compile every version i could find... this is the first I could compile)... I'll try with 4.4.1.2 (etc) later.

BTW, i get the impression that this code hasn't really been tested for non-DBDC mode (as in... it was missing some #ifdef's to guard for non-DBDC mode)... once I get it into a "package" format I'll post it in case anyone wants to play around (and yes I'll post the build instructions and patches too... of course...)

EDIT: OK, mt7615e (closed-source) version 5.0.2.0 compiles... could connect via 5G at first try (ssh). 2.4ghz seems like it needs some configuration options changed. source/patches will be posted as soon as it's looking sane (and a little more polished)

EDIT2: OK, it was just a silly configuration file slip that was causing wierdness with 2.4ghz. I can connect to the router (and get an IP address, etc) over both 5ghz and 2.4ghz...

EDIT3: @pellmen i've had the new kernel modules running all night doing simultaneous iperf3 and large file (~2GB) copy over ssh.... no kernel panics. can't say i'm much impressed by the speed, though (~70-80mbps for 5ghz; 40-50 for 2.4ghz)... although i honestly haven't compared it with @nossiac's binaries. want to try?

3 Likes

Yes, of course)

1 Like

Give it a try Kev, if you don't like it roll back

Amazing work !. Installed R3P RC1 from github yesterday and it works pretty well!
I'm up for testing if you guys need me to. Its very liberating to get rid of the eavesdropping MI router firmware.

@ilyas can you share your firmware

EDIT : Is there any way to make samba share work at the moment?

Thanks for RC1. It works, but tell me please how install l2tp vpn server on it? I try to install packet and its says The installed version of package kernel is not compatible, require 4.14.103-1-eb8ed4b9… while 4.14.93-1-1c5c2146… is installed.
Help please!

@pjgowtham i'm not sure what you mean when you say "can you share your firmware".... i posted all of the source (same place where you downloaded the binaries from... or scroll up in this forum).

as for samba share and l2tp (@splash)... at the moment we're stuck at kernel build 93 (which is the latest that we have prebuilt mt7615 modules for). as i've posted earlier, i now have compiled and (what appears to be) working kernel modules of my own (so we're no longer stuck with the prebuilt modules, and we can sync to the latest openwrt/kernel). i suppose there are two options (and related sub-options):

  • for people who prefer to stick with the tried-and-true prebuilt modules (that is, mt7615 version 4.4.1.2), i suppose the easiest way would be to download the openwrt source and build it themselves (choosing whatever packages they want) and then add in the kernel modules. i do realize it's a hassle for windows-users (presumably need to install vmware, etc etc... and if you're not familiar with linux/unix at all, it might be daunting). so i don't mind building/posting packages, although i would rather not build every single possible package and upload all of them.... maybe if people give me a list of packages they want, i'll build and post them.

  • for people who would like to use bleeding-edge latest (possibly better, maybe worse... unknown) mt7615 version 5.0.2.0 modules that i've managed to compile, once i've posted the new binaries, you should just be able to use the regular openwrt packages (ie, kernel 103 or whatever the latest and greatest linux version is).

perhaps i'll take a moment for a personal rant: i really don't see why the patches needed to compile the mt7615 (or other "leaked") sources aren't (currently) publicly available... the "the source isn't free to distribute" argument is weak: you're not posting copyrighted source, you're posting a patch... there's no intellectual property involved. it's almost as if people are trying to create personal dependencies and carve out little niches of "i can do something you can't" for themselves to make themselves special...

anyway, i'll be posting the patches and build instructions... the world has too many private niches. and i'm already special :wink:

1 Like

I have no experience with compiling or am i well versed with linux. Would love to test your bleeding edge latest stuff. Do share your compiled version, if it's no trouble for you. I removed the official firmware cos of the hassles and restrictions xiaomi put into the USB storage feature. It'd be amazing to see samba work on it.

@pellmen @pjgowtham @SOUK and everyone else: Here it is.

(patches to compile mt7615e from source is attached as a .tar file for now)

@pjgowtham @splash this build is sync'ed to the openwrt gate, so you should just be able to pull in regular openwrt packages for samba or l2tp or whatever you like

4 Likes

Have been testing out the firmware.

I dont know how to get the wifi working. When i click enable , it says " Restart it manually to create the interface". Tried googling it, but didnt give me any useful results. I tried "mtkwifi restart" and it didnt work.

The usb port is not working with the build. Is there any specific package that needs to be installed to get that light up? .The port was working out of the box with the RC1

@pjgowtham i just tried my latest bits again, and i don't see the problems you're mentioning. usb works (including mounting) and anyhow ra0/rai0 come up automatically on boot (due to /etc/init.d/mt7615e). granted i'm using tftpboot (and not flashing the bits) but that's because i'm scared of ruining my MTD... is anyone else experiencing these problems? if so, I'll try flashing and see what gives.

I do however notice that /sbin/mtkwifi is behaving strangely... somehow a bug crept in ("\n" replaced by " "), and for some reason it insists on bringing up apcli0/apcli1/apclii0/apclii1 which I actually don't want at all (because i haven't tested them to be honest, and the *1 interfaces shouldn't exist anyhow...) that might be brokenness in the feed where I borrowed the code from. I had fixed it but I guess I forgot to update the build files.

At any rate, what I do think works well is /etc/init.d/mt7615e start (or "stop" or "reload") ... so use that for now. Or edit /sbin/mtkwifi (line 46)

    for _,vif in ipairs(string.split(mtkwifi.read_pipe("ls /sys/class/net"), " "))

should be

    for _,vif in ipairs(string.split(mtkwifi.read_pipe("ls /sys/class/net"), "\n"))

(as in... the final " " should be "\n")

I wonder what interface you're trying to enable? apcli0 or apclii0? don't enable them. leave them alone. they aren't your friends. at least... i don't think you need them if you're just using your router as a regular wireless router.

In summary: ra0 and rai0 (your 2.4ghz and 5ghz interfaces) should be coming up automatically at boot. you shouldn't have to enable anything in the luci interface (they should already be enabled). don't try to enable apcli0/apclii0 because I haven't tested them and I don't know what they will do. USB disk should be working (it works for me). plug in a USB disk and run dmesg and see if you get something about a usb disk....

EDIT: I seem to have spoken too soon. I honestly rarely do things like change SSID on wifi (etc) so it appears that the luci/mtk part of that isn't working too well (as in, "save and apply" doesn't do much). as a workaround, try to disable/enable the interface after you've made configuration changes. that should work. be aware that since it's broken it might end up bringing down both interfaces (and not just one).

Something wrong with home-compiled mt7615e driver 5.0.2.0). If I config lan and then reboot I see flash operations screen. Help!

@splash when you say "i see flash operations screen" i'm assuming you mean the "failsafe" mode of luci... don't worry. just click on the "Administration" link in the lower right hand corner of the page. that should bring you to the screens you're more familiar with. (you haven't stumbled across a bug... driver problems often manifest themselves in more complicated ways ;))

I'm stupid :):rofl: Thats it! Thanks. I will test now...

Yeah!!! Just installed the last one and it's incredible. If I'll have some issues during the usage of firmware, I'll post them here. All working fast and fine)))

For all russian speaking peoples I've made FAQ how to config WIFI to get no troubles in using it: https://4pda.ru/forum/index.php?showtopic=810698&st=3600#entry82315996

Tried to run this on ssh /etc/init.d/mt7615e start

It gives me this error :

ifconfig: SIOCGIFFLAGS: No such device
brctl: iface ra0: No such device
ifconfig: SIOCGIFFLAGS: No such device
brctl: iface rai0: No such device

The kernel version mentioned in the status page says 4.14.93
But when i run ssh, it says

Package kernel (4.14.103-1-a89f634963b24aed8d9c88ba8203580b) installed in root is up to date.

My wireless screen only has ra0/rai0.
The USB port seems to be dead even after reset. But it works with the previous RC1 firmware.
All i did was sysupgrade from RC1 to the RC1 with 5.0.2.0 drivers
I never used the kernel.bin image anywhere. Am i supposed to use it somewhere?

dmesg

[    0.000000] Linux version 4.14.93 (ilyas@fish) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9393+1-d0b45962ef)) #0 SMP Wed Feb 20 06:56:38 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] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat 805940a0, node_mem_map 81003000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000]   HighMem zone: 65536 pages, LIFO batch:15
[    0.000000] random: get_random_bytes called from start_kernel+0x90/0x4a4 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @81491000 s26192 r8192 d22960 u57344
[    0.000000] pcpu-alloc: s26192 r8192 d22960 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    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=00011950
[    0.000000] Readback ErrCtl register=00011950
[    0.000000] Memory: 512944K/524288K available (4480K kernel code, 231K rwdata, 1000K rodata, 228K init, 248K bss, 11344K 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.007809] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073968] pid_max: default: 32768 minimum: 301
[    0.078729] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085237] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.093969] Hierarchical SRCU implementation.
[    0.099070] smp: Bringing up secondary CPUs ...
[    0.105770] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.105779] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.105790] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.105923] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.163784] Synchronize counters for CPU 1: done.
[    0.199207] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.199216] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.199223] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.199291] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.254734] Synchronize counters for CPU 2: done.
[    0.286718] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.286726] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.286735] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.286814] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.339911] Synchronize counters for CPU 3: done.
[    0.369774] smp: Brought up 1 node, 4 CPUs
[    0.377649] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.387443] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.393741] pinctrl core: initialized pinctrl subsystem
[    0.400238] NET: Registered protocol family 16
[    0.414415] FPU Affinity set after 11720 emulations
[    0.415086] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.720306] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.725355] ***** Xtal 40MHz *****
[    0.728710] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.733807] Port 0 N_FTS = 1b105000
[    0.737275] Port 1 N_FTS = 1b105000
[    0.740721] Port 2 N_FTS = 1b102800
[    1.895734] PCIE2 no card, disable it(RST&CLK)
[    1.900090]  -> 21007f2
[    1.902496] PCIE0 enabled
[    1.905086] PCIE1 enabled
[    1.907690] PCI host bridge /pcie@1e140000 ranges:
[    1.912461]  MEM 0x0000000060000000..0x000000006fffffff
[    1.917618]   IO 0x000000001e160000..0x000000001e16ffff
[    1.922821] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    1.938387] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.944230] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.949921] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.957349] PCI host bridge to bus 0000:00
[    1.961388] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.968246] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    1.974074] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.980832] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.988723] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.988761] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.988773] pci 0000:00:00.0: reg 0x14: [mem 0x60200000-0x6020ffff]
[    1.988834] pci 0000:00:00.0: supports D1
[    1.988843] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.989114] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.989153] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.989171] pci 0000:00:01.0: reg 0x14: [mem 0x60210000-0x6021ffff]
[    1.989233] pci 0000:00:01.0: supports D1
[    1.989242] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.989713] pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280
[    1.989773] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.990095] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.990328] pci 0000:02:00.0: [14c3:7615] type 00 class 0x000280
[    1.990389] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.990705] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.990733] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[    1.990812] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    1.997364] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.004237] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.010819] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.017721] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.024473] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[    2.031192] pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
[    2.037957] pci 0000:00:01.0: BAR 1: assigned [mem 0x60210000-0x6021ffff]
[    2.044686] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.051962] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.056857] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.063625] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
[    2.070863] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.075793] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    2.083810] clocksource: Switched to clocksource GIC
[    2.090304] NET: Registered protocol family 2
[    2.095237] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.102121] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.108572] TCP: Hash tables configured (established 2048 bind 2048)
[    2.114977] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.120740] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.127217] NET: Registered protocol family 1
[    2.131539] PCI: CLS 0 bytes, default 32
[    2.363758] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.370214] Crashlog allocated RAM at address 0x3f00000
[    2.375745] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    2.388136] random: fast init done
[    2.392744] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.398515] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.411855] bounce: pool size: 64 pages
[    2.415828] io scheduler noop registered
[    2.419653] io scheduler deadline registered (default)
[    2.426056] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    2.433657] console [ttyS0] disabled
[    2.437231] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.446204] console [ttyS0] enabled
[    2.453066] bootconsole [early0] disabled
[    2.461731] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.468714] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.475847] Enable NFI Clock
[    2.478719] # MTK NAND # : Use HW ECC
[    2.482378] Device found in MTK table, ID: c8da, EXT_ID: 909544
[    2.488327] Support this Device in MTK table! c8da
[    2.493276] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.499746] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xda
[    2.506083] nand: ESMT NAND 256MiB 3,3V 8-bit
[    2.510419] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.517979] Scanning device for bad blocks
[    2.807178] 10 fixed-partitions partitions found on MTD device MT7621-NAND
[    2.814032] Creating 10 MTD partitions on "MT7621-NAND":
[    2.819325] 0x000000000000-0x000000040000 : "Bootloader"
[    2.825759] 0x000000040000-0x000000080000 : "Config"
[    2.831692] 0x000000080000-0x0000000c0000 : "Bdata"
[    2.837621] 0x0000000c0000-0x000000100000 : "Factory"
[    2.843661] 0x000000100000-0x000000140000 : "crash"
[    2.849592] 0x000000140000-0x0000001c0000 : "crash_syslog"
[    2.856143] 0x0000001c0000-0x000000200000 : "reserved0"
[    2.862391] 0x000000200000-0x000000600000 : "kernel_stock"
[    2.868986] 0x000000600000-0x000000a00000 : "kernel"
[    2.875044] 0x000000a00000-0x00000ff80000 : "ubi"
[    2.882637] [mtk_nand] probe successfully!
[    2.887472] Signature matched and data read!
[    2.891721] load_fact_bbt success 2047
[    2.896263] libphy: Fixed MDIO Bus: probed
[    2.966363] libphy: mdio: probed
[    4.369990] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.376672] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    4.387447] NET: Registered protocol family 10
[    4.393220] Segment Routing with IPv6
[    4.396996] NET: Registered protocol family 17
[    4.401474] 8021q: 802.1Q VLAN Support v1.8
[    4.408665] UBI: auto-attach mtd9
[    4.411999] ubi0: attaching mtd9
[    4.548222] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[    4.668260] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[    6.035195] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[    6.768239] ubi0: scanning is finished
[    6.789974] ubi0: attached mtd9 (name "ubi", size 245 MiB)
[    6.795476] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    6.802316] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    6.809083] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    6.816023] ubi0: good PEBs: 1964, bad PEBs: 0, corrupted PEBs: 0
[    6.822086] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    6.829287] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1391812767
[    6.838388] ubi0: available PEBs: 0, total reserved PEBs: 1964, PEBs reserved for bad PEB handling: 40
[    6.847693] ubi0: background thread "ubi_bgt0d" started, PID 372
[    6.849701] block ubiblock0_0: created from ubi0:0(rootfs)
[    6.859172] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    6.866127] hctosys: unable to open rtc device (rtc0)
[    6.871407] usb_vbus: disabling
[    6.881235] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    6.888892] Freeing unused kernel memory: 228K
[    6.893326] This architecture does not have kernel memory protection.
[    7.387384] init: Console is alive
[    7.391021] init: - watchdog -
[    7.454159] init: - preinit -
[    8.038958] mtk_soc_eth 1e100000.ethernet: PPE started
[   11.242909] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 439
[   11.293104] random: procd: uninitialized urandom read (4 bytes read)
[   11.319527] UBIFS (ubi0:1): recovery needed
[   11.538367] UBIFS (ubi0:1): recovery completed
[   11.542921] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   11.550730] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.560614] UBIFS (ubi0:1): FS size: 237572096 bytes (226 MiB, 1871 LEBs), journal size 11935744 bytes (11 MiB, 94 LEBs)
[   11.571442] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   11.578042] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID C81B8B63-63AB-4FEA-9E99-08B735D93DE3, small LPT model
[   11.590755] mount_root: overlay filesystem has not been fully initialized yet
[   11.598379] mount_root: switching to ubifs overlay
[   11.612562] urandom-seed: Seed file not found (/etc/urandom.seed)
[   11.694357] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   11.708958] procd: - early -
[   11.711937] procd: - watchdog -
[   12.333941] procd: - watchdog -
[   12.337386] procd: - ubus -
[   12.412679] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.515005] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.521813] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.529090] procd: - init -
[   13.981451] urandom_read: 5 callbacks suppressed
[   13.981463] random: jshn: uninitialized urandom read (4 bytes read)
[   19.850729] random: crng init done
[   20.206703] mtk_soc_eth 1e100000.ethernet: PPE started
[   20.217635] device eth0 entered promiscuous mode
[   20.223527] br-lan: port 1(eth0.1) entered blocking state
[   20.229018] br-lan: port 1(eth0.1) entered disabled state
[   20.235210] device eth0.1 entered promiscuous mode
[   20.243600] br-lan: port 1(eth0.1) entered blocking state
[   20.249031] br-lan: port 1(eth0.1) entered forwarding state
[   20.255113] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   21.274479] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[  189.099785] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[  191.799258] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[  194.500924] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[  213.342980] br-lan: port 1(eth0.1) entered disabled state
[  213.350865] device eth0.1 left promiscuous mode
[  213.355824] br-lan: port 1(eth0.1) entered disabled state
[  213.445205] device eth0 left promiscuous mode
[  213.452265] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[  213.621713] device eth0 entered promiscuous mode
[  213.627781] br-lan: port 1(eth0.1) entered blocking state
[  213.633184] br-lan: port 1(eth0.1) entered disabled state
[  213.639345] device eth0.1 entered promiscuous mode
[  213.646909] br-lan: port 1(eth0.1) entered blocking state
[  213.652409] br-lan: port 1(eth0.1) entered forwarding state
[  221.188313] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up

@pjgowtham hahaha i think i understand what went wrong... now that you mention the word "sysupgrade"... that may or not be working (oops... can't say i've tested it myself...)

why don't you try doing a regular installation (good ol' mtd write and all that...) at least that way we'll all be on the same page. in fact, i'll just give you the command (since you say you're coming from RC1):


dd if=factory.bin bs=1M count=4 | mtd write - kernel
dd if=factory.bin bs=1M skip=4 | mtd write - ubi

(and no, don't need to use the kernel.bin file unless you're using tftpboot)

root@OpenWrt:/# dd if=factory.bin bs=1M count=4 | mtd write - kernel
Unlocking kernel ...

Writing from <stdin> to kernel ...  [e]4+0 records in
4+0 records out

root@OpenWrt:/# dd if=factory.bin bs=1M skip=4 | mtd write - ubi
Unlocking ubi ...

Writing from <stdin> to ubi ...  [e]5+1 records in
5+1 records out

Also tried rolling back to the RC1 with MTD and then reinstalling RC1+new drivers again with MTD
Same results. No change.