1 (edited by reynard80 2018-04-05 20:59:14)

Topic: Working on support for ASUS RT-N56U B1

As I like the router, I'm trying to get OpenWrt to work on it. I've already managed to get a lot of data on the router, mainly to create the Device Tree .dts file.

However, how to enter the flash layout is not clear to me. I'm getting this output on the stock firmware:

cat /proc/mtd

mtd0: 00030000 00010000 "Bootloader"
mtd1: 00010000 00010000 "nvram"
mtd2: 00010000 00010000 "Factory"
mtd3: 00eb0000 00010000 "linux"
mtd4: 00d7a500 00010000 "rootfs"
mtd5: 00100000 00010000 "jffs2"
mtd6: 01000000 00010000 "ALL"

Does that mean that I have to create the layout like this? And how do I set the reg attributes?

&spi0 {
    status = "okay";

    mx25l12805d@0 {
        #address-cells = <1>;
        #size-cells = <1>;
        compatible = "jedec,spi-nor";
        reg = <0>;
        spi-max-frequency = <10000000>;
        m25p,chunked-io = <32>;

        partition@0 {
            label = "u-boot";
            reg = <??>;
            read-only;
        };

        partition@?{
            label = "nvram";
            reg = <??>;
            read-only;
        };

        factory: partition@?{
            label = "factory";
            reg = <??>;
            read-only;
        };

        partition@?{
            label = "kernel";
            reg = <??>;
        };

        partition@?{
            label = "rootfs";
            reg = <??>;
        };

        partition@?{
            label = "jffs2";
            reg = <??>;
        };


        partition@?{
            label = "firmware";
            reg = <??>;
        };
    };
};

2 (edited by chkdsk 2018-04-07 18:27:54)

Re: Working on support for ASUS RT-N56U B1

        partition@0 {
            reg = <0x0 0x0030000>;
            label = "u-boot";
            read-only;
        };

        partition@30000 {
            reg = <0x00030000 0x00010000>;
            label = "u-boot-env";
            read-only;
        };

        factory: partition@40000 {
            reg = <0x00040000 0x00010000>;
            label = "factory";
            read-only;
        };

        partition@50000 {
            reg = <0x00050000 0x00fb0000>;
            label = "firmware";
        };

reg = <0x00030000 0x00010000>; -> first is start address  second is size.
@50000 -> after @ usually is address.

OpenWRT doesn't split firmware partition in device tree. So You must merge all after factory to one big firmware partition.

Firmware is splitted into kernel and roofts and rootfs_data durring boot.

Re: Working on support for ASUS RT-N56U B1

Thanks, I think I managed to get this right now.

However, I can't get the device to show up in the menuconfig.

I have edited these files in /target/linux/ramips/:

  • etc/board.d/02_network

  • image/mt7621.mk

  • base-files/lib/upgrade/platform.sh

  • base-files/lib/ramips.sh

  • dts/RT-N56U-B1.dts (added new file)

The device won't show up in menuconfig however. If I'm correct, it should show up already when it's added in image/mt7621.mk?

Re: Working on support for ASUS RT-N56U B1

In openwrt folder:

rm -r ./tmp
make menuconfig

Re: Working on support for ASUS RT-N56U B1

That did help. I'd seen that remark on the wiki, but hadn't related it to my problem.

I have a running build on the device now, however, the next problem is that there's not 'Switch' menu-item in the LuCI menu. I have added the device to the 02_network file with the following config (which is the same as on the padavan firmware):

    ucidef_add_switch "switch0" \
            "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
        ;;

However, no menu shows up and the LAN interface. Did I miss something while building the firmware? Or can I still fix it without a new build (at least to test it)?

Re: Working on support for ASUS RT-N56U B1

Please paste all bootlog.

7 (edited by reynard80 2018-04-12 19:04:59)

Re: Working on support for ASUS RT-N56U B1

Here you go (if you spot any other problems than the switch problem, I'd like to hear them too):

Kernel Log

[    0.000000] Linux version 4.14.32 (maarten@xubuntu) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6666-f6e6eadc99)) #0 SMP Wed Apr 11 01:43:38 2018
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is ASUS RT-N56UB1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2} total 2
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    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] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 80573a40, node_mem_map 81003000
[    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] random: get_random_bytes called from start_kernel+0x90/0x4a4 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @8110f000 s26192 r8192 d22960 u57344
[    0.000000] pcpu-alloc: s26192 r8192 d22960 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 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=00008371
[    0.000000] Readback ErrCtl register=00008371
[    0.000000] Memory: 123636K/131072K available (4379K kernel code, 232K rwdata, 972K rodata, 228K init, 268K bss, 7436K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007789] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073944] pid_max: default: 32768 minimum: 301
[    0.078678] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085184] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.093595] Hierarchical SRCU implementation.
[    0.098445] smp: Bringing up secondary CPUs ...
[    0.104018] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.104027] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.104037] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.104169] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.163090] Synchronize counters for CPU 1: done.
[    0.193039] smp: Brought up 1 node, 2 CPUs
[    0.200324] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.210102] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.216242] pinctrl core: initialized pinctrl subsystem
[    0.221960] NET: Registered protocol family 16
[    0.227331] random: fast init done
[    0.236401] FPU Affinity set after 11720 emulations
[    0.237044] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.542210] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.547242] ***** Xtal 40MHz *****
[    0.550613] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.555720] Port 0 N_FTS = 1b102800
[    0.559164] Port 1 N_FTS = 1b102800
[    0.562624] Port 2 N_FTS = 1b102800
[    1.717312] PCIE2 no card, disable it(RST&CLK)
[    1.721655]  -> 21007f2
[    1.724075] PCIE0 enabled
[    1.726664] PCIE1 enabled
[    1.729283] PCI host bridge /pcie@1e140000 ranges:
[    1.734027]  MEM 0x0000000060000000..0x000000006fffffff
[    1.739197]   IO 0x000000001e160000..0x000000001e16ffff
[    1.744398] PCI coherence region base: 0x87c25cf0, mask/settings: 0x60000000
[    1.761810] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.767684] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.773418] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.780275] PCI host bridge to bus 0000:00
[    1.784311] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.791140] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    1.796996] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.803751] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.811639] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.811678] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.811690] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.811753] pci 0000:00:00.0: supports D1
[    1.811762] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.812044] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.812081] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.812099] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.812168] pci 0000:00:01.0: supports D1
[    1.812182] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.812467] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.820382] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.828522] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    1.828590] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.828649] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.828758] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    1.828953] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.829206] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    1.829262] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    1.829408] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    1.829598] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.829623] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[    1.829702] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    1.836234] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    1.843128] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    1.849709] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    1.856611] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    1.863362] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    1.870522] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    1.877270] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    1.884005] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    1.890760] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    1.898005] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    1.905184] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.910088] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    1.916839] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    1.924009] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    1.930756] pci 0000:00:01.0: PCI bridge to [bus 02]
[    1.935665] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    1.943727] clocksource: Switched to clocksource GIC
[    1.949987] NET: Registered protocol family 2
[    1.955036] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    1.961908] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    1.968239] TCP: Hash tables configured (established 1024 bind 1024)
[    1.974661] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.980422] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.986870] NET: Registered protocol family 1
[    1.991186] PCI: CLS 0 bytes, default 32
[    2.223683] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.229838] Crashlog allocated RAM at address 0x3f00000
[    2.235258] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.249624] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.255399] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.268727] io scheduler noop registered
[    2.272563] io scheduler deadline registered (default)
[    2.278803] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    2.286535] console [ttyS0] disabled
[    2.290080] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 14, base_baud = 3125000) is a 16550A
[    2.299118] console [ttyS0] enabled
[    2.305989] bootconsole [early0] disabled
[    2.315051] cacheinfo: Failed to find cpu0 device node
[    2.320176] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.327093] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.334472] spi-mt7621 1e000b00.spi: sys_freq: 50000000
[    2.340490] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    2.345642] 4 fixed-partitions partitions found on MTD device spi0.0
[    2.351965] Creating 4 MTD partitions on "spi0.0":
[    2.356826] 0x000000000000-0x000000030000 : "u-boot"
[    2.362847] 0x000000030000-0x000000040000 : "u-boot-env"
[    2.369172] 0x000000040000-0x000000050000 : "factory"
[    2.375259] 0x000000050000-0x000001000000 : "firmware"
[    2.419437] 2 uimage-fw partitions found on MTD device firmware
[    2.425387] 0x000000050000-0x000000214516 : "kernel"
[    2.431351] 0x000000214516-0x000001000000 : "rootfs"
[    2.437363] mtd: device 5 (rootfs) set to be root filesystem
[    2.443109] 1 squashfs-split partitions found on MTD device rootfs
[    2.449323] 0x000000480000-0x000001000000 : "rootfs_data"
[    2.456415] libphy: Fixed MDIO Bus: probed
[    2.525726] libphy: mdio: probed
[    3.928496] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    3.935123] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 16
[    3.946025] NET: Registered protocol family 10
[    3.951910] Segment Routing with IPv6
[    3.955692] NET: Registered protocol family 17
[    3.960167] 8021q: 802.1Q VLAN Support v1.8
[    3.966795] hctosys: unable to open rtc device (rtc0)
[    3.978171] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    3.985761] Freeing unused kernel memory: 228K
[    3.990195] This architecture does not have kernel memory protection.
[    4.414844] random: crng init done
[    4.700352] init: Console is alive
[    4.704018] init: - watchdog -
[    5.335629] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.455828] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.464073] init: - preinit -
[    5.799244] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[    6.368696] mtk_soc_eth 1e100000.ethernet: PPE started
[    9.578264] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    9.599377] urandom-seed: Seed file not found (/etc/urandom.seed)
[    9.680057] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[    9.694780] procd: - early -
[    9.697755] procd: - watchdog -
[   10.363869] procd: - watchdog -
[   10.367316] procd: - ubus -
[   10.458167] procd: - init -
[   10.787873] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.797760] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.139471] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   11.147486] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   11.155994] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.467652] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   11.677049] xt_time: kernel timezone is -0000
[   11.877374] bus=0x2, slot = 0x1, irq=0xff
[   11.881415] PCI: Enabling device 0000:00:01.0 (0004 -> 0006)
[   11.887230] mt7603e 0000:02:00.0: ASIC revision: 76030010
[   11.895975] mt7603e 0000:02:00.0: Firmware Version: ap_pcie
[   11.901543] mt7603e 0000:02:00.0: Build Time: 20160107100755
[   11.943744] firmware init done
[   12.120376] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   12.128874] bus=0x1, slot = 0x0, irq=0xff
[   12.132915] PCI: Enabling device 0000:00:00.0 (0004 -> 0006)
[   12.138766] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   12.163834] mt76x2e 0000:01:00.0: ROM patch already applied
[   12.268598] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   12.274161] mt76x2e 0000:01:00.0: Build: 1
[   12.278247] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[   12.303839] mt76x2e 0000:01:00.0: Firmware running!
[   12.310112] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   12.322179] PPP generic driver version 2.4.2
[   12.329525] NET: Registered protocol family 24
[   12.338217] kmodloader: done loading kernel modules from /etc/modules.d/*
[   19.992517] mtk_soc_eth 1e100000.ethernet: PPE started
[   20.001399] br-lan: port 1(eth0) entered blocking state
[   20.006692] br-lan: port 1(eth0) entered disabled state
[   20.012370] device eth0 entered promiscuous mode
[   20.019755] br-lan: port 1(eth0) entered blocking state
[   20.025026] br-lan: port 1(eth0) entered forwarding state
[   20.030714] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   20.983777] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   40.712352] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   40.719551] jffs2_build_filesystem(): unlocking the mtd device... 
[   40.719566] done.

System Log

Wed Apr 11 01:43:42 2018 kern.notice kernel: [    0.000000] Linux version 4.14.32 (maarten@xubuntu) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6666-f6e6eadc99)) #0 SMP Wed Apr 11 01:43:38 2018
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] bootconsole [early0] enabled
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] MIPS: machine is ASUS RT-N56UB1
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] Determined physical RAM map:
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000]  memory: 08000000 @ 00000000 (usable)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] Initrd not found or empty - disabling initrd
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] VPE topology {2} total 2
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] Zone ranges:
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000]   HighMem  empty
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] Movable zone start for each node
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] Early memory node ranges
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    0.000000] On node 0 totalpages: 32768
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    0.000000] free_area_init_node: node 0, pgdat 80573a40, node_mem_map 81003000
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    0.000000]   Normal zone: 256 pages used for memmap
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    0.000000]   Normal zone: 0 pages reserved
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    0.000000]   Normal zone: 32768 pages, LIFO batch:7
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    0.000000] random: get_random_bytes called from start_kernel+0x90/0x4a4 with crng_init=0
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] percpu: Embedded 14 pages/cpu @8110f000 s26192 r8192 d22960 u57344
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    0.000000] pcpu-alloc: s26192 r8192 d22960 u57344 alloc=14*4096
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    0.000000] pcpu-alloc: [0] 0 [0] 1
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] Writing ErrCtl register=00008371
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] Readback ErrCtl register=00008371
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] Memory: 123636K/131072K available (4379K kernel code, 232K rwdata, 972K rodata, 228K init, 268K bss, 7436K reserved, 0K cma-reserved, 0K highmem)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] Hierarchical RCU implementation.
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000]     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] NR_IRQS: 256
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.007789] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.073944] pid_max: default: 32768 minimum: 301
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.078678] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.085184] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.093595] Hierarchical SRCU implementation.
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.098445] smp: Bringing up secondary CPUs ...
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    0.104018] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    0.104027] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    0.104037] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.104169] CPU1 revision is: 0001992f (MIPS 1004Kc)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.163090] Synchronize counters for CPU 1: done.
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.193039] smp: Brought up 1 node, 2 CPUs
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.200324] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.210102] futex hash table entries: 512 (order: 2, 16384 bytes)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.216242] pinctrl core: initialized pinctrl subsystem
Wed Apr 11 01:43:42 2018 kern.info kernel: [    0.221960] NET: Registered protocol family 16
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    0.227331] random: fast init done
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    0.236401] FPU Affinity set after 11720 emulations
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    0.237044] pull PCIe RST: RALINK_RSTCTRL = 4000000
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    0.542210] release PCIe RST: RALINK_RSTCTRL = 7000000
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    0.547242] ***** Xtal 40MHz *****
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    0.550613] release PCIe RST: RALINK_RSTCTRL = 7000000
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    0.555720] Port 0 N_FTS = 1b102800
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    0.559164] Port 1 N_FTS = 1b102800
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    0.562624] Port 2 N_FTS = 1b102800
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    1.717312] PCIE2 no card, disable it(RST&CLK)
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    1.721655]  -> 21007f2
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    1.724075] PCIE0 enabled
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    1.726664] PCIE1 enabled
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.729283] PCI host bridge /pcie@1e140000 ranges:
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.734027]  MEM 0x0000000060000000..0x000000006fffffff
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.739197]   IO 0x000000001e160000..0x000000001e16ffff
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    1.744398] PCI coherence region base: 0x87c25cf0, mask/settings: 0x60000000
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.761810] mt7621_gpio 1e000600.gpio: registering 32 gpios
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.767684] mt7621_gpio 1e000600.gpio: registering 32 gpios
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.773418] mt7621_gpio 1e000600.gpio: registering 32 gpios
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.780275] PCI host bridge to bus 0000:00
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.784311] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.791140] pci_bus 0000:00: root bus resource [io  0xffffffff]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.796996] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.803751] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.811639] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.811678] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.811690] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.811753] pci 0000:00:00.0: supports D1
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.811762] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.812044] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.812081] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.812099] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.812168] pci 0000:00:01.0: supports D1
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.812182] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.812467] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.820382] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.828522] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.828590] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.828649] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.828758] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.828953] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.829206] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.829262] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.829408] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.829598] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.829623] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.829702] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.836234] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.843128] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.849709] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.856611] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.863362] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.870522] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.877270] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.884005] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.890760] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.898005] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.905184] pci 0000:00:00.0: PCI bridge to [bus 01]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.910088] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.916839] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.924009] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.930756] pci 0000:00:01.0: PCI bridge to [bus 02]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.935665] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.943727] clocksource: Switched to clocksource GIC
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.949987] NET: Registered protocol family 2
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.955036] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.961908] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.968239] TCP: Hash tables configured (established 1024 bind 1024)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.974661] UDP hash table entries: 256 (order: 1, 8192 bytes)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.980422] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    1.986870] NET: Registered protocol family 1
Wed Apr 11 01:43:42 2018 kern.debug kernel: [    1.991186] PCI: CLS 0 bytes, default 32
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.223683] 4 CPUs re-calibrate udelay(lpj = 2924544)
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    2.229838] Crashlog allocated RAM at address 0x3f00000
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.235258] workingset: timestamp_bits=30 max_order=15 bucket_order=0
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.249624] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.255399] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.268727] io scheduler noop registered
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.272563] io scheduler deadline registered (default)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.278803] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.286535] console [ttyS0] disabled
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.290080] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 14, base_baud = 3125000) is a 16550A
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.299118] console [ttyS0] enabled
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.305989] bootconsole [early0] disabled
Wed Apr 11 01:43:42 2018 kern.err kernel: [    2.315051] cacheinfo: Failed to find cpu0 device node
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    2.320176] cacheinfo: Unable to detect cache hierarchy for CPU 0
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    2.327093] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.334472] spi-mt7621 1e000b00.spi: sys_freq: 50000000
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.340490] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    2.345642] 4 fixed-partitions partitions found on MTD device spi0.0
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    2.351965] Creating 4 MTD partitions on "spi0.0":
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    2.356826] 0x000000000000-0x000000030000 : "u-boot"
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    2.362847] 0x000000030000-0x000000040000 : "u-boot-env"
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    2.369172] 0x000000040000-0x000000050000 : "factory"
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    2.375259] 0x000000050000-0x000001000000 : "firmware"
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    2.419437] 2 uimage-fw partitions found on MTD device firmware
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    2.425387] 0x000000050000-0x000000214516 : "kernel"
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    2.431351] 0x000000214516-0x000001000000 : "rootfs"
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    2.437363] mtd: device 5 (rootfs) set to be root filesystem
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    2.443109] 1 squashfs-split partitions found on MTD device rootfs
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    2.449323] 0x000000480000-0x000001000000 : "rootfs_data"
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.456415] libphy: Fixed MDIO Bus: probed
Wed Apr 11 01:43:42 2018 kern.info kernel: [    2.525726] libphy: mdio: probed
Wed Apr 11 01:43:42 2018 kern.info kernel: [    3.928496] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
Wed Apr 11 01:43:42 2018 kern.info kernel: [    3.935123] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 16
Wed Apr 11 01:43:42 2018 kern.info kernel: [    3.946025] NET: Registered protocol family 10
Wed Apr 11 01:43:42 2018 kern.info kernel: [    3.951910] Segment Routing with IPv6
Wed Apr 11 01:43:42 2018 kern.info kernel: [    3.955692] NET: Registered protocol family 17
Wed Apr 11 01:43:42 2018 kern.info kernel: [    3.960167] 8021q: 802.1Q VLAN Support v1.8
Wed Apr 11 01:43:42 2018 kern.info kernel: [    3.966795] hctosys: unable to open rtc device (rtc0)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    3.978171] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
Wed Apr 11 01:43:42 2018 kern.info kernel: [    3.985761] Freeing unused kernel memory: 228K
Wed Apr 11 01:43:42 2018 kern.warn kernel: [    3.990195] This architecture does not have kernel memory protection.
Wed Apr 11 01:43:42 2018 kern.notice kernel: [    4.414844] random: crng init done
Wed Apr 11 01:43:42 2018 user.info kernel: [    4.700352] init: Console is alive
Wed Apr 11 01:43:42 2018 user.info kernel: [    4.704018] init: - watchdog -
Wed Apr 11 01:43:42 2018 user.info kernel: [    5.335629] kmodloader: loading kernel modules from /etc/modules-boot.d/*
Wed Apr 11 01:43:42 2018 user.info kernel: [    5.455828] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
Wed Apr 11 01:43:42 2018 user.info kernel: [    5.464073] init: - preinit -
Wed Apr 11 01:43:42 2018 kern.info kernel: [    5.799244] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
Wed Apr 11 01:43:42 2018 kern.info kernel: [    6.368696] mtk_soc_eth 1e100000.ethernet: PPE started
Wed Apr 11 01:43:42 2018 user.notice kernel: [    9.578264] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
Wed Apr 11 01:43:42 2018 user.warn kernel: [    9.599377] urandom-seed: Seed file not found (/etc/urandom.seed)
Wed Apr 11 01:43:42 2018 kern.info kernel: [    9.680057] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
Wed Apr 11 01:43:42 2018 user.info kernel: [    9.694780] procd: - early -
Wed Apr 11 01:43:42 2018 user.info kernel: [    9.697755] procd: - watchdog -
Wed Apr 11 01:43:42 2018 user.info kernel: [   10.363869] procd: - watchdog -
Wed Apr 11 01:43:42 2018 user.info kernel: [   10.367316] procd: - ubus -
Wed Apr 11 01:43:42 2018 user.info kernel: [   10.458167] procd: - init -
Wed Apr 11 01:43:42 2018 user.info kernel: [   10.787873] kmodloader: loading kernel modules from /etc/modules.d/*
Wed Apr 11 01:43:42 2018 kern.info kernel: [   10.797760] ip6_tables: (C) 2000-2006 Netfilter Core Team
Wed Apr 11 01:43:42 2018 kern.info kernel: [   11.139471] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
Wed Apr 11 01:43:42 2018 kern.info kernel: [   11.147486] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
Wed Apr 11 01:43:42 2018 kern.info kernel: [   11.155994] ip_tables: (C) 2000-2006 Netfilter Core Team
Wed Apr 11 01:43:42 2018 kern.info kernel: [   11.467652] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
Wed Apr 11 01:43:42 2018 kern.info kernel: [   11.677049] xt_time: kernel timezone is -0000
Wed Apr 11 01:43:42 2018 kern.warn kernel: [   11.877374] bus=0x2, slot = 0x1, irq=0xff
Wed Apr 11 01:43:42 2018 kern.warn kernel: [   11.881415] PCI: Enabling device 0000:00:01.0 (0004 -> 0006)
Wed Apr 11 01:43:42 2018 kern.info kernel: [   11.887230] mt7603e 0000:02:00.0: ASIC revision: 76030010
Wed Apr 11 01:43:42 2018 kern.info kernel: [   11.895975] mt7603e 0000:02:00.0: Firmware Version: ap_pcie
Wed Apr 11 01:43:42 2018 kern.info kernel: [   11.901543] mt7603e 0000:02:00.0: Build Time: 20160107100755
Wed Apr 11 01:43:42 2018 kern.warn kernel: [   11.943744] firmware init done
Wed Apr 11 01:43:42 2018 kern.debug kernel: [   12.120376] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Wed Apr 11 01:43:42 2018 kern.warn kernel: [   12.128874] bus=0x1, slot = 0x0, irq=0xff
Wed Apr 11 01:43:42 2018 kern.warn kernel: [   12.132915] PCI: Enabling device 0000:00:00.0 (0004 -> 0006)
Wed Apr 11 01:43:42 2018 kern.info kernel: [   12.138766] mt76x2e 0000:01:00.0: ASIC revision: 76120044
Wed Apr 11 01:43:42 2018 kern.info kernel: [   12.163834] mt76x2e 0000:01:00.0: ROM patch already applied
Wed Apr 11 01:43:42 2018 kern.info kernel: [   12.268598] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
Wed Apr 11 01:43:42 2018 kern.info kernel: [   12.274161] mt76x2e 0000:01:00.0: Build: 1
Wed Apr 11 01:43:42 2018 kern.info kernel: [   12.278247] mt76x2e 0000:01:00.0: Build Time: 201507311614____
Wed Apr 11 01:43:42 2018 kern.info kernel: [   12.303839] mt76x2e 0000:01:00.0: Firmware running!
Wed Apr 11 01:43:42 2018 kern.debug kernel: [   12.310112] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
Wed Apr 11 01:43:42 2018 kern.info kernel: [   12.322179] PPP generic driver version 2.4.2
Wed Apr 11 01:43:42 2018 kern.info kernel: [   12.329525] NET: Registered protocol family 24
Wed Apr 11 01:43:42 2018 user.info kernel: [   12.338217] kmodloader: done loading kernel modules from /etc/modules.d/*
Wed Apr 11 01:43:44 2018 user.notice : Added device handler type: tunnel
Wed Apr 11 01:43:44 2018 user.notice : Added device handler type: Network device
Wed Apr 11 01:43:44 2018 user.notice : Added device handler type: bridge
Wed Apr 11 01:43:44 2018 user.notice : Added device handler type: veth
Wed Apr 11 01:43:44 2018 user.notice : Added device handler type: macvlan
Wed Apr 11 01:43:44 2018 user.notice : Added device handler type: 8021ad
Wed Apr 11 01:43:44 2018 user.notice : Added device handler type: 8021q
Wed Apr 11 01:43:44 2018 daemon.notice procd: /etc/init.d/network: 'radio0' is disabled
Wed Apr 11 01:43:44 2018 daemon.notice procd: /etc/init.d/network: 'radio1' is disabled
Wed Apr 11 01:43:44 2018 daemon.notice procd: /etc/init.d/network: 'radio0' is disabled
Wed Apr 11 01:43:44 2018 daemon.notice procd: /etc/init.d/network: 'radio1' is disabled
Wed Apr 11 01:43:45 2018 daemon.notice procd: /etc/rc.d/S50uhttpd: 4+0 records in
Wed Apr 11 01:43:45 2018 daemon.notice procd: /etc/rc.d/S50uhttpd: 4+0 records out
Wed Apr 11 01:43:46 2018 daemon.notice procd: /etc/rc.d/S50uhttpd: Generating RSA private key, 2048 bit long modulus
Wed Apr 11 01:43:47 2018 kern.info kernel: [   19.992517] mtk_soc_eth 1e100000.ethernet: PPE started
Wed Apr 11 01:43:47 2018 kern.info kernel: [   20.001399] br-lan: port 1(eth0) entered blocking state
Wed Apr 11 01:43:47 2018 kern.info kernel: [   20.006692] br-lan: port 1(eth0) entered disabled state
Wed Apr 11 01:43:47 2018 kern.info kernel: [   20.012370] device eth0 entered promiscuous mode
Wed Apr 11 01:43:47 2018 kern.info kernel: [   20.019755] br-lan: port 1(eth0) entered blocking state
Wed Apr 11 01:43:47 2018 kern.info kernel: [   20.025026] br-lan: port 1(eth0) entered forwarding state
Wed Apr 11 01:43:47 2018 kern.info kernel: [   20.030714] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
Wed Apr 11 01:43:47 2018 daemon.notice netifd: Interface 'lan' is enabled
Wed Apr 11 01:43:47 2018 daemon.notice netifd: Interface 'lan' is setting up now
Wed Apr 11 01:43:47 2018 daemon.notice netifd: Interface 'lan' is now up
Wed Apr 11 01:43:47 2018 daemon.notice netifd: Interface 'loopback' is enabled
Wed Apr 11 01:43:47 2018 daemon.notice netifd: Interface 'loopback' is setting up now
Wed Apr 11 01:43:47 2018 daemon.notice netifd: Interface 'loopback' is now up
Wed Apr 11 01:43:47 2018 daemon.notice netifd: bridge 'br-lan' link is up
Wed Apr 11 01:43:47 2018 daemon.notice netifd: Interface 'lan' has link connectivity
Wed Apr 11 01:43:47 2018 daemon.notice netifd: Network device 'eth0' link is up
Wed Apr 11 01:43:47 2018 daemon.notice netifd: Network device 'lo' link is up
Wed Apr 11 01:43:47 2018 daemon.notice netifd: Interface 'loopback' has link connectivity
Wed Apr 11 01:43:47 2018 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Wed Apr 11 01:43:48 2018 kern.info kernel: [   20.983777] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Wed Apr 11 01:43:49 2018 daemon.warn odhcpd[1025]: DHCPV6 SOLICIT IA_NA from 0001000121e6ec4df0def182fb6b on br-lan: ok fdbc:22cb:d7f5::cd9/128
Wed Apr 11 01:43:50 2018 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Wed Apr 11 01:43:50 2018 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: started, version 2.79 cachesize 150
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: DNS service limited to local subnets
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq-dhcp[1275]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: using local addresses only for domain test
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: using local addresses only for domain onion
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: using local addresses only for domain localhost
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: using local addresses only for domain local
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: using local addresses only for domain invalid
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: using local addresses only for domain bind
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: using local addresses only for domain lan
Wed Apr 11 01:43:54 2018 daemon.warn dnsmasq[1275]: no servers found in /tmp/resolv.conf.auto, will retry
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: read /etc/hosts - 4 addresses
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: read /tmp/hosts/odhcpd - 0 addresses
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq-dhcp[1275]: read /etc/ethers - 0 addresses
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: read /etc/hosts - 4 addresses
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: read /tmp/hosts/odhcpd - 0 addresses
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq[1275]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Wed Apr 11 01:43:54 2018 daemon.info dnsmasq-dhcp[1275]: read /etc/ethers - 0 addresses
Wed Apr 11 01:43:56 2018 authpriv.info dropbear[1310]: Not backgrounding
Wed Apr 11 01:43:59 2018 daemon.info dnsmasq-dhcp[1275]: DHCPDISCOVER(br-lan) f0:de:f1:82:fb:6b
Wed Apr 11 01:43:59 2018 daemon.info dnsmasq-dhcp[1275]: DHCPOFFER(br-lan) 192.168.1.155 f0:de:f1:82:fb:6b
Wed Apr 11 01:43:59 2018 daemon.info dnsmasq-dhcp[1275]: DHCPREQUEST(br-lan) 192.168.1.155 f0:de:f1:82:fb:6b
Wed Apr 11 01:43:59 2018 daemon.info dnsmasq-dhcp[1275]: DHCPACK(br-lan) 192.168.1.155 f0:de:f1:82:fb:6b LENOVO-X220
Wed Apr 11 01:43:59 2018 daemon.warn odhcpd[1025]: DHCPV6 SOLICIT IA_NA from 0001000121e6ec4df0def182fb6b on br-lan: ok fdbc:22cb:d7f5::cd9/128
Wed Apr 11 01:44:00 2018 daemon.warn odhcpd[1025]: DHCPV6 REQUEST IA_NA from 0001000121e6ec4df0def182fb6b on br-lan: ok fdbc:22cb:d7f5::cd9/128
Wed Apr 11 01:44:01 2018 daemon.info dnsmasq[1275]: read /etc/hosts - 4 addresses
Wed Apr 11 01:44:01 2018 daemon.info dnsmasq[1275]: read /tmp/hosts/odhcpd - 1 addresses
Wed Apr 11 01:44:01 2018 daemon.info dnsmasq[1275]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Wed Apr 11 01:44:01 2018 daemon.info dnsmasq-dhcp[1275]: read /etc/ethers - 0 addresses
Wed Apr 11 01:44:07 2018 daemon.notice procd: /etc/rc.d/S50uhttpd: Generating selfsigned certificate with subject 'C=ZZ,ST=Somewhere,L=Unknown,O=OpenWrteb287855,CN=OpenWrt,' and validity 20180411014346-20200410014346
Wed Apr 11 01:44:08 2018 kern.warn kernel: [   40.712352] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
Wed Apr 11 01:44:08 2018 kern.warn kernel: [   40.719551] jffs2_build_filesystem(): unlocking the mtd device...
Wed Apr 11 01:44:08 2018 kern.warn kernel: [   40.719566] done.
Wed Apr 11 01:44:35 2018 daemon.err uhttpd[1339]: luci: accepted login on / for root from 192.168.1.155
Wed Apr 11 01:45:02 2018 kern.warn kernel: [   40.727800] jffs2_build_filesystem(): erasing all blocks after the end marker...
Wed Apr 11 01:45:02 2018 kern.warn kernel: [   95.187225] done.
Wed Apr 11 01:45:02 2018 kern.notice kernel: [   95.196656] jffs2: notice: (1361) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Wed Apr 11 01:45:02 2018 daemon.info mount_root: performing overlay whiteout
Wed Apr 11 01:45:02 2018 kern.warn kernel: [   95.393228] overlayfs: upper fs does not support tmpfile.
Wed Apr 11 01:45:02 2018 daemon.info mount_root: syncronizing overlay
Wed Apr 11 01:45:02 2018 daemon.err mount_root: failed to sync jffs2 overlay
Wed Apr 11 01:45:03 2018 daemon.info procd: - init complete -
Wed Apr 11 01:45:03 2018 daemon.info urandom_seed[1435]: Seed saved (/etc/urandom.seed)

Re: Working on support for ASUS RT-N56U B1

I looked for errors durring boot.

Could You paste all diff agnist main tree?

9 (edited by reynard80 2018-04-13 13:41:38)

Re: Working on support for ASUS RT-N56U B1

Here they are. Sorry I'm pretty new to git, so I couldn't create a proper diff.

etc/board.d/02_network

...

+    rt-n56u-b1|\    
        ucidef_add_switch "switch0" \
            "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
        ;;
...

image/mt7621.mk

...

+ define Device/rt-n56u-b1
+   DTS := RT-N56U-B1
+   IMAGE_SIZE := $(ralink_default_fw_size_16M)
+   DEVICE_TITLE := ASUS RT-N56U B1
+   DEVICE_PACKAGES := kmod-mt76x2 kmod-mt7603 wpad-mini
+ endef
+ TARGET_DEVICES += rt-n56u-b1

...

base-files/lib/upgrade/platform.sh

...
 +    rt-n56u-b1|\
 ...

base-files/lib/ramips.sh

...
+    *"RT-N56U B1")
+        name="rt-n56u-b1"
+        ;;    
...

dts/RT-N56U-B1.dts (new file)

/dts-v1/;

#include "mt7621.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
    compatible = "asus,rt-n56u-b1", "mediatek,mt7621-soc";
    model = "ASUS RT-N56UB1";
    
    memory@0 {
        device_type = "memory";
        reg = <0x0 0x8000000>;
    };
    
    chosen {
        bootargs = "console=ttyS0,115200";
    };
    
    gpio-keys-polled {
        compatible = "gpio-keys-polled";
        #address-cells = <1>;
        #size-cells = <0>;
        poll-interval = <20>;

        wps {
            label = "wps";
            gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
            linux,code = <KEY_WPS_BUTTON>;
        };
    };

    gpio-leds {
        compatible = "gpio-leds";

        power {
            label = "rt-n56u-b1:blue:power";
            gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
        };

        lan {
            label = "rt-n56u-b1:blue:lan";
            gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
        };

        wan {
            label = "rt-n56u-b1:blue:wan";
            gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
        };

        usb {
            label = "rt-n56u-b1:blue:usb";
            gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
        };
    };
};

&spi0 {
    status = "okay";

    mx25l12805d@0 {
        #address-cells = <1>;
        #size-cells = <1>;
        compatible = "jedec,spi-nor";
        reg = <0>;
        spi-max-frequency = <10000000>;
        m25p,chunked-io = <32>;

        partition@0 {
            label = "u-boot";
            reg = <0x0 0x30000>;
            read-only;
        };

        partition@30000 {
            label = "u-boot-env";
            reg = <0x30000 0x10000>;
            read-only;
        };

        factory: partition@40000 {
            label = "factory";
            reg = <0x40000 0x10000>;
            read-only;
        };

        partition@50000 {
            label = "firmware";
            reg = <0x50000 0xfb0000>;
        };
    };
};

&pcie {
    status = "okay";

    pcie0 {
        mt76@0,0 {
            reg = <0x0000 0 0 0 0>;
            device_type = "pci";
            mediatek,mtd-eeprom = <&factory 0x8000>;
            ieee80211-freq-limit = <5000000 6000000>;
        };
    };

    pcie1 {
        mt76@1,0 {
            reg = <0x0000 0 0 0 0>;
            device_type = "pci";
            mediatek,mtd-eeprom = <&factory 0x0000>;
            ieee80211-freq-limit = <2400000 2500000>;
        };
    };
};

&ethernet {
    mtd-mac-address = <&factory 0xe000>;
};

&pinctrl {
    state_default: pinctrl0 {
        gpio {
            ralink,group = "wdt", "rgmii2", "jtag", "mdio";
            ralink,function = "gpio";
        };
    };
};

Re: Working on support for ASUS RT-N56U B1

Sorry to jump in here...

Could you please remove most of the devices listed in your posting?
We have already several postings in this forum like yours, listing several devices, and it is a PITA if you search for a device in the forum (e.g. rt-n13u) and every time a posting pops up that has nothing to do with this device, but is only listing it in e.g. platform.sh.

Minimizing the devices in your posting helps avoiding false findings through the forum search.

No pun intended, only my experience from searching the forum since many years.

Re: Working on support for ASUS RT-N56U B1

@reynard80

In most cases "git diff" do the work.

Do You connect to device via ssh or via serial? Is the ethernet working (LAN and WAN)?

Re: Working on support for ASUS RT-N56U B1

chkdsk wrote:

@reynard80

In most cases "git diff" do the work.

Do You connect to device via ssh or via serial? Is the ethernet working (LAN and WAN)?

I connect to the device via serial, because ssh does not work. Dropbear is running, but I cannot connect. LAN ports seem to work though, as I get an DHCP IP when I connect my laptop via cable.

I haven't tested the WAN port yet, as the WAN ethernet cable is not easily accessible. However, when I connect via wireless as a client (WWAN), the router has internet access. I can install packages via opkg. However, the internet is not routed to the LAN ports, as my laptop does not get internet access when connected to the LAN port.


tmo26 wrote:

Sorry to jump in here...

Could you please remove most of the devices listed in your posting?
We have already several postings in this forum like yours, listing several devices, and it is a PITA if you search for a device in the forum (e.g. rt-n13u) and every time a posting pops up that has nothing to do with this device, but is only listing it in e.g. platform.sh.

Minimizing the devices in your posting helps avoiding false findings through the forum search.

No pun intended, only my experience from searching the forum since many years.

Makes sense! I've edited the post.

13 (edited by chkdsk 2018-04-13 14:14:29)

Re: Working on support for ASUS RT-N56U B1

Let's start from beginning.

1. base-files/lib/ramips.sh should be untouched. OpenWRT take boardname from dts in new devices.
2. In etc/board.d/02_network and base-files/lib/upgrade/platform.sh change "rt-n56u-b1" to "asus,rt-n56u-b1".
3. Make sysupgrade -N -F
4. Let openwrt build jffs. You should see line like this:

jffs2: notice: (399) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

5. Please paste "git diff" result.

When You will have proper jffs2 system. We try fight with ethernet.

14 (edited by reynard80 2018-04-13 16:20:39)

Re: Working on support for ASUS RT-N56U B1

chkdsk wrote:

Let's start from beginning.

...
3. Make sysupgrade -N -F
4. Let openwrt build jffs. You should see line like this:

jffs2: notice: (399) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

...
When You will have proper jffs2 system. We try fight with ethernet.

Thanks for your help. I'm afraid I'm also new to linux building though, so I'm not completely sure how I should carry out steps 3 and 4? Should I configure this in 'make menuconfig'? I don't see an option for the JFFS2 filesystem there?

Re: Working on support for ASUS RT-N56U B1

reynard80 wrote:

Thanks for your help. I'm afraid I'm also new to linux building though, so I'm not completely sure how I should carry out steps 3 and 4? Should I configure this in 'make menuconfig'? I don't see an option for the JFFS2 filesystem there?

sysupgrade -n -F is command for upgrade existing openwrt image. The same result is when You apply factory image.

JFFS + SquashFS is default filesystem for this architecture. Step 4 is durring booting.
Let the device build jffs system. This is start:
Wed Apr 11 01:44:08 2018 kern.warn kernel: [   40.712352] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
Wed Apr 11 01:44:08 2018 kern.warn kernel: [   40.719551] jffs2_build_filesystem(): unlocking the mtd device...
Wed Apr 11 01:44:08 2018 kern.warn kernel: [   40.719566] done.
Wed Apr 11 01:45:02 2018 kern.warn kernel: [   40.727800] jffs2_build_filesystem(): erasing all blocks after the end marker...
Wed Apr 11 01:45:02 2018 kern.warn kernel: [   95.187225] done.


And this is end:
Wed Apr 11 01:45:02 2018 kern.notice kernel: [   95.196656] jffs2: notice: (1361) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

After that You should have mounted overlay writable filesystem.

So:
1. Build image with changes from my last post.
2. Wait until overlay is mounted.
3. Check what is working
4. Paste "git diff" and from router: bootlog, "df -h" and "ifconfig".

16 (edited by reynard80 2018-04-13 18:08:23)

Re: Working on support for ASUS RT-N56U B1

So:
1. Build image with changes from my last post.
2. Wait until overlay is mounted.
3. Check what is working
4. Paste "git diff" and from router: bootlog, "df -h" and "ifconfig".

Thanks, I changed the files as per your post. However, 'git diff' doesn't give me any output..

Also I followed the other steps, with the same results. SSH is working, but now I'm not sure anymore that it wasn't working last time. But there's no Switch menu and no connection between WAN and LAN.

log

===================================================================
                MT7621   stage1 code done
                CPU=500000000 HZ BUS=125000000 HZ
===================================================================



U-Boot 1.1.3 (Dec 18 2014 - 16:18:02)

RT-N56UB1 bootloader version: 1.0.0.0
Board: Ralink APSoC DRAM:  128 MB
ASUS RT-N56UB1 gpio init : wps / reset pin

Config XHCI 40M PLL
******************************
Software System Reset Occurred
******************************
flash manufacture id: c2, device id 20 18
find flash: MX25L12805D
raspi_read: from:30000 len:1000
Maximum malloc length: 1024 KBytes
mem_malloc_start/brk/end: 0x87eb3000/87eb5000/87fb4000
raspi_read: from:30000 len:1000
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7621_MP (MAC to MT7530 Mode)
ASIC MT7621AS (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/4
Flash component: SPI Flash
Date:Dec 18 2014  Time:16:18:02
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768
#Reset_MT7530
set LAN/WAN WLLLL

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.
   8: Load Boot Loader code to SDRAM via TFTP.
   9: Load Boot Loader code then write to Flash via TFTP.                     0

3: System Boot System code via Flash.
raspi_read: from:4018a len:4

RT-N56UB1 bootloader version: 1.0.0.0
raspi_read: from:40004 len:6
MAC Address: 70:4D:7B:10:08:68
raspi_read: from:40004 len:6

## Checking 1st firmware at bfc50000 ...
raspi_read: from:50000 len:40
   Image Name:   MIPS OpenWrt Linux-4.14.32
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1852630 Bytes =  1.8 MB
   Load Address: 80001000
   Entry Point:  80001000
raspi_read: from:50040 len:1c44d6
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Giving linux ramsize: 134217728 (128 MB)

Starting kernel ...

[    0.000000] Linux version 4.14.32 (maarten@xubuntu) (gcc version 7.3.0 (OpenW                                                                                                                                                             rt GCC 7.3.0 r6666-f6e6eadc99)) #0 SMP Wed Apr 11 01:43:38 2018
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is ASUS RT-N56UB1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2} total 2
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                                                                                                                             es
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    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+0x90/0x4a4 with                                                                                                                                                              crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @8110f000 s26192 r8192 d22960 u5734                                                                                                                                                             4
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jff                                                                                                                                                             s2
[    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=00008370
[    0.000000] Readback ErrCtl register=00008370
[    0.000000] Memory: 123636K/131072K available (4379K kernel code, 232K rwdata                                                                                                                                                             , 972K rodata, 228K init, 268K bss, 7436K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478ab                                                                                                                                                             b4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_i                                                                                                                                                             dle_ns: 4343773742 ns
[    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 48806                                                                                                                                                             45118ns
[    0.007793] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073946] pid_max: default: 32768 minimum: 301
[    0.078681] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085188] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.093618] Hierarchical SRCU implementation.
[    0.098471] smp: Bringing up secondary CPUs ...
[    0.104049] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.104058] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                                                                                                                             es
[    0.104069] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.104203] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.163121] Synchronize counters for CPU 1: done.
[    0.193073] smp: Brought up 1 node, 2 CPUs
[    0.200385] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma                                                                                                                                                             x_idle_ns: 19112604462750000 ns
[    0.210164] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.216309] pinctrl core: initialized pinctrl subsystem
[    0.222031] NET: Registered protocol family 16
[    0.227414] random: fast init done
[    0.237240] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.542407] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.547440] ***** Xtal 40MHz *****
[    0.550810] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.555918] Port 0 N_FTS = 1b105000
[    0.559362] Port 1 N_FTS = 1b105000
[    0.562822] Port 2 N_FTS = 1b102800
[    1.717510] PCIE2 no card, disable it(RST&CLK)
[    1.721853]  -> 21007f2
[    1.724272] PCIE0 enabled
[    1.726861] PCIE1 enabled
[    1.729481] PCI host bridge /pcie@1e140000 ranges:
[    1.734225]  MEM 0x0000000060000000..0x000000006fffffff
[    1.739394]   IO 0x000000001e160000..0x000000001e16ffff
[    1.744595] PCI coherence region base: 0x87c25cf0, mask/settings: 0x60000000
[    1.762162] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.768046] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.773786] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.780621] PCI host bridge to bus 0000:00
[    1.784658] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.791487] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    1.797341] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.804097] pci_bus 0000:00: No busn resource found for root bus, will use [b                                                                                                                                                             us 00-ff]
[    1.814261] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    1.820778] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    1.827709] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    1.834255] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    1.841182] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    1.847912] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref                                                                                                                                                             ]
[    1.855092] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    1.861814] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    1.868578] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    1.875307] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bi                                                                                                                                                             t]
[    1.882579] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref                                                                                                                                                             ]
[    1.889728] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.894667] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    1.901385] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref                                                                                                                                                             ]
[    1.908582] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    1.915302] pci 0000:00:01.0: PCI bridge to [bus 02]
[    1.920237] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    1.928310] clocksource: Switched to clocksource GIC
[    1.934640] NET: Registered protocol family 2
[    1.939836] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    1.946710] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    1.953038] TCP: Hash tables configured (established 1024 bind 1024)
[    1.959445] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.965206] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.971659] NET: Registered protocol family 1
[    2.208264] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.214394] Crashlog allocated RAM at address 0x3f00000
[    2.219823] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.234243] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.240016] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT                                                                                                                                                             Y) (c) 2001-2006 Red Hat, Inc.
[    2.253274] io scheduler noop registered
[    2.257110] io scheduler deadline registered (default)
[    2.263663] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    2.271486] console [ttyS0] disabled
[    2.275032] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 14, base_baud                                                                                                                                                              = 3125000) is a 16550A
[    2.284040] console [ttyS0] enabled
[    2.284040] console [ttyS0] enabled
[    2.290915] bootconsole [early0] disabled
[    2.290915] bootconsole [early0] disabled
[    2.299492] cacheinfo: Failed to find cpu0 device node
[    2.304613] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.311513] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.318954] spi-mt7621 1e000b00.spi: sys_freq: 50000000
[    2.325043] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    2.330195] 4 fixed-partitions partitions found on MTD device spi0.0
[    2.336516] Creating 4 MTD partitions on "spi0.0":
[    2.341389] 0x000000000000-0x000000030000 : "u-boot"
[    2.347428] 0x000000030000-0x000000040000 : "u-boot-env"
[    2.353763] 0x000000040000-0x000000050000 : "factory"
[    2.359855] 0x000000050000-0x000001000000 : "firmware"
[    2.403831] 2 uimage-fw partitions found on MTD device firmware
[    2.409766] 0x000000050000-0x000000214516 : "kernel"
[    2.415752] 0x000000214516-0x000001000000 : "rootfs"
[    2.421749] mtd: device 5 (rootfs) set to be root filesystem
[    2.427502] 1 squashfs-split partitions found on MTD device rootfs
[    2.433719] 0x000000480000-0x000001000000 : "rootfs_data"
[    2.440821] libphy: Fixed MDIO Bus: probed
[    2.510303] libphy: mdio: probed
[    3.913077] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    3.919713] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe                                                                                                                                                             100000, irq 16
[    3.930645] NET: Registered protocol family 10
[    3.936539] Segment Routing with IPv6
[    3.940319] NET: Registered protocol family 17
[    3.944796] 8021q: 802.1Q VLAN Support v1.8
[    3.951425] hctosys: unable to open rtc device (rtc0)
[    3.962805] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    3.970385] Freeing unused kernel memory: 228K
[    3.974818] This architecture does not have kernel memory protection.
[    4.399134] random: crng init done
[    4.685409] init: Console is alive
[    4.689150] init: - watchdog -
[    5.321349] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.441669] kmodloader: done loading kernel modules from /etc/modules-boot.d/                                                                                                                                                             *
[    5.468703] init: - preinit -
[    5.786635] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[    6.357935] mtk_soc_eth 1e100000.ethernet: PPE started
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.564426] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    9.585847] urandom-seed: Seed file not found (/etc/urandom.seed)
[    9.667664] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x8081                                                                                                                                                             8
[    9.682332] procd: - early -
[    9.685307] procd: - watchdog -
[   10.358449] procd: - watchdog -
[   10.361899] procd: - ubus -
[   10.453002] procd: - init -
Please press Enter to activate this console.
[   10.782515] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.792484] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.144159] Loading modules backported from Linux version wt-2017-11-01-0-gfe                                                                                                                                                             248fc2c180
[   11.152196] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   11.160704] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.482291] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   11.692014] xt_time: kernel timezone is -0000
[   11.902519] bus=0x2, slot = 0x1, irq=0xff
[   11.906723] mt7603e 0000:02:00.0: ASIC revision: 76030010
[   11.915512] mt7603e 0000:02:00.0: Firmware Version: ap_pcie
[   11.921133] mt7603e 0000:02:00.0: Build Time: 20160107100755
[   11.958304] firmware init done
[   12.148782] bus=0x1, slot = 0x0, irq=0xff
[   12.153017] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   12.178417] mt76x2e 0000:01:00.0: ROM patch already applied
[   12.283350] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   12.288931] mt76x2e 0000:01:00.0: Build: 1
[   12.293016] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[   12.318393] mt76x2e 0000:01:00.0: Firmware running!
[   12.336800] PPP generic driver version 2.4.2
[   12.344196] NET: Registered protocol family 24
[   12.353067] kmodloader: done loading kernel modules from /etc/modules.d/*
[   19.515175] mtk_soc_eth 1e100000.ethernet: PPE started
[   19.539524] br-lan: port 1(eth0) entered blocking state
[   19.544750] br-lan: port 1(eth0) entered disabled state
[   19.550480] device eth0 entered promiscuous mode
[   19.570484] br-lan: port 1(eth0) entered blocking state
[   19.575711] br-lan: port 1(eth0) entered forwarding state
[   19.581583] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   20.578537] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   44.122401] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   44.129515] jffs2_build_filesystem(): unlocking the mtd device...
[   44.129526] done.
[   44.137709] jffs2_build_filesystem(): erasing all blocks after the end marker                                                                                                                                                             ...
[   98.336567] done.
[   98.346009] jffs2: notice: (1361) jffs2_build_xattr_subsystem: complete build                                                                                                                                                             ing xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead,                                                                                                                                                              0 orphan) found.
[   98.602132] overlayfs: upper fs does not support tmpfile.

df -h

root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.5M      2.5M         0 100% /rom
tmpfs                    60.5M    576.0K     59.9M   1% /tmp
tmpfs                    60.5M     60.0K     60.4M   0% /tmp/root
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock6           11.5M    424.0K     11.1M   4% /overlay
overlayfs:/overlay       11.5M    424.0K     11.1M   4% /

ifconfig

root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 70:4D:7B:10:08:6C
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fd23:3be3:47a7::1/60 Scope:Global
          inet6 addr: fe80::724d:7bff:fe10:86c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3094 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3010 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:323325 (315.7 KiB)  TX bytes:918751 (897.2 KiB)

eth0      Link encap:Ethernet  HWaddr 70:4D:7B:10:08:6C
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3291 errors:0 dropped:3 overruns:0 frame:0
          TX packets:3089 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:383367 (374.3 KiB)  TX bytes:944958 (922.8 KiB)
          Interrupt:16

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:248 errors:0 dropped:0 overruns:0 frame:0
          TX packets:248 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:17788 (17.3 KiB)  TX bytes:17788 (17.3 KiB)

wlan1     Link encap:Ethernet  HWaddr 70:4D:7B:10:08:6C
          inet addr:192.168.1.240  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::724d:7bff:fe10:86c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:733 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:244977 (239.2 KiB)  TX bytes:2031 (1.9 KiB)

Re: Working on support for ASUS RT-N56U B1

Last thing:
Please paste result of: "cat /etc/config/network"

Re: Working on support for ASUS RT-N56U B1

It's below. This does not seem to be complete indeed.

config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config globals 'globals'
    option ula_prefix 'fd23:3be3:47a7::/48'

config interface 'lan'
    option type 'bridge'
    option ifname 'eth0'
    option proto 'static'
    option ipaddr '192.168.1.1'
    option netmask '255.255.255.0'
    option ip6assign '60'

Re: Working on support for ASUS RT-N56U B1

Yes. For some reason 02_network doesn't recognise Your board name. Please paste Your 02_networ change.
And second question:
How You change firmware? Via bootloader or via sysupgrade?

Re: Working on support for ASUS RT-N56U B1

Initially, I changed the firmware from stock to OpenWrt via TFTP in the bootloader (soldered pins to the serial pads on the board).

I changed the 02_network as you said:

...

+    asus,rt-n56u-b1|\
      [other devices]|\
        ucidef_add_switch "switch0" \
            "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
        ;;
...