Build help for asia-rf mt7623

I have purchased a geekforce board from asiarf and have been sent this file
mt7623.mk and a dts file mt7623-asiaRF-MT7623-N01.dts
My question is how do i incorporate/where do I put them in my build system such that I can build openwrt for this board?

Edit: I have found the location of mt7623.mk file at $Build/target/linux/mediatek/image/mt7623.mk
So I think I should replace the file in this location.

Where do I put the mt7623-asiaRF-MT7623-N01.dts file?
Edit: Dumb questions aside I have built an image for this board, it involved a minor modification to the dts file to prevent duplicate entries provided by the mt7623.dtsi file.

The firmware boot loops, this is the serial console output;

 *** U-Boot Boot Menu ***

     1. System Load Linux to SDRAM via TFTP.
     2. System Load Linux Kernel then write to Flash via TFTP.
     3. Boot system code via Flash.
     4. System Load Boot Loader then write to Flash via TFTP.
     5. System Load Linux Kernel then write to Flash via Serial.
     6. System Load Boot Loader then write to Flash via Serial.
     U-Boot console


  Press UP/DOWN to move, ENTER to select

mmc0 is current device
mmc0 operation
dev_num = 0

MMC read: dev # 0, block # 2560, count 1 ... 1 blocks read: OK
mmc0 operation
dev_num = 0

MMC read: dev # 0, block # 2560, count 6086 ... 6086 blocks read: OK
bootm flag=0, states=70f
## Booting kernel from Legacy Image at 84000000 ...
   Image Name:   ARM OpenWrt Linux-5.4.109
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3115509 Bytes = 3 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 5.4.109 (svradmin@mini-server) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16464-e887049fbb)) #0 SMP PREEMPT Fri Apr 9 15:04:57 2021
[    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: AsiaRF MT7623-N01
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu s30284 r8192 d22964 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260416
[    0.000000] Kernel command line: earlyprintk console=ttyS0,115200 block2mtd.block2mtd=/dev/mmcblk0,65536,eMMC,5 mtdparts=eMMC:256k(mbr)ro,512k(uboot),256k(Config),256k(Factory),16M(firmware),2048M(usrdata),-(bmtpool) rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1027480K/1048576K available (7168K kernel code, 219K rwdata, 1664K rodata, 1024K init, 234K bss, 21096K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x2f8/0x4a4 with crng_init=0
[    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.000005] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000017] Switching to timer-based delay loop, resolution 76ns
[    0.000182] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[    0.000198] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns
[    0.000494] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000510] pid_max: default: 32768 minimum: 301
[    0.000680] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000697] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001501] CPU: Testing write buffer coherency: ok
[    0.002435] Setting up static identity map for 0x80100000 - 0x80100060
[    0.002564] rcu: Hierarchical SRCU implementation.
[    0.002968] smp: Bringing up secondary CPUs ...
[    0.004821] smp: Brought up 1 node, 4 CPUs
[    0.004837] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.004845] CPU: All CPU(s) started in SVC mode.
[    0.012281] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[    0.012655] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.012679] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.012865] pinctrl core: initialized pinctrl subsystem
[    0.013697] NET: Registered protocol family 16
[    0.013986] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.014918] No ATAGs?
[    0.095536] usbcore: registered new interface driver usbfs
[    0.095594] usbcore: registered new interface driver hub
[    0.095651] usbcore: registered new device driver usb
[    0.096264] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.097236] clocksource: Switched to clocksource arch_sys_counter
[    0.098052] thermal_sys: Registered thermal governor 'step_wise'
[    0.098475] NET: Registered protocol family 2
[    0.099205] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.099241] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.099313] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.099426] TCP: Hash tables configured (established 8192 bind 8192)
[    0.099542] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.099593] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.099841] NET: Registered protocol family 1
[    0.099878] PCI: CLS 0 bytes, default 64
[    0.101241] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.106663] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.106678] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.142877] bounce: pool size: 64 pages
[    0.159285] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.160307] printk: console [ttyS0] disabled
[    0.180539] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 198, base_baud = 1625000) is a ST16650V2
[    0.632990] printk: console [ttyS0] enabled
[    0.637888] mtk_rng 1020f000.rng: registered RNG driver
[    0.638033] random: fast init done
[    0.646713] random: crng init done
[    0.647680] loop: module loaded
[    0.654183] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[    0.669758] libphy: Fixed MDIO Bus: probed
[    0.697206] mtk_soc_eth 1b100000.ethernet: incorrect phy-mode
[    0.703131] mtk_soc_eth: probe of 1b100000.ethernet failed with error -22
[    0.711112] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    0.716372] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[    0.726798] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    0.735937] xhci-mtk 1a1c0000.usb: irq 202, io mem 0x1a1c0000
[    0.742503] hub 1-0:1.0: USB hub found
[    0.746301] hub 1-0:1.0: 1 port detected
[    0.750636] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    0.755871] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[    0.763298] xhci-mtk 1a1c0000.usb: Host supports USB 3.0 SuperSpeed
[    0.769650] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.778265] hub 2-0:1.0: USB hub found
[    0.782046] hub 2-0:1.0: 1 port detected
[    0.786613] i2c /dev entries driver
[    0.790696] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[    0.800416] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    0.808653] cpu cpu0: dummy supplies not allowed for exclusive requests
[    0.816823] sdhci: Secure Digital Host Controller Interface driver
[    0.823041] sdhci: Copyright(c) Pierre Ossman
[    0.829032] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 111 (MSDC0_DAT7) as part of deactivating group MSDC0_DAT7 - it is already used for some other setting
[    0.844361] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 112 (MSDC0_DAT6) as part of deactivating group MSDC0_DAT6 - it is already used for some other setting
[    0.859828] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 113 (MSDC0_DAT5) as part of deactivating group MSDC0_DAT5 - it is already used for some other setting
[    0.875137] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 114 (MSDC0_DAT4) as part of deactivating group MSDC0_DAT4 - it is already used for some other setting
[    0.890549] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 118 (MSDC0_DAT3) as part of deactivating group MSDC0_DAT3 - it is already used for some other setting
[    0.905851] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 119 (MSDC0_DAT2) as part of deactivating group MSDC0_DAT2 - it is already used for some other setting
[    0.921165] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 120 (MSDC0_DAT1) as part of deactivating group MSDC0_DAT1 - it is already used for some other setting
[    0.936462] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 121 (MSDC0_DAT0) as part of deactivating group MSDC0_DAT0 - it is already used for some other setting
[    0.951759] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 116 (MSDC0_CMD) as part of deactivating group MSDC0_CMD - it is already used for some other setting
[    0.966880] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 117 (MSDC0_CLK) as part of deactivating group MSDC0_CLK - it is already used for some other setting
[    0.982002] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 115 (MSDC0_RSTB) as part of deactivating group MSDC0_RSTB - it is already used for some other setting
[    1.022858] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.031358] NET: Registered protocol family 10
[    1.036651] Segment Routing with IPv6
[    1.040464] NET: Registered protocol family 17
[    1.045226] 8021q: 802.1Q VLAN Support v1.8
[    1.049668] ThumbEE CPU extension supported.
[    1.054079] Registering SWP/SWPB emulation handler
[    1.084876] mtk-pcie 1a140000.pcie: host bridge /pcie@1a140000 ranges:
[    1.091541] mtk-pcie 1a140000.pcie:    IO 0x1a160000..0x1a16ffff -> 0x1a160000
[    1.098837] mtk-pcie 1a140000.pcie:   MEM 0x60000000..0x6fffffff -> 0x60000000
[    1.145881] mmc0: new high speed MMC card at address 0001
[    1.152366] mmcblk0: mmc0:0001 008G70 7.28 GiB 
[    1.157543] mmcblk0boot0: mmc0:0001 008G70 partition 1 4.00 MiB
[    1.164052] mmcblk0boot1: mmc0:0001 008G70 partition 2 4.00 MiB
[    1.170318] mmcblk0rpmb: mmc0:0001 008G70 partition 3 4.00 MiB, chardev (250:0)
[    1.179742]  mmcblk0: p2 p3
[    1.209126] mtk-pcie 1a140000.pcie: Port0 link down
[    1.317076] mtk-pcie 1a140000.pcie: Port1 link down
[    1.425010] mtk-pcie 1a140000.pcie: Port2 link down
[    1.430065] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00
[    1.436244] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.441746] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff])
[    1.451228] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.459807] PCI: bus0: Fast back to back transfers enabled
[    1.465807] block2mtd: too many arguments
[    1.470107] hctosys: unable to open rtc device (rtc0)
[    1.476216] /dev/root: Can't open blockdev
[    1.480578] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.488137] Please append a correct "root=" boot option; here are the available partitions:
[    1.496491] b300         7634944 mmcblk0 
[    1.496494]  driver: mmcblk
[    1.503327]   b302         1048576 mmcblk0p2 00000000-02
[    1.503329] 
[    1.510133]   b303         2097152 mmcblk0p3 00000000-03
[    1.510135] 
[    1.516921] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.525179] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 5.4.109 #0
[    1.531173] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    1.536754] [<c010ea9c>] (unwind_backtrace) from [<c010b124>] (show_stack+0x10/0x14)
[    1.544492] [<c010b124>] (show_stack) from [<c07280a8>] (dump_stack+0x84/0x98)
[    1.551710] [<c07280a8>] (dump_stack) from [<c011c288>] (panic+0x118/0x344)
[    1.558668] [<c011c288>] (panic) from [<c0a0146c>] (mount_block_root+0x1c8/0x274)
[    1.566143] [<c0a0146c>] (mount_block_root) from [<c0a01758>] (prepare_namespace+0x158/0x190)
[    1.574661] [<c0a01758>] (prepare_namespace) from [<c073de30>] (kernel_init+0x8/0x114)
[    1.582571] [<c073de30>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    1.590129] Exception stack(0xef071fb0 to 0xef071ff8)
[    1.595173] 1fa0:                                     00000000 00000000 00000000 00000000
[    1.603341] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.611508] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.618122] CPU1: stopping
[    1.620824] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.4.109 #0
[    1.626819] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    1.632387] [<c010ea9c>] (unwind_backtrace) from [<c010b124>] (show_stack+0x10/0x14)
[    1.640122] [<c010b124>] (show_stack) from [<c07280a8>] (dump_stack+0x84/0x98)
[    1.647336] [<c07280a8>] (dump_stack) from [<c010da7c>] (handle_IPI+0x190/0x1bc)
[    1.654726] [<c010da7c>] (handle_IPI) from [<c045958c>] (gic_handle_irq+0x8c/0x90)
[    1.662290] [<c045958c>] (gic_handle_irq) from [<c0101a8c>] (__irq_svc+0x6c/0xa8)
[    1.669760] Exception stack(0xef097f78 to 0xef097fc0)
[    1.674802] 7f60:                                                       00000000 000001cc
[    1.682972] 7f80: ef6bb2f4 c0114100 ffffe000 c0b04e68 c0b04ea8 00000002 c0b0d008 c08af650
[    1.691140] 7fa0: 00000000 00000000 00000000 ef097fc8 c0108578 c010857c 60000013 ffffffff
[    1.699311] [<c0101a8c>] (__irq_svc) from [<c010857c>] (arch_cpu_idle+0x38/0x3c)
[    1.706700] [<c010857c>] (arch_cpu_idle) from [<c0146d90>] (do_idle+0x10c/0x150)
[    1.714088] [<c0146d90>] (do_idle) from [<c0147094>] (cpu_startup_entry+0x18/0x1c)
[    1.721650] [<c0147094>] (cpu_startup_entry) from [<8010252c>] (0x8010252c)
[    1.728603] CPU2: stopping
[    1.731305] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 5.4.109 #0
[    1.737299] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    1.742867] [<c010ea9c>] (unwind_backtrace) from [<c010b124>] (show_stack+0x10/0x14)
[    1.750603] [<c010b124>] (show_stack) from [<c07280a8>] (dump_stack+0x84/0x98)
[    1.757816] [<c07280a8>] (dump_stack) from [<c010da7c>] (handle_IPI+0x190/0x1bc)
[    1.765204] [<c010da7c>] (handle_IPI) from [<c045958c>] (gic_handle_irq+0x8c/0x90)
[    1.772765] [<c045958c>] (gic_handle_irq) from [<c0101a8c>] (__irq_svc+0x6c/0xa8)
[    1.780236] Exception stack(0xef099f78 to 0xef099fc0)
[    1.785279] 9f60:                                                       00000000 00000274
[    1.793448] 9f80: ef6ca2f4 c0114100 ffffe000 c0b04e68 c0b04ea8 00000004 c0b0d008 c08af650
[    1.801616] 9fa0: 00000000 00000000 00000000 ef099fc8 c0108578 c010857c 60000013 ffffffff
[    1.809785] [<c0101a8c>] (__irq_svc) from [<c010857c>] (arch_cpu_idle+0x38/0x3c)
[    1.817173] [<c010857c>] (arch_cpu_idle) from [<c0146d90>] (do_idle+0x10c/0x150)
[    1.824560] [<c0146d90>] (do_idle) from [<c0147094>] (cpu_startup_entry+0x18/0x1c)
[    1.832120] [<c0147094>] (cpu_startup_entry) from [<8010252c>] (0x8010252c)
[    1.839071] CPU0: stopping
[    1.841773] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.109 #0
[    1.847767] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    1.853336] [<c010ea9c>] (unwind_backtrace) from [<c010b124>] (show_stack+0x10/0x14)
[    1.861071] [<c010b124>] (show_stack) from [<c07280a8>] (dump_stack+0x84/0x98)
[    1.868285] [<c07280a8>] (dump_stack) from [<c010da7c>] (handle_IPI+0x190/0x1bc)
[    1.875672] [<c010da7c>] (handle_IPI) from [<c045958c>] (gic_handle_irq+0x8c/0x90)
[    1.883233] [<c045958c>] (gic_handle_irq) from [<c0101a8c>] (__irq_svc+0x6c/0xa8)
[    1.890703] Exception stack(0xc0b01f40 to 0xc0b01f88)
[    1.895749] 1f40: 00000000 000114b8 ef6ac2f4 c0114100 ffffe000 c0b04e68 c0b04ea8 00000001
[    1.903918] 1f60: c0b0d008 c08af650 10c5387d 00000000 00000003 c0b01f90 c0108578 c010857c
[    1.912082] 1f80: 60000013 ffffffff
[    1.915567] [<c0101a8c>] (__irq_svc) from [<c010857c>] (arch_cpu_idle+0x38/0x3c)
[    1.922956] [<c010857c>] (arch_cpu_idle) from [<c0146d90>] (do_idle+0x10c/0x150)
[    1.930343] [<c0146d90>] (do_idle) from [<c0147094>] (cpu_startup_entry+0x18/0x1c)
[    1.937904] [<c0147094>] (cpu_startup_entry) from [<c0a00e00>] (start_kernel+0x494/0x4a4)
[    1.946072] [<c0a00e00>] (start_kernel) from [<00000000>] (0x0)
[    1.951988] Rebooting in 1 seconds..

[USBD] USB PRB0 LineState: 0

[USBD] USB cable/ No Cable inserted!

[PLFM] Keep stay in USB Mode
Platform initialization is ok
wait for frequency meter finish, CLK26CALI = 0x81
mt_pll_post_init: mt_get_cpu_freq = 1040000Khz
wait for frequency meter finish, CLK26CALI = 0x90
mt_pll_post_init: mt_get_bus_freq = 273000Khz
wait for frequency meter finish, CLK26CALI = 0x81
mt_pll_post_init: mt_get_mem_freq = 133250Khz
[PWRAP] pwrap_init_preloader
[PWRAP] pwrap_init
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=0,rdata=2D52
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=1,rdata=800
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=2 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=3 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=4 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=5 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=6 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=7 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=8 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=9,rdata=1001
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=10,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=11,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=12,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=13,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=14,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=15,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=16,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=17,rdata=2003
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=18,rdata=6A97
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=19,rdata=6A97
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=20,rdata=6A97
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=21,rdata=6A97
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=22,rdata=6A97
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=23,rdata=6A97
[PWRAP] _pwrap_init_reg_clock
[PMIC_WRAP]wrap_init pass,the return value=0.
[pmic6323_init] Preloader Start..................
[pmic6323_init] PMIC CHIP Code = 0x2023
INT_MISC_CON: 1  TOP_RST_MISC: 1
pl pmic powerkey Press
[pmic6323_init] powerKey = 1
[pmic6323_init] is USB in = 0xB004
[pmic6323_init] Reg[0x11A]=0x9B
[pmic6323_init] Done...................
mt7623 disable long press reset ->>>>>
mt7623 disable long press reset <<<<<-
mt7623 VPA supplied by 1.0V to MT7530 ->
mt7623 VPA supplied by 1.0V to MT7530 <-
mt7623 enables RG_VGP1_EN for LCM ->
mt7623 enables RG_VGP1_EN for LCM <-
MT7623 E2 setting =>
MT7623 E2 setting <=
[PLFM] Init I2C: OK(0)
[PLFM] Init PWRAP: OK(0)
[PLFM] Init PMIC: OK(0)
[PLFM] chip[CA00]

[BLDR] Build Time: 20151226-103933
==== Dump RGU Reg ========
RGU MODE:     10
RGU LENGTH:   FFE0
RGU STA:      40000000
RGU INTERVAL: FFF
RGU SWSYSRST: 0
==== Dump RGU Reg End ====
RGU: g_rgu_satus:2
 mtk_wdt_mode_config  mode value=10, tmp:22000010
PL RGU RST: ??
SW reset with bypass power key flag
Find bypass powerkey flag
RGU mtk_wdt_init:MTK_WDT_DEBUG_CTL(590200F3)
kpd read addr: 0x0040: data:0x4004
Enter mtk_kpd_gpio_set! 
kpd debug column : 0, 0, 0, 0, 0, 0, 0, 0
kpd debug row : 0, 0, 0, 0, 0, 0, 0, 0
after set KP enable: KP_SEL = 0x0 !
MTK_PMIC_RST_KEY is used for this project!
[RTC] get_frequency_meter: input=0x0, ouput=5
[RTC] get_frequency_meter: input=0x0, ouput=3967
[RTC] get_frequency_meter: input=0x0, ouput=5
[RTC] get_frequency_meter: input=0x0, ouput=0
[RTC] get_frequency_meter: input=0x0, ouput=0
[RTC] bbpu = 0xD, con = 0x426
[RTC] powerkey1 = 0xA357, powerkey2 = 0x67D2
Writeif_unlock
[RTC] RTC_SPAR0=0x40 
rtc_2sec_reboot_check cali=1536
[RTC] irqsta = 0x0, pdn1 = 0x0, pdn2 = 0x201, spar0 = 0x40, spar1 = 0x800
[RTC] new_spare0 = 0x0, new_spare1 = 0x1, new_spare2 = 0x1, new_spare3 = 0x1
[RTC] bbpu = 0xD, con = 0x426, cali = 0x600
SW reset with bypass power key flag
SW reset with bypass power key flag
[PLFM] WDT reboot bypass power key!
[RTC] rtc_bbpu_power_on done
[EMI] mcp_dram_num:0,discrete_dram_num:1,enable_combo_dis:0
[EMI] PCDDR3
[Check]mt_get_mdl_number 0x0
[EMI] eMMC/NAND ID = 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
[EMI] MDL number = 0
[EMI] emi_set eMMC/NAND ID = 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
[EMI][Vcore]0x21E=0x48,0x220=0x48
[EMI][Vmem]0x554=0x0
wait for frequency meter finish, CLK26CALI = 0x81
[EMI] PCDDR3 DRAM Clock = 1600012 KHz, MEMPLL MODE = 2 
[EMI] PCDDR3 RXTDN Calibration:
Start REXTDN SW calibration...
drvp=0xB,drvn=0x9
[EMI] pinmux = 4
===============================================================================

        dramc_write_leveling_swcal
===============================================================================
delay  byte0  byte1  byte2  byte3
-----------------------------
0    0    0    0    0    
1    0    0    0    0    
2    0    0    0    0    
3    0    0    0    0    
4    0    0    0    0    
5    0    0    0    0    
6    0    0    0    0    
7    0    0    0    0    
8    0    0    0    0    
9    0    0    0    0    
10    0    0    0    0    
11    0    0    0    0    
12    0    0    0    0    
13    0    0    0    0    
14    0    0    0    0    
15    0    0    0    0    
pass bytecount = 0
byte_i    status    best delay
0    1    0
1    1    0
2    1    0
3    1    0
========================================
[write leveling]DQS: 0x0, DQM: 0x0
[write leveling after remap]DQ byte0 reg: 0x200 val: 0x0
[write leveling after remap]DQ byte1 reg: 0x204 val: 0x0
[write leveling after remap]DQ byte2 reg: 0x208 val: 0x0
[write leveling after remap]DQ byte3 reg: 0x20C val: 0x0
=============================================
X-axis: DQS Gating Window Delay (Fine Scale)
Y-axis: DQS Gating Window Delay (Coarse Scale)
=============================================
          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    0
000E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0010:|    0    0    0    0    0    0    0    0    0    0    0    0    0    1    1    1
0011:|    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1    1
0012:|    0    0    0    1    1    1    1    1    1    1    1    1    1    0    0    0
0013:|    1    1    1    1    1    1    1    1    0    0    0    0    0    0    0    0
0014:|    1    1    1    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 tune value selection : 18, 18
18
64
rank 0 coarse = 18
rank 0 fine = 64
00:|    0    0    0    0    0    0    0    0    1    1    1    0
opt_dle value:13
==================================================================
		RX	DQS perbit delay software calibration 
==================================================================
1.0-31 bit dq delay value
==================================================================
bit|     0  1  2  3  4  5  6  7  8  9
--------------------------------------
0 |    0 0 0 0 0 0 0 0 0 0 
10 |    0 0 0 0 0 0 0 0 0 0 
20 |    0 0 0 0 0 0 0 0 0 0 
30 |    0 0 
--------------------------------------
==================================================================
2.dqs window
x=pass dqs delay value (min~max)center 
y=0-7bit DQ of every group
input delay:DQS0 =42 DQS1 = 31 DQS2 =43 DQS3 = 33
==================================================================
bit	DQS0	 bit      DQS1     bit     DQS2     bit     DQS3
0  (15~57)36  8  (7~49)28  16  (20~57)38  24  (3~49)26
1  (17~61)39  9  (3~49)26  17  (21~62)41  25  (3~52)27
2  (18~66)42  10  (5~50)27  18  (18~58)38  26  (7~54)30
3  (14~58)36  11  (5~44)24  19  (13~57)35  27  (7~53)30
4  (17~60)38  12  (10~50)30  20  (19~63)41  28  (11~56)33
5  (15~54)34  13  (9~46)27  21  (17~57)37  29  (8~47)27
6  (15~58)36  14  (5~51)28  22  (23~63)43  30  (7~53)30
7  (17~55)36  15  (10~52)31  23  (20~62)41  31  (9~53)31
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    6 3 0 6 4 8 6 6 3 5 
10 |    4 7 1 4 3 0 5 2 5 8 
20 |    2 6 0 2 7 6 3 3 0 6 
30 |    3 2 
==================================================================
*DQIDLY1 = 0x6000306
*DQIDLY2 = 0x6060804
*DQIDLY3 = 0x7040503
*DQIDLY4 = 0x30401
*DQIDLY5 = 0x8050205
*DQIDLY6 = 0x2000602
*DQIDLY7 = 0x3030607
*DQIDLY8 = 0x2030600
*DRAMC_R0DELDLY = 0x212B1F2A

[MEM]CONA:3122,conf1:F07486A3
DM4BitMux = 1 
DQSO 0 in TX per-bit = 0 <= DQSO 0 in WL = 0  
DQSO 1 in TX per-bit = 0 <= DQSO 1 in WL = 0  
[Warning] DQSO 2 in TX per-bit = 3 > DQSO 2 in WL = 0  
DQSO 3 in TX per-bit = 0 <= DQSO 3 in WL = 0  
Tx DQM dly  = 0x1274
Tx DQM dly bit4 = 0x0
DRAMC_DQODLY1=66569696h
DRAMC_DQODLY2=57774246h
DRAMC_DQODLY3=20331112h
DRAMC_DQODLY4=21213213h
Tx DQ dly bit4 = 0x0
Tx DQS dly = 0x300
Tx DQS dly bit4 = 0x0
TX Byte0: DQ - 18, DQS - 8. win_sum= 25
TX Byte1: DQ - 23, DQS - 8. win_sum= 30
TX Byte2: DQ - 12, DQS - 13. win_sum= 24
TX Byte3: DQ - 17, DQS - 14. win_sum= 30
DRAMC calibration takes 647357574 CPU cycles

[EMI] DRAMC calibration passed

[MEM] complex R/W mem test pass
0:dram_rank_size:40000000
[Dram_Buffer] dram size:1073741824 
[Dram_Buffer] structure size: 1725560 
[Dram_Buffer] MAX_TEE_DRAM_SIZE: 0 
[PLFM] Init Boot Device: OK(0)

[PART] blksz: 512B
[PART] [0x0000000000000000-0x000000000003FFFF] "PRELOADER" (512 blocks) 
[PART] [0x0000000000000000-0x000000000003FFFF] "MBR" (512 blocks) 
[PART] [0x0000000000040000-0x00000000000BFFFF] "UBOOT" (1024 blocks) 
[PART] [0x00000000000C0000-0x00000000000FFFFF] "CONFIG" (512 blocks) 
[PART] [0x0000000000100000-0x000000000013FFFF] "FACTORY" (512 blocks) 
[PART] [0x0000000000140000-0x000000000213FFFF] "BOOTIMG" (65536 blocks) 
[PART] [0x0000000002140000-0x000000000413FFFF] "RECOVERY" (65536 blocks) 
[PART] [0x0000000004140000-0x000000004413FFFF] "ROOTFS" (2097152 blocks) 
[PART] [0x0000000044140000-0x000001FFC413FFFF] "USER" (-4194304 blocks) 
[platform_vusb_on] PASS
[TOOL] PMIC not dectect usb cable!
[TOOL] <UART> listen  ended, receive size:0!
[TOOL] <UART> wait sync time 150ms->5ms
[TOOL] <UART> receieved data: ()

Device APC domain init setup:

 bootloader load uboot ,the address of uboot is 81E00000 
[PART]partition name UBOOT 
[PART]partition start block 0x200 
[PART]partition size 0x80000 
[PART]partition blks 0x400 
[PART]partition flags 0x0 
[PART]partition name 0x8 
[bean] part->startblk(0x200) bdev->blksz(0x200) part->part_id(8) hdr(0xBFB50000)
[BlkDev.c 101 ]partition block size 0x200 ,blks:0xE90000
[BlkDev.c 101 ]partition block erase size 0x200 
[PART] Image with part header
[PART] name : LK
[PART] addr : FFFFFFFFh
[PART] size : 192552
[PART] magic: 58881688h
[BlkDev.c 101 ]partition block size 0x200 ,blks:0xE90000
[BlkDev.c 101 ]partition block erase size 0x200 

[PART] load "UBOOT" from 0x0000000000040200 (dev) to 0x81E00000 (mem) [SUCCESS]
[PART] load speed: 8546KB/s, 192552 bytes, 22ms
[BT_SD_PG] device info 0x8590 0x8A00 0xCB01 0x102
0:dram_rank_size:40000000
[PLFM] md_type[0] = 0 
[PLFM] md_type[1] = 0 

[PLFM] boot reason: 4
[PLFM] boot mode: 0
[PLFM] META COM0: 0
[PLFM] <0xBFB7CC10>: 0x0
[PLFM] boot time: 1490ms
[PLFM] DDR reserve mode: enable = 0, success = 0

[BLDR] jump to 0x81E00000
[BLDR] <0x81E00000>=0xEA00000F
[BLDR] <0x81E00004>=0xE59FF014


U-Boot 2014.04-rc1 (Dec 26 2015 - 11:52:13)

DRAM:  1 GiB
WARNING: Caches not enabled
dev_num = 0
***size=4096, offset=1536, blk_start=3, blk_cnt=8
In:    serial
Out:   serial
Err:   serial
dev_num = 0
***size=4096, offset=1536, blk_start=3, blk_cnt=8
bootargs = console=tty0 console=ttyMT2,115200n1 root=/dev/ram lcm=1-hx8392a_vdo_cmd fps=4433 vram=13631488 androidboot.selinux=disabled bootprof.pl_t=1149 bootprof.lk_t=9849 printk.disable_uart=0 boot_reason=0 androidboot.serialno=0123456789ABCDEF androidboot.bootreason=power_key
Net:   Eth0

Can anybody advise as to what I have done wrong?

You're either missing modules for block devices and/or fs support, or your kernel boot params aren't clear enough for it to find the root fs.

Can't say anything about the DTS.

Thanks for the reply, I will check my config

Looks like you have a bogus partition table on the eMMC, which makes sense because it wasn't being used. Older images used to use mtdblock, and then command line MTD partitioning. We can still see that in your kernel command line, in fact:

For the U7623 this is the key difference between the 'legacy' upgrade image, and the full eMMC upgrade. In the latter case it can install a sane partition table and just use it. In the legacy case it only overwrites the 'firmware' region of the vendor's MTD partitioning. So we add 'blkdevparts=' on the kernel command line to ignore the nonsense in the actual MBR, and 'root=/dev/mmcblk0p2' to set the root device accordingly.

See target/linux/mediatek/dts/mt7623a-unielec-u7623-02-emmc-512m.dts:

bootargs = "root=/dev/mmcblk0p2 rootfstype=squashfs,f2fs console=ttyS0,115200 blkdevparts=mmcblk0:3M@6M(recovery),256M@9M(root)";
1 Like

Thank you so much for taking a look! Its been driving me nuts. One more question if I may, once ive figured out my build error, the mismatch/duplicate entries between dts and the dtsi I should be able to add the
blkdevparts=mmcblk0 to the kernel args declared in the dts or dtsi most likely, rebuild and it should, fingers crossed, boot?
I will try to find the time to do some more testing on this and post the findings, most likely not until the weekend, got some less interesting by higher paid work to do this week, once again Thank You for your time/info/knowledge!

You can drop all the block2mtd bits from the command line and use root= and blkdevparts= like the legacy U7623 image and assuming you get the details right, yes that should work. And then you can flash a full-system image which makes most of the complexity go away.

I took a quick look and couldn't see where to buy one of these. Do you have a supplier? @dangowrt want one?

I purchased it from AsiaRF as a project a while back, this is the link but its no longer in stock
AsiaRF-GeekForce-MT7623 I've not found them anywhere else since then either so I guess they are end of line and have been replaced by the MT7629 based boards.
I will put some time into building some firmware with the mods you have suggested and post back the results.

I've spent some time building cleaning and rebuilding and still not having any luck, this is the bootlog from an attempted legacy build and the command line arguments suggested. Its a different error but at a guess its a similar problem, and ideas?

Enter mt7623_ethifsys_init()
[mt7623_pinmux_set]start
[mt7623_pinmux_set]end

 Waitting for RX_DMA_BUSY status Start... done

Enter setup_internal_gsw()
change HW-TRAP to 0x10000
 Release MT7623 RXC Reset
Using Eth0 device
TFTP from server 10.73.10.1; our IP address is 10.73.10.20
Filename 'squashfs-sysupgrade.bin'.
Load address: 0x84000000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #######################
	 2.7 MiB/s
done
Bytes transferred = 8913735 (880347 hex)
bootm flag=0, states=70f
## Booting kernel from Legacy Image at 84000000 ...
   Image Name:   ARM OpenWrt Linux-5.4.154
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3093029 Bytes = 2.9 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 5.4.154 (svradmin@mini-server) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16325-88151b8303)) #0 SMP PREEMPT Sun Oct 24 09:01:35 2021
[    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: AsiaRF MT7623-N01
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu s30284 r8192 d22964 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260416
[    0.000000] Kernel command line: root=/dev/mmcblk0p2 rootfstype=squashfs,f2fs console=ttyS0,115200 blkdevparts=mmcblk0:3M@6M(recovery),256M@9M(root)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1027504K/1048576K available (7168K kernel code, 219K rwdata, 1660K rodata, 1024K init, 233K bss, 21072K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x2f8/0x4a4 with crng_init=0
[    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.000005] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000017] Switching to timer-based delay loop, resolution 76ns
[    0.000178] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[    0.000193] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns
[    0.000471] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000484] pid_max: default: 32768 minimum: 301
[    0.000655] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000671] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001467] CPU: Testing write buffer coherency: ok
[    0.002411] Setting up static identity map for 0x80100000 - 0x80100060
[    0.002541] rcu: Hierarchical SRCU implementation.
[    0.002944] smp: Bringing up secondary CPUs ...
[    0.004831] smp: Brought up 1 node, 4 CPUs
[    0.004848] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.004855] CPU: All CPU(s) started in SVC mode.
[    0.011142] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[    0.011511] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.011534] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.011725] pinctrl core: initialized pinctrl subsystem
[    0.012522] NET: Registered protocol family 16
[    0.012788] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.013687] No ATAGs?
[    0.093422] usbcore: registered new interface driver usbfs
[    0.093481] usbcore: registered new interface driver hub
[    0.093540] usbcore: registered new device driver usb
[    0.094163] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.095119] clocksource: Switched to clocksource arch_sys_counter
[    0.095897] thermal_sys: Registered thermal governor 'step_wise'
[    0.096335] NET: Registered protocol family 2
[    0.096503] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.097481] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.097517] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.097588] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.097699] TCP: Hash tables configured (established 8192 bind 8192)
[    0.097814] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.097864] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.098099] NET: Registered protocol family 1
[    0.098135] PCI: CLS 0 bytes, default 64
[    0.099359] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.104868] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.104882] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.140243] bounce: pool size: 64 pages
[    0.156372] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.157398] printk: console [ttyS0] disabled
[    0.177628] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 198, base_baud = 1625000) is a ST16650V2
[    0.629419] printk: console [ttyS0] enabled
[    0.634291] mtk_rng 1020f000.rng: registered RNG driver
[    0.634437] random: fast init done
[    0.643149] random: crng init done
[    0.644133] loop: module loaded
[    0.650660] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[    0.666195] libphy: Fixed MDIO Bus: probed
[    0.693654] mtk_soc_eth 1b100000.ethernet: incorrect phy-mode
[    0.699575] mtk_soc_eth: probe of 1b100000.ethernet failed with error -22
[    0.707550] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    0.712806] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[    0.723331] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000290010
[    0.732466] xhci-mtk 1a1c0000.usb: irq 202, io mem 0x1a1c0000
[    0.738407] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    0.743642] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[    0.751063] xhci-mtk 1a1c0000.usb: Host supports USB 3.0 SuperSpeed
[    0.757955] hub 1-0:1.0: USB hub found
[    0.761750] hub 1-0:1.0: 1 port detected
[    0.766153] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.774726] hub 2-0:1.0: USB hub found
[    0.778541] hub 2-0:1.0: 1 port detected
[    0.783092] i2c /dev entries driver
[    0.787166] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[    0.797064] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    0.805490] cpu cpu0: dummy supplies not allowed for exclusive requests
[    0.813812] sdhci: Secure Digital Host Controller Interface driver
[    0.820033] sdhci: Copyright(c) Pierre Ossman
[    0.826030] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 111 (MSDC0_DAT7) as part of deactivating group MSDC0_DAT7 - it is already used for some other setting
[    0.841360] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 112 (MSDC0_DAT6) as part of deactivating group MSDC0_DAT6 - it is already used for some other setting
[    0.856664] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 113 (MSDC0_DAT5) as part of deactivating group MSDC0_DAT5 - it is already used for some other setting
[    0.871962] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 114 (MSDC0_DAT4) as part of deactivating group MSDC0_DAT4 - it is already used for some other setting
[    0.887259] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 118 (MSDC0_DAT3) as part of deactivating group MSDC0_DAT3 - it is already used for some other setting
[    0.902556] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 119 (MSDC0_DAT2) as part of deactivating group MSDC0_DAT2 - it is already used for some other setting
[    0.917865] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 120 (MSDC0_DAT1) as part of deactivating group MSDC0_DAT1 - it is already used for some other setting
[    0.933162] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 121 (MSDC0_DAT0) as part of deactivating group MSDC0_DAT0 - it is already used for some other setting
[    0.948459] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 116 (MSDC0_CMD) as part of deactivating group MSDC0_CMD - it is already used for some other setting
[    0.963581] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 117 (MSDC0_CLK) as part of deactivating group MSDC0_CLK - it is already used for some other setting
[    0.978704] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 115 (MSDC0_RSTB) as part of deactivating group MSDC0_RSTB - it is already used for some other setting
[    1.019569] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.028043] NET: Registered protocol family 10
[    1.033335] Segment Routing with IPv6
[    1.037154] NET: Registered protocol family 17
[    1.041916] 8021q: 802.1Q VLAN Support v1.8
[    1.046342] ThumbEE CPU extension supported.
[    1.050759] Registering SWP/SWPB emulation handler
[    1.081260] mtk-pcie 1a140000.pcie: host bridge /pcie@1a140000 ranges:
[    1.087927] mtk-pcie 1a140000.pcie:    IO 0x1a160000..0x1a16ffff -> 0x1a160000
[    1.095221] mtk-pcie 1a140000.pcie:   MEM 0x60000000..0x6fffffff -> 0x60000000
[    1.142283] mmc0: new high speed MMC card at address 0001
[    1.148756] mmcblk0: mmc0:0001 008G70 7.28 GiB 
[    1.153861] mmcblk0boot0: mmc0:0001 008G70 partition 1 4.00 MiB
[    1.161181] mmcblk0boot1: mmc0:0001 008G70 partition 2 4.00 MiB
[    1.167368] mmcblk0rpmb: mmc0:0001 008G70 partition 3 4.00 MiB, chardev (250:0)
[    1.175318]  mmcblk0: p1(recovery) p2(root)
[    1.205509] mtk-pcie 1a140000.pcie: Port0 link down
[    1.313467] mtk-pcie 1a140000.pcie: Port1 link down
[    1.421414] mtk-pcie 1a140000.pcie: Port2 link down
[    1.426464] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00
[    1.432644] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.438148] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff])
[    1.447632] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.456113] PCI: bus0: Fast back to back transfers enabled
[    1.462312] hctosys: unable to open rtc device (rtc0)
[    1.470620] F2FS-fs (mmcblk0p2): Magic Mismatch, valid(0xf2f52010) - read(0x483da991)
[    1.478500] F2FS-fs (mmcblk0p2): Can't find valid F2FS filesystem in 1th superblock
[    1.487242] F2FS-fs (mmcblk0p2): Magic Mismatch, valid(0xf2f52010) - read(0xd019ef66)
[    1.495065] F2FS-fs (mmcblk0p2): Can't find valid F2FS filesystem in 2th superblock
[    1.502812] List of all partitions:
[    1.506353] b300         7634944 mmcblk0 
[    1.506356]  driver: mmcblk
[    1.513141]   b301            3072 mmcblk0p1 
[    1.513143] 
[    1.519021]   b302          262144 mmcblk0p2 
[    1.519023] 
[    1.524852] No filesystem could mount root, tried: 
[    1.524854]  squashfs
[    1.529754]  f2fs
[    1.532018] 
[    1.535452] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

sure you're supposed to use a sysupgrade image, or is it something else, renamed ... ?

its renamed on my tftp server , just so that I don't have to edit the bootfile argument in U-Boot.
Although the bootlog above I have copied the generated image openwrt-mediatek-mt7623-7623n-asiaRF-mt7623-n01-legacy-squashfs-sysupgrade-emmc-legacy.bin from the build/bin directory.
I will try it with openwrt-mediatek-mt7623-7623n-asiaRF-mt7623-n01-legacy-initramfs-kernel.bin

initramfs could work, if you load it to memory.

You put this on your command line....

But earlier you had this...

Those don't seem to match. On the original image (or whatever you've put on the eMMC), work out precisely where the squashfs file system actually is. And then make the partitions point to it.

Looks like you've just copied the line from the U7623 without changing it to match your actual disk layout?

yes, that's exactly what I did, so in my case (factory) becomes (recovery) and (firmware) is for kernel? and (usrdata) is my rootfs ?

Booting initramfs

Enter setup_internal_gsw()
change HW-TRAP to 0x10000
 Release MT7623 RXC Reset
Using Eth0 device
TFTP from server 10.73.10.1; our IP address is 10.73.10.20
Filename 'squashfs-sysupgrade.bin'.
Load address: 0x84000000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #######################################################
	 2.7 MiB/s
done
Bytes transferred = 8432149 (80aa15 hex)
bootm flag=0, states=70f
## Booting kernel from Legacy Image at 84000000 ...
   Image Name:   ARM OpenWrt Linux-5.4.154
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    8432085 Bytes = 8 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 5.4.154 (svradmin@mini-server) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16325-88151b8303)) #0 SMP PREEMPT Sun Oct 24 09:01:35 2021
[    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: AsiaRF MT7623-N01
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu s30284 r8192 d22964 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260416
[    0.000000] Kernel command line: root=/dev/mmcblk0p2 rootfstype=squashfs,f2fs console=ttyS0,115200 blkdevparts=mmcblk0:3M@6M(recovery),256M@9M(root)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1011116K/1048576K available (7168K kernel code, 219K rwdata, 1660K rodata, 17408K init, 233K bss, 37460K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x2f8/0x4a4 with crng_init=0
[    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.000176] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[    0.000191] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns
[    0.000469] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000482] pid_max: default: 32768 minimum: 301
[    0.000654] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000671] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001465] CPU: Testing write buffer coherency: ok
[    0.002409] Setting up static identity map for 0x80100000 - 0x80100060
[    0.002542] rcu: Hierarchical SRCU implementation.
[    0.002946] smp: Bringing up secondary CPUs ...
[    0.004818] smp: Brought up 1 node, 4 CPUs
[    0.004833] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.004840] CPU: All CPU(s) started in SVC mode.
[    0.011127] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[    0.011499] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.011520] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.011709] pinctrl core: initialized pinctrl subsystem
[    0.012515] NET: Registered protocol family 16
[    0.012784] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.013686] No ATAGs?
[    0.093423] usbcore: registered new interface driver usbfs
[    0.093481] usbcore: registered new interface driver hub
[    0.093543] usbcore: registered new device driver usb
[    0.094169] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.095126] clocksource: Switched to clocksource arch_sys_counter
[    0.095911] thermal_sys: Registered thermal governor 'step_wise'
[    0.096348] NET: Registered protocol family 2
[    0.096515] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.097527] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.097566] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.097637] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.097749] TCP: Hash tables configured (established 8192 bind 8192)
[    0.097865] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.097914] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.098150] NET: Registered protocol family 1
[    0.098187] PCI: CLS 0 bytes, default 64
[    0.234034] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.239820] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.239834] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.274705] bounce: pool size: 64 pages
[    0.291255] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.292265] printk: console [ttyS0] disabled
[    0.312500] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 198, base_baud = 1625000) is a ST16650V2
[    0.764404] printk: console [ttyS0] enabled
[    0.769293] mtk_rng 1020f000.rng: registered RNG driver
[    0.769439] random: fast init done
[    0.778182] random: crng init done
[    0.779214] loop: module loaded
[    0.785660] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[    0.801083] libphy: Fixed MDIO Bus: probed
[    0.828616] mtk_soc_eth 1b100000.ethernet: incorrect phy-mode
[    0.834516] mtk_soc_eth: probe of 1b100000.ethernet failed with error -22
[    0.842463] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    0.847766] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[    0.858257] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000290010
[    0.867401] xhci-mtk 1a1c0000.usb: irq 202, io mem 0x1a1c0000
[    0.873322] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    0.878590] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[    0.886007] xhci-mtk 1a1c0000.usb: Host supports USB 3.0 SuperSpeed
[    0.892877] hub 1-0:1.0: USB hub found
[    0.896715] hub 1-0:1.0: 1 port detected
[    0.901087] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.909698] hub 2-0:1.0: USB hub found
[    0.913480] hub 2-0:1.0: 1 port detected
[    0.918078] i2c /dev entries driver
[    0.922106] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[    0.932014] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    0.940286] cpu cpu0: dummy supplies not allowed for exclusive requests
[    0.948852] sdhci: Secure Digital Host Controller Interface driver
[    0.955028] sdhci: Copyright(c) Pierre Ossman
[    0.961041] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 111 (MSDC0_DAT7) as part of deactivating group MSDC0_DAT7 - it is already used for some other setting
[    0.976378] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 112 (MSDC0_DAT6) as part of deactivating group MSDC0_DAT6 - it is already used for some other setting
[    0.991680] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 113 (MSDC0_DAT5) as part of deactivating group MSDC0_DAT5 - it is already used for some other setting
[    1.006982] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 114 (MSDC0_DAT4) as part of deactivating group MSDC0_DAT4 - it is already used for some other setting
[    1.022279] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 118 (MSDC0_DAT3) as part of deactivating group MSDC0_DAT3 - it is already used for some other setting
[    1.037575] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 119 (MSDC0_DAT2) as part of deactivating group MSDC0_DAT2 - it is already used for some other setting
[    1.052870] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 120 (MSDC0_DAT1) as part of deactivating group MSDC0_DAT1 - it is already used for some other setting
[    1.068167] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 121 (MSDC0_DAT0) as part of deactivating group MSDC0_DAT0 - it is already used for some other setting
[    1.083463] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 116 (MSDC0_CMD) as part of deactivating group MSDC0_CMD - it is already used for some other setting
[    1.098586] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 117 (MSDC0_CLK) as part of deactivating group MSDC0_CLK - it is already used for some other setting
[    1.113705] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 115 (MSDC0_RSTB) as part of deactivating group MSDC0_RSTB - it is already used for some other setting
[    1.154635] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.163142] NET: Registered protocol family 10
[    1.168474] Segment Routing with IPv6
[    1.172238] NET: Registered protocol family 17
[    1.177057] 8021q: 802.1Q VLAN Support v1.8
[    1.181448] ThumbEE CPU extension supported.
[    1.185891] Registering SWP/SWPB emulation handler
[    1.216442] mtk-pcie 1a140000.pcie: host bridge /pcie@1a140000 ranges:
[    1.223056] mtk-pcie 1a140000.pcie:    IO 0x1a160000..0x1a16ffff -> 0x1a160000
[    1.230389] mtk-pcie 1a140000.pcie:   MEM 0x60000000..0x6fffffff -> 0x60000000
[    1.277454] mmc0: new high speed MMC card at address 0001
[    1.283804] mmcblk0: mmc0:0001 008G70 7.28 GiB 
[    1.288973] mmcblk0boot0: mmc0:0001 008G70 partition 1 4.00 MiB
[    1.296033] mmcblk0boot1: mmc0:0001 008G70 partition 2 4.00 MiB
[    1.302188] mmcblk0rpmb: mmc0:0001 008G70 partition 3 4.00 MiB, chardev (250:0)
[    1.310156]  mmcblk0: p1(recovery) p2(root)
[    1.340679] mtk-pcie 1a140000.pcie: Port0 link down
[    1.448666] mtk-pcie 1a140000.pcie: Port1 link down
[    1.556610] mtk-pcie 1a140000.pcie: Port2 link down
[    1.561642] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00
[    1.567850] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.573332] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff])
[    1.582815] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.591276] PCI: bus0: Fast back to back transfers enabled
[    1.597755] hctosys: unable to open rtc device (rtc0)
[    1.617099] Freeing unused kernel memory: 17408K
[    1.635266] Run /init as init process
[    1.919121] init: Console is alive
[    1.923280] init: - watchdog -
[    1.937511] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.947628] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.957167] SCSI subsystem initialized
[    1.968334] ehci-fsl: Freescale EHCI Host controller driver
[    1.974648] ehci-platform: EHCI generic platform driver
[    1.981291] ehci-pci: EHCI PCI platform driver
[    1.986825] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.993650] ohci-platform: OHCI generic platform driver
[    1.999866] uhci_hcd: USB Universal Host Controller Interface driver
[    2.006916] ohci-pci: OHCI PCI platform driver

Machine requires a power off after this happens

does it hang, or is it just waiting for you to press [enter] ?

It hangs, no amount of swearing or keyboard mashing has any effect

Is this the relevant information I need to work out? This is from the firmware that the board shipped with

Partitions										|Start		|End	   |Size (bits)	|Size (B)   |Size (kB) (Bx8)
				
Creating 7 MTD partitions on "eMMC":				
0x000000000000-0x000000040000 : "mbr"			0			262144		262144		32          256
0x000000040000-0x0000000c0000 : "uboot"			262144		786432		524288		64          512
0x0000000c0000-0x000000100000 : "Config"		786432		1048576		262144		32          256
0x000000100000-0x000000140000 : "Factory"		1048576		1310720		262144		32          256
0x000000140000-0x000001140000 : "firmware" 		1310720		18087936	16777216	2048        16384
[2 uimage-fw partitions found on MTD device firmware				
0x000000140000-0x000000388f71 : "kernel"		1310720		3706737		2396017		292.4825    2339.860
0x000000388f71-0x000001140000 : "rootfs"		3706737		18087936	14381199	1755.5174   14044.13965
mtd: device 6 (rootfs) set to be root filesystem				
1 squashfs-split partitions found on MTD device rootfs				
0x000000af0000-0x000001140000 : "rootfs_data"	11468800	18087936	6619136		808         6464
0x000001140000-0x000081140000 : "usrdata"		18087936	2165571584	2147483648	262144      2097152
0x000081140000-0x0001d2000000 : "bmtpool"		2165571584	7818182656	5652611072	690016      5520128
block2mtd: mtd0: [eMMC] erase_size = 64KiB [65536]				
				
				
				
dev:    size   erasesize  name				
mtd0: 00040000 00010000 "mbr"				262144		32
mtd1: 00080000 00010000 "uboot"				524288		64
mtd2: 00040000 00010000 "Config"			262144		32
mtd3: 00040000 00010000 "Factory"			262144		32
mtd4: 01000000 00010000 "firmware"			16777216	2048
mtd5: 00248f71 00010000 "kernel"			2396017		292.4825439453
mtd6: 00db708f 00010000 "rootfs"			14381199	1755.5174560547
mtd7: 00650000 00010000 "rootfs_data"		6619136		808
mtd8: 80000000 00010000 "usrdata"			2147483648	262144
mtd9: 150ec0000 00010000 "bmtpool"			5652611072	690016

Am I on the right track with these numbers? kernel and rootfs partition looks small for the 8.4MB initramfs that my build produced. Found my error, I will plug some of these numbers into devparts:

I've borken it, I loaded u-boot-mtk.bin from the build and now I don't have uboot over serial, just the preloader text then nothing.
Oh well