Coder Social home page Coder Social logo

mt762x-wm8960's Introduction

MT762X WM8960 ALSA SoC machine driver

ALSA SoC machine driver for MT762X SoCs with WM8960 CODEC chip.

Requirements

  • OpenWrt with kernel 5.10 or later.

Preparing

  • Add the mt762x-wm8960 folder to the package/kernel folder of OpenWrt.
cd package/kernel
git clone https://github.com/redchenjs/mt762x-wm8960.git
  • Modify the target DTS file in the target/linux/ramips/dts folder of OpenWrt according to the example DTS files.

WM8960 MCLK

WM8960 can get MCLK from an externel clock source or the refclk output of MT762X SoCs (12MHz). To enable the refclk output, you can modify the dts file as follows:

refclk {
	groups = "refclk";
	function = "refclk";
};

WM8960 ADCLRC

WM8960 can internally get ADCLRC from DACLRC and the ADCLRC pin can be used as GPIO1. It is useful for some boards that only have the DACLRC pin connected and the ADCLRC pin is left floating. To enable this feature, modify the dts file as follows:

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

Configuring the OpenWrt

make menuconfig

Kernel modules:

  • Navigate to > Kernel modules > Sound Support.
  • Select kmod-sound-core and kmod-sound-mt762x-wm8960.

Userspace tools:

  • Navigate to > Sound and select alsa-utils.

Building the image

make -j9 V=s

Settings

Examples of /etc/asound.conf:

  • examples/asound.conf.alsa for ALSA only.
  • examples/asound.conf.pulse for PulseAudio.

After restarting, the output of WM8960 is muted. Use these commands to set the volume.

amixer sset "Headphone" 90
amixer sset "Speaker" 90

Playback

amixer sset "Left Output Mixer PCM" on
amixer sset "Right Output Mixer PCM" on

Capture

amixer sset "Left Input Mixer Boost" on
amixer sset "Right Input Mixer Boost" on
amixer sset "ALC Function" "Stereo"

References

WM8960 block diagram

mt762x-wm8960's People

Contributors

redchenjs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mt762x-wm8960's Issues

mono sound fault

hi, @redchenjs , 我在linux-4.14.95上使用了你提供的这个path文件(999-ralink-i2s-mono-sound.zip),发现在使用ffmpeg播放单声道的时候声音不正常(ffmpeg -v debug -re -i notfound.wav -ar 8000 -ac 1 -f alsa hw:0), 使用双声道播放(-ac 2)就正常了。请问是不是在4.14的kernel上还需要做什么修改?或者是其他的原因?

Originally posted by @PolyLin in #7 (comment)

default group /dev/snd/*

I get snd devices. and I checked that defaut is audio group. It's not root.

root@OpenWrt:~# ll /dev/snd/*
crwxrwxrwx    1 root     audio      116,   0 Apr 26 09:18 /dev/snd/controlC0
crwxrwxrwx    1 root     audio      116,  24 Apr 26 09:18 /dev/snd/pcmC0D0c
crwxrwxrwx    1 root     audio      116,  16 Apr 26 09:18 /dev/snd/pcmC0D0p
crwxrwxrwx    1 root     audio      116,  33 Apr 26 09:18 /dev/snd/timer

Error compilation on OpenWRT/v19.07.6

make[4]: Entering directory '/home/googol/OpenWRT/v19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-4.14.215'
CC [M] /home/googol/OpenWRT/v19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/mt762x-wm8960/mt762x-wm8960.o
/home/googol/OpenWRT/v19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/mt762x-wm8960/mt762x-wm8960.c:44:23: error: expected ')' before '(' token
DAILINK_COMP_ARRAY(COMP_CPU("ralink-i2s")),
^
/home/googol/OpenWRT/v19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/mt762x-wm8960/mt762x-wm8960.c:54:9: error: implicit declaration of function 'SND_SOC_DAILINK_REG'; did you mean 'SND_SOC_DAPM_REG'? [-Werror=implicit-function-declaration]
SND_SOC_DAILINK_REG(codec),
^~~~~~~~~~~~~~~~~~~
SND_SOC_DAPM_REG
/home/googol/OpenWRT/v19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/mt762x-wm8960/mt762x-wm8960.c:54:29: error: 'codec' undeclared here (not in a function); did you mean 'cdev'?
SND_SOC_DAILINK_REG(codec),
^~~~~
cdev
/home/googol/OpenWRT/v19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/mt762x-wm8960/mt762x-wm8960.c: In function 'mt762x_wm8960_machine_probe':
/home/googol/OpenWRT/v19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/mt762x-wm8960/mt762x-wm8960.c:81:5: error: implicit declaration of function 'for_each_card_prelinks'; did you mean 'for_each_irq_nr'? [-Werror=implicit-function-declaration]
for_each_card_prelinks(card, i, dai_link) {
^~~~~~~~~~~~~~~~~~~~~~
for_each_irq_nr
/home/googol/OpenWRT/v19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/mt762x-wm8960/mt762x-wm8960.c:81:47: error: expected ';' before '{' token
for_each_card_prelinks(card, i, dai_link) {
^
/home/googol/OpenWRT/v19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/mt762x-wm8960/mt762x-wm8960.c:95:47: error: expected ';' before '{' token
for_each_card_prelinks(card, i, dai_link) {
^
cc1: some warnings being treated as errors
make[5]: *** [scripts/Makefile.build:327: /home/googol/OpenWRT/v19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/mt762x-wm8960/mt762x-wm8960.o] Error 1
make[4]: *** [Makefile:1550: module/home/googol/OpenWRT/v19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/mt762x-wm8960] Error 2
make[4]: Leaving directory '/home/googol/OpenWRT/v19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-4.14.215'
make[3]: *** [Makefile:54: /home/googol/OpenWRT/v19.07.6/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/mt762x-wm8960/.built] Error 2
make[3]: Leaving directory '/home/googol/OpenWRT/v19.07.6/package/kernel/mt762x-wm8960'
time: package/kernel/mt762x-wm8960/compile#1.01#0.28#1.14
make[2]: *** [package/Makefile:113: package/kernel/mt762x-wm8960/compile] Error 2
make[2]: Leaving directory '/home/googol/OpenWRT/v19.07.6'
make[1]: *** [package/Makefile:107: /home/googol/OpenWRT/v19.07.6/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/googol/OpenWRT/v19.07.6'
make: *** [/home/googol/OpenWRT/v19.07.6/include/toplevel.mk:227: world] Error 2

有时候会找不到声卡

按照示例的配置,已经可以播放声音,但是有时候启动起来会找不到声卡,日志里会报: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

原理图:

Madplay error

Hi Jack Chen
I have a problem.

root@OpenWrt:~#
root@OpenWrt:~#
root@OpenWrt:~# cd /root/
root@OpenWrt:~# madplay gamestartup.mp3
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
ALSA lib pcm_hw.c:1829:(_snd_pcm_hw_open) Invalid value for card
audio: No such file or directory
root@OpenWrt:~#
root@OpenWrt:~#
root@OpenWrt:~#

Watchdog reboot after Ctrl-C of aplay

Using kernel 5.15.114, and DTS as per the examples on a MT7628AN by Hilink on OpenWRT 22

Board i'm using is a waveshare Audio HAT https://www.waveshare.com/wiki/WM8960_Audio_HAT and I'm using the HAT's refclk, so no refclk defined in the DTS

When playing a 16 bit 48k wav file through aplay, and the process is interrupted, e.g. using Ctrl-C or SIGNIT the board hangs and eventually the watchdog timer reboots the board.

Tried various things such as https://forum.openwrt.org/t/i2s-freezing-on-mt7628/81140/2 but still having the same issue

There's no kernel output or anything, just the watchdog reset message.

An ideas?

新版本的openwrt上无法使用

你好, 我在最新的版本的openwrt上使用这个package, 发现错误. 看过去错误是在找platform驱动的时候没有找到, 日志如下, openwrt的版本是git上的最新版本, 使用的profile是hilink的HLK-7628N.
[ 13.955565] urngd: v1.0.2 started.
[ 14.235018] i2c /dev entries driver
[ 14.252014] ralink_gdma: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.321049] call snd_soc_init:3569
[ 14.327907] call snd_soc_util_init:165
[ 14.358219] i2c-mt7621 10000900.i2c: clock 100 kHz
[ 14.409380] random: crng init done
[ 14.416161] random: 1 urandom warning(s) missed due to ratelimiting
[ 14.566627] call mt762x_wm8960_machine_probe:80
[ 14.575682] of_parse_phandle, platform_node:80854bb0, platform_node->name:i2s
[ 14.589811] of_parse_phandle, codec_node:80854a6c, codec_node->name:wm8960
[ 14.603470] snd_soc_register_card, card->name:MT762X WM8960 ASoC Card
[ 14.616223] card->num_links:1
[ 14.622093] for_each_card_prelinks,i:0,card->name:MT762X WM8960 ASoC Card
[ 14.635535] soc_init_dai_link, name:wm8960-codec, stream_name:wm8960-hifi, num_codecs:1, num_platforms:1
[ 14.654304] found codecs ......
[ 14.660524] codec:0, name:(null), dai_name:wm8960-hifi, of_node:80854a6c
[ 14.673791] snd_soc_is_matching_component......
[ 14.682759] found dlc->of_node:80854a6c, name:wm8960
[ 14.692583] found platforms ......
[ 14.699314] platform:0, name:(null), of_node:80854bb0
[ 14.709314] platform->of_node, name:i2s, full_name:i2s@a00
[ 14.720170] snd_soc_is_matching_component......
[ 14.729138] dlc->of_node:80854bb0 != component_of_node:80854a6c
[ 14.740860] dlc->of_node->name:i2s, component_of_node->name:wm8960
[ 14.753093] snd_soc_is_matching_component......
[ 14.762062] dlc->of_node:80854bb0 != component_of_node:0
[ 14.772576] snd_soc_is_matching_component......
[ 14.781544] dlc->of_node:80854bb0 != component_of_node:0
[ 14.792073] mt762x-wm8960 sound: ASoC: failed to init link wm8960-codec: -517
[ 14.806213] mt762x-wm8960 sound: mt762x_wm8960_machine_probe snd_soc_register_card fail -517

Kernel bug detected[#1]:

root@LEDE:~# speaker-test

speaker-test 1.1.0

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 4[ 297.218920] Kernel bug detected[#1]:
[ 297.223178] CPU: 0 PID: 1376 Comm: speaker-test Not tainted 4.4.124 #0
[ 297.229800] task: 81aac000 ti: 80eac000 task.ti: 80eac000
[ 297.235271] $ 0 : 00000000 00000001 00000002 00000002
[ 297.240587] $ 4 : 818c0e00 8099eec8 8099eec8 00020000
[ 297.245896] $ 8 : 00000018 80008c98 77758000 00001000
[ 297.251205] $12 : 00022000 00100000 fffffffc 00020000
[ 297.256514] $16 : 818c0e00 00000008 80e75780 808d2180
[ 297.261820] $20 : 775b6000 775d6000 00000000 00000020
[ 297.267129] $24 : 00001072 776e2e00
[ 297.272437] $28 : 80eac000 80eaddf8 00000000 80232084
[ 297.277746] Hi : 00000000
[ 297.280662] Lo : 00000020
[ 297.283600] epc : 80231f94 snd_pcm_lib_default_mmap+0x30/0x48
[ 297.289605] ra : 80232084 snd_pcm_mmap_data+0xd8/0x124
[ 297.295075] Status: 1100e403 KERNEL EXL IE
[ 297.299328] Cause : 10800024 (ExcCode 09)
[ 297.303392] PrId : 00019655 (MIPS 24KEc)
[ 297.307452] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_Mn
[ 297.379945] Process speaker-test (pid: 1376, threadinf+-----------------------------+7777fd48)
[ 297.388671] Stack : 775b6000 775d6000 00000000 0000000| |020000
80e75780 00020000 000000fb 00000000 80e75780 00| Cannot open /dev/ttyUSB0! |
00000020 80470000 00000001 8099e528 8099ed80 80| |
80e75780 00020000 00000001 00000002 00000000 00+-----------------------------+
77778234 0000000b 81aac000 81aac030 00000000 80daede0 808d21b4 80e75780
...
[ 297.424781] Call Trace:
[ 297.427266] [<80231f94>] snd_pcm_lib_default_mmap+0x30/0x48
[ 297.432922] [<80232084>] snd_pcm_mmap_data+0xd8/0x124
[ 297.438071] [<800995a0>] mmap_region+0x29c/0x544
] SyS_mmap_pgoff+0x8c/0xd8] do_mmap+0x358/0x3d4
[ 297.456585] [<8000686c>] syscall_common+0x30/0x54
[ 297.461351]
[ 297.462859]
Code: 24020002 14620002 00000000 <000c000d> 3c02803e 24422e88 aca20048 03e00008 00001021
8000Hz)
Buffer [ 297.473078] ---[ end trace 20464ba028fdbc77 ]---
size range from 2048 to 32768
P[ 297.481738] Fatal exception: panic in 5 secondseriod size range from 1024 to 2048
Using max buffer size 32768
Periods = 4

aplay -l命令找不到声卡

按照文档配置编译镜像刷机后输入 aplay -l 命令提示:no soundcards found...
求大神帮忙看看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 = "egbv20:blue:sys";
			gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
		};

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

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

		ac220-2 {
			label = "egbv20: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;
	};
};

&i2s {
	#sound-dai-cells = <0>;
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&i2s_uartf_pins>;
};

&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";
		};
	};
};

原理图

mono sound fault

Hi redchenjs

When I running follow command. I get a error message. I will how to do let it support mono sound? or it's dont support mono sound?

root@OpenWrt:~/wav# arecord -Dhw:0 -f cd -r 8000 -c 1 -t wav /tmp/rec.wav
Recording WAVE '/tmp/rec.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
arecord: set_params:1349: Channels count non available

openwrt master 分支移植错误

我按照你给的说明移植没有成功,是哪里漏了呢

[ 21.612366] mt76x8-wm8960 sound: failed to find audio codec device
[ 21.618739] mt76x8-wm8960: probe of sound failed with error -22

Unable to setup on mt7621

I'm trying to set it up on the evb with mt7621 som.

My basic setup is:

OpenWRT 23.05.2 (kernel 5.17.137)

Target System :: MediaTek Ralink MIPS
Subtarget :: MT7621 based boards
Target Profile :: HiLink HLK-7621A evaluation board

Using WM8960 Aduio module from WaveShare connected to the MT7621 as follows:

On the left : WM8960, On the right : MT7621
I2C_SDA <----> (97) I2C SDA
I2C SCL <---> (96) I2C SCLK
I2S CLK <---> (9) CTS3_N
I2S LRCLK <---> (12) TXD3
I2S DAC <---> (16) RTS3N
I2S ADC <---> (13) RXD3

Not sure if the connections are ok... I've got a preconfigured HW...

The issues:

  1. Simply cloning the repo to the package/kernel doesn't make the sound module visible under kernel_modules -> sound support

I had to cut out those two lines from the Makefile
+(TARGET_ramips_mt7621||TARGET_ramips_mt76x8):kmod-i2c-mt7628
+!(TARGET_ramips_mt7621||TARGET_ramips_mt76x8):kmod-i2c-ralink \

Modified the dts file as in example:
&i2c {
status = "okay";

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

};

&i2s {
status = "okay";
};

/ {
sound {
compatible = "mediatek,mt762x-wm8960-machine";
mediatek,platform = <&i2s>;
mediatek,audio-codec = <&codec>;
audio-routing =
"Headphone", "HP_L",
"Headphone", "HP_R",
"Speaker", "SPK_LN",
"Speaker", "SPK_LP",
"Speaker", "SPK_RN",
"Speaker", "SPK_RP",
"Microphone", "MICB",
"LINPUT1", "Microphone",
"LINPUT2", "Line In",
"RINPUT2", "Line In";
};
};

I also enabled the WM8960 codec and Alsa support through kernel_menuconfig...

The codec is correctly loaded (probing on I2C is OK) but the alsa is not able to detect any sound card....

What am I doing wrong? I'm quite newby to openWRT ;)

Change I2S clock speed

Dear Redchenjs,

Thanks for your good code, i have a question about i2s clock.
System only show clock of i2s ~ 480khz, how can i increase?
Thank you

`.i2c /dev entries driver
[ 9.539208] gdma-rt2880 10002800.gdma: revision: 3, channels: 16

[ 9.576443] i2c-mt7621 10000900.i2c: clock 100KHz, re-start not support

[ 9.603849] ralink-i2s 10000a00.i2s: mclk 480KHz ->>>>>>>>>>>>>>>>>>>>>>>>>>>>>> HERE

[ 9.632978] mt762x-wm8960 sound: wm8960-hifi <-> 10000a00.i2s mapping ok

[ 9.646364] mt762x-wm8960 sound: ASoC: no sink widget found for Speaker

[ 9.659478] mt762x-wm8960 sound: ASoC: Failed to add route SPK_LN -> direct -> Speaker

[ 9.675167] mt762x-wm8960 sound: ASoC: no sink widget found for Speaker

[ 9.688274] mt762x-wm8960 sound: ASoC: Failed to add route SPK_LP -> direct -> Speaker

[ 9.703964] mt762x-wm8960 sound: ASoC: no sink widget found for Speaker

[ 9.717070] mt762x-wm8960 sound: ASoC: Failed to add route SPK_RN -> direct -> Speaker

[ 9.732758] mt762x-wm8960 sound: ASoC: no sink widget found for Speaker

[ 9.745863] mt762x-wm8960 sound: ASoC: Failed to add route SPK_RP -> direct -> Speaker

[ 9.761554] mt762x-wm8960 sound: ASoC: no sink widget found for Microphone

[ 9.775174] mt762x-wm8960 sound: ASoC: Failed to add route MICB -> direct -> Microphone

[ 9.791036] mt762x-wm8960 sound: ASoC: no source widget found for Microphone

[ 9.805001] mt762x-wm8960 sound: ASoC: Failed to add route Microphone -> direct -> LINPUT1`

No sound after installing drivers

Hii

i have mt7628evb board with wm8960 codec openwrt version is 21.02. mt762x-wm8960 driver version is 5.4
the device is registered but when i play any wav file there is no sound.

logs:--

[ 14.834064] kmodloader: loading kernel modules from /etc/modules.d/*
[ 14.981660] i2c /dev entries driver
[ 15.000940] ralink_gdma: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.039663] gdma-rt2880 10002800.gdma: revision: 3, channels: 16
[ 15.116108] i2c-mt7621 10000900.i2c: clock 100 kHz
[ 15.140496] ralink-i2s 10000a00.i2s: mclk 480MHz
[ 15.205956] mt762x-wm8960 sound: wm8960-hifi <-> 10000a00.i2s mapping ok
[ 15.261825] urngd: v1.0.2 started.
[ 15.340943] Loading modules backported from Linux version v5.10.157-0-gf4245f05389c

### aplay -l output :-

root@OpenWrt:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Card [MT762X WM8960 ASoC Card], device 0: wm8960-hifi wm8960-hifi-0 [wm8960-hifi wm8960-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0

root@OpenWrt:/# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=Card
MT762X WM8960 ASoC Card, wm8960-hifi wm8960-hifi-0
Default Audio Device
sysdefault:CARD=Card
MT762X WM8960 ASoC Card, wm8960-hifi wm8960-hifi-0
Default Audio Device

commands given to amixer :--

amixer sset "Headphone" 90
mixer sset "Speaker" 90Simple mixer control 'Headphone',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 90 [71%] [-31.00dB]
Front Right: Playback 90 [71%] [-31.00dB]
root@OpenWrt:/# amixer sset "Speaker" 90
Simple mixer control 'Speaker',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 90 [71%] [-31.00dB]
Front Right: Playback 90 [71%] [-31.00dB]
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/# amixer sset "Left Output Mixer PCM" on
ixer sset "Right Output Mixer PCM" onSimple mixer control 'Left Output Mixer PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
root@OpenWrt:/# amixer sset "Right Output Mixer PCM" on
Simple mixer control 'Right Output Mixer PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]

aplay sampl music play

aplay -vv preamble10.wav
Playing WAVE 'preamble10.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
Plug PCM: Route conversion PCM (sformat=S16_LE)
Transformation table:
0 <- 0
1 <- 0
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 22050
exact rate : 22050 (22050/1)
msbits : 16
buffer_size : 10240
period_size : 2048
period_time : 92879
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 2048
period_event : 0
start_threshold : 10240
stop_threshold : 10240
silence_threshold: 0
silence_size : 0
boundary : 1342177280
Slave: Hardware PCM card 0 'MT762X WM8960 ASoC Card' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 22050
exact rate : 22050 (22050/1)
msbits : 16
buffer_size : 10240
period_size : 2048
period_time : 92879
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 2048
period_event : 0
start_threshold : 10240
stop_threshold : 10240
silence_threshold: 0
silence_size : 0
boundary : 1342177280
appl_ptr : 0
hw_ptr : 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.