redchenjs / mt762x-wm8960

MT762X WM8960 ALSA SoC machine driver
GNU General Public License v2.0
27 stars 22 forks source link

有时候会找不到声卡 #12

Closed guoai2015 closed 1 year ago

guoai2015 commented 2 years ago

按照示例的配置,已经可以播放声音,但是有时候启动起来会找不到声卡,日志里会报:mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517

dts内容:

#include "mt7620a.dtsi"

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

/ {
    compatible = "egb,egb-v20", "ralink,mt7620a-soc";
    model = "EGB-V20";

    aliases {
        led-boot = &led_sys;
        led-failsafe = &led_sys;
        led-running = &led_sys;
        led-upgrade = &led_sys;
        label-mac-device = &ethernet;
    };

    chosen {
        /* bootargs = "console=disable"; */
        bootargs = "console=ttyS1,57600";
    };

    leds {
        compatible = "gpio-leds";

        led_sys: sys {
            label = "blue:sys";
            gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
        };

        4g {
            label = "blue:4g";
            gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
        };

        ac220-1 {
            label = "blue:ac220-1";
            gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
        };

        ac220-2 {
            label = "blue:ac220-2";
            gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
        };
    };

    keys {
        compatible = "gpio-keys";

        reset {
            label = "reset";
            gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
            linux,code = <KEY_RESTART>;
        };
    };

    gpio_export {
        compatible = "gpio-export";
        #size-cells = <0>;

        kr_ch0 {
            gpio-export,name = "kr_ch0";
            gpio-export,output = <1>;
            gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;
        };
        kr_ch1 {
            gpio-export,name = "kr_ch1";
            gpio-export,output = <1>;
            gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
        };
    };

    sound {
        compatible = "mediatek,mt762x-wm8960-machine";
        mediatek,platform = <&i2s>;
        mediatek,audio-codec = <&codec>;
        audio-routing =
            "Ext Spk", "SPK_RN",
            "Ext Spk", "SPK_RP",
            "Mic", "MICB",
            "LINPUT1", "Mic",
            "LINPUT2", "Line In",
            "RINPUT1", "Line In";
    };
};

&uart {
    pinctrl-names = "default";
    pinctrl-0 = <&i2s_uartf_pins>;

    status = "okay";
};

&gpio1 {
    status = "okay";
};

&gpio2 {
    status = "okay";
};

&gpio3 {
    status = "okay";
};

&i2c {
    status = "okay";

    codec: wm8960@1a {
        compatible = "wlf,wm8960";
        reg = <0x1a>;
        wlf,shared-lrclk;
        wlf,adclrc-as-gpio;
    };
};

&i2s {
    status = "okay";
};

&gdma {
    status = "okay";
};

&spi0 {
    status = "okay";

    flash@0 {
        compatible = "jedec,spi-nor";
        reg = <0>;
        spi-max-frequency = <10000000>;

        partitions {
            compatible = "fixed-partitions";
            #address-cells = <1>;
            #size-cells = <1>;

            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 {
                compatible = "denx,uimage";
                label = "firmware";
                reg = <0x50000 0xfb0000>;
            };
        };
    };
};

&spi1 {
    status = "okay";
};

&ehci {
    status = "okay";
};

&ohci {
    status = "okay";
};

&sdhci {
    status = "okay";
};

&pcie {
    status = "okay";
};

&ethernet {
    pinctrl-names = "default";
    pinctrl-0 = <&ephy_pins>;

    mtd-mac-address = <&factory 0x4>;

    mediatek,portmap = "wllll";
};

&gsw {
    ralink,port4 = "ephy";
};

&wmac {
    ralink,mtd-eeprom = <&factory 0x0>;
};

&state_default {
    gpio {
        groups = "mdio", "rgmii1", "rgmii2", "wdt";
        function = "gpio";
    };
    wled {
        groups = "wled";
        function = "wled";
    };
};

&pinctrl {
    i2s_uartf_pins: uartf_i2s {
        uartf_i2s {
            groups = "uartf";
            function = "i2s uartf";
        };
    };
};

系统日志:

Thu Aug 25 11:31:16 2022 kern.notice kernel: [    0.000000] Linux version 5.4.188 (wooya@hi-wooya) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16554-1d4dea6d4f)) #0 Sat Apr 16 12:59:34 2022
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Board has DDR2
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Analog PMU set to hw control
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Digital PMU set to hw control
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] printk: bootconsole [early0] enabled
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] MIPS: machine is EGB-V20
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Initrd not found or empty - disabling initrd
Thu Aug 25 11:31:16 2022 kern.warn kernel: [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Thu Aug 25 11:31:16 2022 kern.warn kernel: [    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Zone ranges:
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Movable zone start for each node
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Early memory node ranges
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
Thu Aug 25 11:31:16 2022 kern.debug kernel: [    0.000000] On node 0 totalpages: 32768
Thu Aug 25 11:31:16 2022 kern.debug kernel: [    0.000000]   Normal zone: 288 pages used for memmap
Thu Aug 25 11:31:16 2022 kern.debug kernel: [    0.000000]   Normal zone: 0 pages reserved
Thu Aug 25 11:31:16 2022 kern.debug kernel: [    0.000000]   Normal zone: 32768 pages, LIFO batch:7
Thu Aug 25 11:31:16 2022 kern.debug kernel: [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Thu Aug 25 11:31:16 2022 kern.debug kernel: [    0.000000] pcpu-alloc: [0] 0
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    0.000000] Kernel command line: console=ttyS1,57600 rootfstype=squashfs,jffs2
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Writing ErrCtl register=0007fb30
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Readback ErrCtl register=0007fb30
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] Memory: 122220K/131072K available (4793K kernel code, 206K rwdata, 1056K rodata, 1232K init, 205K bss, 8852K reserved, 0K cma-reserved)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] NR_IRQS: 256
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    0.000000] random: get_random_bytes called from start_kernel+0x358/0x54c with crng_init=0
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] CPU Clock: 580MHz
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] systick: enable autosleep mode
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] systick: running - mult: 214748, shift: 32
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.000009] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.015492] Calibrating delay loop... 385.02 BogoMIPS (lpj=770048)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.059585] pid_max: default: 32768 minimum: 301
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.068972] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.083374] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.105991] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.125293] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.138899] pinctrl core: initialized pinctrl subsystem
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.149795] NET: Registered protocol family 16
Thu Aug 25 11:31:16 2022 kern.err kernel: [    0.423600] mt7620-pci 10140000.pcie: PCIE0 no card, disable it(RST&CLK)
Thu Aug 25 11:31:16 2022 kern.warn kernel: [    0.436833] mt7620-pci: probe of 10140000.pcie failed with error -1
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.474388] rt2880_gpio 10000600.gpio: registering 24 gpios
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.485436] rt2880_gpio 10000600.gpio: registering 24 irq handlers
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.498041] rt2880_gpio 10000638.gpio: registering 16 gpios
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.509059] rt2880_gpio 10000638.gpio: registering 16 irq handlers
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.521650] rt2880_gpio 10000660.gpio: registering 32 gpios
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.532662] rt2880_gpio 10000660.gpio: registering 32 irq handlers
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.545294] rt2880_gpio 10000688.gpio: registering 1 gpios
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.556136] rt2880_gpio 10000688.gpio: registering 1 irq handlers
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.574311] clocksource: Switched to clocksource systick
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.586183] NET: Registered protocol family 2
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.594988] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.610043] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.626610] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.641773] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.655792] TCP: Hash tables configured (established 1024 bind 1024)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.668573] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.681479] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.695595] NET: Registered protocol family 1
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.704182] PCI: CLS 0 bytes, default 32
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.714891] rt-timer 10000100.timer: maximum frequency is 1220Hz
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.729111] workingset: timestamp_bits=14 max_order=15 bucket_order=1
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.750517] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.762005] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.800011] gpio-export gpio_export: 2 gpio(s) exported
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.810629] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.824325] 10000500.uart: ttyS0 at MMIO 0x10000500 (irq = 13, base_baud = 2500000) is a Palmchip BK-3103
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.844198] 10000c00.uartlite: ttyS1 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.863892] printk: console [ttyS1] enabled
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.880416] printk: bootconsole [early0] disabled
Thu Aug 25 11:31:16 2022 kern.warn kernel: [    0.907304] spi spi0.0: force spi mode3
Thu Aug 25 11:31:16 2022 kern.info kernel: [    0.925235] spi-nor spi0.0: w25q128 (16384 Kbytes)
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    0.934862] 4 fixed-partitions partitions found on MTD device spi0.0
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    0.947528] Creating 4 MTD partitions on "spi0.0":
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    0.957088] 0x000000000000-0x000000030000 : "u-boot"
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    0.968088] 0x000000030000-0x000000040000 : "u-boot-env"
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    0.979775] 0x000000040000-0x000000050000 : "factory"
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    0.991031] 0x000000050000-0x000001000000 : "firmware"
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    1.005615] 2 uimage-fw partitions found on MTD device firmware
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    1.017494] Creating 2 MTD partitions on "firmware":
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    1.027409] 0x000000000000-0x0000001ed32a : "kernel"
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    1.038477] 0x0000001ed32a-0x000000fb0000 : "rootfs"
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    1.049345] mtd: device 5 (rootfs) set to be root filesystem
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    1.062625] 1 squashfs-split partitions found on MTD device rootfs
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    1.075018] 0x000000711000-0x000000fb0000 : "rootfs_data"
Thu Aug 25 11:31:16 2022 kern.info kernel: [    1.099049] gsw: setting port4 to ephy mode
Thu Aug 25 11:31:16 2022 kern.info kernel: [    1.107467] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 2 link up (100Mbps/Full duplex)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    1.126208] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
Thu Aug 25 11:31:16 2022 kern.info kernel: [    1.138827] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
Thu Aug 25 11:31:16 2022 kern.info kernel: [    1.155887] rt2880_wdt 10000120.watchdog: Initialized
Thu Aug 25 11:31:16 2022 kern.info kernel: [    1.167570] NET: Registered protocol family 10
Thu Aug 25 11:31:16 2022 kern.info kernel: [    1.180761] Segment Routing with IPv6
Thu Aug 25 11:31:16 2022 kern.info kernel: [    1.188287] NET: Registered protocol family 17
Thu Aug 25 11:31:16 2022 kern.info kernel: [    1.197227] 8021q: 802.1Q VLAN Support v1.8
Thu Aug 25 11:31:16 2022 kern.info kernel: [    1.218204] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
Thu Aug 25 11:31:16 2022 kern.info kernel: [    1.239350] Freeing unused kernel memory: 1232K
Thu Aug 25 11:31:16 2022 kern.warn kernel: [    1.248398] This architecture does not have kernel memory protection.
Thu Aug 25 11:31:16 2022 kern.info kernel: [    1.261232] Run /sbin/init as init process
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    1.554316] random: fast init done
Thu Aug 25 11:31:16 2022 user.info kernel: [    2.758812] init: Console is alive
Thu Aug 25 11:31:16 2022 user.info kernel: [    2.765954] init: - watchdog -
Thu Aug 25 11:31:16 2022 user.info kernel: [    7.107861] kmodloader: loading kernel modules from /etc/modules-boot.d/*
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.568205] usbcore: registered new interface driver usbfs
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.579334] usbcore: registered new interface driver hub
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.590063] usbcore: registered new device driver usb
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.639581] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    7.662005] SCSI subsystem initialized
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.675669] ehci-fsl: Freescale EHCI Host controller driver
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.689128] ehci-platform: EHCI generic platform driver
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.710020] phy phy-usbphy.0: remote usb device wakeup disabled
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.721840] phy phy-usbphy.0: UTMI 16bit 30MHz
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.730705] ehci-platform 101c0000.ehci: EHCI Host Controller
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.742203] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.758129] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.775895] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.789456] hub 1-0:1.0: USB hub found
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.797483] hub 1-0:1.0: 1 port detected
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.811413] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.825689] ohci-platform: OHCI generic platform driver
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.836534] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.850148] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.866078] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.903166] hub 2-0:1.0: USB hub found
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.911176] hub 2-0:1.0: 1 port detected
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.923087] uhci_hcd: USB Universal Host Controller Interface driver
Thu Aug 25 11:31:16 2022 kern.info kernel: [    7.965432] usbcore: registered new interface driver usb-storage
Thu Aug 25 11:31:16 2022 user.info kernel: [    7.982352] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
Thu Aug 25 11:31:16 2022 user.info kernel: [    8.001984] init: - preinit -
Thu Aug 25 11:31:16 2022 kern.info kernel: [    8.051012] usb 1-1: new high-speed USB device number 2 using ehci-platform
Thu Aug 25 11:31:16 2022 kern.info kernel: [    8.146520] mmc0: new high speed SDHC card at address b36d
Thu Aug 25 11:31:16 2022 kern.info kernel: [    8.801941] mmcblk0: mmc0:b36d CBADS 29.3 GiB
Thu Aug 25 11:31:16 2022 kern.info kernel: [    8.813669]  mmcblk0: p1
Thu Aug 25 11:31:16 2022 kern.info kernel: [    9.058938] hub 1-1:1.0: USB hub found
Thu Aug 25 11:31:16 2022 kern.info kernel: [    9.266605] hub 1-1:1.0: 7 ports detected
Thu Aug 25 11:31:16 2022 kern.notice kernel: [    9.476069] random: procd: uninitialized urandom read (4 bytes read)
Thu Aug 25 11:31:16 2022 kern.info kernel: [    9.731878] usb 1-1.3: new full-speed USB device number 3 using ehci-platform
Thu Aug 25 11:31:16 2022 kern.info kernel: [   10.071327] usb 1-1.4: new full-speed USB device number 4 using ehci-platform
Thu Aug 25 11:31:16 2022 kern.notice kernel: [   10.287895] random: jshn: uninitialized urandom read (4 bytes read)
Thu Aug 25 11:31:16 2022 kern.notice kernel: [   10.391628] random: jshn: uninitialized urandom read (4 bytes read)
Thu Aug 25 11:31:16 2022 kern.info kernel: [   10.639240] usb 1-1.2: new high-speed USB device number 5 using ehci-platform
Thu Aug 25 11:31:16 2022 kern.notice kernel: [   10.693399] random: jshn: uninitialized urandom read (4 bytes read)
Thu Aug 25 11:31:16 2022 kern.notice kernel: [   10.758300] random: jshn: uninitialized urandom read (4 bytes read)
Thu Aug 25 11:31:16 2022 kern.notice kernel: [   10.856874] random: jshn: uninitialized urandom read (4 bytes read)
Thu Aug 25 11:31:16 2022 kern.info kernel: [   11.594491] 8021q: adding VLAN 0 to HW filter on device eth0
Thu Aug 25 11:31:16 2022 user.info kernel: [   13.267334] mount_root: loading kmods from internal overlay
Thu Aug 25 11:31:16 2022 user.info kernel: [   13.327835] kmodloader: loading kernel modules from //etc/modules-boot.d/*
Thu Aug 25 11:31:16 2022 user.info kernel: [   13.343389] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
Thu Aug 25 11:31:16 2022 kern.notice kernel: [   15.268312] jffs2: notice: (554) jffs2_build_xattr_subsystem: complete building xattr subsystem, 17 of xdatum (7 unchecked, 10 orphan) and 18 of xref (10 dead, 0 orphan) found.
Thu Aug 25 11:31:16 2022 user.info kernel: [   15.300814] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Thu Aug 25 11:31:16 2022 user.info kernel: [   15.327159] block: extroot: not configured
Thu Aug 25 11:31:16 2022 kern.notice kernel: [   16.565791] jffs2: notice: (552) jffs2_build_xattr_subsystem: complete building xattr subsystem, 17 of xdatum (7 unchecked, 10 orphan) and 18 of xref (10 dead, 0 orphan) found.
Thu Aug 25 11:31:16 2022 user.info kernel: [   17.290741] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Thu Aug 25 11:31:16 2022 user.info kernel: [   17.315232] block: extroot: not configured
Thu Aug 25 11:31:16 2022 user.info kernel: [   17.325069] mount_root: switching to jffs2 overlay
Thu Aug 25 11:31:16 2022 kern.warn kernel: [   17.339929] overlayfs: upper fs does not support tmpfile.
Thu Aug 25 11:31:16 2022 user.warn kernel: [   17.358744] urandom-seed: Seeding with /etc/urandom.seed
Thu Aug 25 11:31:16 2022 user.info kernel: [   17.670360] procd: - early -
Thu Aug 25 11:31:16 2022 user.info kernel: [   17.677410] procd: - watchdog -
Thu Aug 25 11:31:16 2022 user.info kernel: [   18.418669] procd: - watchdog -
Thu Aug 25 11:31:16 2022 user.info kernel: [   18.605012] procd: - ubus -
Thu Aug 25 11:31:16 2022 kern.warn kernel: [   18.943876] urandom_read: 2 callbacks suppressed
Thu Aug 25 11:31:16 2022 kern.notice kernel: [   18.943886] random: ubusd: uninitialized urandom read (4 bytes read)
Thu Aug 25 11:31:16 2022 kern.notice kernel: [   19.005158] random: ubusd: uninitialized urandom read (4 bytes read)
Thu Aug 25 11:31:16 2022 user.info kernel: [   19.032820] procd: - init -
Thu Aug 25 11:31:16 2022 user.info kernel: [   20.817280] kmodloader: loading kernel modules from /etc/modules.d/*
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.018869] i2c /dev entries driver
Thu Aug 25 11:31:16 2022 kern.warn kernel: [   21.038521] ralink_gdma: module is from the staging directory, the quality is unknown, you have been warned.
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.080905] gdma-rt2880 10002800.gdma: revision: 3, channels: 16
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.157311] i2c-ralink 10000900.i2c: clock 100KHz, re-start support
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.189986] ralink-i2s 10000a00.i2s: mclk 40MHz
Thu Aug 25 11:31:16 2022 kern.err kernel: [   21.232722] wm8960 0-001a: Failed to issue reset
Thu Aug 25 11:31:16 2022 kern.err kernel: [   21.254639] mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517
Thu Aug 25 11:31:16 2022 kern.err kernel: [   21.268955] mt762x-wm8960 sound: mt762x_wm8960_machine_probe snd_soc_register_card fail -517
Thu Aug 25 11:31:16 2022 user.err kernel: [   21.317408] urngd: jent-rng init failed, err: 2
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.332082] usbcore: registered new interface driver cdc_wdm
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.346748] Loading modules backported from Linux version v5.10.110-0-g3238bffaf992
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.362106] Backport generated by backports.git v5.10.110-1-0-g1fbde860
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.414633] usbcore: registered new interface driver usbserial_generic
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.427827] usbserial: USB Serial support registered for generic
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.457028] xt_time: kernel timezone is -0000
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.470248] usbcore: registered new interface driver cdc_ncm
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.518069] usbcore: registered new interface driver cp210x
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.529358] usbserial: USB Serial support registered for cp210x
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.541363] cp210x 1-1.3:1.0: cp210x converter detected
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.558161] usb 1-1.3: cp210x converter now attached to ttyUSB0
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.570325] cp210x 1-1.4:1.0: cp210x converter detected
Thu Aug 25 11:31:16 2022 kern.err kernel: [   21.581558] mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517
Thu Aug 25 11:31:16 2022 kern.err kernel: [   21.595861] mt762x-wm8960 sound: mt762x_wm8960_machine_probe snd_soc_register_card fail -517
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.643543] usb 1-1.4: cp210x converter now attached to ttyUSB1
Thu Aug 25 11:31:16 2022 kern.err kernel: [   21.663982] mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517
Thu Aug 25 11:31:16 2022 kern.err kernel: [   21.678262] mt762x-wm8960 sound: mt762x_wm8960_machine_probe snd_soc_register_card fail -517
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.838519] PPP generic driver version 2.4.2
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.859292] NET: Registered protocol family 24
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.888019] qmi_wwan 1-1.2:1.4: cdc-wdm0: USB WDM device
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.898687] qmi_wwan 1-1.2:1.4: Quectel EC25&EC21&EG91&EG95&EG06&EP06&EM06&BG96&AG35 work on RawIP mode
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.948841] qmi_wwan 1-1.2:1.4 wwan0: register 'qmi_wwan' at usb-101c0000.ehci-1.2, WWAN/QMI device, 22:4e:a8:9c:21:4b
Thu Aug 25 11:31:16 2022 kern.info kernel: [   21.970494] usbcore: registered new interface driver qmi_wwan
Thu Aug 25 11:31:16 2022 kern.err kernel: [   21.984429] mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517
Thu Aug 25 11:31:16 2022 kern.err kernel: [   21.998724] mt762x-wm8960 sound: mt762x_wm8960_machine_probe snd_soc_register_card fail -517
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.137201] usbcore: registered new interface driver cdc_mbim
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.154219] usbcore: registered new interface driver option
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.165513] usbserial: USB Serial support registered for GSM modem (1-port)
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.180293] option 1-1.2:1.0: GSM modem (1-port) converter detected
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.193131] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.207273] option 1-1.2:1.1: GSM modem (1-port) converter detected
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.220160] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.234313] option 1-1.2:1.2: GSM modem (1-port) converter detected
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.247179] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB4
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.261336] option 1-1.2:1.3: GSM modem (1-port) converter detected
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.274206] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB5
Thu Aug 25 11:31:16 2022 kern.err kernel: [   22.293438] mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517
Thu Aug 25 11:31:16 2022 kern.err kernel: [   22.307730] mt762x-wm8960 sound: mt762x_wm8960_machine_probe snd_soc_register_card fail -517
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.593773] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "factory"
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.608267] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
Thu Aug 25 11:31:16 2022 kern.info kernel: [   22.623745] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
Thu Aug 25 11:31:16 2022 kern.debug kernel: [   22.637591] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Thu Aug 25 11:31:16 2022 kern.err kernel: [   22.640731] mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517
Thu Aug 25 11:31:16 2022 kern.err kernel: [   22.655040] mt762x-wm8960 sound: mt762x_wm8960_machine_probe snd_soc_register_card fail -517
Thu Aug 25 11:31:16 2022 user.info kernel: [   22.677698] kmodloader: done loading kernel modules from /etc/modules.d/*
Thu Aug 25 11:31:19 2022 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Thu Aug 25 11:31:19 2022 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: Connected to system UBus
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: started, version 2.85 cachesize 150
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: DNS service limited to local subnets
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: UBus support enabled: connected to system bus
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain test
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain onion
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain localhost
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain local
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain invalid
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain bind
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain lan
Thu Aug 25 11:31:20 2022 daemon.warn dnsmasq[1364]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: read /etc/hosts - 4 addresses
Thu Aug 25 11:31:20 2022 daemon.info dnsmasq[1364]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Thu Aug 25 11:31:22 2022 kern.notice kernel: [   29.469681] crng init done
Thu Aug 25 11:31:22 2022 authpriv.info dropbear[1426]: Not backgrounding
Thu Aug 25 11:31:26 2022 daemon.notice wpa_supplicant[1525]: Successfully initialized wpa_supplicant
Thu Aug 25 11:31:26 2022 user.notice : Added device handler type: bonding
Thu Aug 25 11:31:26 2022 user.notice : Added device handler type: 8021ad
Thu Aug 25 11:31:26 2022 user.notice : Added device handler type: 8021q
Thu Aug 25 11:31:26 2022 user.notice : Added device handler type: macvlan
Thu Aug 25 11:31:26 2022 user.notice : Added device handler type: veth
Thu Aug 25 11:31:26 2022 user.notice : Added device handler type: bridge
Thu Aug 25 11:31:26 2022 user.notice : Added device handler type: Network device
Thu Aug 25 11:31:26 2022 user.notice : Added device handler type: tunnel
Thu Aug 25 11:31:30 2022 daemon.notice procd: /etc/rc.d/S50uhttpd: 4+0 records in
Thu Aug 25 11:31:30 2022 daemon.notice procd: /etc/rc.d/S50uhttpd: 4+0 records out
Thu Aug 25 11:31:31 2022 user.notice ucitrack: Setting up /etc/config/network reload dependency on /etc/config/dhcp
Thu Aug 25 11:31:31 2022 user.notice ucitrack: Setting up /etc/config/wireless reload dependency on /etc/config/network
Thu Aug 25 11:31:32 2022 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/luci-splash
Thu Aug 25 11:31:32 2022 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/qos
Thu Aug 25 11:31:32 2022 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/miniupnpd
Thu Aug 25 11:31:32 2022 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/odhcpd
Thu Aug 25 11:31:33 2022 user.notice ucitrack: Setting up non-init /etc/config/fstab reload handler: /sbin/block mount
Thu Aug 25 11:31:33 2022 user.notice ucitrack: Setting up /etc/config/system reload trigger for non-procd /etc/init.d/led
Thu Aug 25 11:31:33 2022 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/luci_statistics
Thu Aug 25 11:31:33 2022 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/dhcp
Thu Aug 25 11:31:35 2022 daemon.notice procd: /etc/rc.d/S96led: setting up led 4g
Thu Aug 25 11:31:35 2022 kern.info kernel: [   42.450860] 8021q: adding VLAN 0 to HW filter on device eth0
Thu Aug 25 11:31:35 2022 kern.info kernel: [   42.503364] br-lan: port 1(eth0.1) entered blocking state
Thu Aug 25 11:31:35 2022 kern.info kernel: [   42.514222] br-lan: port 1(eth0.1) entered disabled state
Thu Aug 25 11:31:35 2022 kern.info kernel: [   42.525414] device eth0.1 entered promiscuous mode
Thu Aug 25 11:31:35 2022 kern.info kernel: [   42.535024] device eth0 entered promiscuous mode
Thu Aug 25 11:31:35 2022 kern.info kernel: [   42.670768] br-lan: port 1(eth0.1) entered blocking state
Thu Aug 25 11:31:35 2022 kern.info kernel: [   42.681614] br-lan: port 1(eth0.1) entered forwarding state
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'lan' is enabled
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'lan' is setting up now
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'lan' is now up
Thu Aug 25 11:31:35 2022 daemon.notice netifd: bridge 'br-lan' link is up
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'lan' has link connectivity
Thu Aug 25 11:31:35 2022 daemon.notice procd: /etc/rc.d/S97fournet: start fournet
Thu Aug 25 11:31:35 2022 daemon.notice netifd: VLAN 'eth0.1' link is up
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface '4g' is enabled
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'loopback' is enabled
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'loopback' is setting up now
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'loopback' is now up
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'wan' is enabled
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'wan6' is enabled
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Network device 'eth0' link is up
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Network device 'wwan0' link is up
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface '4g' has link connectivity
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface '4g' is setting up now
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Network device 'lo' link is up
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'loopback' has link connectivity
Thu Aug 25 11:31:35 2022 daemon.notice netifd: VLAN 'eth0.2' link is up
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'wan' has link connectivity
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'wan' is setting up now
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'wan6' has link connectivity
Thu Aug 25 11:31:35 2022 daemon.notice netifd: Interface 'wan6' is setting up now
Thu Aug 25 11:31:36 2022 kern.info kernel: [   43.491489] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Thu Aug 25 11:31:36 2022 daemon.err odhcpd[1642]: Failed to send to ff02::1%lan@br-lan (Address not available)
Thu Aug 25 11:31:37 2022 daemon.notice netifd: 4g (2211): udhcpc: started, v1.33.2
Thu Aug 25 11:31:37 2022 daemon.notice netifd: wan (2214): udhcpc: started, v1.33.2
Thu Aug 25 11:31:37 2022 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Thu Aug 25 11:31:37 2022 kern.err kernel: [   44.857493] qmi_wwan 1-1.2:1.4 wwan0: Cannot change a running device
Thu Aug 25 11:31:37 2022 daemon.notice netifd: Network device 'wwan0' link is down
Thu Aug 25 11:31:37 2022 daemon.notice netifd: Interface '4g' has link connectivity loss
Thu Aug 25 11:31:38 2022 daemon.notice netifd: Network device 'wwan0' link is up
Thu Aug 25 11:31:38 2022 daemon.notice netifd: Interface '4g' has link connectivity
Thu Aug 25 11:31:38 2022 daemon.notice netifd: wan (2214): udhcpc: sending discover
Thu Aug 25 11:31:38 2022 daemon.notice netifd: 4g (2211): udhcpc: sending discover
Thu Aug 25 11:31:38 2022 daemon.notice netifd: 4g (2211): udhcpc: received SIGTERM
Thu Aug 25 11:31:38 2022 daemon.notice netifd: 4g (2211): udhcpc: entering released state
Thu Aug 25 11:31:39 2022 daemon.notice netifd: 4g (2211): Command failed: Permission denied
Thu Aug 25 11:31:39 2022 daemon.notice netifd: Interface '4g' is now down
Thu Aug 25 11:31:39 2022 daemon.notice netifd: Interface '4g' is disabled
Thu Aug 25 11:31:39 2022 daemon.notice netifd: Interface '4g' is enabled
Thu Aug 25 11:31:39 2022 daemon.notice netifd: Interface '4g' is setting up now
Thu Aug 25 11:31:39 2022 daemon.notice netifd: 4g (2465): udhcpc: started, v1.33.2
Thu Aug 25 11:31:40 2022 daemon.notice netifd: 4g (2465): udhcpc: sending discover
Thu Aug 25 11:31:40 2022 daemon.notice netifd: 4g (2465): udhcpc: sending select for 10.57.166.167
Thu Aug 25 11:31:40 2022 daemon.notice netifd: 4g (2465): udhcpc: lease of 10.57.166.167 obtained, lease time 7200
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: read /etc/hosts - 4 addresses
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: read /tmp/hosts/dhcp.cfg01411c.2179 - 0 addresses
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: read /tmp/hosts/odhcpd - 0 addresses
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Thu Aug 25 11:31:41 2022 daemon.notice netifd: Interface '4g' is now up
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: reading /tmp/resolv.conf.d/resolv.conf.auto
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain test
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain onion
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain localhost
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain local
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain invalid
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain bind
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: using only locally-known addresses for domain lan
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: using nameserver 211.136.17.107#53
Thu Aug 25 11:31:41 2022 daemon.info dnsmasq[1364]: using nameserver 211.136.20.203#53
Thu Aug 25 11:31:41 2022 daemon.notice netifd: wan (2214): udhcpc: sending discover
Thu Aug 25 11:31:41 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Thu Aug 25 11:31:43 2022 kern.info kernel: [   48.692494] ieee80211 phy0: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration start
Thu Aug 25 11:31:43 2022 kern.info kernel: [   48.709212] ieee80211 phy0: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration end
Thu Aug 25 11:31:43 2022 daemon.info dnsmasq[1364]: read /etc/hosts - 4 addresses
Thu Aug 25 11:31:43 2022 daemon.info dnsmasq[1364]: read /tmp/hosts/dhcp.cfg01411c.2179 - 0 addresses
Thu Aug 25 11:31:43 2022 daemon.info dnsmasq[1364]: read /tmp/hosts/odhcpd - 1 addresses
Thu Aug 25 11:31:43 2022 daemon.info dnsmasq[1364]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Thu Aug 25 11:31:43 2022 daemon.info procd: - init complete -
Thu Aug 25 11:31:43 2022 user.notice firewall: Reloading firewall due to ifup of 4g (wwan0)
Thu Aug 25 11:31:44 2022 daemon.notice netifd: wan (2214): udhcpc: sending discover
Thu Aug 25 11:31:44 2022 kern.info kernel: [   51.442258] ieee80211 phy0: rt2800_loft_iq_calibration: Info - LOFT Calibration Done!
Thu Aug 25 11:31:44 2022 kern.info kernel: [   51.461857] ieee80211 phy0: rt2800_iq_search: Info - IQCalibration Start!
Thu Aug 25 11:31:44 2022 kern.info kernel: [   51.489331] ieee80211 phy0: rt2800_iq_search: Info - IQCalibration Done! CH = 0, (gain= f, phase=3b)
Thu Aug 25 11:31:44 2022 kern.info kernel: [   51.508447] ieee80211 phy0: rt2800_iq_search: Info - IQCalibration Start!
Thu Aug 25 11:31:44 2022 kern.info kernel: [   51.536349] ieee80211 phy0: rt2800_iq_search: Info - IQCalibration Done! CH = 1, (gain= f, phase=3d)
Thu Aug 25 11:31:44 2022 kern.info kernel: [   51.554582] ieee80211 phy0: rt2800_loft_iq_calibration: Info - TX IQ Calibration Done!
Thu Aug 25 11:31:44 2022 daemon.info dnsmasq[1364]: exiting on receipt of SIGTERM
Thu Aug 25 11:31:44 2022 kern.info kernel: [   51.826217] ieee80211 phy0: rt2800_rxiq_calibration: Info - RXIQ G_imb=-1, Ph_rx=-1
Thu Aug 25 11:31:44 2022 kern.info kernel: [   51.851837] ieee80211 phy0: rt2800_rxiq_calibration: Info - RXIQ G_imb=0, Ph_rx=4
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: Connected to system UBus
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: started, version 2.85 cachesize 150
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: DNS service limited to local subnets
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: UBus support enabled: connected to system bus
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq-dhcp[2700]: DHCP, IP range 192.168.8.100 -- 192.168.8.249, lease time 12h
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain test
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain onion
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain localhost
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain local
Thu Aug 25 15:41:42 2022 kern.info kernel: [   52.269065] br-lan: port 2(wlan0) entered blocking state
Thu Aug 25 15:41:42 2022 kern.info kernel: [   52.279742] br-lan: port 2(wlan0) entered disabled state
Thu Aug 25 15:41:42 2022 kern.info kernel: [   52.290812] device wlan0 entered promiscuous mode
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain invalid
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain bind
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain lan
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: reading /tmp/resolv.conf.d/resolv.conf.auto
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain test
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain onion
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain localhost
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain local
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain invalid
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain bind
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using only locally-known addresses for domain lan
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using nameserver 211.136.17.107#53
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: using nameserver 211.136.20.203#53
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: read /etc/hosts - 4 addresses
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: read /tmp/hosts/odhcpd - 1 addresses
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq[2700]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Thu Aug 25 15:41:42 2022 daemon.info dnsmasq-dhcp[2700]: read /etc/ethers - 0 addresses
Thu Aug 25 15:41:43 2022 kern.info kernel: [   53.177619] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Thu Aug 25 15:41:43 2022 kern.info kernel: [   53.190571] br-lan: port 2(wlan0) entered blocking state
Thu Aug 25 15:41:43 2022 kern.info kernel: [   53.201220] br-lan: port 2(wlan0) entered forwarding state
Thu Aug 25 15:41:43 2022 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->ENABLED
Thu Aug 25 15:41:43 2022 daemon.notice hostapd: wlan0: AP-ENABLED
Thu Aug 25 15:41:44 2022 daemon.notice netifd: Wireless device 'radio0' is now up
Thu Aug 25 15:41:44 2022 daemon.notice netifd: Network device 'wlan0' link is up
Thu Aug 25 15:41:45 2022 daemon.info dnsmasq-dhcp[2700]: DHCPDISCOVER(br-lan) 192.168.8.176 b0:5c:da:3a:ac:74
Thu Aug 25 15:41:45 2022 daemon.info dnsmasq-dhcp[2700]: DHCPOFFER(br-lan) 192.168.8.176 b0:5c:da:3a:ac:74
Thu Aug 25 15:41:45 2022 daemon.info dnsmasq-dhcp[2700]: DHCPREQUEST(br-lan) 192.168.8.176 b0:5c:da:3a:ac:74
Thu Aug 25 15:41:45 2022 daemon.info dnsmasq-dhcp[2700]: DHCPACK(br-lan) 192.168.8.176 b0:5c:da:3a:ac:74 DESKTOP-ED8DV8E
Thu Aug 25 15:42:46 2022 user.info : luci: accepted login on /admin/status/syslog for root from 192.168.8.176

内核日志:

[    0.000000] Linux version 5.4.188 (wooya@hi-wooya) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16554-1d4dea6d4f)) #0 Sat Apr 16 12:59:34 2022
[    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] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is EGB-V20
[    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] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 288 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS1,57600 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=0007fb30
[    0.000000] Readback ErrCtl register=0007fb30
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 122220K/131072K available (4793K kernel code, 206K rwdata, 1056K rodata, 1232K init, 205K bss, 8852K 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] random: get_random_bytes called from start_kernel+0x358/0x54c with crng_init=0
[    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.000009] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015492] Calibrating delay loop... 385.02 BogoMIPS (lpj=770048)
[    0.059585] pid_max: default: 32768 minimum: 301
[    0.068972] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.083374] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.105991] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.125293] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.138899] pinctrl core: initialized pinctrl subsystem
[    0.149795] NET: Registered protocol family 16
[    0.423600] mt7620-pci 10140000.pcie: PCIE0 no card, disable it(RST&CLK)
[    0.436833] mt7620-pci: probe of 10140000.pcie failed with error -1
[    0.474388] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.485436] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.498041] rt2880_gpio 10000638.gpio: registering 16 gpios
[    0.509059] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[    0.521650] rt2880_gpio 10000660.gpio: registering 32 gpios
[    0.532662] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[    0.545294] rt2880_gpio 10000688.gpio: registering 1 gpios
[    0.556136] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[    0.574311] clocksource: Switched to clocksource systick
[    0.586183] NET: Registered protocol family 2
[    0.594988] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.610043] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.626610] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.641773] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.655792] TCP: Hash tables configured (established 1024 bind 1024)
[    0.668573] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.681479] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.695595] NET: Registered protocol family 1
[    0.704182] PCI: CLS 0 bytes, default 32
[    0.714891] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.729111] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.750517] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.762005] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.800011] gpio-export gpio_export: 2 gpio(s) exported
[    0.810629] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.824325] 10000500.uart: ttyS0 at MMIO 0x10000500 (irq = 13, base_baud = 2500000) is a Palmchip BK-3103
[    0.844198] 10000c00.uartlite: ttyS1 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.863892] printk: console [ttyS1] enabled
[    0.880416] printk: bootconsole [early0] disabled
[    0.907304] spi spi0.0: force spi mode3
[    0.925235] spi-nor spi0.0: w25q128 (16384 Kbytes)
[    0.934862] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.947528] Creating 4 MTD partitions on "spi0.0":
[    0.957088] 0x000000000000-0x000000030000 : "u-boot"
[    0.968088] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.979775] 0x000000040000-0x000000050000 : "factory"
[    0.991031] 0x000000050000-0x000001000000 : "firmware"
[    1.005615] 2 uimage-fw partitions found on MTD device firmware
[    1.017494] Creating 2 MTD partitions on "firmware":
[    1.027409] 0x000000000000-0x0000001ed32a : "kernel"
[    1.038477] 0x0000001ed32a-0x000000fb0000 : "rootfs"
[    1.049345] mtd: device 5 (rootfs) set to be root filesystem
[    1.062625] 1 squashfs-split partitions found on MTD device rootfs
[    1.075018] 0x000000711000-0x000000fb0000 : "rootfs_data"
[    1.099049] gsw: setting port4 to ephy mode
[    1.107467] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 2 link up (100Mbps/Full duplex)
[    1.126208] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    1.138827] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    1.155887] rt2880_wdt 10000120.watchdog: Initialized
[    1.167570] NET: Registered protocol family 10
[    1.180761] Segment Routing with IPv6
[    1.188287] NET: Registered protocol family 17
[    1.197227] 8021q: 802.1Q VLAN Support v1.8
[    1.218204] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    1.239350] Freeing unused kernel memory: 1232K
[    1.248398] This architecture does not have kernel memory protection.
[    1.261232] Run /sbin/init as init process
[    1.554316] random: fast init done
[    2.758812] init: Console is alive
[    2.765954] init: - watchdog -
[    7.107861] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    7.568205] usbcore: registered new interface driver usbfs
[    7.579334] usbcore: registered new interface driver hub
[    7.590063] usbcore: registered new device driver usb
[    7.639581] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.662005] SCSI subsystem initialized
[    7.675669] ehci-fsl: Freescale EHCI Host controller driver
[    7.689128] ehci-platform: EHCI generic platform driver
[    7.710020] phy phy-usbphy.0: remote usb device wakeup disabled
[    7.721840] phy phy-usbphy.0: UTMI 16bit 30MHz
[    7.730705] ehci-platform 101c0000.ehci: EHCI Host Controller
[    7.742203] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    7.758129] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    7.775895] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    7.789456] hub 1-0:1.0: USB hub found
[    7.797483] hub 1-0:1.0: 1 port detected
[    7.811413] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.825689] ohci-platform: OHCI generic platform driver
[    7.836534] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    7.850148] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    7.866078] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    7.903166] hub 2-0:1.0: USB hub found
[    7.911176] hub 2-0:1.0: 1 port detected
[    7.923087] uhci_hcd: USB Universal Host Controller Interface driver
[    7.965432] usbcore: registered new interface driver usb-storage
[    7.982352] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    8.001984] init: - preinit -
[    8.051012] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    8.146520] mmc0: new high speed SDHC card at address b36d
[    8.801941] mmcblk0: mmc0:b36d CBADS 29.3 GiB 
[    8.813669]  mmcblk0: p1
[    9.058938] hub 1-1:1.0: USB hub found
[    9.266605] hub 1-1:1.0: 7 ports detected
[    9.476069] random: procd: uninitialized urandom read (4 bytes read)
[    9.731878] usb 1-1.3: new full-speed USB device number 3 using ehci-platform
[   10.071327] usb 1-1.4: new full-speed USB device number 4 using ehci-platform
[   10.287895] random: jshn: uninitialized urandom read (4 bytes read)
[   10.391628] random: jshn: uninitialized urandom read (4 bytes read)
[   10.639240] usb 1-1.2: new high-speed USB device number 5 using ehci-platform
[   10.693399] random: jshn: uninitialized urandom read (4 bytes read)
[   10.758300] random: jshn: uninitialized urandom read (4 bytes read)
[   10.856874] random: jshn: uninitialized urandom read (4 bytes read)
[   11.594491] 8021q: adding VLAN 0 to HW filter on device eth0
[   13.267334] mount_root: loading kmods from internal overlay
[   13.327835] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[   13.343389] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   15.268312] jffs2: notice: (554) jffs2_build_xattr_subsystem: complete building xattr subsystem, 17 of xdatum (7 unchecked, 10 orphan) and 18 of xref (10 dead, 0 orphan) found.
[   15.300814] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   15.327159] block: extroot: not configured
[   16.565791] jffs2: notice: (552) jffs2_build_xattr_subsystem: complete building xattr subsystem, 17 of xdatum (7 unchecked, 10 orphan) and 18 of xref (10 dead, 0 orphan) found.
[   17.290741] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   17.315232] block: extroot: not configured
[   17.325069] mount_root: switching to jffs2 overlay
[   17.339929] overlayfs: upper fs does not support tmpfile.
[   17.358744] urandom-seed: Seeding with /etc/urandom.seed
[   17.670360] procd: - early -
[   17.677410] procd: - watchdog -
[   18.418669] procd: - watchdog -
[   18.605012] procd: - ubus -
[   18.943876] urandom_read: 2 callbacks suppressed
[   18.943886] random: ubusd: uninitialized urandom read (4 bytes read)
[   19.005158] random: ubusd: uninitialized urandom read (4 bytes read)
[   19.032820] procd: - init -
[   20.817280] kmodloader: loading kernel modules from /etc/modules.d/*
[   21.018869] i2c /dev entries driver
[   21.038521] ralink_gdma: module is from the staging directory, the quality is unknown, you have been warned.
[   21.080905] gdma-rt2880 10002800.gdma: revision: 3, channels: 16
[   21.157311] i2c-ralink 10000900.i2c: clock 100KHz, re-start support
[   21.189986] ralink-i2s 10000a00.i2s: mclk 40MHz
[   21.232722] wm8960 0-001a: Failed to issue reset
[   21.254639] mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517
[   21.268955] mt762x-wm8960 sound: mt762x_wm8960_machine_probe snd_soc_register_card fail -517
[   21.317408] urngd: jent-rng init failed, err: 2
[   21.332082] usbcore: registered new interface driver cdc_wdm
[   21.346748] Loading modules backported from Linux version v5.10.110-0-g3238bffaf992
[   21.362106] Backport generated by backports.git v5.10.110-1-0-g1fbde860
[   21.414633] usbcore: registered new interface driver usbserial_generic
[   21.427827] usbserial: USB Serial support registered for generic
[   21.457028] xt_time: kernel timezone is -0000
[   21.470248] usbcore: registered new interface driver cdc_ncm
[   21.518069] usbcore: registered new interface driver cp210x
[   21.529358] usbserial: USB Serial support registered for cp210x
[   21.541363] cp210x 1-1.3:1.0: cp210x converter detected
[   21.558161] usb 1-1.3: cp210x converter now attached to ttyUSB0
[   21.570325] cp210x 1-1.4:1.0: cp210x converter detected
[   21.581558] mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517
[   21.595861] mt762x-wm8960 sound: mt762x_wm8960_machine_probe snd_soc_register_card fail -517
[   21.643543] usb 1-1.4: cp210x converter now attached to ttyUSB1
[   21.663982] mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517
[   21.678262] mt762x-wm8960 sound: mt762x_wm8960_machine_probe snd_soc_register_card fail -517
[   21.838519] PPP generic driver version 2.4.2
[   21.859292] NET: Registered protocol family 24
[   21.888019] qmi_wwan 1-1.2:1.4: cdc-wdm0: USB WDM device
[   21.898687] qmi_wwan 1-1.2:1.4: Quectel EC25&EC21&EG91&EG95&EG06&EP06&EM06&BG96&AG35 work on RawIP mode
[   21.948841] qmi_wwan 1-1.2:1.4 wwan0: register 'qmi_wwan' at usb-101c0000.ehci-1.2, WWAN/QMI device, 22:4e:a8:9c:21:4b
[   21.970494] usbcore: registered new interface driver qmi_wwan
[   21.984429] mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517
[   21.998724] mt762x-wm8960 sound: mt762x_wm8960_machine_probe snd_soc_register_card fail -517
[   22.137201] usbcore: registered new interface driver cdc_mbim
[   22.154219] usbcore: registered new interface driver option
[   22.165513] usbserial: USB Serial support registered for GSM modem (1-port)
[   22.180293] option 1-1.2:1.0: GSM modem (1-port) converter detected
[   22.193131] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[   22.207273] option 1-1.2:1.1: GSM modem (1-port) converter detected
[   22.220160] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB3
[   22.234313] option 1-1.2:1.2: GSM modem (1-port) converter detected
[   22.247179] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB4
[   22.261336] option 1-1.2:1.3: GSM modem (1-port) converter detected
[   22.274206] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB5
[   22.293438] mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517
[   22.307730] mt762x-wm8960 sound: mt762x_wm8960_machine_probe snd_soc_register_card fail -517
[   22.593773] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "factory"
[   22.608267] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[   22.623745] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
[   22.637591] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   22.640731] mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517
[   22.655040] mt762x-wm8960 sound: mt762x_wm8960_machine_probe snd_soc_register_card fail -517
[   22.677698] kmodloader: done loading kernel modules from /etc/modules.d/*
[   29.469681] crng init done
[   42.450860] 8021q: adding VLAN 0 to HW filter on device eth0
[   42.503364] br-lan: port 1(eth0.1) entered blocking state
[   42.514222] br-lan: port 1(eth0.1) entered disabled state
[   42.525414] device eth0.1 entered promiscuous mode
[   42.535024] device eth0 entered promiscuous mode
[   42.670768] br-lan: port 1(eth0.1) entered blocking state
[   42.681614] br-lan: port 1(eth0.1) entered forwarding state
[   43.491489] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   44.857493] qmi_wwan 1-1.2:1.4 wwan0: Cannot change a running device
[   48.692494] ieee80211 phy0: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration start
[   48.709212] ieee80211 phy0: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration end
[   51.442258] ieee80211 phy0: rt2800_loft_iq_calibration: Info - LOFT Calibration Done!
[   51.461857] ieee80211 phy0: rt2800_iq_search: Info - IQCalibration Start!
[   51.489331] ieee80211 phy0: rt2800_iq_search: Info - IQCalibration Done! CH = 0, (gain= f, phase=3b)
[   51.508447] ieee80211 phy0: rt2800_iq_search: Info - IQCalibration Start!
[   51.536349] ieee80211 phy0: rt2800_iq_search: Info - IQCalibration Done! CH = 1, (gain= f, phase=3d)
[   51.554582] ieee80211 phy0: rt2800_loft_iq_calibration: Info - TX IQ Calibration Done!
[   51.826217] ieee80211 phy0: rt2800_rxiq_calibration: Info - RXIQ G_imb=-1, Ph_rx=-1
[   51.851837] ieee80211 phy0: rt2800_rxiq_calibration: Info - RXIQ G_imb=0, Ph_rx=4
[   52.269065] br-lan: port 2(wlan0) entered blocking state
[   52.279742] br-lan: port 2(wlan0) entered disabled state
[   52.290812] device wlan0 entered promiscuous mode
[   53.177619] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   53.190571] br-lan: port 2(wlan0) entered blocking state
[   53.201220] br-lan: port 2(wlan0) entered forwarding state

原理图:

redchenjs commented 2 years ago

能播放声音意味着驱动方面应该没什么问题,日志显示WM8960初始化不成功,这个是主控与WM8960之间的通信出了问题,可以检查下I2C总线是否有其他设备占用、I2C是否稳定上拉,WM8960的上电时序是否正确,WM8960工作状态是否正常。

guoai2015 commented 2 years ago

首先感谢大佬回复,开始是怀疑声卡坏掉了,但是刷了厂家提供的旧系统(openwrt15.1)声卡没问题。我试着把内核模块卸载重新加载,到snd-soc-wm8960这个模块的时候声卡初始化成功了。测试了好多遍都是这样成功的,重新加载snd-soc-wm8960模块就好了。我看到日志里 mclk 40MHz,实际上应该是12MHz,不知道这里是不是有问题,而且这个频率应该在什么地方设置呢?设备插上音响后也一直有哒哒哒的电流音,播放音乐的时候没有。

redchenjs commented 2 years ago

这是MT7688板子的log,mclk确实不一样,这个频率是i2s驱动设置的,需要修改i2s驱动源码。MT7620板上没测试过,但能播放的话mclk应该是没问题的,不知道master分支的5.10内核有没有同样的问题

[   36.799994] gdma-rt2880 10002800.gdma: revision: 3, channels: 16
[   36.858921] i2c-mt7621 10000900.i2c: clock 100KHz, re-start not support
[   36.878815] ralink-i2s 10000a00.i2s: mclk 480MHz
[   36.947892] mt762x-wm8960 sound: wm8960-hifi <-> 10000a00.i2s mapping ok
guoai2015 commented 2 years ago

这是MT7688板子的log,mclk确实不一样,这个频率是i2s驱动设置的,需要修改i2s驱动源码。MT7620板上没测试过,但能播放的话mclk应该是没问题的,不知道master分支的5.10内核有没有同样的问题

[   36.799994] gdma-rt2880 10002800.gdma: revision: 3, channels: 16
[   36.858921] i2c-mt7621 10000900.i2c: clock 100KHz, re-start not support
[   36.878815] ralink-i2s 10000a00.i2s: mclk 480MHz
[   36.947892] mt762x-wm8960 sound: wm8960-hifi <-> 10000a00.i2s mapping ok

经过好几天的研究,追踪了一下报错的位置,就是 wm8960.c 里面调用wm8960_reset的时候报错,网上搜了一下有人也遇到这个问题,大概就是i2c发送重置8960的时候没有响应就报错了,可能是i2c还没有初始化完成,我改了wm8960.c加了点延迟,现在每次都能挂载上声卡了。仅存的问题就是哒哒哒声了,查了资料原生的simple-audio-card的驱动貌似可以通过设备树设置时钟频率,不知道咱们这个驱动支不支持。

redchenjs commented 2 years ago

simple-audio-card驱动是跟mt762x-wm8960等价的关系,只需要用一个就好了