Ahhh, perfect, that gets me quite further in the boot process.
[ 0.000000] Linux version 4.14.158 (root@Computer) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r11695-1bdea1c99f)) #0 Thu Dec 19 09:30:01 2019<\r><\n>
[ 0.000000] Board has DDR2<\r><\n>
[ 0.000000] Analog PMU set to hw control<\r><\n>
[ 0.000000] Digital PMU set to hw control<\r><\n>
[ 0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2<\r><\n>
[ 0.000000] bootconsole [early0] enabled<\r><\n>
[ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)<\r><\n>
[ 0.000000] MIPS: machine is TP-Link RE200 v1<\r><\n>
[ 0.000000] Determined physical RAM map:<\r><\n>
[ 0.000000] memory: 04000000 @ 00000000 (usable)<\r><\n>
[ 0.000000] Initrd not found or empty - disabling initrd<\r><\n>
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.<\r><\n>
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes<\r><\n>
[ 0.000000] Zone ranges:<\r><\n>
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]<\r><\n>
[ 0.000000] Movable zone start for each node<\r><\n>
[ 0.000000] Early memory node ranges<\r><\n>
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]<\r><\n>
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]<\r><\n>
[ 0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a0 with crng_init=0<\r><\n>
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240<\r><\n>
[ 0.000000] Kernel command line: console=ttyS0,57600n8 rootfstype=squashfs,jffs2<\r><\n>
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)<\r><\n>
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)<\r><\n>
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)<\r><\n>
[ 0.000000] Writing ErrCtl register=00079127<\r><\n>
[ 0.000000] Readback ErrCtl register=00079127<\r><\n>
[ 0.000000] Memory: 56516K/65536K available (3917K kernel code, 182K rwdata, 896K rodata, 3060K init, 205K bss, 9020K reserved, 0K cma-reserved)<\r><\n>
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1<\r><\n>
[ 0.000000] NR_IRQS: 256<\r><\n>
[ 0.000000] intc: using register map from devicetree<\r><\n>
[ 0.000000] CPU Clock: 580MHz<\r><\n>
[ 0.000000] timer_probe: no matching timers found<\r><\n>
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns<\r><\n>
[ 0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns<\r><\n>
[ 0.015369] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)<\r><\n>
[ 0.087589] pid_max: default: 32768 minimum: 301<\r><\n>
[ 0.096956] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)<\r><\n>
[ 0.109918] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)<\r><\n>
[ 0.129601] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns<\r><\n>
[ 0.148987] futex hash table entries: 256 (order: -1, 3072 bytes)<\r><\n>
[ 0.161126] pinctrl core: initialized pinctrl subsystem<\r><\n>
[ 0.172400] NET: Registered protocol family 16<\r><\n>
[ 0.183631] rt2880-pinmux pinctrl: invalid group "uartf" for function "gpio"<\r><\n>
[ 0.197502] rt2880-pinmux pinctrl: invalid group "ephy" for function "gpio"<\r><\n>
[ 0.211214] rt2880-pinmux pinctrl: invalid group "wled" for function "gpio"<\r><\n>
[ 0.224973] rt2880-pinmux pinctrl: invalid group "nd_sd" for function "gpio"<\r><\n>
[ 0.238906] rt2880-pinmux pinctrl: invalid group "rgmii1" for function "gpio"<\r><\n>
[ 0.253010] rt2880-pinmux pinctrl: invalid group "spi refclk" for function "gpio"<\r><\n>
[ 0.267804] rt2880-pinmux pinctrl: error claiming hogs: -22<\r><\n>
[ 0.278805] rt2880-pinmux pinctrl: could not claim hogs: -22<\r><\n>
[ 0.290134] rt2880-pinmux: probe of pinctrl failed with error -22<\r><\n>
[ 0.407491] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000<\r><\n>
[ 0.568518] PCI host bridge /pcie@10140000 ranges:<\r><\n>
[ 0.577865] MEM 0x0000000020000000..0x000000002fffffff<\r><\n>
[ 0.588175] IO 0x0000000010160000..0x000000001016ffff<\r><\n>
[ 0.617317] mt7621_gpio 10000600.gpio: registering 32 gpios<\r><\n>
[ 0.628520] mt7621_gpio 10000600.gpio: registering 32 gpios<\r><\n>
[ 0.639646] mt7621_gpio 10000600.gpio: registering 32 gpios<\r><\n>
[ 0.651438] PCI host bridge to bus 0000:00<\r><\n>
[ 0.659401] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]<\r><\n>
[ 0.673033] pci_bus 0000:00: root bus resource [io 0xffffffff]<\r><\n>
[ 0.684691] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]<\r><\n>
[ 0.698107] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]<\r><\n>
[ 0.714193] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring<\r><\n>
[ 0.731026] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]<\r><\n>
[ 0.744017] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]<\r><\n>
[ 0.757741] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x201fffff]<\r><\n>
[ 0.771157] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]<\r><\n>
[ 0.784580] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]<\r><\n>
[ 0.797996] pci 0000:01:00.1: BAR 0: assigned [mem 0x20100000-0x201fffff]<\r><\n>
[ 0.811407] pci 0000:00:00.0: PCI bridge to [bus 01]<\r><\n>
[ 0.821196] pci 0000:00:00.0: bridge window [mem 0x20000000-0x201fffff]<\r><\n>
[ 0.839778] clocksource: Switched to clocksource MIPS<\r><\n>
[ 0.850957] NET: Registered protocol family 2<\r><\n>
[ 0.860332] TCP established hash table entries: 1024 (order: 0, 4096 bytes)<\r><\n>
[ 0.874035] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)<\r><\n>
[ 0.886555] TCP: Hash tables configured (established 1024 bind 1024)<\r><\n>
[ 0.899263] UDP hash table entries: 256 (order: 0, 4096 bytes)<\r><\n>
[ 0.910735] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)<\r><\n>
[ 0.923397] NET: Registered protocol family 1<\r><\n>
[ 2.739786] random: fast init done<\r><\n>
[ 4.285496] Crashlog allocated RAM at address 0x3f00000<\r><\n>
[ 4.297539] workingset: timestamp_bits=14 max_order=14 bucket_order=0<\r><\n>
[ 4.316840] squashfs: version 4.0 (2009/01/31) Phillip Lougher<\r><\n>
[ 4.328292] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.<\r><\n>
[ 4.383580] io scheduler noop registered<\r><\n>
[ 4.391257] io scheduler deadline registered (default)<\r><\n>
[ 4.402169] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled<\r><\n>
[ 4.415517] of_serial 10000c00.uartlite: could not find pctldev for node /pinctrl/uartlite, deferring probe<\r><\n>
[ 4.435609] spi-mt7621 10000b00.spi: could not find pctldev for node /pinctrl/spi_pins, deferring probe<\r><\n>
[ 4.454665] libphy: Fixed MDIO Bus: probed<\r><\n>
[ 4.476137] rt3050-esw 10110000.esw: link changed 0x00<\r><\n>
[ 4.487071] mtk_soc_eth 10100000.ethernet: generated random MAC address 8e:7f:a3:ed:15:b6<\r><\n>
[ 4.503837] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5<\r><\n>
[ 4.521852] NET: Registered protocol family 10<\r><\n>
[ 4.534879] Segment Routing with IPv6<\r><\n>
[ 4.542145] NET: Registered protocol family 17<\r><\n>
[ 4.550875] 8021q: 802.1Q VLAN Support v1.8<\r><\n>
[ 4.559860] of_serial 10000c00.uartlite: could not find pctldev for node /pinctrl/uartlite, deferring probe<\r><\n>
[ 4.579112] spi-mt7621 10000b00.spi: could not find pctldev for node /pinctrl/spi_pins, deferring probe<\r><\n>
[ 4.599119] Warning: unable to open an initial console.<\r><\n>
[ 4.626026] Freeing unused kernel memory: 3060K<\r><\n>
[ 4.634863] This architecture does not have kernel memory protection.<\r><\n>
[ 4.662374] init: Console is alive<\r><\n>
[ 4.669191] init: - watchdog -<\r><\n>
[ 4.698780] kmodloader: loading kernel modules from /etc/modules-boot.d/*<\r><\n>
[ 4.715071] of_serial 10000c00.uartlite: could not find pctldev for node /pinctrl/uartlite, deferring probe<\r><\n>
[ 4.734407] spi-mt7621 10000b00.spi: could not find pctldev for node /pinctrl/spi_pins, deferring probe<\r><\n>
[ 4.755696] kmodloader: done loading kernel modules from /etc/modules-boot.d/*<\r><\n>
[ 4.771572] of_serial 10000c00.uartlite: could not find pctldev for node /pinctrl/uartlite, deferring probe<\r><\n>
[ 4.790923] spi-mt7621 10000b00.spi: could not find pctldev for node /pinctrl/spi_pins, deferring probe<\r><\n>
[ 4.809990] init: - preinit -<\r><\n>
[ 5.001189] rt3050-esw 10110000.esw: link changed 0x00<\r><\n>
[ 5.057016] random: procd: uninitialized urandom read (4 bytes read)<\r><\n>
[ 7.218066] procd: - early -<\r><\n>
[ 7.224653] procd: - watchdog -<\r><\n>
[ 7.772446] procd: - watchdog -<\r><\n>
[ 7.778891] procd: failed to set stdio: No such device<\r><\n>
[ 7.789186] procd: - ubus -<\r><\n>
[ 7.802215] random: ubusd: uninitialized urandom read (4 bytes read)<\r><\n>
[ 7.845364] random: ubusd: uninitialized urandom read (4 bytes read)<\r><\n>
[ 7.858471] random: ubusd: uninitialized urandom read (4 bytes read)<\r><\n>
[ 7.872125] procd: - init -<\r><\n>
[ 8.371334] kmodloader: loading kernel modules from /etc/modules.d/*<\r><\n>
[ 8.415118] ip6_tables: (C) 2000-2006 Netfilter Core Team<\r><\n>
[ 8.454006] Loading modules backported from Linux version v5.4-rc8-0-gaf42d3466bdc<\r><\n>
[ 8.468943] Backport generated by backports.git v5.4-rc8-1-0-g368e8c51<\r><\n>
[ 8.512461] ip_tables: (C) 2000-2006 Netfilter Core Team<\r><\n>
[ 8.547952] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)<\r><\n>
[ 8.683767] xt_time: kernel timezone is -0000<\r><\n>
[ 8.832668] PPP generic driver version 2.4.2<\r><\n>
[ 8.850777] NET: Registered protocol family 24<\r><\n>
[ 8.881339] mt76x0e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4<\r><\n>
[ 8.893727] mt76x0e 0000:01:00.0: ASIC revision: 76100002<\r><\n>
[ 8.930632] mt76x0e 0000:01:00.0: Firmware Version: 0.1.00<\r><\n>
[ 8.976723] urngd: v1.0.1 started.<\r><\n>
[ 9.161535] rt3050-esw 10110000.esw: link changed 0x10<\r><\n>
[ 9.188719] random: crng init done<\r><\n>
[ 9.195340] random: 6 urandom warning(s) missed due to ratelimiting<\r><\n>
[ 9.239796] mt76x0e 0000:01:00.0: driver does not support default EEPROM<\r><\n>
[ 9.253076] mt76x0e: probe of 0000:01:00.0 failed with error -22<\r><\n>
[ 9.269672] kmodloader: done loading kernel modules from /etc/modules.d/*<\r><\n>
[ 56.634682] br-lan: port 1(eth0) entered blocking state<\r><\n>
[ 56.645001] br-lan: port 1(eth0) entered disabled state<\r><\n>
[ 56.655563] device eth0 entered promiscuous mode<\r><\n>
[ 56.707457] br-lan: port 1(eth0) entered blocking state<\r><\n>
[ 56.717744] br-lan: port 1(eth0) entered forwarding state<\r><\n>
[ 56.728549] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready<\r><\n>
[ 57.620460] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready<\r><\n>
I guess these values in the dts are not quite right:
&wmac {
ralink,mtd-eeprom = <&factory 0>;
mtd-mac-address = <&userconfig 0x0160>;
};
&pcie {
status = "okay";
};
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
mtd-mac-address = <&userconfig 0x0160>;
mtd-mac-address-increment = <1>;
};
};
How did you figure out what these values are supposed to be?