linux5.2 没有找到声卡。
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.2.0-licheepi-zero+ (psst@ubuntu) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #2 SMP Mon Apr 26 09:27:47 +08 2021
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Zero
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu s34508 r8192 d22836 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi0.0:512k(uboot),64k(dtb)ro,5120k(kernel)ro,-(rootfs) root=31:3 rw rootfstype=jffs2 init=/linuxrc vt.global_cursor_default=0
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 55056K/65536K available (6144K kernel code, 297K rwdata, 1696K rodata, 1024K init, 254K bss, 10480K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] random: get_random_bytes called from start_kernel+0x300/0x48c with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000198] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000434] Console: colour dummy device 80x30
[ 0.000492] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000508] pid_max: default: 32768 minimum: 301
[ 0.000670] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000686] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001516] CPU: Testing write buffer coherency: ok
[ 0.002027] /cpus/cpu@0 missing clock-frequency property
[ 0.002053] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002827] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.003033] rcu: Hierarchical SRCU implementation.
[ 0.003553] smp: Bringing up secondary CPUs ...
[ 0.003573] smp: Brought up 1 node, 1 CPU
[ 0.003583] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.003590] CPU: All CPU(s) started in SVC mode.
[ 0.004733] devtmpfs: initialized
[ 0.008101] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.008422] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.008455] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.008699] pinctrl core: initialized pinctrl subsystem
[ 0.009753] NET: Registered protocol family 16
[ 0.010439] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.011727] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.011745] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.035433] SCSI subsystem initialized
[ 0.035717] usbcore: registered new interface driver usbfs
[ 0.035775] usbcore: registered new interface driver hub
[ 0.035896] usbcore: registered new device driver usb
[ 0.036123] mc: Linux media interface: v0.10
[ 0.036165] videodev: Linux video capture interface: v2.00
[ 0.036386] Advanced Linux Sound Architecture Driver Initialized.
[ 0.037709] clocksource: Switched to clocksource arch_sys_counter
[ 0.049299] NET: Registered protocol family 2
[ 0.050113] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.050153] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.050179] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.050204] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.050344] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.050395] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.050689] NET: Registered protocol family 1
[ 0.052598] Initialise system trusted keyrings
[ 0.052969] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.059231] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.089109] Key type asymmetric registered
[ 0.089131] Asymmetric key parser 'x509' registered
[ 0.089234] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.089247] io scheduler mq-deadline registered
[ 0.089255] io scheduler kyber registered
[ 0.090273] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.093974] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.159856] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.162141] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[ 0.163249] printk: console [ttyS0] disabled
[ 0.183569] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[ 0.705803] printk: console [ttyS0] enabled
[ 0.734594] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[ 0.746033] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.750852] 4 cmdlinepart partitions found on MTD device spi0.0
[ 0.756767] Creating 4 MTD partitions on "spi0.0":
[ 0.761587] 0x000000000000-0x000000080000 : "uboot"
[ 0.767238] 0x000000080000-0x000000090000 : "dtb"
[ 0.772554] 0x000000090000-0x000000590000 : "kernel"
[ 0.778124] 0x000000590000-0x000001000000 : "rootfs"
[ 0.784294] libphy: Fixed MDIO Bus: probed
[ 0.789073] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.794874] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.801147] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 58000)
[ 0.810636] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.817874] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.825088] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.830063] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.836844] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.842508] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.848412] libphy: stmmac: probed
[ 0.852535] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 0.858888] libphy: mdio_mux: probed
[ 0.862490] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 0.868887] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 0.876019] libphy: mdio_mux: probed
[ 0.880057] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.886583] ehci-platform: EHCI generic platform driver
[ 0.892147] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.897812] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.905737] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[ 0.937706] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.944906] hub 1-0:1.0: USB hub found
[ 0.948867] hub 1-0:1.0: 1 port detected
[ 0.953483] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.959813] ohci-platform: OHCI generic platform driver
[ 0.965352] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.972079] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 0.980062] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[ 1.052784] hub 2-0:1.0: USB hub found
[ 1.056617] hub 2-0:1.0: 1 port detected
[ 1.063940] usbcore: registered new interface driver usb-storage
[ 1.071589] sun6i-rtc 1c20400.rtc: registered as rtc0
[ 1.076652] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.081362] i2c /dev entries driver
[ 1.086207] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[ 1.095825] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.104516] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 1.140404] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.147956] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 1.159358] usbcore: registered new interface driver usbhid
[ 1.164936] usbhid: USB HID core driver
[ 1.171487] Initializing XFRM netlink socket
[ 1.175796] NET: Registered protocol family 17
[ 1.180955] Registering SWP/SWPB emulation handler
[ 1.186846] Loading compiled-in X.509 certificates
[ 1.198326] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.209840] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.215604] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.224978] hub 3-0:1.0: USB hub found
[ 1.229054] hub 3-0:1.0: 1 port detected
[ 1.234457] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T02:41:01 UTC (9661)
[ 1.242994] vcc3v0: disabling
[ 1.245974] vcc5v0: disabling
[ 1.249000] ALSA device list:
[ 1.251968] No soundcards found.
[ 1.257786] random: fast init done
[ 1.303592] random: crng init done
[ 1.307460] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.321169] mmc0: new high speed SD card at address 1388
[ 1.330836] mmcblk0: mmc0:1388 Stora 119 MiB
[ 1.347209] mmcblk0: p1
[ 3.310384] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[ 3.318262] devtmpfs: mounted
[ 3.322434] Freeing unused kernel memory: 1024K
[ 3.327115] Run /linuxrc as init process
Starting syslogd: OK
sun8i-v3s.dtsi
codec: codec@01c22c00 {
#sound-dai-cells = <0>;
compatible = "allwinner,sun8i-v3s-codec";
reg = <0x01c22c00 0x400>;
interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
clock-names = "apb", "codec";
resets = <&ccu RST_BUS_CODEC>;
dmas = <&dma 15>, <&dma 15>;
dma-names = "rx", "tx";
allwinner,codec-analog-controls = <&codec_analog>;
status = "disabled";
};
codec_analog: codec-analog@01c23000 {
compatible = "allwinner,sun8i-v3s-codec-analog";
reg = <0x01c23000 0x4>;
};
sun8i-v3s-licheepi-zero-dock.dts
&codec {
allwinner,audio-routing =
"Headphone", "HP",
"Headphone", "HPCOM",
"MIC1", "Mic",
"Mic", "HBIAS";
status = "okay";
};
离线
驱动勾选了 "allwinner,sun8i-v3s-codec", "allwinner,sun8i-v3s-codec-analog" ?
dtb用的是 sun8i-v3s-licheepi-zero-dock.dtb,kernel反复烧写过很多次,声卡始终找不到,不知道啥原因?
5.2内核有适配过声卡吗?我看5.2的内核驱动跟4.13不一样,目前4.10 4.13都能找到声卡,5.2不行,不知道哪里导致的。
离线