BPI-R2 new image: OpenWrt 18.06.2 source code fork

Linux OpenWrt 4.14.95 Yes ping working for WAN. and Internet is working.

Did you try to connect using HTTP or HTTPS. If I remember corectly Luci was configured to start only on HTTPS. You can check the uhttpd config.

I dont think UI will work on WAN port. It should only working on LAN. and my question is Lan port is not working. It is not establishing a connection between my Laptop to Router LAN port.

Audit is spamming the UART log, with Audit of the LAN cable connected to my Laptop.

[ 2823.195197] br-lan: port 4(lan3) entered blocking state                                            
[ 2823.200391] br-lan: port 4(lan3) entered forwarding state                                          
[ 2823.206173] mt7530 3.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx                     
[ 2825.274815] br-lan: port 4(lan3) entered disabled state                                            
[ 2825.280236] mt7530 3.switch lan3: Link is Down                                                     
[ 2829.435235] br-lan: port 4(lan3) entered blocking state                                            
[ 2829.440430] br-lan: port 4(lan3) entered forwarding state                                          
[ 2829.446297] mt7530 3.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx                     
[ 2831.515295] br-lan: port 4(lan3) entered disabled state                                            
[ 2831.520642] mt7530 3.switch lan3: Link is Down                                                     
[ 2836.715244] br-lan: port 4(lan3) entered blocking state                                            
[ 2836.720445] br-lan: port 4(lan3) entered forwarding state                                          
[ 2836.726247] mt7530 3.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx                     
[ 2838.795348] br-lan: port 4(lan3) entered disabled state                                            
[ 2838.800981] mt7530 3.switch lan3: Link is Down                                                     
[ 2842.955212] br-lan: port 4(lan3) entered blocking state                                            
[ 2842.960405] br-lan: port 4(lan3) entered forwarding state                                          
[ 2842.965942] mt7530 3.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx                     
[ 2845.035251] br-lan: port 4(lan3) entered disabled state                                            
[ 2845.040722] mt7530 3.switch lan3: Link is Down                                                     
[ 2856.475218] br-lan: port 4(lan3) entered blocking state                                            
[ 2856.480418] br-lan: port 4(lan3) entered forwarding state                                          
[ 2856.485916] mt7530 3.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx                     
[ 2858.555404] br-lan: port 4(lan3) entered disabled state                                            
[ 2858.560658] mt7530 3.switch lan3: Link is Down                                                     
[ 2884.555229] br-lan: port 4(lan3) entered blocking state                                            
[ 2884.560422] br-lan: port 4(lan3) entered forwarding state                                          
[ 2884.565964] mt7530 3.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx                     
[ 2886.635301] br-lan: port 4(lan3) entered disabled state                                            
[ 2886.640938] mt7530 3.switch lan3: Link is Down                                                     
[ 2898.075240] br-lan: port 4(lan3) entered blocking state                                            
[ 2898.080441] br-lan: port 4(lan3) entered forwarding state                                          
[ 2898.085938] mt7530 3.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx                     
[ 2900.155375] br-lan: port 4(lan3) entered disabled state                                            
[ 2900.160903] mt7530 3.switch lan3: Link is Down                                                     
[ 3061.355249] br-lan: port 4(lan3) entered blocking state                                            
[ 3061.360444] br-lan: port 4(lan3) entered forwarding state                                          
[ 3061.365996] mt7530 3.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx                     
[ 3063.435389] br-lan: port 4(lan3) entered disabled state                                            
[ 3063.441111] mt7530 3.switch lan3: Link is Down                                                     
[ 3089.435232] br-lan: port 4(lan3) entered blocking state                                            
[ 3089.440429] br-lan: port 4(lan3) entered forwarding state                                          
[ 3089.446219] mt7530 3.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx                     
[ 3091.515406] br-lan: port 4(lan3) entered disabled state                                            
[ 3091.520658] mt7530 3.switch lan3: Link is Down

You could do a portscan (nmap,netstat) on lan-bt to see on which port the httpd is listening if any

I cant scan the lan-bt as it doesnt establish any connection to any device on lan. And my question is not about httpd or luci. It is about connecting any device under the router. Ex. Router lan1-4 to any device (laptop or desktop).

When i connect cable between routers lan port to laptop nic then there is this above audit logs.

@cioby23 is dhcp enabled by default on lan-bt? I cant find config about this. I also tried to give an ip to laptop lan under the samr subnet of the lan bridge which is bt-lan but still no luck.

ok, overread wan in your previous answer…i meant lan…

can you ping from client to lan-br (192.168.1.1)? is your client in same subnet? tried different cable/checked connection?

No. There is no network connectivity between laptop to Router Lan and I am sure cable is fine as I removed it from my office desk IP-Phone. EDIT: Sorry indeed this cable didn’t seem to work. Changed the cable and it was looking for IP and it was static. I am testing it with DHCP. Luci works fine. All good now.

Lovely work @cioby23. The adblocker is amazing.

Good work. Just a request Can I make the dhcp-client on for Lan and build img for normal users?

also I think the kernel is 4.14, will look into making 4.19version. Also what about the wifi ap for this device?

As far as I know DHCP is on by default for the bridge interface. I applied yesterday @lexa2 patches on OpenWRT trunk but compilation fails at some point.

I do not know how can I select 4.19 kernel for OpenWRT so I need to investigate this. Regarding wireless I’m using an MT7612e mPCIE card which works fine on OpenWRT using the mt76 driver.

Onboard WiFi chip MT6625 is not supported in OpenWRT.

I thought there is wifi integrated in R2 :o Their specification shows Integrated WIFI/BT, but I just checked on R2 Wifi/BT development thread that the drivers are still not there for linux.

So we might have to wait more for this. Thanks anyways. I will also try to compile different branches of @LeXa2 openwrt and see which one is stable with most feature working out of the box. Thanks again.

Yes that’s what I saw on the thread.

The driver for r2 internal wifi (mt6625l) can’t be send mainline because it too big,does not use standard-init and is buggy. I try to port it to each kernel-version to have it available in my kernel (i also use it). Since i’m nearly alone with this work and my limited knowledge about driver-design i see no chance to rewrite the driver for mainline or fix the bugs…still try to port to 5.4,see other thread if you can help me

There are drivers for MT6625 but I think they are based on Android code and is very huge (hundreds of thousand of lines long). Also it requires some additional tools to load the drivers. OpenWRT developers won’t accept this in their code repository so someone might need to rewrite the driverr before it’s merged.

Would definitely like to help you with it. But idk how i can do it. If you can guide me on the things you want me to look into then I can check. But i have zero experience/knowledge about kernel and drivers development.

There’s WiFi+Bluetooth chip integrated into R2. Problem is there are no stable and/or upstream drivers for this chip for linux and for now it looks like chances are low there ever would be. If you really want WiFi in your R2 (which I think is a bad idea - search forums here if interested in my detailed opinion on WiFi vs open source drivers vs routers, I had posted it before several times) then your best bet would be to look for an external miniPCIe card known to have working drivers for linux.

As for USB tethering mode - you need to enable relevant kernel modules in make menuconfig and include them into your build (i.e. either enable them to be “y” state in menuconfig or select “m” state and then upload and install opkg with required module).

Yep, changes are portable for sure - they are simple enough so it’s not a rocket science. I’m already started working on it about two weeks ago but as always there are time constraints due to Real Life™. With luck might be able to finish with porting/testing by the tomorrows evening but take it with a grain of salt - family, kids, wife, e.t.c. tend to have their own view on the my weekend schedule :laughing:.

Not at all. Luci had been here for ages now, like 5+ years. You just need to enable/use proper opkg repos corresponding to your build.

In 18.06.x branch OpenWRT had been using 4.14 LTS branch for most of supported boards. They are moving into using 4.19 LTS as a base for 19.07 branch. While it is possible to do things like “upgrade kernel but leave other parts of openwrt image intact” and I’m doing like that to test how does recent kernel versions with Frank’s patches work I don’t recommend this road for a “ordinary end-user”. Sticking with well-supported and stable LTS branch is a best thing to do. You won’t get much benefit from using 4.19 or mainline kernels in terms of performance or features. There might be some benefit in moving to 5.x kernels with phylink rewritten network driver but there’s no 5.x LTS kernel branch yet.

Dhcp-client is on by default on wan interface. For br-lan default is static 192.168.1.1 IP and DHCP server (dnsmasq) serving IPs from this range.

1 Like

Thanks again for the in detail response. Well I don’t have any real use for the R2, It is just for development and sharing it on here for other community users to use it.

Mostly I try to build img which are ready to use. I understand integrated wifi doesn’t seem to work in mainline as it is a big driver and would be merged in mainline in near future.

Can you advice which is the module which I need to enable in the config file to use usb tethering?

You may find some information about setting up usb tethering in OpenWRT on this page: https://openwrt.org/docs/guide-user/network/wan/smartphone.usb.tethering

1 Like

I have added your commits to OpenWRT trunk and 19.07 and there were some conflicts when I merged them which I managed to solve but compilation fails on both cases Below is the output error (duplicate_node_names):

arch/arm/boot/dts/mt7623a-rfb-emmc.dtb: ERROR (duplicate_node_names): Duplicate node name /pcie-phy@1a149000
arch/arm/boot/dts/mt7623a-rfb-emmc.dtb: ERROR (duplicate_node_names): Duplicate node name /pcie-phy@1a14a000
ERROR: Input tree has errors, aborting (use -f to force output)
arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc-512M.dtb: ERROR (duplicate_node_names): Duplicate node name /pcie-phy@1a149000
arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc-512M.dtb: ERROR (duplicate_node_names): Duplicate node name /pcie-phy@1a14a000
ERROR: Input tree has errors, aborting (use -f to force output)
make[6]: *** [scripts/Makefile.lib:317: arch/arm/boot/dts/mt7623a-rfb-emmc.dtb] Error 2
make[6]: *** Waiting for unfinished jobs....
make[6]: *** [scripts/Makefile.lib:317: arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc-512M.dtb] Error 2
arch/arm/boot/dts/mt7623n-rfb-nand.dtb: ERROR (duplicate_node_names): Duplicate node name /pcie-phy@1a149000
arch/arm/boot/dts/mt7623n-rfb-nand.dtb: ERROR (duplicate_node_names): Duplicate node name /pcie-phy@1a14a000
ERROR: Input tree has errors, aborting (use -f to force output)
make[6]: *** [scripts/Makefile.lib:317: arch/arm/boot/dts/mt7623n-rfb-nand.dtb] Error 2
  DTC     arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb: ERROR (duplicate_node_names): Duplicate node name /pcie-phy@1a149000
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb: ERROR (duplicate_node_names): Duplicate node name /pcie-phy@1a14a000
ERROR: Input tree has errors, aborting (use -f to force output)
make[6]: *** [scripts/Makefile.lib:317: arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb] Error 2
make[5]: *** [arch/arm/Makefile:348: dtbs] Error 2
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/data/MKV/openwrt_19.07/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.146'
make[4]: *** [Makefile:20: /data/MKV/openwrt_19.07/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.146/.image] Error 2
make[4]: Leaving directory '/data/MKV/openwrt_19.07/target/linux/mediatek'
make[3]: *** [Makefile:13: install] Error 2
make[3]: Leaving directory '/data/MKV/openwrt_19.07/target/linux'
time: target/linux/install#5.87#2.95#1.57
make[2]: *** [target/Makefile:25: target/linux/install] Error 2
make[2]: Leaving directory '/data/MKV/openwrt_19.07'
make[1]: *** [target/Makefile:19: /data/MKV/openwrt_19.07/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.target_install] Error 2
make[1]: Leaving directory '/data/MKV/openwrt_19.07'
make: *** [/data/MKV/openwrt_19.07/include/toplevel.mk:218: world] Error 2

It’s hard to deduce anything useful from outputs like this. Better way to collaborate is to use PRs on github - that way it is at least possible to deduce what had been changed by what commits, e.t.c.

I have applied only the following commits from your OpenWRT repo into the OpenWRT trunk and then compiled using your recommendation in the first post of this thread and it generated the images as shown below but the strange fact is that it gzipped the image twice.

**Commits: **

mediatek: add SD image creation for mt7623 - 1c3d64af8c6e070bf6166d87c7c1ada53b77c151 mediatek: mark as ext4 and usb capable platform - 552dd39222b63160143a95b9e16f12afd80b3b13 mt7623n: new preloader package - 15eb23917aaed54c1d1121cc8f6e0ba582c534ff mediatek: new package uboot-mediatek - 32a5a0ce42dba84074ce5ca57a0c5777762b8e41

openwrt_trunk$ ls -ltrh bin/targets/mediatek/mt7623/
total 12M
-rw-r--r-- 1 cioby users  699 Oct  7 14:26 config.buildinfo
-rw-r--r-- 1 cioby users   20 Oct  7 14:26 version.buildinfo
-rw-r--r-- 1 cioby users  263 Oct  7 14:26 feeds.buildinfo
-rw-r--r-- 1 cioby users 5.9M Oct  7 14:29 openwrt-mediatek-mt7623-7623n-bananapi-bpi-r2-ext4-sdcard.img.gz.gz
-rw-r--r-- 1 cioby users 5.9M Oct  7 14:29 openwrt-mediatek-mt7623-7623n-bananapi-bpi-r2-ext4-sysupgrade.tar.gz

I have unzipped once the image and wrote into the SD-card using BalenaEtcher but after booting from it throws and kernel panic and goes into an endless boot loop ( as if does not find the root device to boot from). Below is the boot log

bootargs=console=earlyprintk console=ttyS0,115200 console=tty1 fbcon=map:0 root=/dev/mmcblk1p2 rootfstype=ext4 rootwait vmalloc=496M debug=7 initcall_debug=0 video=1920x1080 drm.debug=0x7
2568229 bytes read in 133 ms (18.4 MiB/s)
## Booting kernel from Legacy Image at 80200000 ...
   Image Name:   ARM OpenWrt Linux-4.14.146
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2568165 Bytes = 2.4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.146 (cioby@arch-desktop) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r11167+2-273a6cb562)) #0 SMP PREEMPT Mon Oct 7 11:01:51 2019
[    0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Bananapi BPI-R2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x3f0 with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu s29708 r8192 d23540 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260416
[    0.000000] Kernel command line: earlyprintk console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1028536K/1048576K available (6144K kernel code, 176K rwdata, 1384K rodata, 1024K init, 235K bss, 20040K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a2c1c0   ( 177 kB)
[    0.000000]        .bss : 0xc0a31194 - 0xc0a6bd98   ( 236 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000006] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000017] Switching to timer-based delay loop, resolution 76ns
[    0.000161] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[    0.000178] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns
[    0.000397] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000413] pid_max: default: 32768 minimum: 301
[    0.000549] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000565] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001167] CPU: Testing write buffer coherency: ok
[    0.040024] Setting up static identity map for 0x80100000 - 0x80100060
[    0.060023] Hierarchical SRCU implementation.
[    0.100098] smp: Bringing up secondary CPUs ...
[    0.310603] smp: Brought up 1 node, 4 CPUs
[    0.310620] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.310628] CPU: All CPU(s) started in SVC mode.
[    0.320586] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[    0.320853] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.320876] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.321090] pinctrl core: initialized pinctrl subsystem
[    0.321775] NET: Registered protocol family 16
[    0.322009] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.322696] No ATAGs?
[    0.383402] usbcore: registered new interface driver usbfs
[    0.383458] usbcore: registered new interface driver hub
[    0.383534] usbcore: registered new device driver usb
[    0.384748] clocksource: Switched to clocksource arch_sys_counter
[    0.385831] NET: Registered protocol family 2
[    0.386342] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.386418] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.386531] TCP: Hash tables configured (established 8192 bind 8192)
[    0.386647] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.386696] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.386897] NET: Registered protocol family 1
[    0.387990] No memory allocated for crashlog
[    0.388174] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.392288] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.392303] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.397538] bounce: pool size: 64 pages
[    0.397569] io scheduler noop registered
[    0.397578] io scheduler deadline registered (default)
[    0.402380] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.403266] console [ttyS0] disabled
[    0.423512] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 194, base_baud = 1625000) is a ST16650V2
[    0.890621] console [ttyS0] enabled
[    0.894759] mtk_rng 1020f000.rng: registered RNG driver
[    0.894909] random: fast init done
[    0.903509] random: crng init done
[    0.903952] loop: module loaded
[    0.910746] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[    0.926522] libphy: Fixed MDIO Bus: probed
[    0.954020] mtk_soc_eth 1b100000.ethernet: chip id = 7623
[    0.959632] libphy: mdio: probed
[    0.962836] drivers/net/ethernet/mediatek/mtk_eth_soc.c:mtk_mdio_init[412]0 ee829000
[    0.970593] mtk_soc_eth 1b100000.ethernet: generated random MAC address 8e:d5:53:0b:22:f5
[    0.979221] mtk_soc_eth 1b100000.ethernet: connected mac 0 to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    0.989933] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xf08e0000, irq 204
[    0.998368] mtk_soc_eth 1b100000.ethernet: generated random MAC address a6:0f:bb:8a:0a:d0
[    1.006927] mtk_soc_eth 1b100000.ethernet: connected mac 1 to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    1.017631] mtk_soc_eth 1b100000.ethernet eth1: mediatek frame engine at 0xf08e0000, irq 204
[    1.027054] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    1.032264] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[    1.042710] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    1.051773] xhci-mtk 1a1c0000.usb: irq 202, io mem 0x1a1c0000
[    1.058092] hub 1-0:1.0: USB hub found
[    1.061851] hub 1-0:1.0: 1 port detected
[    1.066118] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    1.071314] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[    1.078680] xhci-mtk 1a1c0000.usb: Host supports USB 3.0  SuperSpeed
[    1.085069] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.093577] hub 2-0:1.0: USB hub found
[    1.097355] hub 2-0:1.0: 1 port detected
[    1.102074] xhci-mtk 1a240000.usb: xHCI Host Controller
[    1.107317] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 3
[    1.117748] xhci-mtk 1a240000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    1.126879] xhci-mtk 1a240000.usb: irq 203, io mem 0x1a240000
[    1.133168] hub 3-0:1.0: USB hub found
[    1.136972] hub 3-0:1.0: 1 port detected
[    1.141209] xhci-mtk 1a240000.usb: xHCI Host Controller
[    1.146434] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 4
[    1.153781] xhci-mtk 1a240000.usb: Host supports USB 3.0  SuperSpeed
[    1.160172] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.168700] hub 4-0:1.0: USB hub found
[    1.172452] hub 4-0:1.0: 1 port detected
[    1.176852] i2c /dev entries driver
[    1.181862] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[    1.191450] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.199619] cpu cpu0: dummy supplies not allowed for exclusive requests
[    1.207193] sdhci: Secure Digital Host Controller Interface driver
[    1.213325] sdhci: Copyright(c) Pierre Ossman
[    1.275400] mtk-msdc 11240000.mmc: Got CD GPIO
[    1.329870] mmc0: new high speed MMC card at address 0001
[    1.335727] mmcblk0: mmc0:0001 8WPD3R 7.28 GiB 
[    1.340668] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.346557] mmcblk0boot0: mmc0:0001 8WPD3R partition 1 4.00 MiB
[    1.352819] mmcblk0boot1: mmc0:0001 8WPD3R partition 2 4.00 MiB
[    1.358999] mmcblk0rpmb: mmc0:0001 8WPD3R partition 3 512 KiB
[    1.361326] NET: Registered protocol family 10
[    1.370261] Segment Routing with IPv6
[    1.373950] NET: Registered protocol family 17
[    1.378700] 8021q: 802.1Q VLAN Support v1.8
[    1.382902] ThumbEE CPU extension supported.
[    1.387170] Registering SWP/SWPB emulation handler
[    1.401518] DSA: switch 0 0 parsed
[    1.404950] DSA: tree 0 parsed
[    1.411780] mmc1: host does not support reading read-only switch, assuming write-enable
[    1.416272] libphy: dsa slave smi: probed
[    1.421955] mmc1: new high speed SDXC card at address 0001
[    1.423934] Generic PHY dsa-0.0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:00, irq=POLL)
[    1.429545] mmcblk1: mmc1:0001 ED4QT 119 GiB 
[    1.439759] Generic PHY dsa-0.0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:01, irq=POLL)
[    1.444478]  mmcblk1: p1 p2
[    1.453894] Generic PHY dsa-0.0:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:02, irq=POLL)
[    1.466524] Generic PHY dsa-0.0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:03, irq=POLL)
[    1.477023] Generic PHY dsa-0.0:04: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:04, irq=POLL)
[    1.496406] hctosys: unable to open rtc device (rtc0)
[    1.501539] clk: Not disabling unused clocks
[    1.505984] vusb: disabling
[    1.508763] vmc: disabling
[    1.511451] vgp1: disabling
[    1.514240] vcamaf: disabling
[    1.517659] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.525157] Please append a correct "root=" boot option; here are the available partitions:
[    1.533451] b300         7634944 mmcblk0 
[    1.533456]  driver: mmcblk
[    1.540215] b318             512 mmcblk0rpmb 
[    1.540218]  (driver?)
[    1.546906] b310            4096 mmcblk0boot1 
[    1.546910]  (driver?)
[    1.553646] b308            4096 mmcblk0boot0 
[    1.553649]  (driver?)
[    1.560403] b320       125042688 mmcblk1 
[    1.560407]  driver: mmcblk
[    1.567175]   b321           32768 mmcblk1p1 5452574f-01
[    1.567178] 
[    1.573915]   b322          262144 mmcblk1p2 5452574f-02
[    1.573918] 
[    1.580669] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.588866] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.146 #0
[    1.594905] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    1.600449] [<c010e964>] (unwind_backtrace) from [<c010a9dc>] (show_stack+0x10/0x14)
[    1.608134] [<c010a9dc>] (show_stack) from [<c060907c>] (dump_stack+0x78/0x8c)
[    1.615302] [<c060907c>] (dump_stack) from [<c011e160>] (panic+0xe0/0x268)
[    1.622124] [<c011e160>] (panic) from [<c09012b8>] (mount_block_root+0x19c/0x294)
[    1.629546] [<c09012b8>] (mount_block_root) from [<c09015f8>] (prepare_namespace+0x150/0x188)
[    1.638001] [<c09015f8>] (prepare_namespace) from [<c0900ef4>] (kernel_init_freeable+0x23c/0x24c)
[    1.646803] [<c0900ef4>] (kernel_init_freeable) from [<c061c2a8>] (kernel_init+0x8/0x114)
[    1.654915] [<c061c2a8>] (kernel_init) from [<c01076c8>] (ret_from_fork+0x14/0x2c)
[    1.662431] CPU1: stopping
[    1.665115] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.14.146 #0
[    1.671153] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    1.676683] [<c010e964>] (unwind_backtrace) from [<c010a9dc>] (show_stack+0x10/0x14)
[    1.684364] [<c010a9dc>] (show_stack) from [<c060907c>] (dump_stack+0x78/0x8c)
[    1.691528] [<c060907c>] (dump_stack) from [<c010d964>] (handle_IPI+0xf4/0x1ac)
[    1.698777] [<c010d964>] (handle_IPI) from [<c0101470>] (gic_handle_irq+0x8c/0x90)
[    1.706285] [<c0101470>] (gic_handle_irq) from [<c010b60c>] (__irq_svc+0x6c/0xa8)
[    1.713703] Exception stack(0xef071f88 to 0xef071fd0)
[    1.718712] 1f80:                   00000001 c07d1be4 2ed8a000 c0113ce0 ffffe000 c0a03cbc
[    1.726822] 1fa0: c0a03c6c c0a31490 8000406a 410fc073 00000000 00000000 0000011c ef071fd8
[    1.734929] 1fc0: c0107fa8 c0107fac 60000013 ffffffff
[    1.739940] [<c010b60c>] (__irq_svc) from [<c0107fac>] (arch_cpu_idle+0x34/0x38)
[    1.747279] [<c0107fac>] (arch_cpu_idle) from [<c0158290>] (do_idle+0xa8/0x11c)
[    1.754530] [<c0158290>] (do_idle) from [<c0158588>] (cpu_startup_entry+0x18/0x1c)
[    1.762040] [<c0158588>] (cpu_startup_entry) from [<8010176c>] (0x8010176c)
[    1.768944] CPU2: stopping
[    1.771627] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.14.146 #0
[    1.777665] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    1.783196] [<c010e964>] (unwind_backtrace) from [<c010a9dc>] (show_stack+0x10/0x14)
[    1.790877] [<c010a9dc>] (show_stack) from [<c060907c>] (dump_stack+0x78/0x8c)
[    1.798041] [<c060907c>] (dump_stack) from [<c010d964>] (handle_IPI+0xf4/0x1ac)
[    1.805289] [<c010d964>] (handle_IPI) from [<c0101470>] (gic_handle_irq+0x8c/0x90)
[    1.812797] [<c0101470>] (gic_handle_irq) from [<c010b60c>] (__irq_svc+0x6c/0xa8)
[    1.820214] Exception stack(0xef073f88 to 0xef073fd0)
[    1.825222] 3f80:                   00000002 c07d1be4 2ed99000 c0113ce0 ffffe000 c0a03cbc
[    1.833332] 3fa0: c0a03c6c c0a31490 8000406a 410fc073 00000000 00000000 0000011e ef073fd8
[    1.841440] 3fc0: c0107fa8 c0107fac 60000013 ffffffff
[    1.846450] [<c010b60c>] (__irq_svc) from [<c0107fac>] (arch_cpu_idle+0x34/0x38)
[    1.853785] [<c0107fac>] (arch_cpu_idle) from [<c0158290>] (do_idle+0xa8/0x11c)
[    1.861036] [<c0158290>] (do_idle) from [<c0158588>] (cpu_startup_entry+0x18/0x1c)
[    1.868544] [<c0158588>] (cpu_startup_entry) from [<8010176c>] (0x8010176c)
[    1.875445] CPU3: stopping
[    1.878128] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 4.14.146 #0
[    1.884166] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    1.889698] [<c010e964>] (unwind_backtrace) from [<c010a9dc>] (show_stack+0x10/0x14)
[    1.897379] [<c010a9dc>] (show_stack) from [<c060907c>] (dump_stack+0x78/0x8c)
[    1.904542] [<c060907c>] (dump_stack) from [<c010d964>] (handle_IPI+0xf4/0x1ac)
[    1.911791] [<c010d964>] (handle_IPI) from [<c0101470>] (gic_handle_irq+0x8c/0x90)
[    1.919298] [<c0101470>] (gic_handle_irq) from [<c010b60c>] (__irq_svc+0x6c/0xa8)
[    1.926715] Exception stack(0xef075f88 to 0xef075fd0)
[    1.931724] 5f80:                   00000003 c07d1be4 2eda8000 c0113ce0 ffffe000 c0a03cbc
[    1.939834] 5fa0: c0a03c6c c0a31490 8000406a 410fc073 00000000 00000000 00000003 ef075fd8
[    1.947942] 5fc0: c0107fa8 c0107fac 60000013 ffffffff
[    1.952951] [<c010b60c>] (__irq_svc) from [<c0107fac>] (arch_cpu_idle+0x34/0x38)
[    1.960288] [<c0107fac>] (arch_cpu_idle) from [<c0158290>] (do_idle+0xa8/0x11c)
[    1.967538] [<c0158290>] (do_idle) from [<c0158588>] (cpu_startup_entry+0x18/0x1c)
[    1.975046] [<c0158588>] (cpu_startup_entry) from [<8010176c>] (0x8010176c)
[    1.981952] Rebooting in 1 seconds..

This is due to skipping this commit:

To be able to boot from ext4 you need it to be enabled in kernel config. Commit above enables PCIe and SATA but also it turns on ext4 and vfat fs support to be built into the kernel. Also is makes sure kernel cmdline is taken from uboot (ARM_ATAG_DTB config stuff). Technically speaking I should had split this commit into three separate back when been working on this but laziness circumstances decided otherwise.