Standard OpenWrt on Chinese device with custom build: Ralink MT7620a + MT7610e evaluation board


#1

Hi,
I have two Chinese devices running openWRT:

BusyBox v1.24.1 (2016-12-28 10:25:05 HKT) built-in shell (ash)
DESIGNATED DRIVER (Bleeding Edge, r47745)

Some more hardware info on the unit is given below. I am finding that the LAN connection is stable, and with just one device on the network, so is the wifi connection.

However, as soon as two devices of this type connect to the same wifi network, both units start loosing connectivity over wifi - with ping times into the 100s or 1000s or mS

I have spoken to the guys in China, but it is new year celebrations there at present. Based on the below, and the fact that there seems to be an openWRT build that matches the hardware as identified at the terminal, I have been trying to get openWrt running on it....but without much luck so far (see some dmesg dumps below)

Any ideas...?

~# cat /proc/cpuinfo
system type             : MediaTek MT7620A ver:2 eco:6
machine                 : Ralink MT7620a + MT7610e evaluation board
processor               : 0
cpu model               : MIPS 24KEc V5.0
BogoMIPS                : 385.84
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.hwmode='11g'
wireless.radio0.path='10180000.wmac'
wireless.radio0.txpower='20'
wireless.radio0.country='CN'
wireless.radio0.disabled='0'
wireless.radio0.channel='auto'
wireless.radio0.beacon_int='100'
wireless.radio0.frag='2346'
wireless.radio0.rts='2347'
wireless.wlan0=wifi-iface
wireless.wlan0.network='wwan'
wireless.wlan0.encryption='psk2'
wireless.wlan0.device='radio0'
wireless.wlan0.mode='sta'
wireless.wlan0.ssid='xxxxt'
wireless.wlan0.bssid='18:62:2C:6A:49:C8'
wireless.wlan0.key='xxxx'
wireless.wlan0.disassoc_low_ack='0'

~# dmesg
[    0.000000] Linux version 3.18.23 (root@ubuntu) (gcc version 5.2.0 (OpenWrt GCC 5.2.0 r47745) ) #537 Wed Dec 19 16:32:44 HKT 2018
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is Ralink MT7620a + MT7610e evaluation board
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 80368940, node_mem_map 81000000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00026000
[    0.000000] Readback ErrCtl register=00026000
[    0.000000] Memory: 125880K/131072K available (2886K kernel code, 136K rwdata, 568K rodata, 176K init, 192K bss, 5192K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 580MHz
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.010000] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090000] pinctrl core: initialized pinctrl subsystem
[    0.100000] NET: Registered protocol family 16
[    0.360000] mt7620-pci 10140000.pcie: PCIE0 no card, disable it(RST&CLK)
[    0.370000] mt7620-pci: probe of 10140000.pcie failed with error -1
[    0.390000] Switched to clocksource systick
[    0.400000] NET: Registered protocol family 2
[    0.400000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.420000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.430000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.440000] TCP: reno registered
[    0.450000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.460000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.470000] NET: Registered protocol family 1
[    0.480000] PCI: CLS 0 bytes, default 32
[    0.480000] rt-timer 10000100.timer: maximum frequency is 2441Hz
[    0.500000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.530000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.540000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.560000] msgmni has been set to 245
[    0.570000] io scheduler noop registered
[    0.580000] io scheduler deadline registered (default)
[    0.590000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.600000] console [ttyS0] disabled
[    0.610000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a 16550A
[    0.630000] console [ttyS0] enabled
[    0.640000] bootconsole [early0] disabled
[    0.660000] spi spi0.0: force spi mode3
[    0.670000] m25p80 spi0.0: found w25q128, expected en25q64
[    0.680000] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.690000] 6 ofpart partitions found on MTD device spi0.0
[    0.700000] Creating 6 MTD partitions on "spi0.0":
[    0.710000] 0x000000000000-0x000000030000 : "u-boot"
[    0.720000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.730000] 0x000000040000-0x000000050000 : "Factory"
[    0.740000] 0x000000050000-0x000000060000 : "config"
[    0.760000] 0x000000060000-0x000002000000 : "firmware"
[    0.770000] mtd: partition "firmware" extends beyond the end of device "spi0.0" -- size truncated to 0xfa0000
[    0.840000] 2 uimage-fw partitions found on MTD device firmware
[    0.850000] 0x000000060000-0x000000198a2f : "kernel"
[    0.860000] 0x000000198a2f-0x000001000000 : "rootfs"
[    0.870000] mtd: device 6 (rootfs) set to be root filesystem
[    0.890000] 1 squashfs-split partitions found on MTD device rootfs
[    0.900000] 0x000000e40000-0x000001000000 : "rootfs_data"
[    0.910000] 0x000000000000-0x000001000000 : "all"
[    0.920000] gsw: setting port4 to ephy mode
[    0.930000] ralink_soc_eth 10100000.ethernet: generated random MAC address 8a:3c:9b:0c:b7:ef
[    0.950000] ralink_soc_eth 10100000.ethernet: loaded mt7620 driver
[    0.960000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[    0.980000] rt2880_wdt 10000120.watchdog: Initialized
[    0.990000] TCP: cubic registered
[    0.990000] NET: Registered protocol family 10
[    1.010000] NET: Registered protocol family 17
[    1.010000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.040000] 8021q: 802.1Q VLAN Support v1.8
[    1.060000] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[    1.080000] Freeing unused kernel memory: 176K (80384000 - 803b0000)
[    2.830000] init: Console is alive
[    2.840000] init: - watchdog -
[    5.860000] init: - preinit -
[    6.500000] 8021q: adding VLAN 0 to HW filter on device eth0
[    6.560000] random: mktemp urandom read with 10 bits of entropy available
[    9.930000] jffs2: notice: (305) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    9.960000] mount_root: switching to jffs2 overlay
[   10.010000] procd: - early -
[   10.020000] procd: - watchdog -
[   10.760000] procd: - ubus -
[   11.790000] procd: - init -
[   13.720000] Initializing XFRM netlink socket
[   13.740000] NET: Registered protocol family 15
[   13.750000] tun: Universal TUN/TAP device driver, 1.6
[   13.760000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   13.800000] l2tp_core: L2TP core driver, V2.0
[   13.810000] l2tp_netlink: L2TP netlink interface
[   13.820000] gre: GRE over IPv4 demultiplexor driver
[   13.830000] ip_gre: GRE over IPv4 tunneling driver
[   13.860000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   13.890000] Netfilter messages via NETLINK v0.30.
[   13.900000] ip_set: protocol 6
[   14.020000] u32 classifier
[   14.030000]     input device check on
[   14.030000]     Actions configured
[   14.040000] Mirror/redirect action on
[   14.060000] nf_conntrack version 0.5.0 (1969 buckets, 7876 max)
[   14.110000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.190000] xt_time: kernel timezone is -0000
[   14.220000] PPP generic driver version 2.4.2
[   14.230000] PPP MPPE Compression module registered
[   14.240000] NET: Registered protocol family 24
[   14.250000] PPTP driver version 0.8.5
[   14.260000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[   29.240000] Loading modules backported from Linux version master-2015-12-03-0-g1677f62
[   29.250000] Backport generated by backports.git backports-20151120-0-g906a6b3
[   29.320000] cfg80211: World regulatory domain updated:
[   29.330000] cfg80211:  DFS Master region: unset
[   29.340000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   29.360000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   29.380000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   29.390000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   29.410000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   29.430000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   29.450000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   29.460000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   29.480000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   30.020000] ===FUN:br_stp_set_bridge_priority=LINE:271====
===FUN:br_port_state_selection=LINE:436====
[   30.020000] 
[   30.050000] 8021q: adding VLAN 0 to HW filter on device eth0
[   30.060000] device eth0.2 entered promiscuous mode
[   30.070000] device eth0 entered promiscuous mode
[   30.080000] ===FUN:br_stp_change_bridge_id=LINE:215====
===FUN:br_port_state_selection=LINE:436====
===FUN:br_add_if=LINE:509====
===FUN:br_stp_change_bridge_id=LINE:215====
===FUN:br_port_state_selection=LINE:436====
===FUN:br_dev_open=LINE:110====
===FUN:br_stp_enable_bridge=LINE:55====
===FUN:br_stp_enable_port=LINE:90====
===FUN:br_port_state_selection=LINE:436====
===FUN:br_make_forwarding=LINE:409====
===FUN:br_make_forwarding=LINE:423====
[   30.080000] 
[   30.200000] br-lan: port 1(eth0.2) entered forwarding state
[   30.210000] br-lan: port 1(eth0.2) entered forwarding state
[   31.030000] ===FUN:br_device_event=LINE:69====
===FUN:br_port_carrier_check=LINE:78====
[   31.030000] 
[   32.170000] MAC80211RALINK_REG_GPIOMODE      (0xb0000060) end        =0x0018311D
[   32.190000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0500 detected
[   32.200000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
[   32.220000] br-lan: port 1(eth0.2) entered forwarding state
[   32.230000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   33.300000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   42.590000] cfg80211: Regulatory domain changed to country: CN
[   42.600000] cfg80211:  DFS Master region: FCC
[   42.610000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   42.630000] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   42.640000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (N/A)
[   42.660000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (0 s)
[   42.680000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[   42.700000] cfg80211:   (57240000 KHz - 59400000 KHz @ 2160000 KHz), (N/A, 2800 mBm), (N/A)
[   42.710000] cfg80211:   (59400000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4400 mBm), (N/A)
[   42.730000] cfg80211:   (63720000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 2800 mBm), (N/A)
[   44.070000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   46.330000] wlan0: authenticate with 18:62:2c:6a:49:c8
[   46.380000] wlan0: send auth to 18:62:2c:6a:49:c8 (try 1/3)
[   46.390000] wlan0: authenticated
[   46.430000] wlan0: associate with 18:62:2c:6a:49:c8 (try 1/3)
[   46.470000] wlan0: RX AssocResp from 18:62:2c:6a:49:c8 (capab=0x431 status=0 aid=7)
[   46.480000] wlan0: associated
[   46.490000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   47.070000] dahdi: Version: 2.10.2
[   47.080000] dahdi: Telephony Interface Registered on major 196
[   47.130000] invalid setting @1@ int @0@
invalid setting @1@ int @0@
======================>ok
[   47.130000] 
[   47.620000] chl_num_effective=2
[   47.630000] channel_num is 0 insert SI3226Xgloble channel  1 
globle channel  2 
globle channel  3 
globle channel  4 
globle channel  5 
globle channel  6 
globle channel  7 
globle channel  8 
drv num=00000] 
Device SI3226X regists ok
fxs1_ring_vol=140
fxs2_ring_vol=140
fxs1_hook_cur=20
fxs2_hook_cur=20
fxs1_hook_imp=5
fxs2_hook_imp=5
fxs1_cid_mode=2
fxs2_cid_mode=2
fxs1_ringwave=1
fxs2_ringwave=1
fxs1_ringfreq=25
fxs2_ringfreq=25
fxs1_txgain=-6 
fxs2_txgain=-6 
fxs1_rxgain=-9 
fxs2_rxgain=-9 
[   47.630000] 
[   47.750000] rt2880-pinmux pinctrl: pin io7 already requested by pinctrl; cannot claim for nuoshi_drv_gpios
[   47.770000] rt2880-pinmux pinctrl: pin-7 (nuoshi_drv_gpios) status -22
[   47.780000] rt2880-pinmux pinctrl: could not request pin 7 (io7) from group uartf  on device rt2880-pinmux
[   47.800000] nuoshi_gpio nuoshi_drv_gpios: Error applying setting, reverse things back
[   47.820000] RALINK_REG_GPIOMODE      (0xb0000060) end        =0x00583551
[   47.830000] RT2880_REG_PIODIR        (0xb0000624) end        =0x00FF807F
[   47.840000] RTPD: Success: rx address = 0xa56c4000
[   47.850000] RTPD: Success: rx address = 0xa5680000
[   47.860000] RTPD: Success: rx address = 0xa56f6000
[   47.870000] RTPD: Success: rx address = 0xa57fd000
[   47.880000] RTPD: Success: rx address = 0xa6ff5000
[   47.890000] RTPD: Success: rx address = 0xa56e9000
[   47.900000] RTPD: Success: rx address = 0xa56e8000
[   47.910000] RTPD: Success: rx address = 0xa568f000
[   47.920000] RTPD: Success: rx address = 0xa568e000
[   47.930000] RTPD: Success: rx address = 0xa56c1000
[   47.940000] RTPD: Success: rx address = 0xa57fe000
[   47.950000] RTPD: Success: rx address = 0xa56eb000
[   47.960000] RTPD: Success: rx address = 0xa56e6000
[   47.970000] RTPD: Success: rx address = 0xa56f7000
[   47.980000] RTPD: Success: rx address = 0xa5543000
[   47.980000] RTPD: Success: rx address = 0xa55d9000
[   47.990000] RTPD: Success: rx address = 0xa56f5000
[   48.000000] RTPD: Success: rx address = 0xa6e79000
[   48.010000] RTPD: Success: rx address = 0xa56ff000
[   48.020000] RTPD: Success: rx address = 0xa568b000
[   48.030000] RTPD: Success: rx address = 0xa56c3000
[   48.040000] RTPD: Success: rx address = 0xa56f3000
[   48.050000] RTPD: Success: rx address = 0xa5598000
[   48.060000] RTPD: Success: rx address = 0xa579e000
[   48.070000] RTPD: Success: rx address = 0xa56ac000
[   48.080000] RTPD: Success: rx address = 0xa56ad000
[   48.090000] RTPD: Success: rx address = 0xa56ba000
[   48.100000] RTPD: Success: rx address = 0xa56bb000
[   48.110000] RTPD: Success: rx address = 0xa56a2000
[   48.120000] RTPD: Success: rx address = 0xa56a3000
[   48.130000] RTPD: Success: rx address = 0xa56e0000
[   48.140000] RTPD: Success: rx address = 0xa56e1000
[   48.150000] RTPD: Success: pcm_dma_create_buf
[   48.160000] RTPD: DMA Interrupt enalbed Reg[b0000234]=0x80021082
[   48.170000] RTPD: rtpd_reg_setup
[   48.180000] RTPD: pcm_reg_setup:PCM_PCMCFG[b0002004]=0x43330005
[   48.190000] RTPD: PCM_FSYNC_CFG[b0002030]=0x28000000
[   48.200000] RTPD: PCM_DIVINT_CFG[b0002054]=0x0000001d
[   48.210000] RTPD: PCM_DIVCOMP_CFG[b0002050]=0x8000004c
[   48.220000] RTPD: PCM_PCMCFG[b0002004]=0x43000005
[   48.230000] RTPD: pcm_clock_enable PCM_PCMCFG=0x43000005
[   48.240000] --------->devtype=54<--------
RALINK_REG_GPIOMODE     (0xb0000060) end        =0x00583551
[   48.260000] RT2880_REG_PIODIR        (0xb0000624) end        =0x00FF807F
[   48.270000] ---------si3226X driver register
driver name SI3226X !!!!
index device 0 name SI3226X
indexxx 0 name SI3226X
gpio_slic_rst=9
[   48.290000] gpio_spi_clk=52
[   48.300000] gpio_spi_sdo=54
[   48.300000] gpio_spi_cs=53
[   48.310000] gpio_spi_sdi=55
[   49.940000] @@#######ring_voltage_vpp:140#########ring_wave:1###### OnTime 0## OffTime 0@@
@@#######ringCfg.amp:110
@@#######ring_voltage_vpp:140#########ring_wave:1###### OnTime 0## OffTime 0@@
@@#######ringCfg.amp:110
[   49.940000] 
[   49.940000] 
[   49.940000]  ProSLIC LINE MONITOR
[   50.010000] -----------------------
[   50.020000] VTR      = 47.725  v
[   50.020000] VTIP     = 3.113  v
[   50.030000] VRING    = 50.818  v
[   50.040000] VLONG    = 26.965  v
[   50.040000] VBAT     = 58.692  v
[   50.050000] VDC      = 11.787  v
[   50.060000] ITR      = 0.872  mA
[   50.060000] ITIP     = 1.244  mA
[   50.070000] IRING    = 0.482  mA
[   50.070000] ILONG    = 0.380  mA
[   50.080000] P_HVIC   = 166 mW
[   50.090000] 
[   50.090000] 
[   50.090000]  ProSLIC LINE MONITOR
[   50.100000] -----------------------
[   50.110000] VTR      = 47.692  v
[   50.110000] VTIP     = 3.50  v
[   50.120000] VRING    = 50.688  v
[   50.130000] VLONG    = 26.881  v
[   50.130000] VBAT     = 58.692  v
[   50.140000] VDC      = 11.787  v
[   50.150000] ITR      = 0.913  mA
[   50.150000] ITIP     = 1.483  mA
[   50.160000] IRING    = 0.333  mA
[   50.170000] ILONG    = 0.571  mA
[   50.170000] P_HVIC   = 162 mW
[   50.180000] driver SI3226X Rigisted!!!!
??????set unit 2 to null??????set unit 3 to null??????set unit 4 to null??????set unit 5 to null??????set unit 6 to null??????set unit 7 to nulldrv num=0
drv SI3226X register ok
cpu RAMIPS registed
Success: IIS_DMA request_irq ok
[   50.230000] RTPD: rtpd_ch_enable_pcm
[   50.270000] invalid setting @1@ int @0@
invalid setting @1@ int @0@
[   50.270000] 
[   50.400000] dahdi_echocan_oslec: Registered echo canceler 'OSLEC'
[   58.490000] ========set_tone_zone=-1===========
========set_tone_zone=-1===========
[   58.490000] 
[   63.290000] random: nonblocking pool is initialized
[   69.880000] ========set_tone_zone=-1===========
param.starttime=200
chan->starttime=200
========set_tone_zone=-1===========
set  set_vmwi config but not support
========set_tone_zone=-1===========
param.starttime=200
chan->starttime=200
========set_tone_zone=-1===========
set  set_vmwi config but not support
param.starttime=200
chan->starttime=200
========set_tone_zone=-1===========
set  set_vmwi config but not support
param.starttime=200
chan->starttime=200
========set_tone_zone=-1===========
set  set_vmwi config but not support
[   69.880000] 
[   74.010000] set  set_vmwi config but not support
[   74.010000]

#2

I think you maybe able to update the firmware and obtain the latest one. But I am not sure which one would that be and if upgraded, it may solve the problem. However looking at the log your device has 128 mb of ram so it's more than enough. I'm not sure about the flash size but you may want to head over to documentation at openwrt.org and look for something similar to Ralink MT7620a.


#3

Thanks - I did try that, but found that it was hanging on boot. However, I can rescue it again from the serial console....I'll give it a go and post the results here


#4

They are running some kind of OEM firmware based on OpenWrt, but, as far as I know, "DESIGNATED DRIVER" was never a release. Trying to determine if you have a supported device (or a clone/rebrand of one) would be a good start at getting onto a current release, as I believe @ahmar16 suggested.

As I understand it, there have been many improvements in MediaTek support over the last few years, certainly since Linux 3.18.23


#5

Yep, thanks

I tried:

https://downloads.openwrt.org/releases/18.06.2/targets/ramips/mt7620/openwrt-18.06.2-ramips-mt7620-mt7620a_mt7610e-squashfs-sysupgrade.bin

Since, based on what cpuinfo showed, this appeared to be what I was running, unfortunately that didn't work out too well. I can recover via the serial console luckily :slight_smile:

TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'test.bin'.

 TIMEOUT_COUNT=10,Load address: 0x80a00000
Loading: Got ARP REPLY, set server/gtwy eth addr (1c:39:47:da:8f:4b)
Got it
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ######################################################
done
Bytes transferred = 3932340 (3c00b4 hex)
NetBootFileXferSize= 003c00b4
Automatic boot of image at addr 0x80A00000 ...
## Booting image at 80a00000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.95
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1437278 Bytes =  1.4 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 4.14.95 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7627-753531d)) #0 Mon Jan 28 08:54:32 2019
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is Ralink MT7620A evaluation board
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from 0x8042472c with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=0003f200
[    0.000000] Readback ErrCtl register=0003f200
[    0.000000] Memory: 125216K/131072K available (3590K kernel code, 178K rwdata, 464K rodata, 176K init, 214K bss, 5856K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000012] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015477] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.087712] pid_max: default: 32768 minimum: 301
[    0.097140] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110157] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.129997] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.149480] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.161658] pinctrl core: initialized pinctrl subsystem
[    0.173277] NET: Registered protocol family 16
[    0.184832] rt2880-pinmux pinctrl: error claiming hogs: -22
[    0.195821] rt2880-pinmux pinctrl: could not claim hogs: -22
[    0.207099] rt2880-pinmux: probe of pinctrl failed with error -22
[    0.220550] Can't analyze schedule() prologue at 8037d498
[    0.231473] mt7620-pci 10140000.pcie: could not find pctldev for node /pinctrl/pcie, deferring probe
[    0.266577] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.277609] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.293963] clocksource: Switched to clocksource systick
[    0.305616] NET: Registered protocol family 2
[    0.315188] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.328966] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.341553] TCP: Hash tables configured (established 1024 bind 1024)
[    0.354324] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.365831] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.378529] NET: Registered protocol family 1
[    0.389802] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.402541] Crashlog allocated RAM at address 0x3f00000
[    0.414676] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.433435] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.444930] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.474961] io scheduler noop registered
[    0.482605] io scheduler deadline registered (default)
[    0.493790] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.508955] of_serial 10000c00.uartlite: could not find pctldev for node /pinctrl/uartlite, deferring probe
[    0.528624] cacheinfo: Failed to find cpu0 device node
[    0.538715] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.551498] spi-rt2880 10000b00.spi: could not find pctldev for node /pinctrl/spi, deferring probe
[    0.569831] libphy: Fixed MDIO Bus: probed
[    0.578410] mtk_soc_eth 10100000.ethernet: could not find pctldev for node /pinctrl/ephy, deferring probe
[    0.597719] rt2880_wdt 10000120.watchdog: Initialized
[    0.609110] NET: Registered protocol family 10
[    0.628789] Segment Routing with IPv6
[    0.636102] NET: Registered protocol family 17
[    0.644844] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.670578] 8021q: 802.1Q VLAN Support v1.8
[    0.679558] mt7620-pci 10140000.pcie: could not find pctldev for node /pinctrl/pcie, deferring probe
[    0.697775] of_serial 10000c00.uartlite: could not find pctldev for node /pinctrl/uartlite, deferring probe
[    0.717130] spi-rt2880 10000b00.spi: could not find pctldev for node /pinctrl/spi, deferring probe
[    0.734937] mtk_soc_eth 10100000.ethernet: could not find pctldev for node /pinctrl/ephy, deferring probe
[    0.755186] Warning: unable to open an initial console.
[    0.766222] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    0.781014] Please append a correct "root=" boot option; here are the available partitions:
[    0.797592] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.814958] Rebooting in 1 seconds..


#6

I think it's unable to find/register the flash maybe and also the console is not able to bring up and some other pci devices so it fails. It's possible you are trying to upgrade from a wrong image.

Edit: Have a look at this ToH. It shows some devices with MT7620A SoC having DDR2 ram as your device. You should see which device is similar to yours and then try to flash the firmware.


#7

Comparing the above to a successful flash of the official, but old, firmware (see below)

On the successful flash, I have:

[    1.080000] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.

Above, with the failure, I have:
type or paste code here

[ 0.766222] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6

In the case of flashing to the openWrt formware, I was flashing the image:

https://downloads.openwrt.org/releases/18.06.2/targets/ramips/mt7620/openwrt-18.06.2-ramips-mt7620-mt7620a_mt7610e-squashfs-sysupgrade.bin

Which sounded like the correct image, but may in fact not be!

******************************
spi_wait_nsec: 29 
spi device id: ef 40 18 0 0 (40180000)
find flash: W25Q128BV
raspi_read: from:30000 len:1000 
raspi_read: from:30000 len:1000 
============================================ 
Ralink UBoot Version: 4.3.0.0
-------------------------------------------- 
ASIC 7620_MP (Port5<->None)
DRAM_CONF_FROM: Auto-detection 
DRAM_TYPE: DDR2 
DRAM component: 1024 Mbits
DRAM bus: 16 bit
Total memory: 128 MBytes
Flash component: SPI Flash
Date:Jul 20 2016  Time:01:03:47
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 

 ##### The CPU freq = 580 MHZ #### 
 estimate memory size =128 Mbytes

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

 0 
raspi_read: from:40028 len:6 

   
1: System Load Linux to SDRAM via TFTP. 
 Please Input new ones /or Ctrl-C to discard
	Input device IP (10.10.10.123) ==:10.10.10.123
	Input server IP (10.10.10.3) ==:10.10.10.3
	Input Linux Kernel filename (test.bin) ==:gt202-0.0.2-20181219162918.bin

 netboot_common, argc= 3 

 NetTxPacket = 0x87FE4A00 

 KSEG1ADDR(NetTxPacket) = 0xA7FE4A00 

 NetLoop,call eth_halt ! 

 NetLoop,call eth_init ! 
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!! 
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'gt202-0.0.2-20181219162918.bin'.

 TIMEOUT_COUNT=10,Load address: 0x80a00000
Loading: Got ARP REPLY, set server/gtwy eth addr (1c:39:47:da:8f:4b)
Got it
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #########################################Got ARP REQUEST, return our IP
########################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ########
done
Bytes transferred = 14680068 (e00004 hex)
NetBootFileXferSize= 00e00004
raspi_read: from:30000 len:10000 
Erasing SPI Flash...
raspi_erase: offs:30000 len:10000
.
Writing to SPI Flash...
raspi_write: to:30000 len:10000 
.
done
Automatic boot of image at addr 0x80A00000 ...
## Booting image at 80a00000 ...
   Image Name:   MIPS OpenWrt Linux-3.18.23
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1280495 Bytes =  1.2 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 3.18.23 (root@ubuntu) (gcc version 5.2.0 (OpenWrt GCC 5.2.0 r47745) ) #537 Wed Dec 19 16:32:44 HKT 2018
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is Ralink MT7620a + MT7610e evaluation board
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=0003f201
[    0.000000] Readback ErrCtl register=0003f201
[    0.000000] Memory: 125880K/131072K available (2886K kernel code, 136K rwdata, 568K rodata, 176K init, 192K bss, 5192K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 580MHz
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.010000] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090000] pinctrl core: initialized pinctrl subsystem
[    0.100000] NET: Registered protocol family 16
[    0.360000] mt7620-pci 10140000.pcie: PCIE0 no card, disable it(RST&CLK)
[    0.370000] mt7620-pci: probe of 10140000.pcie failed with error -1
[    0.390000] Switched to clocksource systick
[    0.400000] NET: Registered protocol family 2
[    0.400000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.420000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.430000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.440000] TCP: reno registered
[    0.450000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.460000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.470000] NET: Registered protocol family 1
[    0.480000] rt-timer 10000100.timer: maximum frequency is 2441Hz
[    0.500000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.530000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.540000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.560000] msgmni has been set to 245
[    0.570000] io scheduler noop registered
[    0.580000] io scheduler deadline registered (default)
[    0.590000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.600000] console [ttyS0] disabled
[    0.610000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a 16550A
[    0.630000] console [ttyS0] enabled
[    0.630000] console [ttyS0] enabled
[    0.640000] bootconsole [early0] disabled
[    0.640000] bootconsole [early0] disabled
[    0.660000] spi spi0.0: force spi mode3
[    0.670000] m25p80 spi0.0: found w25q128, expected en25q64
[    0.680000] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.690000] 6 ofpart partitions found on MTD device spi0.0
[    0.700000] Creating 6 MTD partitions on "spi0.0":
[    0.710000] 0x000000000000-0x000000030000 : "u-boot"
[    0.720000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.730000] 0x000000040000-0x000000050000 : "Factory"
[    0.740000] 0x000000050000-0x000000060000 : "config"
[    0.760000] 0x000000060000-0x000002000000 : "firmware"
[    0.770000] mtd: partition "firmware" extends beyond the end of device "spi0.0" -- size truncated to 0xfa0000
[    0.840000] 2 uimage-fw partitions found on MTD device firmware
[    0.850000] 0x000000060000-0x000000198a2f : "kernel"
[    0.860000] 0x000000198a2f-0x000001000000 : "rootfs"
[    0.870000] mtd: device 6 (rootfs) set to be root filesystem
[    0.890000] 1 squashfs-split partitions found on MTD device rootfs
[    0.900000] 0x000000e40000-0x000001000000 : "rootfs_data"
[    0.910000] 0x000000000000-0x000001000000 : "all"
[    0.920000] gsw: setting port4 to ephy mode
[    0.930000] ralink_soc_eth 10100000.ethernet eth0 (uninitialized): port 0 link up (100Mbps/Full duplex)
[    0.950000] ralink_soc_eth 10100000.ethernet: generated random MAC address d2:d4:df:6c:db:d8
[    0.970000] ralink_soc_eth 10100000.ethernet: loaded mt7620 driver
[    0.980000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[    0.990000] rt2880_wdt 10000120.watchdog: Initialized
[    1.010000] TCP: cubic registered
[    1.010000] NET: Registered protocol family 10
[    1.020000] NET: Registered protocol family 17
[    1.030000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.060000] 8021q: 802.1Q VLAN Support v1.8
[    1.080000] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[    1.100000] Freeing unused kernel memory: 176K (80384000 - 803b0000)
[    2.850000] init: Console is alive
[    2.860000] init: - watchdog -
[    5.880000] init: - preinit -
[    6.520000] 8021q: adding VLAN 0 to HW filter on device eth0
[    6.580000] random: mktemp urandom read with 10 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    9.980000] jffs2: notice: (305) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   10.010000] mount_root: switching to jffs2 overlay
[   10.060000] procd: - early -
[   10.070000] procd: - watchdog -
[   10.800000] procd: - ubus -
[   11.830000] procd: - init -
Please press Enter to activate this console.
[   13.870000] Initializing XFRM netlink socket
[   13.880000] NET: Registered protocol family 15
[   13.900000] tun: Universal TUN/TAP device driver, 1.6
[   13.910000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   13.950000] l2tp_core: L2TP core driver, V2.0
[   13.960000] l2tp_netlink: L2TP netlink interface
[   13.970000] gre: GRE over IPv4 demultiplexor driver
[   13.980000] ip_gre: GRE over IPv4 tunneling driver
[   14.000000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   14.030000] Netfilter messages via NETLINK v0.30.
[   14.040000] ip_set: protocol 6
[   14.120000] u32 classifier
[   14.130000]     input device check on
[   14.140000]     Actions configured
[   14.140000] Mirror/redirect action on
[   14.160000] nf_conntrack version 0.5.0 (1969 buckets, 7876 max)
[   14.200000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.340000] xt_time: kernel timezone is -0000
[   14.360000] PPP generic driver version 2.4.2
[   14.370000] PPP MPPE Compression module registered
[   14.380000] NET: Registered protocol family 24
[   14.390000] PPTP driver version 0.8.5
[   14.400000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[   29.400000] Loading modules backported from Linux version master-2015-12-03-0-g1677f62
[   29.420000] Backport generated by backports.git backports-20151120-0-g906a6b3
[   29.560000] cfg80211: World regulatory domain updated:
[   29.570000] cfg80211:  DFS Master region: unset
[   29.580000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   29.600000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   29.610000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   29.630000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   29.640000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   29.660000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   29.680000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   29.700000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   29.710000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   30.170000] ===FUN:br_stp_set_bridge_priority=LINE:271====
===FUN:br_port_state_selection=LINE:436====

[   30.200000] 8021q: adding VLAN 0 to HW filter on device eth0
[   30.210000] device eth0.2 entered promiscuous mode
[   30.220000] device eth0 entered promiscuous mode
[   30.230000] ===FUN:br_stp_change_bridge_id=LINE:215====
===FUN:br_port_state_selection=LINE:436====
===FUN:br_add_if=LINE:509====
===FUN:br_stp_change_bridge_id=LINE:215====
===FUN:br_port_state_selection=LINE:436====
===FUN:br_dev_open=LINE:110====
===FUN:br_stp_enable_bridge=LINE:55====
===FUN:br_stp_enable_port=LINE:90====
===FUN:br_port_state_selection=LINE:436====
===FUN:br_make_forwarding=LINE:409====
===FUN:br_make_forwarding=LINE:423====

[   30.350000] br-lan: port 1(eth0.2) entered forwarding state
[   30.360000] br-lan: port 1(eth0.2) entered forwarding state
[   31.180000] ===FUN:br_device_event=LINE:69====
===FUN:br_port_carrier_check=LINE:78====

[   32.310000] MAC80211RALINK_REG_GPIOMODE	(0xb0000060) end	=0x0018311D
[   32.330000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0500 detected
[   32.340000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
[   32.360000] br-lan: port 1(eth0.2) entered forwarding state
[   33.440000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   42.770000] cfg80211: Regulatory domain changed to country: GB
[   42.780000] cfg80211:  DFS Master region: ETSI
[   42.790000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   42.810000] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   42.830000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   42.850000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   42.860000] cfg80211:   (5490000 KHz - 5710000 KHz @ 160000 KHz), (N/A, 2700 mBm), (0 s)
[   42.880000] cfg80211:   (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   44.270000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   46.480000] wlan0: authenticate with 18:62:2c:6a:49:c8
[   46.530000] wlan0: send auth to 18:62:2c:6a:49:c8 (try 1/3)
[   46.540000] wlan0: authenticated
[   46.570000] wlan0: associate with 18:62:2c:6a:49:c8 (try 1/3)
[   46.590000] wlan0: RX AssocResp from 18:62:2c:6a:49:c8 (capab=0x431 status=0 aid=8)
[   46.600000] wlan0: associated
[   46.610000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   47.390000] dahdi: Version: 2.10.2
[   47.400000] dahdi: Telephony Interface Registered on major 196
[   47.460000] invalid setting @1@ int @0@
invalid setting @1@ int @0@
======================>ok

[   47.780000] chl_num_effective=2
[   47.780000] channel_num is 0 insert SI3226Xgloble channel  1 
globle channel  2 
globle channel  3 
globle channel  4 
globle channel  5 
globle channel  6 
globle channel  7 
globle channel  8 
drv num=0
Device SI3226X regists ok
fxs1_ring_vol=140
fxs2_ring_vol=140
fxs1_hook_cur=20
fxs2_hook_cur=20
fxs1_hook_imp=5
fxs2_hook_imp=5
fxs1_cid_mode=2
fxs2_cid_mode=2
fxs1_ringwave=2
fxs2_ringwave=2
fxs1_ringfreq=25
fxs2_ringfreq=25
fxs1_txgain=-6
fxs2_txgain=-6
fxs1_rxgain=-9
fxs2_rxgain=-9

[   47.890000] rt2880-pinmux pinctrl: pin io7 already requested by pinctrl; cannot claim for nuoshi_drv_gpios
[   47.910000] rt2880-pinmux pinctrl: pin-7 (nuoshi_drv_gpios) status -22
[   47.930000] rt2880-pinmux pinctrl: could not request pin 7 (io7) from group uartf  on device rt2880-pinmux
[   47.950000] nuoshi_gpio nuoshi_drv_gpios: Error applying setting, reverse things back
[   47.960000] RALINK_REG_GPIOMODE	(0xb0000060) end	=0x00583551
[   47.970000] RT2880_REG_PIODIR	(0xb0000624) end	=0x00FF807F
[   47.980000] RTPD: Success: rx address = 0xa5afc000
[   47.990000] RTPD: Success: rx address = 0xa5afd000
[   48.000000] RTPD: Success: rx address = 0xa6e44000
[   48.010000] RTPD: Success: rx address = 0xa5ab9000
[   48.020000] RTPD: Success: rx address = 0xa5a9f000
[   48.030000] RTPD: Success: rx address = 0xa5ae6000
[   48.040000] RTPD: Success: rx address = 0xa5ad7000
[   48.050000] RTPD: Success: rx address = 0xa5ad6000
[   48.060000] RTPD: Success: rx address = 0xa5ab3000
[   48.070000] RTPD: Success: rx address = 0xa5ab2000
[   48.080000] RTPD: Success: rx address = 0xa5ab0000
[   48.090000] RTPD: Success: rx address = 0xa5ad3000
[   48.100000] RTPD: Success: rx address = 0xa5ac1000
[   48.110000] RTPD: Success: rx address = 0xa5adc000
[   48.120000] RTPD: Success: rx address = 0xa6efe000
[   48.130000] RTPD: Success: rx address = 0xa5ad4000
[   48.140000] RTPD: Success: rx address = 0xa596f000
[   48.150000] RTPD: Success: rx address = 0xa59d0000
[   48.160000] RTPD: Success: rx address = 0xa594f000
[   48.170000] RTPD: Success: rx address = 0xa59a8000
[   48.180000] RTPD: Success: rx address = 0xa5b9e000
[   48.190000] RTPD: Success: rx address = 0xa5aef000
[   48.200000] RTPD: Success: rx address = 0xa5af1000
[   48.200000] RTPD: Success: rx address = 0xa59da000
[   48.210000] RTPD: Success: rx address = 0xa59db000
[   48.220000] RTPD: Success: rx address = 0xa5ad0000
[   48.230000] RTPD: Success: rx address = 0xa5ad1000
[   48.240000] RTPD: Success: rx address = 0xa5a9a000
[   48.250000] RTPD: Success: rx address = 0xa5a9b000
[   48.260000] RTPD: Success: rx address = 0xa5afa000
[   48.270000] RTPD: Success: rx address = 0xa5afb000
[   48.280000] RTPD: Success: rx address = 0xa5994000
[   48.290000] RTPD: Success: pcm_dma_create_buf
[   48.300000] RTPD: DMA Interrupt enalbed Reg[b0000234]=0x80021082
[   48.310000] RTPD: rtpd_reg_setup
[   48.320000] RTPD: pcm_reg_setup:PCM_PCMCFG[b0002004]=0x43330005
[   48.330000] RTPD: PCM_FSYNC_CFG[b0002030]=0x28000000
[   48.340000] RTPD: PCM_DIVINT_CFG[b0002054]=0x0000001d
[   48.350000] RTPD: PCM_DIVCOMP_CFG[b0002050]=0x8000004c
[   48.360000] RTPD: PCM_PCMCFG[b0002004]=0x43000005
[   48.370000] RTPD: pcm_clock_enable PCM_PCMCFG=0x43000005
[   48.380000] --------->devtype=54<--------
RALINK_REG_GPIOMODE	(0xb0000060) end	=0x00583551
[   48.400000] RT2880_REG_PIODIR	(0xb0000624) end	=0x00FF807F
[   48.410000] ---------si3226X driver register
driver name SI3226X !!!!
index device 0 name SI3226X
indexxx 0 name SI3226X
gpio_slic_rst=9
[   48.440000] gpio_spi_clk=52
[   48.440000] gpio_spi_sdo=54
[   48.450000] gpio_spi_cs=53
[   48.450000] gpio_spi_sdi=55
[   50.100000] @@#######ring_voltage_vpp:140#########ring_wave:2###### OnTime 0## OffTime 0@@
@@#######ringCfg.amp:110
@@#######ring_voltage_vpp:140#########ring_wave:2###### OnTime 0## OffTime 0@@
@@#######ringCfg.amp:110


 ProSLIC LINE MONITOR
[   50.170000] -----------------------
[   50.180000] VTR      = 47.741  v
[   50.180000] VTIP     = 3.304  v
[   50.190000] VRING    = 51.5  v
[   50.200000] VLONG    = 27.174  v
[   50.200000] VBAT     = 58.63  v
[   50.210000] VDC      = 11.708  v
[   50.220000] ITR      = 0.446  mA
[   50.220000] ITIP     = 0.942  mA
[   50.230000] IRING    = 0.70  mA
[   50.240000] ILONG    = 0.444  mA
[   50.240000] P_HVIC   = 163 mW
[   50.250000] 
[   50.250000] 
[   50.250000]  ProSLIC LINE MONITOR
[   50.260000] -----------------------
[   50.270000] VTR      = 47.706  v
[   50.280000] VTIP     = 2.863  v
[   50.280000] VRING    = 50.607  v
[   50.290000] VLONG    = 26.756  v
[   50.290000] VBAT     = 59.320  v
[   50.300000] VDC      = 11.708  v
[   50.310000] ITR      = 0.727  mA
[   50.310000] ITIP     = 1.234  mA
[   50.320000] IRING    = 0.209  mA
[   50.330000] ILONG    = 0.571  mA
[   50.330000] P_HVIC   = 161 mW
[   50.340000] driver SI3226X Rigisted!!!!
??????set unit 2 to null??????set unit 3 to null??????set unit 4 to null??????set unit 5 to null??????set unit 6 to null??????set unit 7 to nulldrv num=0
drv SI3226X register ok
cpu RAMIPS registed
Success: IIS_DMA request_irq ok
[   50.390000] RTPD: rtpd_ch_enable_pcm
[   50.430000] invalid setting @1@ int @0@
invalid setting @1@ int @0@

[   50.530000] dahdi_echocan_oslec: Registered echo canceler 'OSLEC'
[   58.660000] ========set_tone_zone=-1===========
========set_tone_zone=-1===========

[   63.810000] random: nonblocking pool is initialized
[   71.520000] ========set_tone_zone=-1===========
param.starttime=200
chan->starttime=200
========set_tone_zone=-1===========
set  set_vmwi config but not support
========set_tone_zone=-1===========
param.starttime=200
chan->starttime=200
========set_tone_zone=-1===========
set  set_vmwi config but not support
param.starttime=200
chan->starttime=200
========set_tone_zone=-1===========
set  set_vmwi config but not support
param.starttime=200
chan->starttime=200
========set_tone_zone=-1===========
set  set_vmwi config but not support

[   75.640000] set  set_vmwi config but not support
oht x =#3000#  
fun:sfttime_fxs_Setoht,line:515==>current status:0 
set  set_vmwi config but not support
oht x =#3000# 
fun:sfttime_fxs_Setoht,line:515==>current status:0 

GT202-UP login:

#9

The 18.06 kernel never found the SPI port thus it was unable to do anything related to the flash.


#10

I realize that you first need to get a working (real) OpenWrt version running on your device, but also make sure that both devices use unique MAC addresses for all their interfaces.


#11

Cheers - good advice - I had checked that already actually, but it would have given many of the symptoms I was seeing. Unfortunately they were not the same :frowning:

Trying a few other kernels, all of the 17.x releases gave the apparently even less successful below, at which point they hung as below.

17.01: 

Starting kernel ...

[    0.000000] Linux version 4.4.50 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3103-1b51a49) ) #0 Mon Feb 20 17:13:44 2017
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is Ralink MT7620A evaluation board
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=0003f200
[    0.000000] Readback ErrCtl register=0003f200
[    0.000000] Memory: 125928K/131072K available (3012K kernel code, 144K rwdata, 384K rodata, 164K init, 208K bss, 5144K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015459] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.080607] pid_max: default: 32768 minimum: 301
[    0.089924] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.102941] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.123183] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.142719] pinctrl core: initialized pinctrl subsystem
[    0.154293] NET: Registered protocol family 16

Whilst all the 18. releases failed as originally shown - including the snapshot release


#12

...which do not have the slightest hint of OEM / Manufacturer / Model-number printed on the case?


#13

Nothing that obviously relates to anything I have yet managed to tie down to an openwrt release

DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='Bleeding Edge'
DISTRIB_REVISION='r47745'
DISTRIB_CODENAME='designated_driver'
DISTRIB_TARGET='ramips/mt7620'
DISTRIB_DESCRIPTION='OpenWrt Designated Driver r47745'
DISTRIB_TAINTS='no-all busybox'


#14

The issue I am seeing looks very similar to that reported here:

https://bugs.openwrt.org/index.php?do=details&task_id=1515&opened=1266&status[0]=

THough this is for slightly different firmware...


#15

Have you tried this one? https://downloads.openwrt.org/releases/18.06.2/targets/ramips/mt7620/openwrt-18.06.2-ramips-mt7620-mt7620a-squashfs-sysupgrade.bin
I am not sure if this one works but since you dont know if your device is similar to any other device as I provided the link above, you will have to use the trial and error method here.

I am sure your device would be a Chinese-remake of some other device, you just have no idea which one. I suggest to look for similarities of your device with other ones having the same SoC and board. Look for flash size and type, number of ports, Wi-Fi etc.

Back in the day my ISP gave me a Dlink DSL-2750U (I dont remember the hardware version) but after a while that one apparently got fried somehow so ISP offered me a used router which apparently did not exist in the market and also ISP was using its own firmware, same one, as in Dlink. So as I wanted to change the firmware of the device I couldnt find any because the company existed only for hardware but they did not have any firmware for their products. I decided to flash it with Dlink DSL-2750 because the bootloader had a recovery mode enabled. I flashed it with a couple of DSL-2750 versions but none worked because the bootloader said illegal image and finally T3 worked, the router booted up normally and the router still works with that firmware. Only that DSL light does not work but all the other stuff just works fine.


#16

Thanks - yes, I did give that one a go, as well as the version which explicitly mentions mt7610e - as you noticed, based on its name, and on what the board /thinks/ it is, we should be good to go.

However, the bug report linked to above, for a very similar sounding problem, was for a similar, but not identical problem. I have raised a ticket to see whether the patch that fixed the above might also be relevant here


#17

A little more progress:

Though no more success booting :slight_smile:


#18

There's no MT7610 chip on that board. Not that that would matter much, since the MT7610 is only a second radio for 5 GHz that attaches via the PCIe bus; you'd still be able to boot without it.

The other chip is a SI3226 analog phone adapter for the two VoIP lines. There appears to be no open driver for it.

Did you try the plain MT7620 firmware as @ahmar16 suggested? I think that is for the evaluation board that is basically only the MT7620 and some RAM and flash on a board.


#19

Hi,
Yes, I tried a few variations on the MT7620 firmware

Each gave me the below:


Starting kernel ...

[    0.000000] Linux version 4.14.98 (buildbot@e18fde3b3fb2) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9297-93034bf)) #0 Sun Feb 10 19:51:09 2019
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is Ralink MT7620a + MT7610e evaluation board
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x47c with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00040000
[    0.000000] Readback ErrCtl register=00040000
[    0.000000] Memory: 124504K/131072K available (3873K kernel code, 182K rwdata, 900K rodata, 156K init, 214K bss, 6568K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015481] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.087726] pid_max: default: 32768 minimum: 301
[    0.097140] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110166] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.130313] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.149795] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.161970] pinctrl core: initialized pinctrl subsystem
[    0.173606] NET: Registered protocol family 16
[    0.444070] mt7620-pci 10140000.pcie: PCIE0 no card, disable it(RST&CLK)
[    0.457303] mt7620-pci: probe of 10140000.pcie failed with error -1
[    0.487223] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.498260] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.514607] clocksource: Switched to clocksource systick
[    0.526283] NET: Registered protocol family 2
[    0.535861] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.549649] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.562232] TCP: Hash tables configured (established 1024 bind 1024)
[    0.575015] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.586537] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.599227] NET: Registered protocol family 1
[    0.610587] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.623329] Crashlog allocated RAM at address 0x3f00000
[    0.635569] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.654288] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.665792] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.695699] io scheduler noop registered
[    0.703342] io scheduler deadline registered (default)
[    0.714521] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.730037] console [ttyS0] disabled
[    0.737100] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.756763] console [ttyS0] enabled
[    0.756763] console [ttyS0] enabled
[    0.770583] bootconsole [early0] disabled
[    0.770583] bootconsole [early0] disabled
[    0.787163] cacheinfo: Failed to find cpu0 device node
[    0.797446] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.816954] spi spi0.0: force spi mode3
[    0.835676] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.845116] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.857783] Creating 4 MTD partitions on "spi0.0":
[    0.867343] 0x000000000000-0x000000030000 : "u-boot"
[    0.878204] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.889771] 0x000000040000-0x000000050000 : "factory"
[    0.900785] 0x000000050000-0x000000800000 : "firmware"
[    0.918627] libphy: Fixed MDIO Bus: probed
[    0.934985] gsw: setting port4 to gmac mode
[    0.943362] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 0 link up (100Mbps/Full duplex)
[    0.961602] mtk_soc_eth 10100000.ethernet: generated random MAC address da:c4:fb:82:db:3b
[    0.978102] libphy: mdio: probed
[    0.984647] mdio_bus mdio-bus: MDIO device at address 4 is missing.
[    0.997213] mdio_bus mdio-bus: MDIO device at address 5 is missing.
[    1.009840] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    1.022300] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    1.039343] rt2880_wdt 10000120.watchdog: Initialized
[    1.050837] NET: Registered protocol family 10
[    1.063846] Segment Routing with IPv6
[    1.071335] NET: Registered protocol family 17
[    1.080263] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.106100] 8021q: 802.1Q VLAN Support v1.8
[    1.117309] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.132296] Please append a correct "root=" boot option; here are the available partitions:
[    1.148955] 1f00             192 mtdblock0 
[    1.148961]  (driver?)
[    1.161989] 1f01              64 mtdblock1 
[    1.161995]  (driver?)
[    1.175028] 1f02              64 mtdblock2 
[    1.175033]  (driver?)
[    1.188059] 1f03            7872 mtdblock3 
[    1.188064]  (driver?)
[    1.201088] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.218562] Rebooting in 1 seconds..


#20

The partitioning is different. The stock firmware loads and boots from 0x60000. The OpenWrt firmware expects to be loaded at 0x50000. This apparently causes the OpenWrt routine which scans the firmware to find the root file system and dynamically add the rootfs partition to fail.

To use the OpenWrt build, you'd need to load it at 0x5000 in the flash instead of 0x6000. That may be possible by changing u-boot environment variables, or manually load and boot (to prove that it's going to work) or as a last resort replace the bootloader.

Dumping the 'factory' partition at 0x4000 (using md.b) and saving it to a safe place would be a good idea. Likely only the first 1k contains any data, but it is important to make wifi work properly.


#22

Ok...I changed the partitions defined in the DTS file for the openWrt firmware to start at 00006 - and this then loaded fine:

Done!
## Booting image at bc060000 ...
raspi_read: from:60000 len:40 
   Image Name:   MIPS OpenWrt Linux-4.14.98
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1573036 Bytes =  1.5 MB
   Load Address: 80000000
   Entry Point:  80000000
raspi_read: from:60040 len:1800ac 
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 4.14.98 (ben@nas) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9297-93034bf7f0)) #0 Sun Feb 10 19:51:09 2019
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is Ralink MT7620a + MT7610e evaluation board
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00040000
[    0.000000] Readback ErrCtl register=00040000
[    0.000000] Memory: 124768K/131072K available (3653K kernel code, 174K rwdata, 852K rodata, 176K init, 207K bss, 6304K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000012] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015473] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.087721] pid_max: default: 32768 minimum: 301
[    0.097125] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110158] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.130311] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.149796] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.161971] pinctrl core: initialized pinctrl subsystem
[    0.172821] NET: Registered protocol family 16
[    0.442962] mt7620-pci 10140000.pcie: PCIE0 no card, disable it(RST&CLK)
[    0.456199] mt7620-pci: probe of 10140000.pcie failed with error -1
[    0.485606] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.496644] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.512606] clocksource: Switched to clocksource systick
[    0.524251] NET: Registered protocol family 2
[    0.533701] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.547489] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.560078] TCP: Hash tables configured (established 1024 bind 1024)
[    0.572860] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.584386] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.597077] NET: Registered protocol family 1
[    0.608389] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.621133] Crashlog allocated RAM at address 0x3f00000
[    0.633354] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.651800] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.663307] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.692671] io scheduler noop registered
[    0.700317] io scheduler deadline registered (default)
[    0.711371] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.725020] console [ttyS0] disabled
[    0.732014] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.751788] console [ttyS0] enabled
[    0.751788] console [ttyS0] enabled
[    0.765567] bootconsole [early0] disabled
[    0.765567] bootconsole [early0] disabled
[    0.782036] cacheinfo: Failed to find cpu0 device node
[    0.792314] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.808964] spi spi0.0: force spi mode3
[    0.827728] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.837172] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.849841] Creating 4 MTD partitions on "spi0.0":
[    0.859407] 0x000000000000-0x000000030000 : "u-boot"
[    0.870238] 0x000000030000-0x000000070000 : "u-boot-env"
[    0.881762] 0x000000040000-0x000000090000 : "factory"
[    0.892814] 0x000000060000-0x000002060000 : "firmware"
[    0.903086] mtd: partition "firmware" extends beyond the end of device "spi0.0" -- size truncated to 0xfa0000
[    0.926603] 2 uimage-fw partitions found on MTD device firmware
[    0.938469] Creating 2 MTD partitions on "firmware":
[    0.948381] 0x000000000000-0x0000001800ec : "kernel"
[    0.959222] 0x0000001800ec-0x000000fa0000 : "rootfs"
[    0.969974] mtd: device 5 (rootfs) set to be root filesystem
[    0.982915] 1 squashfs-split partitions found on MTD device rootfs
[    0.995289] 0x00000036c000-0x000000fa0000 : "rootfs_data"
[    1.007770] libphy: Fixed MDIO Bus: probed
[    1.024669] gsw: setting port4 to gmac mode
[    1.033081] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 0 link up (100Mbps/Full duplex)
[    1.051317] mtk_soc_eth 10100000.ethernet: generated random MAC address 36:ec:ec:8f:fb:50
[    1.067802] libphy: mdio: probed
[    1.074350] mdio_bus mdio-bus: MDIO device at address 4 is missing.
[    1.086918] mdio_bus mdio-bus: MDIO device at address 5 is missing.
[    1.099545] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    1.112028] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    1.129054] rt2880_wdt 10000120.watchdog: Initialized
[    1.140485] NET: Registered protocol family 10
[    1.153364] Segment Routing with IPv6
[    1.160768] NET: Registered protocol family 17
[    1.169736] 8021q: 802.1Q VLAN Support v1.8
[    1.190795] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    1.205866] Freeing unused kernel memory: 176K
[    1.214756] This architecture does not have kernel memory protection.
[    2.672580] random: fast init done
[    2.890374] init: Console is alive
[    2.897484] init: - watchdog -
[    4.658560] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.923115] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.939724] init: - preinit -
[    6.299300] 8021q: adding VLAN 0 to HW filter on device eth0
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    6.893673] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    6.936466] urandom-seed: Seed file not found (/etc/urandom.seed)
[    7.057177] procd: - early -
[    7.063117] procd: - watchdog -
[    7.251830] procd: - watchdog -
[    7.258408] procd: - ubus -
[    7.335350] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.348964] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.362263] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.375987] procd: - init -
Please press Enter to activate this console.
[    7.781652] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.800220] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.824544] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[    7.839528] Backport generated by backports.git v4.19.7-1-0-g148b072d
[    7.856875] ip_tables: (C) 2000-2006 Netfilter Core Team
[    7.876712] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[    7.953811] xt_time: kernel timezone is -0000
[    8.032928] PPP generic driver version 2.4.2
[    8.044414] NET: Registered protocol family 24
[    8.092027] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'soc_wmac.eeprom'.
[    8.112011] rt2800_wmac 10180000.wmac: Direct firmware load for soc_wmac.eeprom failed with error -2
[    8.130240] rt2800_wmac 10180000.wmac: Falling back to user helper
[    8.281044] firmware soc_wmac.eeprom: firmware_loading_store: map pages failed
[    8.295690] ieee80211 phy0: rt2x00lib_request_eeprom_file: Error - Failed to request EEPROM.
[    8.312605] rt2800_wmac: probe of 10180000.wmac failed with error -11
[    8.361138] kmodloader: done loading kernel modules from /etc/modules.d/*
[    8.741558] urandom_read: 5 callbacks suppressed
[    8.741568] random: jshn: uninitialized urandom read (4 bytes read)
[    8.913552] random: jshn: uninitialized urandom read (4 bytes read)
[   16.799705] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   16.860063] jffs2_build_filesystem(): unlocking the mtd device... 
[   16.860142] done.
[   16.876316] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   21.972080] 8021q: adding VLAN 0 to HW filter on device eth0
[   22.098890] br-lan: port 1(eth0.1) entered blocking state
[   22.109747] br-lan: port 1(eth0.1) entered disabled state
[   22.120909] device eth0.1 entered promiscuous mode
[   22.130503] device eth0 entered promiscuous mode
[   22.316697] br-lan: port 1(eth0.1) entered blocking state
[   22.327531] br-lan: port 1(eth0.1) entered forwarding state
[   22.338890] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   22.989553] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



BusyBox v1.30.0 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r9297-93034bf7f0
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 2048      2048         0 100% /rom
tmpfs                    62472        56     62416   0% /tmp
tmpfs                    62472        32     62440   0% /tmp/root
overlayfs:/tmp/root      62472        32     62440   0% /
tmpfs                      512         0       512   0% /dev
root@OpenWrt:/# 

Presumably though, were I to load another openWrt image in the future, I would have to do the same again, unless I change the partitions on the device first?

Currently looking into why i can's see the wifi adapter as well