Git Product home page Git Product logo

linux-orangepi's People

Contributors

leeboby avatar orangepi-xunlong 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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linux-orangepi's Issues

rk3588 Realtek 8821CU (AC600) causes a boot hang when inserted

Hello, the kernel will hang when inserting a Realtek 8821CU (AC600) WiFi and Bluetooth adapter. This has been observed a few times in the following issues ubuntu-orange-pi5/#91 and ubuntu-orange-pi5/#38. Some people do not have any issues with this, and some do.

The USB seems to reset continuously, as shown in the below kernel log snippet:

[   11.937040] vendor storage:20190527 ret = -1
[   41.450573] usb 2-1: reset high-speed USB device number 2 using ehci-platform
[   72.170556] usb 2-1: reset high-speed USB device number 2 using ehci-platform
[  102.887226] usb 2-1: reset high-speed USB device number 2 using ehci-platform

orangepizero3: Ethernet adapter lost after soft reboot

We are facing an issue with the Ethernet adapter/driver when using ifupdown to setup a network. After a (soft) reboot, the Ethernet network interface does not show up anymore, a power cycle is required to restore it.

To replicate:

  1. Flash/boot any Debian image
  2. Assure that no other network manager configured the Ethernet interface
  3. Setup ifupdown, e.g. this way, using a static IP:
    cat << '_EOF_' > /etc/network/interfaces
    iface eth0 inet static
    address 192.168.1.15/24
    gateway 192.168.1.1
    _EOF_
    ifup etn0
  4. reboot
  5. ip l does not list eth0 anymore

Strange is, that using NetworkManager works, at least with a simple setup with a static IP or DHCP. But we found other reports were it causes the same issue in certain circumstances.

Now we tried to find out which step exactly causes the issue. To show

root@orangepizero3:~# ifup -nv eth0

ifup: configuring interface eth0=eth0 (inet)
/bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
/sbin/ip addr add 192.168.1.15/255.255.255.0 broadcast 192.168.1.255      dev eth0 label eth0
/sbin/ip link set dev eth0   up
 /sbin/ip route add default via 192.168.1.1  dev eth0 onlink
/bin/run-parts --exit-on-error --verbose /etc/network/if-up.d

Now running these commands manually instead of using ifup:

/bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
/sbin/ip addr add 192.168.1.15/255.255.255.0 broadcast 192.168.1.255 dev eth0 label eth0
/sbin/ip link set dev eth0  up
/sbin/ip route add default via 192.168.1.1 dev eth0 onlink
/bin/run-parts --exit-on-error --verbose /etc/network/if-up.d

Network works, the same as when using ifup, but surprisingly, after reboot, the adapter is NOT lost. We tested this multiple times up and down, with DHCP, static IP, without or without gateway, whenever ifup is used, after a soft reboot, the interface is lost, when setting up the network with the very same commands manually, it is not. So ifup must do some step that is not shown in its verbose/simulate output, which causes the issue. I will ask elsewhere about that.

The kernel throws an error when the adapter is lost, some timeout, but I am not wised enough to understand it. Probably someone with more insights has an idea:

[    3.773197] dwmac-sun8i 5020000.ethernet: Current syscon value is not the default 58000 (expect 0)
[    3.937809] dwmac-sun8i 5020000.ethernet: EMAC reset timeout
[    3.965274] dwmac-sun8i: probe of 5020000.ethernet failed with error -110

OPi 4 LTS - no boot from sd

Hello
Newbie here. I acquired a OPI4 LTS, flashed with several distro (ubuntu, debian, armbian, etc) but none of them boot the hardware. It always boots to android. Any guess?

orangepizero3: orange-pi-6.1-sun50iw9 branch does not boot, dts missing vcc- supply?

Hello,

I am trying to compile 6.1.31 to enable kvm since this is not enabled in the default kernel from leeboby images. The kernel is compiled from the branch orange-pi-6.1-sun50iw9 with /proc/config.gz from the armbian image as the base configuration, modified to enable KVM.

The system does not boot with the compiled kernel, because the SD card is not detected in initramfs:

Starting kernel ...

Loading, please wait...
Starting systemd-udevd version 252.6-1
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... 1;-1fdone.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  UUID=29255239-4f31-4d74-8af8-d56e72fbcab3 does not exist.  Dropping to a shell!
(initramfs) dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.1.31-custom (root@042ab3c5c237) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0, GNU ld (GNU Bin
utils for Ubuntu) 2.34) #2 SMP Fri Nov 17 10:51:24 UTC 2023
[    0.000000] Machine model: OrangePi Zero3
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x13f7bf040-0x13f7c0fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000004007ffff]
[    0.000000]   node   0: [mem 0x0000000040080000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000] cma: Reserved 128 MiB at 0x00000000f8000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.4
[    0.000000] percpu: Embedded 20 pages/cpu s41704 r8192 d32024 u81920
[    0.000000] pcpu-alloc: s41704 r8192 d32024 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Fallback order for Node 0: 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: root=UUID=29255239-4f31-4d74-8af8-d56e72fbcab3 rootwait rootfstype=ext4 splash=verbose console=ttyS0,115
200 consoleblank=0 loglevel=1 ubootpart=02e6d072-01 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   cgroup_enable=memory swapaccount=1
[    0.000000] The swapaccount= commandline option is deprecated. Please report your usecase to [email protected] if you depend on this fun
ctionality.
[    0.000000] Unknown kernel command line parameters "splash=verbose ubootpart=02e6d072-01 cgroup_enable=memory", will be passed to user sp
ace.
[    0.000000] printk: log_buf_len individual max cpu contribution: 131072 bytes
[    0.000000] printk: log_buf_len total cpu_extra contributions: 393216 bytes
[    0.000000] printk: log_buf_len min size: 131072 bytes
[    0.000000] printk: log_buf_len: 524288 bytes
[    0.000000] printk: early log buf free: 128600(98%)
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x00000000f4000000-0x00000000f8000000] (64MB)
[    0.000000] Memory: 3877936K/4194304K available (12544K kernel code, 1418K rwdata, 3300K rodata, 2688K init, 486K bss, 185296K reserved,
131072K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000553] Console: colour dummy device 80x25
[    0.000641] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000653] pid_max: default: 32768 minimum: 301
[    0.000723] LSM: Security Framework initializing
[    0.000748] Yama: becoming mindful.
[    0.000842] AppArmor: AppArmor initialized
[    0.000927] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000951] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.001947] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.002509] cblist_init_generic: Setting adjustable number of callback queues.
[    0.002518] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.002673] rcu: Hierarchical SRCU implementation.
[    0.002676] rcu:     Max phase no-delay instances is 1000.
[    0.003833] smp: Bringing up secondary CPUs ...
[    0.004368] Detected VIPT I-cache on CPU1
[    0.004443] cacheinfo: Unable to detect cache hierarchy for CPU 1
[    0.004480] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.004957] Detected VIPT I-cache on CPU2
[    0.005015] cacheinfo: Unable to detect cache hierarchy for CPU 2
[    0.005033] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.005479] Detected VIPT I-cache on CPU3
[    0.005536] cacheinfo: Unable to detect cache hierarchy for CPU 3
[    0.005553] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.005612] smp: Brought up 1 node, 4 CPUs
[    0.005619] SMP: Total of 4 processors activated.
[    0.005623] CPU features: detected: 32-bit EL0 Support
[    0.005626] CPU features: detected: 32-bit EL1 Support
[    0.005630] CPU features: detected: CRC32 instructions
[    0.005695] CPU: All CPU(s) started at EL2
[    0.005715] alternatives: applying system-wide alternatives
[    0.008362] devtmpfs: initialized
[    0.014356] Registered cp15_barrier emulation handler
[    0.014366] Registered setend emulation handler
[    0.014510] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.014529] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.019473] pinctrl core: initialized pinctrl subsystem
[    0.020761] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.021821] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.022026] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.022193] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.022226] audit: initializing netlink subsys (disabled)
[    0.022336] audit: type=2000 audit(0.020:1): state=initialized audit_enabled=0 res=1
[    0.022665] thermal_sys: Registered thermal governor 'fair_share'
[    0.022670] thermal_sys: Registered thermal governor 'bang_bang'
[    0.022673] thermal_sys: Registered thermal governor 'step_wise'
[    0.022677] thermal_sys: Registered thermal governor 'user_space'
[    0.022711] cpuidle: using governor menu
[    0.022890] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.022965] ASID allocator initialised with 65536 entries
[    0.023082] Serial: AMBA PL011 UART driver
[    0.027968] platform 3001000.clock: Fixed dependency cycle(s) with /soc/rtc@7000000
[    0.032026] platform 6000000.hdmi: Fixed dependency cycle(s) with /soc/tcon-top@6510000
[    0.032464] platform 6510000.tcon-top: Fixed dependency cycle(s) with /soc/lcd-controller@6515000
[    0.032481] platform 6510000.tcon-top: Fixed dependency cycle(s) with /soc/bus@1000000/mixer@100000
[    0.033138] platform 7010000.clock: Fixed dependency cycle(s) with /soc/rtc@7000000
[    0.034406] platform 6000000.hdmi: Fixed dependency cycle(s) with /connector
[    0.035946] KASLR disabled due to lack of seed
[    0.041226] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.041231] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.041237] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.041241] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.041246] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.041249] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.041254] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.041258] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.041950] cryptd: max_cpu_qlen set to 1000
[    0.108095] raid6: neonx8   gen()  1849 MB/s
[    0.176147] raid6: neonx4   gen()  1895 MB/s
[    0.244207] raid6: neonx2   gen()  1796 MB/s
[    0.312260] raid6: neonx1   gen()  1557 MB/s
[    0.380333] raid6: int64x8  gen()  1209 MB/s
[    0.448379] raid6: int64x4  gen()  1378 MB/s
[    0.516446] raid6: int64x2  gen()  1203 MB/s
[    0.584504] raid6: int64x1  gen()   909 MB/s
[    0.584509] raid6: using algorithm neonx4 gen() 1895 MB/s
[    0.652553] raid6: .... xor() 1370 MB/s, rmw enabled
[    0.652557] raid6: using neon recovery algorithm
[    0.653806] iommu: Default domain type: Translated
[    0.653810] iommu: DMA domain TLB invalidation policy: strict mode
[    0.654065] SCSI subsystem initialized
[    0.654238] usbcore: registered new interface driver usbfs
[    0.654274] usbcore: registered new interface driver hub
[    0.654300] usbcore: registered new device driver usb
[    0.654555] pps_core: LinuxPPS API ver. 1 registered
[    0.654559] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.654572] PTP clock support registered
[    0.654853] ARM FF-A: FFA_VERSION returned not supported
[    0.655154] Advanced Linux Sound Architecture Driver Initialized.
[    0.655766] NetLabel: Initializing
[    0.655770] NetLabel:  domain hash size = 128
[    0.655773] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.655832] NetLabel:  unlabeled traffic allowed by default
[    0.655836] mctp: management component transport protocol core
[    0.655840] NET: Registered PF_MCTP protocol family
[    0.656193] clocksource: Switched to clocksource arch_sys_counter
[    0.656387] VFS: Disk quotas dquot_6.6.0
[    0.656424] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.656922] AppArmor: AppArmor Filesystem Enabled
[    0.663179] NET: Registered PF_INET protocol family
[    0.663399] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.666678] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.666727] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.666746] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.667005] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.668255] TCP: Hash tables configured (established 32768 bind 32768)
[    0.668367] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.668457] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.668691] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.669281] Trying to unpack rootfs image as initramfs...
[    0.677125] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.677773] kvm [1]: IPA Size Limit: 40 bits
[    0.679181] kvm [1]: vgic interrupt IRQ9
[    0.679931] kvm [1]: Hyp mode initialized successfully
[    0.681342] Initialise system trusted keyrings
[    0.681390] Key type blacklist registered
[    0.681580] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    0.686515] zbud: loaded
[    0.687885] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.689456] integrity: Platform Keyring initialized
[    0.731039] xor: measuring software checksum speed
[    0.735750]    8regs           :  2100 MB/sec
[    0.740310]    32regs          :  2169 MB/sec
[    0.745150]    arm64_neon      :  2036 MB/sec
[    0.745155] xor: using function: 32regs (2169 MB/sec)
[    0.745166] async_tx: api initialized (async)
[    0.745176] Key type asymmetric registered
[    0.745182] Asymmetric key parser 'x509' registered
[    1.376458] Freeing initrd memory: 15008K
[    1.398313] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[    1.398448] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.398564] io scheduler mq-deadline registered
[    1.398569] io scheduler kyber registered
[    1.398756] io scheduler bfq registered
[    1.411266] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    1.413472] misc dump reg init
[    1.413951] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.417548] loop: module loaded
[    1.419984] usbcore: registered new interface driver usb-storage
[    1.420433] mousedev: PS/2 mouse device common for all mice
[    1.421185] sun6i-rtc 7000000.rtc: registered as rtc0
[    1.421206] sun6i-rtc 7000000.rtc: setting system clock to 2023-11-17T11:49:06 UTC (1700221746)
[    1.421297] sun6i-rtc 7000000.rtc: RTC enabled
[    1.421502] i2c_dev: i2c /dev entries driver
[    1.421729] mv64xxx_i2c 7081400.i2c: can't get pinctrl, bus recovery not supported
[    1.422210] axp20x-i2c 0-0036: AXP20x variant AXP313a found
[    1.422353] axp20x-i2c 0-0036: AXP20X driver loaded
[    1.423028] sunxi-wdt 30090a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.424280] sdhci: Secure Digital Host Controller Interface driver
[    1.424284] sdhci: Copyright(c) Pierre Ossman
[    1.424313] Synopsys Designware Multimedia Card Interface Driver
[    1.424963] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.425330] ledtrig-cpu: registered to indicate activity on CPUs
[    1.425592] SMCCC: SOC_ID: ID = jep106:091e:1823 Revision = 0x00000002
[    1.426027] hid: raw HID events driver (C) Jiri Kosina
[    1.426102] usbcore: registered new interface driver usbhid
[    1.426106] usbhid: USB HID core driver
[    1.469311] NET: Registered PF_INET6 protocol family
[    1.490510] Segment Routing with IPv6
[    1.490585] In-situ OAM (IOAM) with IPv6
[    1.490688] NET: Registered PF_PACKET protocol family
[    1.490782] 8021q: 802.1Q VLAN Support v1.8
[    1.490923] 9pnet: Installing 9P2000 support
[    1.491005] Key type dns_resolver registered
[    1.491483] registered taskstats version 1
[    1.491508] Loading compiled-in X.509 certificates
[    1.493664] zswap: loaded using pool zstd/z3fold
[    1.493998] Key type .fscrypt registered
[    1.494002] Key type fscrypt-provisioning registered
[    1.494223] Key type encrypted registered
[    1.494235] AppArmor: AppArmor sha1 policy hashing enabled
[    1.494256] ima: No TPM chip found, activating TPM-bypass!
[    1.494285] ima: Allocated hash algorithm: sha1
[    1.494320] ima: No architecture policies found
[    1.494380] evm: Initialising EVM extended attributes:
[    1.494383] evm: security.selinux
[    1.494387] evm: security.SMACK64
[    1.494391] evm: security.SMACK64EXEC
[    1.494394] evm: security.SMACK64TRANSMUTE
[    1.494397] evm: security.SMACK64MMAP
[    1.494400] evm: security.apparmor
[    1.494403] evm: security.ima
[    1.494406] evm: security.capability
[    1.494409] evm: HMAC attrs: 0x1
[    1.517216] sun50i-h616-pinctrl 300b000.pinctrl: initialized sunXi PIO driver
[    1.517764] sun50i-h616-r-pinctrl 7022000.pinctrl: initialized sunXi PIO driver
[    1.517997] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-ph not found, using dummy regulator
[    1.518455] printk: console [ttyS0] disabled
[    1.518529] 5000000.serial: ttyS0 at MMIO 0x5000000 (irq = 285, base_baud = 1500000) is a 16550A
[    1.518724] printk: console [ttyS0] enabled
[    1.519226] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pc not found, using dummy regulator
[    1.520370] spi-nor spi0.0: ZB25VQ128A (16384 Kbytes)
[    1.535878] sun50i-cpufreq-nvmem: will use speed0 CPU OPPs
[    1.536378] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pg not found, using dummy regulator
[    1.537274] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.538164] sunxi-mmc 4021000.mmc: allocated mmc-pwrseq
[    1.539422] ehci-platform 5200000.usb: EHCI Host Controller
[    1.539446] ehci-platform 5200000.usb: new USB bus registered, assigned bus number 1
[    1.539567] ehci-platform 5200000.usb: irq 289, io mem 0x05200000
[    1.539731] ehci-platform 5310000.usb: EHCI Host Controller
[    1.539748] ehci-platform 5310000.usb: new USB bus registered, assigned bus number 2
[    1.539821] ehci-platform 5310000.usb: irq 290, io mem 0x05310000
[    1.539882] ehci-platform 5311000.usb: EHCI Host Controller
[    1.539898] ehci-platform 5311000.usb: new USB bus registered, assigned bus number 3
[    1.539996] ehci-platform 5311000.usb: irq 291, io mem 0x05311000
[    1.540133] usb_phy_generic usb_phy_generic.1.auto: supply vcc not found, using dummy regulator
[    1.540281] usb_phy_generic usb_phy_generic.1.auto: dummy supplies not allowed for exclusive requests
[    1.540488] ohci-platform 5200400.usb: Generic Platform OHCI controller
[    1.540504] ohci-platform 5200400.usb: new USB bus registered, assigned bus number 4
[    1.540554] ohci-platform 5310400.usb: Generic Platform OHCI controller
[    1.540571] ohci-platform 5310400.usb: new USB bus registered, assigned bus number 5
[    1.540576] ohci-platform 5200400.usb: irq 292, io mem 0x05200400
[    1.540634] ohci-platform 5310400.usb: irq 293, io mem 0x05310400
[    1.541649] ohci-platform 5311400.usb: Generic Platform OHCI controller
[    1.541665] ohci-platform 5311400.usb: new USB bus registered, assigned bus number 6
[    1.541730] ohci-platform 5311400.usb: irq 295, io mem 0x05311400
[    1.541843] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.542802] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.543725] ALSA device list:
[    1.543732]   #0: audiocodec
[    1.543737]   #1: ahubdam
[    1.543956] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.552204] ehci-platform 5200000.usb: USB 2.0 started, EHCI 1.00
[    1.552447] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.552459] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.552468] usb usb1: Product: EHCI Host Controller
[    1.552475] usb usb1: Manufacturer: Linux 6.1.31-custom ehci_hcd
[    1.552482] usb usb1: SerialNumber: 5200000.usb
[    1.552916] hub 1-0:1.0: USB hub found
[    1.552951] hub 1-0:1.0: 1 port detected
[    1.553927] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.568196] ehci-platform 5310000.usb: USB 2.0 started, EHCI 1.00
[    1.568401] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.568413] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.568421] usb usb2: Product: EHCI Host Controller
[    1.568428] usb usb2: Manufacturer: Linux 6.1.31-custom ehci_hcd
[    1.568435] usb usb2: SerialNumber: 5310000.usb
[    1.568769] hub 2-0:1.0: USB hub found
[    1.568802] hub 2-0:1.0: 1 port detected
[    1.569710] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.584187] ehci-platform 5311000.usb: USB 2.0 started, EHCI 1.00
[    1.584388] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.584401] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.584409] usb usb3: Product: EHCI Host Controller
[    1.584416] usb usb3: Manufacturer: Linux 6.1.31-custom ehci_hcd
[    1.584424] usb usb3: SerialNumber: 5311000.usb
[    1.584757] hub 3-0:1.0: USB hub found
[    1.584792] hub 3-0:1.0: 1 port detected
[    1.585698] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.604379] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
[    1.604391] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.604399] usb usb6: Product: Generic Platform OHCI controller
[    1.604406] usb usb6: Manufacturer: Linux 6.1.31-custom ohci_hcd
[    1.604413] usb usb6: SerialNumber: 5311400.usb
[    1.604772] hub 6-0:1.0: USB hub found
[    1.604813] hub 6-0:1.0: 1 port detected
[    1.605268] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
[    1.605280] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.605288] usb usb4: Product: Generic Platform OHCI controller
[    1.605295] usb usb4: Manufacturer: Linux 6.1.31-custom ohci_hcd
[    1.605302] usb usb4: SerialNumber: 5200400.usb
[    1.605646] hub 4-0:1.0: USB hub found
[    1.605680] hub 4-0:1.0: 1 port detected
[    1.605733] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.606183] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
[    1.606195] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.606204] usb usb5: Product: Generic Platform OHCI controller
[    1.606211] usb usb5: Manufacturer: Linux 6.1.31-custom ohci_hcd
[    1.606218] usb usb5: SerialNumber: 5310400.usb
[    1.606616] hub 5-0:1.0: USB hub found
[    1.606651] hub 5-0:1.0: 1 port detected
[    1.606775] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.607797] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.768757] sunxi-mmc 4021000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    1.769648] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.769803] Freeing unused kernel memory: 2688K
[    1.769937] Run /init as init process
[    1.769944]   with arguments:
[    1.769949]     /init
[    1.769954]   with environment:
[    1.769958]     HOME=/
[    1.769963]     TERM=linux
[    1.769967]     splash=verbose
[    1.769972]     ubootpart=02e6d072-01
[    1.769977]     cgroup_enable=memory
[    1.786005] mmc1: new high speed SDIO card at address 8800
[    2.344782] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log.
[    2.345207] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: [email protected]
[    5.144208] random: crng init done
[   12.517185] platform cpufreq-dt: deferred probe pending
[   12.517208] platform soc:ahub1_mach: deferred probe pending
[   12.517491] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
(initramfs) ls /dev/mmc*
/dev/mmc*: No such file or directory

There are multiple messages about sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-* not found, using dummy regulator throughout the boot, which makes me suspect that the device tree sun50i-h616-orangepi-zero3.dts in git is incorrect, and the reason for not booting is that the SD card is not receiving the correct voltage from the axp313a PMIC.

There are no such errors during boot in the armbian kernel/image provided in leeboby images. The sun50i-h616-orangepi-zero2.dts includes &pio with a mapping of the supply-vcc to PMIC. No such mapping exists in sun50i-h616-orangepi-zero3.dts.

I tried to add the appropriate mapping based on the Zero3 schematic, but board does not output anything over UART after handover from u-boot:

--- a/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero3.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero3.dts
@@ -218,6 +219,14 @@ reg_dldo1: ldo2 {
        };
 };

+&pio {
+        vcc-pc-supply = <&reg_dldo1>;
+        vcc-pf-supply = <&reg_dldo1>;
+        vcc-pg-supply = <&reg_aldo1>;
+        vcc-ph-supply = <&reg_aldo1>;
+        vcc-pi-supply = <&reg_aldo1>;
+};
+
 &uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_ph_pins>;

It seems like the repository is not matching the binaries shipped, otherwise I would expect a kernel with the same .config to boot. Could someone please take a look?

uwe6522 wifi scan fails on 5.16-sunxi64 kernel

I built xulong 5.16 kernel from sources (72895a2) and have issue with wifi scan on OrangePI Zero2 (uwe5622 wifi chip).
I'm using iwd 1.26.

It looks to me issue is probably in wifi firmware as dmesg says:

[  125.323374] WCN: mdbg_assert_read:WCN Assert in connect/source/wifi/rom/mac/cmd/cmd_tx_rom.c line 5111, 0,data length 128
[  125.323445] WCN: stop_loopcheck
[  125.323460] WCN_ERR: chip reset & notify every subsystem...

here is log from scan attempt:

root@Myth-Frontend-020049ec9a1a:~ # iwctl
NetworkConfigurationEnabled: disabled
StateDirectory: /var/lib/iwd
Version: 1.26
[iwd]# station wlan0 scan
Operation failed
[iwd]# quit

and here is kernel dmesg:

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.16.17 (piotro@builder-armv8) (aarch64-minimyth-linux-gnu-gcc (GCC) 11.3.0, GNU ld (GNU Binutils) 2.36) #3 SMP PREEMPT Wed May 4 11:51:06 CEST 2022
[    0.000000] Machine model: OrangePi Zero2
[    0.000000] efi: UEFI not found.
[    0.000000] earlycon: uart0 at MMIO32 0x0000000005000000 (options '115200n8')
[    0.000000] printk: bootconsole [uart0] enabled
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000004007ffff]
[    0.000000]   node   0: [mem 0x0000000040080000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] cma: Reserved 256 MiB at 0x000000006ec00000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 29 pages/cpu s78744 r8192 d31848 u118784
[    0.000000] pcpu-alloc: s78744 r8192 d31848 u118784 alloc=29*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Kernel command line: root=PARTUUID=346d1a6a-02 rw rootwait earlycon console=ttyS0,115200n8 logo.nologo vt.cur_default=1
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 735228K/1048576K available (13696K kernel code, 3360K rwdata, 6080K rodata, 6144K init, 547K bss, 51204K reserved, 262144K cma-reserved)
[    0.000000] random: get_random_u64 called from cache_random_seq_create+0x84/0x18c with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 47757 entries in 187 pages
[    0.000000] ftrace: allocated 187 pages with 6 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000693] Console: colour dummy device 80x25
[    0.000742] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000)
[    0.000756] pid_max: default: 32768 minimum: 301
[    0.000925] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.000938] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.002963] rcu: Hierarchical SRCU implementation.
[    0.004890] EFI services will not be available.
[    0.005495] smp: Bringing up secondary CPUs ...
[    0.006152] Detected VIPT I-cache on CPU1
[    0.006230] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.007075] Detected VIPT I-cache on CPU2
[    0.007145] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.007891] Detected VIPT I-cache on CPU3
[    0.007957] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.008083] smp: Brought up 1 node, 4 CPUs
[    0.008097] SMP: Total of 4 processors activated.
[    0.008103] CPU features: detected: 32-bit EL0 Support
[    0.008107] CPU features: detected: 32-bit EL1 Support
[    0.008113] CPU features: detected: CRC32 instructions
[    0.018956] CPU: All CPU(s) started at EL2
[    0.019002] alternatives: patching kernel code
[    0.020321] devtmpfs: initialized
[    0.027659] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[    0.027695] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.036082] pinctrl core: initialized pinctrl subsystem
[    0.036925] DMI not present or invalid.
[    0.037330] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.039335] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.039526] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.039700] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.039857] audit: initializing netlink subsys (disabled)
[    0.040133] audit: type=2000 audit(0.036:1): state=initialized audit_enabled=0 res=1
[    0.041280] thermal_sys: Registered thermal governor 'fair_share'
[    0.041293] thermal_sys: Registered thermal governor 'bang_bang'
[    0.041298] thermal_sys: Registered thermal governor 'step_wise'
[    0.041303] thermal_sys: Registered thermal governor 'user_space'
[    0.041939] cpuidle: using governor ladder
[    0.041969] cpuidle: using governor menu
[    0.042093] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.042231] ASID allocator initialised with 65536 entries
[    0.042982] Serial: AMBA PL011 UART driver
[    0.058991] platform 6510000.tcon-top: Fixing up cyclic dependency with 6000000.hdmi
[    0.060054] platform 6515000.lcd-controller: Fixing up cyclic dependency with 6510000.tcon-top
[    0.062294] platform connector: Fixing up cyclic dependency with 6000000.hdmi
[    0.073105] cryptd: max_cpu_qlen set to 1000
[    0.074209] ACPI: Interpreter disabled.
[    0.075784] iommu: Default domain type: Translated
[    0.075802] iommu: DMA domain TLB invalidation policy: strict mode
[    0.076971] SCSI subsystem initialized
[    0.077212] usbcore: registered new interface driver usbfs
[    0.077262] usbcore: registered new interface driver hub
[    0.077307] usbcore: registered new device driver usb
[    0.077887] pps_core: LinuxPPS API ver. 1 registered
[    0.077894] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.077910] PTP clock support registered
[    0.077945] EDAC MC: Ver: 3.0.0
[    0.079039] Advanced Linux Sound Architecture Driver Initialized.
[    0.080109] clocksource: Switched to clocksource arch_sys_counter
[    0.168499] pnp: PnP ACPI: disabled
[    0.176446] NET: Registered PF_INET protocol family
[    0.176629] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.177587] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.177634] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.177763] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.177885] TCP: Hash tables configured (established 8192 bind 8192)
[    0.178033] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.178074] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.178259] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.178829] RPC: Registered named UNIX socket transport module.
[    0.178844] RPC: Registered udp transport module.
[    0.178849] RPC: Registered tcp transport module.
[    0.178853] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.178862] NET: Registered PF_XDP protocol family
[    0.178880] PCI: CLS 0 bytes, default 64
[    0.179804] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.180391] kvm [1]: IPA Size Limit: 40 bits
[    0.181734] kvm [1]: vgic interrupt IRQ9
[    0.181893] kvm [1]: Hyp mode initialized successfully
[    1.035323] Initialise system trusted keyrings
[    1.035632] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    1.041892] zbud: loaded
[    1.043675] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.044405] NFS: Registering the id_resolver key type
[    1.044452] Key type id_resolver registered
[    1.044457] Key type id_legacy registered
[    1.044551] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.044558] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.087417] NET: Registered PF_ALG protocol family
[    1.087438] Key type asymmetric registered
[    1.087444] Asymmetric key parser 'x509' registered
[    1.087449] Asymmetric key parser 'pkcs8' registered
[    1.087454] Key type pkcs7_test registered
[    1.087603] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.087831] io scheduler mq-deadline registered
[    1.087839] io scheduler kyber registered
[    1.088046] io scheduler bfq registered
[    1.103745] sun50i-h616-pinctrl 300b000.pinctrl: initialized sunXi PIO driver
[    1.104895] sun50i-h616-r-pinctrl 7022000.pinctrl: initialized sunXi PIO driver
[    1.108007] EINJ: ACPI disabled.
[    1.124623] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.126836] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-ph not found, using dummy regulator
[    1.127612] printk: console [ttyS0] disabled
[    1.127705] 5000000.serial: ttyS0 at MMIO 0x5000000 (irq = 31, base_baud = 1500000) is a 16550A
[    1.127789] printk: console [ttyS0] enabled
[    1.127796] printk: bootconsole [uart0] disabled
[    1.128929] Serial: AMBA driver
[    1.129952] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.136850] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.136882] ehci-pci: EHCI PCI platform driver
[    1.136938] ehci-platform: EHCI generic platform driver
[    1.137450] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.137472] ohci-pci: OHCI PCI platform driver
[    1.137540] ohci-platform: OHCI generic platform driver
[    1.138109] SPI driver max3421-hcd has no spi_device_id for maxim,max3421
[    1.138183] usbcore: registered new interface driver usb-storage
[    1.138230] usbcore: registered new interface driver ums-realtek
[    1.138309] usbcore: registered new interface driver usbserial_generic
[    1.138333] usbserial: USB Serial support registered for generic
[    1.139955] mousedev: PS/2 mouse device common for all mice
[    1.141429] sun6i-rtc 7000000.rtc: registered as rtc0
[    1.141472] sun6i-rtc 7000000.rtc: setting system clock to 2022-05-04T09:53:51 UTC (1651658031)
[    1.141601] sun6i-rtc 7000000.rtc: RTC enabled
[    1.142374] mv64xxx_i2c 7081400.i2c: can't get pinctrl, bus recovery not supported
[    1.143268] axp20x-i2c 0-0036: AXP20x variant AXP806 found
[    1.148045] vdd-dram: Bringing 1500000uV into 1400000-1400000uV
[    1.157484] axp20x-i2c 0-0036: AXP20X driver loaded
[    1.161949] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 1032000 KHz, changing to: 1200000 KHz
[    1.163796] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pg not found, using dummy regulator
[    1.164291] sdhci: Secure Digital Host Controller Interface driver
[    1.164300] sdhci: Copyright(c) Pierre Ossman
[    1.164565] Synopsys Designware Multimedia Card Interface Driver
[    1.165716] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.165954] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.166522] sunxi-mmc 4021000.mmc: allocated mmc-pwrseq
[    1.166905] sunxi-mmc 4020000.mmc: Got CD GPIO
[    1.167257] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pc not found, using dummy regulator
[    1.168234] ledtrig-cpu: registered to indicate activity on CPUs
[    1.169174] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.169227] hid: raw HID events driver (C) Jiri Kosina
[    1.169340] usbcore: registered new interface driver usbhid
[    1.169344] usbhid: USB HID core driver
[    1.179934] usbcore: registered new interface driver snd-usb-audio
[    1.181379] debugfs: Directory '5096000.codec' with parent 'H616 Audio Codec' already present!
[    1.190313] sunxi-mmc 4020000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    1.220565] NET: Registered PF_PACKET protocol family
[    1.220852] Key type dns_resolver registered
[    1.221551] registered taskstats version 1
[    1.221568] Loading compiled-in X.509 certificates
[    1.222058] zswap: loaded using pool lzo/zbud
[    1.225279] mmc1: host does not support reading read-only switch, assuming write-enable
[    1.227133] mmc1: new high speed SDXC card at address 59b4
[    1.228078] mmcblk1: mmc1:59b4 SDU1  58.2 GiB
[    1.231193]  mmcblk1: p1 p2
[    1.242311] platform 1100000.mixer: Fixing up cyclic dependency with 6510000.tcon-top
[    1.245112] phy phy-5100400.phy.0: Changing dr_mode to 1
[    1.245132] ehci-platform 5101000.usb: EHCI Host Controller
[    1.245351] ehci-platform 5101000.usb: new USB bus registered, assigned bus number 1
[    1.245482] ehci-platform 5101000.usb: irq 34, io mem 0x05101000
[    1.256791] ehci-platform 5101000.usb: USB 2.0 started, EHCI 1.00
[    1.257025] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.16
[    1.257035] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.257041] usb usb1: Product: EHCI Host Controller
[    1.257046] usb usb1: Manufacturer: Linux 5.16.17 ehci_hcd
[    1.257050] usb usb1: SerialNumber: 5101000.usb
[    1.257494] hub 1-0:1.0: USB hub found
[    1.257524] hub 1-0:1.0: 1 port detected
[    1.258593] ehci-platform 5200000.usb: EHCI Host Controller
[    1.258839] ehci-platform 5200000.usb: new USB bus registered, assigned bus number 2
[    1.258957] ehci-platform 5200000.usb: irq 36, io mem 0x05200000
[    1.270110] ehci-platform 5200000.usb: USB 2.0 started, EHCI 1.00
[    1.270317] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.16
[    1.270325] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.270330] usb usb2: Product: EHCI Host Controller
[    1.270336] usb usb2: Manufacturer: Linux 5.16.17 ehci_hcd
[    1.270340] usb usb2: SerialNumber: 5200000.usb
[    1.270753] hub 2-0:1.0: USB hub found
[    1.270782] hub 2-0:1.0: 1 port detected
[    1.271821] ehci-platform 5310000.usb: EHCI Host Controller
[    1.272035] ehci-platform 5310000.usb: new USB bus registered, assigned bus number 3
[    1.272169] ehci-platform 5310000.usb: irq 38, io mem 0x05310000
[    1.283445] ehci-platform 5310000.usb: USB 2.0 started, EHCI 1.00
[    1.283634] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.16
[    1.283643] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.283649] usb usb3: Product: EHCI Host Controller
[    1.283654] usb usb3: Manufacturer: Linux 5.16.17 ehci_hcd
[    1.283659] usb usb3: SerialNumber: 5310000.usb
[    1.284107] hub 3-0:1.0: USB hub found
[    1.284137] hub 3-0:1.0: 1 port detected
[    1.285218] ehci-platform 5311000.usb: EHCI Host Controller
[    1.285419] ehci-platform 5311000.usb: new USB bus registered, assigned bus number 4
[    1.285540] ehci-platform 5311000.usb: irq 40, io mem 0x05311000
[    1.296783] ehci-platform 5311000.usb: USB 2.0 started, EHCI 1.00
[    1.296966] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.16
[    1.296974] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.296980] usb usb4: Product: EHCI Host Controller
[    1.296985] usb usb4: Manufacturer: Linux 5.16.17 ehci_hcd
[    1.296989] usb usb4: SerialNumber: 5311000.usb
[    1.297432] hub 4-0:1.0: USB hub found
[    1.297463] hub 4-0:1.0: 1 port detected
[    1.396006] sunxi-mmc 4021000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    1.412920] random: fast init done
[    1.413065] mmc0: new high speed SDIO card at address 8800
[    1.450206] ohci-platform 5101400.usb: Generic Platform OHCI controller
[    1.450398] ohci-platform 5101400.usb: new USB bus registered, assigned bus number 5
[    1.450517] ohci-platform 5101400.usb: irq 35, io mem 0x05101400
[    1.510944] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.16
[    1.510952] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.510958] usb usb5: Product: Generic Platform OHCI controller
[    1.510963] usb usb5: Manufacturer: Linux 5.16.17 ohci_hcd
[    1.510968] usb usb5: SerialNumber: 5101400.usb
[    1.511387] hub 5-0:1.0: USB hub found
[    1.511417] hub 5-0:1.0: 1 port detected
[    1.512479] ohci-platform 5200400.usb: Generic Platform OHCI controller
[    1.512693] ohci-platform 5200400.usb: new USB bus registered, assigned bus number 6
[    1.512830] ohci-platform 5200400.usb: irq 37, io mem 0x05200400
[    1.570914] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.16
[    1.570925] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.570931] usb usb6: Product: Generic Platform OHCI controller
[    1.570936] usb usb6: Manufacturer: Linux 5.16.17 ohci_hcd
[    1.570940] usb usb6: SerialNumber: 5200400.usb
[    1.571408] hub 6-0:1.0: USB hub found
[    1.571452] hub 6-0:1.0: 1 port detected
[    1.572500] ohci-platform 5310400.usb: Generic Platform OHCI controller
[    1.572742] ohci-platform 5310400.usb: new USB bus registered, assigned bus number 7
[    1.572865] ohci-platform 5310400.usb: irq 39, io mem 0x05310400
[    1.630914] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.16
[    1.630925] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.630931] usb usb7: Product: Generic Platform OHCI controller
[    1.630936] usb usb7: Manufacturer: Linux 5.16.17 ohci_hcd
[    1.630940] usb usb7: SerialNumber: 5310400.usb
[    1.631394] hub 7-0:1.0: USB hub found
[    1.631424] hub 7-0:1.0: 1 port detected
[    1.632495] ohci-platform 5311400.usb: Generic Platform OHCI controller
[    1.632711] ohci-platform 5311400.usb: new USB bus registered, assigned bus number 8
[    1.632834] ohci-platform 5311400.usb: irq 41, io mem 0x05311400
[    1.690920] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.16
[    1.690931] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.690937] usb usb8: Product: Generic Platform OHCI controller
[    1.690942] usb usb8: Manufacturer: Linux 5.16.17 ohci_hcd
[    1.690946] usb usb8: SerialNumber: 5311400.usb
[    1.691396] hub 8-0:1.0: USB hub found
[    1.691434] hub 8-0:1.0: 1 port detected
[    1.691904] of_cfs_init
[    1.691940] of_cfs_init: OK
[    1.692356] ALSA device list:
[    1.692364]   #0: H616 Audio Codec
[    1.692369]   #1: sndahub
[    2.060861] EXT4-fs (mmcblk1p2): 8 orphan inodes deleted
[    2.060886] EXT4-fs (mmcblk1p2): recovery complete
[    2.105200] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
[    2.105301] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.107075] devtmpfs: mounted
[    2.112485] Freeing unused kernel memory: 6144K
[    2.112588] Run /sbin/init as init process
[    2.112593]   with arguments:
[    2.112597]     /sbin/init
[    2.112601]   with environment:
[    2.112604]     HOME=/
[    2.112607]     TERM=linux
[    2.598745] udevd[199]: starting version 3.2.10
[    2.607416] random: udevd: uninitialized urandom read (16 bytes read)
[    2.609061] random: udevd: uninitialized urandom read (16 bytes read)
[    2.609122] random: udevd: uninitialized urandom read (16 bytes read)
[    2.625761] udevd[201]: starting eudev-3.2.10
[    2.696416] mc: Linux media interface: v0.10
[    2.719468] sunxi-wdt 30090a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    2.720143] videodev: Linux video capture interface: v2.00
[    2.730459] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pi not found, using dummy regulator
[    2.731098] dwmac-sun8i 5020000.ethernet: IRQ eth_wake_irq not found
[    2.731120] dwmac-sun8i 5020000.ethernet: IRQ eth_lpi not found
[    2.731494] dwmac-sun8i 5020000.ethernet: supply phy-io not found, using dummy regulator
[    2.731848] dwmac-sun8i 5020000.ethernet: PTP uses main clock
[    2.731896] dwmac-sun8i 5020000.ethernet: Current syscon value is not the default 58000 (expect 50000)
[    2.732240] dwmac-sun8i 5020000.ethernet: No HW DMA feature register supported
[    2.732261] dwmac-sun8i 5020000.ethernet: RX Checksum Offload Engine supported
[    2.732265] dwmac-sun8i 5020000.ethernet: COE Type 2
[    2.732273] dwmac-sun8i 5020000.ethernet: TX Checksum insertion supported
[    2.732278] dwmac-sun8i 5020000.ethernet: Normal descriptors
[    2.732282] dwmac-sun8i 5020000.ethernet: Chain mode enabled
[    2.753733] sunxi_cedrus: module is from the staging directory, the quality is unknown, you have been warned.
[    2.762451] cedrus 1c0e000.video-codec: Device registered as /dev/video0
[    2.838129] Registered IR keymap rc-empty
[    2.838309] rc rc0: sunxi-ir as /devices/platform/soc/7040000.ir/rc/rc0
[    2.838605] rc rc0: lirc_dev: driver sunxi-ir registered at minor = 0, raw IR receiver, no transmitter
[    2.838808] input: sunxi-ir as /devices/platform/soc/7040000.ir/rc/rc0/input0
[    2.840809] sunxi-ir 7040000.ir: initialized sunXi IR driver
[    5.514361] loop: module loaded
[    5.516758] urandom_read: 2 callbacks suppressed
[    5.516824] random: udevd: uninitialized urandom read (16 bytes read)
[    5.572881] random: udevd: uninitialized urandom read (16 bytes read)
[    5.572946] random: udevd: uninitialized urandom read (16 bytes read)
[    6.494026] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    6.783159] phy_rtl8211f_led_fixup in
[    6.870125] dwmac-sun8i 5020000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[    6.871103] dwmac-sun8i 5020000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[    6.871767] dwmac-sun8i 5020000.ethernet eth0: No Safety Features support found
[    6.871779] dwmac-sun8i 5020000.ethernet eth0: No MAC Management Counters available
[    6.871786] dwmac-sun8i 5020000.ethernet eth0: PTP not supported by HW
[    6.872352] dwmac-sun8i 5020000.ethernet eth0: configuring for phy/rgmii link mode
[    9.951371] dwmac-sun8i 5020000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   36.832475] loop0: detected capacity change from 0 to 10320
[   37.441178] loop1: detected capacity change from 0 to 5832
[   38.475850] input: eventlircd as /devices/virtual/input/input1
[   42.556793] random: crng init done
[   42.556812] random: 2 urandom warning(s) missed due to ratelimiting
[   83.498716] zram: Added device: zram0
[   83.499498] zram: Added device: zram1
[   83.501073] zram: Added device: zram2
[   83.512112] zram: Added device: zram3
[   83.537438] zram0: detected capacity change from 0 to 250880
[   83.548742] zram1: detected capacity change from 0 to 250880
[   83.556036] zram2: detected capacity change from 0 to 250880
[   83.564788] zram3: detected capacity change from 0 to 250880
[   83.639455] Adding 125436k swap on /dev/zram0.  Priority:100 extents:1 across:125436k SSFS
[   83.646498] Adding 125436k swap on /dev/zram1.  Priority:100 extents:1 across:125436k SSFS
[   83.653091] Adding 125436k swap on /dev/zram2.  Priority:100 extents:1 across:125436k SSFS
[   83.671115] Adding 125436k swap on /dev/zram3.  Priority:100 extents:1 across:125436k SSFS
[   84.927054] NET: Registered PF_INET6 protocol family
[   84.928470] Segment Routing with IPv6
[   84.928502] In-situ OAM (IOAM) with IPv6
[  109.974766] WCN: marlin_init entry!
[  109.975598] WCN: wcn config bt wake host
[  109.975833] WCN_ERR: dts node for bt_wake not found
[  109.975841] WCN: marlin2 parse_dt some para not config
[  109.975855] sdiohal:sdiohal_parse_dt adma_tx:1, adma_rx:1, pwrseq:0, irq type:data, gpio_num:0, blksize:840
[  109.981213] sdiohal:sdiohal_init ok
[  109.982015] WCN: marlin_probe ok!
[  109.985406] [ADDR_MGT] addr_mgt_probe: module version: v1.0.9
[  109.985555] [ADDR_MGT] addr_mgt_probe: success.
[  110.067010] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[  110.074258] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[  110.107936] WCN: start_marlin [MARLIN_WIFI]
[  110.107964] WCN: marlin power state:0, subsys: [MARLIN_WIFI] power 1
[  110.107971] WCN: the first power on start
[  110.213427] WCN: marlin chip en dummy pull up -- need manually set GPIO
[  110.240095] sdiohal:sdiohal_scan_card
[  110.240251] sdiohal:sdiohal_probe: func->class=0, vendor=0x0000, device=0x0000, func_num=0x0001, clock=50000000
[  110.240335] WCN: marlin_scan_finish!
[  110.240339] sdiohal:probe ok
[  110.240446] sdiohal:scan end!
[  110.240453] WCN: then marlin start to download
[  110.240683] WCN: marlin_get_wcn_chipid: chipid: 0x2355b001
[  110.240695] WCN: marlin_request_firmware from /lib/firmware/wcnmodem.bin start!
[  111.759964] WCN: combin_img 0 marlin_firmware_write finish and successful
[  111.760358] WCN: marlin_start_run read reset reg val:0x1
[  111.760375] WCN: after do marlin_start_run reset reg val:0x0
[  111.760575] WCN: s_marlin_bootup_time=111760574864
[  111.767210] WCN: clock mode: TSX
[  111.767418] WCN: marlin_write_cali_data sync init_state:0x128002b3
[  111.793650] WCN: marlin_write_cali_data sync init_state:0x128002b3
[  111.820303] WCN: marlin_write_cali_data sync init_state:0xf0f0f0f1
[  111.820312] WCN: sdio_config bt_wake_host trigger:[high]
[  111.820315] WCN: sdio_config irq:[inband]
[  111.820318] WCN: sdio_config wake_host_level_duration_time:[20ms]
[  111.820322] WCN: sdio_config wake_host_data_separation:[bt/wifi reuse]
[  111.820324] WCN: marlin_send_sdio_config_to_cp sdio_config:0x80f01 (enable config)
[  111.820714] WCN: marlin_write_cali_data finish
[  111.820913] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0
[  111.846990] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0
[  111.873639] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0
[  111.900303] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0
[  111.926969] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0
[  111.953637] WCN: check_cp_ready sync val:0xf0f0f0f6, prj_type val:0x0
[  111.953645] WCN: marlin_bind_verify confuse data: 0x2e197f4f5a1107df30c640a9405a3d69
[  111.953663] WCN: marlin_bind_verify verify data: 0x016d6ab91e1d071b3ae4604f224021aa
[  111.954254] WCN: check_cp_ready sync val:0xf0f0f0ff, prj_type val:0x0
[  111.954260] sdiohal:sdiohal_runtime_get entry
[  111.954462] WCN: get_cp2_version entry!
[  111.956153] WCN: WCND at cmd read:WCN_VER:Platform Version:MARLIN3_19B_W20.37.4~Project Version:sc2355_marlin3_lite_ott~09-11-2020 21:27:32~
[  111.956170] WCN: switch_cp2_log - close entry!
[  111.957515] WCN: WCND at cmd read:OK
[  111.957563] WCN: then marlin download finished and run ok
[  111.957569] WCN: start_loopcheck
[  111.974634] WCN: get_board_ant_num [one_ant]
[  111.974655] wifi ini path = /lib/firmware/wifi_2355b001_1ant.ini
[  112.034441] unisoc_wifi unisoc_wifi wlan0: mixed HW and IP checksum settings.
[  125.323374] WCN: mdbg_assert_read:WCN Assert in connect/source/wifi/rom/mac/cmd/cmd_tx_rom.c line 5111, 0,data length 128
[  125.323445] WCN: stop_loopcheck
[  125.323460] WCN_ERR: chip reset & notify every subsystem...
[  125.323562] WCN: [marlin_cp2_reset], DO BSP RESET
[  125.323574] WCN: marlin power state:4, subsys: [MARLIN_WIFI] power 0
[  125.323583] WCN: wcn chip start power off!
[  125.323586] sdiohal:sdiohal_runtime_put entry
[  125.323698] sdiohal:sdiohal_runtime_put wait xmit_cnt end
[  125.323710] WCN: chip_power_off
[  125.323714] WCN: marlin chip en dummy pull down -- need manually set GPIO
[  125.323718] WCN: marlin power off!
[  125.323722] WCN: marlin power state:0, subsys: [MARLIN_BLUETOOTH] power 0

I'm cross-compiling the kernel and I get this error, is this serious? Is it possible to ignore.

log:

aarch64-linux-gnu-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-gnu-ld: Unexpected run-time procedure linkages detected!
aarch64-linux-gnu-ld: ID map text too big or misaligned
aarch64-linux-gnu-ld: drivers/net/phy/sunxi-ephy.o: in function `ephy_config_init':
sunxi-ephy.c:(.text+0x5f4): undefined reference to `sun50i_ephy_calibrate_value'
aarch64-linux-gnu-ld: drivers/net/phy/sunxi-ephy.o: in function `ac200_ephy_enable.constprop.0':
sunxi-ephy.c:(.text+0x934): undefined reference to `ac200_enable'
aarch64-linux-gnu-ld: sunxi-ephy.c:(.text+0x95c): undefined reference to `ac200_enable'
aarch64-linux-gnu-ld: sunxi-ephy.c:(.text+0xa14): undefined reference to `sun50i_ephy_calibrate_value'
make[1]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
make: *** [Makefile:1255: vmlinux] Error 2
make: *** Waiting for unfinished jobs....

branch: orange-pi-6.1-sun50iw9
device: orange pi zero3

6e02ada5 should add audio on h616 - but linux-orangepi kernel says: snd_soc_register_card failed

Hello,

I just build branch orange-pi-5.13-sunxi64 @ 018ff30
By 6e02ada I assume it should offer audio support on OrangePi-Zero2 (h616)
Unfortunately audio not works.
Kernel dmesg reports:

dmesg | grep snd
[    1.148241] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[    1.428099] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[    1.627339] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[    1.628555] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[    1.629091]   #0: sndahub
[    2.003164] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[    2.065503] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[    2.508424] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[    2.554771] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[    2.556098] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[    2.632447] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed

Is this bug or i missed something?

Connect error: connect error: Transport endpoint is not connected (107)

i got this error when trying to connect bluetooth on OrangePiZero2. the entire trace is:

root@orangepizero2:/usr/local/lib/python3.8/dist-packages/bluepy# ./bluepy-helper 0

bluepy-helper.c version 1.3.0 built at 13:48:35 on Jan 13 2022

conn e1:f7:57:48:4a:af random
rsp=$statstate=$tryconndst='e1:f7:57:48:4a:afmtu=h0sec='low
rsp=$statstate=$discmtu=h0sec='low
rsp=$errcode=$connfailemsg='connect error: Transport endpoint is not connected (107)

Connect error: connect error: Transport endpoint is not connected (107)

conn e1:f7:57:48:4a:af random
rsp=$statstate=$tryconndst='e1:f7:57:48:4a:afmtu=h0sec='low
rsp=$statstate=$discmtu=h0sec='low
rsp=$errcode=$connfailemsg='connect error: Transport endpoint is not connected (107)

Connect error: connect error: Transport endpoint is not connected (107)

the bluetooth version:

root@orangepizero2:/usr/local/src/bluez# bluetoothctl --version
bluetoothctl: 5.53

Zero3 wifi正常链接使用中,会有一定概率出错并无法再次链接

概况

SBC: Zero3
Kernel:5.4.125
Wifi配置:

wpa_cli

> status
bssid=7c:10:c9:xx:xx:xx
freq=5180
ssid=xxx
id=0
mode=station
wifi_generation=5
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.168.50.241
p2p_device_address=3a:f7:ee:xx:xx:xx
address=38:f7:ee:xx:xx:xx
uuid=3ed8267b-a194-50e3-b76e-2144484xxxxx
ieee80211ac=1

过程

使用nmcli链接到ap之后,正常使用一段时间,会随机性的出现wifi链接丢失,同时使用nmcli无法再次链接。

dmesg信息如下:

[279798.596001] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[280011.375382] ------------[ cut here ]------------
[280011.375411] WARNING: CPU: 0 PID: 5989 at net/wireless/sme.c:756 __cfg80211_connect_result+0x204/0x24c
[280011.375413] Modules linked in: crct10dif_ce ghash_ce sha1_ce sunxi_usbc leds_gpio sprdbt_tty sprdwl_ng uwe5622_bsp_sdio sunxi_rfkill pstore_blk pstore_zone ohci_sunxi ehci_sunxi sunxi_hci
[280011.375437] CPU: 0 PID: 5989 Comm: kworker/u8:2 Not tainted 5.4.125 #1.0.0
[280011.375439] Hardware name: Orange Pi Zero 3 (DT)
[280011.375451] Workqueue: cfg80211 cfg80211_event_work
[280011.375455] pstate: 60400005 (nZCv daif +PAN -UAO)
[280011.375459] pc : __cfg80211_connect_result+0x204/0x24c
[280011.375463] lr : __cfg80211_connect_result+0x1a4/0x24c
[280011.375465] sp : ffffffc015c13ce0
[280011.375466] x29: ffffffc015c13ce0 x28: 0000000000000060 
[280011.375470] x27: 0000000000000000 x26: dead000000000100 
[280011.375473] x25: dead000000000122 x24: 0000000000000000 
[280011.375476] x23: ffffff8038eb0af0 x22: ffffff8038eb0a50 
[280011.375479] x21: ffffff8038eb0a08 x20: ffffff8038e72c18 
[280011.375482] x19: ffffff8038eb0a08 x18: 0000000000000000 
[280011.375485] x17: 0000000000000000 x16: 0000000000000002 
[280011.375487] x15: 00139f3396d60094 x14: 00000442211848a4 
[280011.375490] x13: 000000000000ba7e x12: 0000000000000442 
[280011.375493] x11: 0000000000000000 x10: 0000000000139f33 
[280011.375496] x9 : ffffffc01113b948 x8 : 0000000000000001 
[280011.375499] x7 : 0000000000000010 x6 : 0000000000000002 
[280011.375502] x5 : 0000000000000000 x4 : 000000000000000a 
[280011.375505] x3 : fffffffefbd51b73 x2 : ffffff803cda0000 
[280011.375507] x1 : ffffff803cda0000 x0 : 0000000000000000 
[280011.375511] Call trace:
[280011.375516]  __cfg80211_connect_result+0x204/0x24c
[280011.375519]  cfg80211_process_wdev_events+0x198/0x24c
[280011.375522]  cfg80211_process_rdev_events+0x38/0x90
[280011.375526]  cfg80211_event_work+0x1c/0x30
[280011.375533]  process_one_work+0x1c0/0x384
[280011.375537]  worker_thread+0x16c/0x4f0
[280011.375542]  kthread+0x118/0x120
[280011.375548]  ret_from_fork+0x10/0x18
[280011.375550] ---[ end trace 287536509ab77b6a ]---

cpufreq-dt hang/crash

This happens after first cold boot every time. After that any access to cpufreq info causes hang.
The kernel is 5.16 from official orange pi debian distro.

[    8.777181] Unable to handle kernel paging request at virtual address ffff80000925ec00                                                                                                                                             
[251/579]
[    8.785256] Mem abort info:                                                                                         
[    8.788113]   ESR = 0x96000007                                                                                      
[    8.791212]   EC = 0x25: DABT (current EL), IL = 32 bits                                                            
[    8.795585] systemd[1]: Starting Network Service...                                                                 
[    8.796558]   SET = 0, FnV = 0                                                                                      
[    8.799654]   EA = 0, S1PTW = 0                                                                                     
[    8.802827]   FSC = 0x07: level 3 translation fault                                                                 
[    8.807736] Data abort info:                                                                                        
[    8.810649]   ISV = 0, ISS = 0x00000007                                                                             
[    8.810662]   CM = 0, WnR = 0                                                                                       
[    8.810666] swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000413bd000                                            
[    8.824225] [ffff80000925ec00] pgd=100000007ffff003, p4d=100000007ffff003, pud=100000007fffe003, pmd=100000007fffa003, pte=0000000000000000                                                                                                 
[    8.838209] Internal error: Oops: 96000007 [#1] SMP                                                                 
[    8.844423] Modules linked in: cpufreq_dt(+) sprdbt_tty rtc_ds1307 sprdwl_ng sunxi_addr cfg80211 fuse nfsd auth_rpcgss nfs_acl lockd grace sunrpc realtek dwmac_sun8i i2c_mv64xxx mdio_mux                                                  
[    8.861077] CPU: 0 PID: 332 Comm: systemd-udevd Not tainted 5.16.17-sun50iw9 #3.0.6                                 
[    8.868740] Hardware name: OrangePi Zero2 (DT)                                                                      
[    8.873187] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)                                         
[    8.880153] pc : cpufreq_generic_get+0x24/0xa8                                                                                                                                                                                              
[    8.884618] lr : cpufreq_online+0x410/0x9d0                                                                         
[    8.888811] sp : ffff80000a5137a0                                                                                   
[    8.892135] x29: ffff80000a5137a0 x28: ffff000002aa3008 x27: 0000000000000001                                       
[    8.899284] x26: ffff000002aa31d0 x25: ffff8000094d8790 x24: ffff80000957c000                                       
[    8.906432] x23: ffff80000943bd48 x22: ffff000002aa3090 x21: 0000000000000000                                       
[    8.913578] x20: 0000000000000000 x19: ffff000002aa3000 x18: 0000000000000000                                       
[    8.920726] x17: 2e726f74616c7567 x16: 65723a726f74616c x15: ffff0000035af240                                       
[    8.927873] x14: ffffffffffffffff x13: ffff000003cccb88 x12: ffff000003cccb86                                       
[    8.935023] x11: 0000000000000030 x10: 0101010101010101 x9 : 0000000000000000                                                                                                                                                               
[    8.942171] x8 : ffff000003cccd48 x7 : ffff000003cccd58 x6 : ffff000002aa30e8                                       
[    8.949318] x5 : 000000000000000f x4 : 000000000000000f x3 : 000000000000000f                                                                                                                                                               
[    8.956464] x2 : ffff800000e22070 x1 : ffff80000925e7c0 x0 : 0000000000000440                                       
[    8.963614] Call trace:                                                                                             
[    8.966069]  cpufreq_generic_get+0x24/0xa8                                                                                                                                                                                                  
[    8.970190]  cpufreq_online+0x410/0x9d0                                                                             
[    8.974037]  cpufreq_add_dev+0xbc/0xd0                                                                              
[    8.977798]  subsys_interface_register+0x9c/0xf8                                                                    
[    8.982432]  cpufreq_register_driver+0x1b0/0x388                                                                    
[    8.987061]  dt_cpufreq_probe+0x200/0x448 [cpufreq_dt]
[    8.992222]  platform_probe+0x68/0xd8
[    8.995897]  really_probe+0xbc/0x428
[    8.999488]  __driver_probe_device+0x114/0x188
[    9.003947]  driver_probe_device+0x80/0x110
[    9.008143]  __driver_attach+0xbc/0x1a0
[    9.011994]  bus_for_each_dev+0x70/0xc0
[    9.015842]  driver_attach+0x24/0x30
[    9.019431]  bus_add_driver+0x140/0x220
[    9.023279]  driver_register+0x64/0x120
[    9.027128]  __platform_driver_register+0x28/0x38
[    9.031843]  dt_cpufreq_platdrv_init+0x24/0x1000 [cpufreq_dt]
[    9.037606]  do_one_initcall+0x54/0x1b8
[    9.041458]  do_init_module+0x44/0x1f0
[    9.045221]  load_module+0x20e0/0x2850
[    9.048982]  __do_sys_finit_module+0xbc/0x128
[    9.053349]  __arm64_sys_finit_module+0x20/0x30
[    9.057889]  invoke_syscall+0x44/0x108
[    9.061650]  el0_svc_common.constprop.0+0xcc/0xf0
[    9.066367]  do_el0_svc+0x24/0x88                                                                                   
[    9.069694]  el0_svc+0x20/0x60                                                                                      
[    9.072755]  el0t_64_sync_handler+0xb0/0xb8                                                                         
[    9.076949]  el0t_64_sync+0x1a0/0x1a4                                                                               
[    9.080628] Code: f0003f81 911f0021 910003fd f8635800 (f8616800)                                                                                                                                                                            
[    9.086726] ---[ end trace 8d7eb1328531e5e4 ]---                                                           

OPi 3 LTS - WIFI crashes after some time

SBC: OPi 3 LTS
Linux: Debian Buster
Kernel: Linux orangepi3-lts 5.10.75-sunxi64 #2.1.6 SMP Fri Dec 24 10:19:38 CST 2021 aarch64 GNU/Linux

Stack Trace:

[   12.524284] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[172817.049037] ------------[ cut here ]------------
[172817.049095] WARNING: CPU: 0 PID: 23248 at net/wireless/sme.c:757 __cfg80211_connect_result+0x374/0x418 [cfg80211]
[172817.049098] Modules linked in: hci_uart btqca btrtl btbcm btintel bluetooth ecdh_generic ecc zram snd_soc_hdmi_codec sunxi_cir rc_core dw_hdmi_i2s_audio cdc_acm dw_hdmi_cec sun4i_i2s sunxi_cedrus(C) v4l2_mem2mem videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common videodev mc panfrost gpu_sched snd_soc_simple_card snd_soc_simple_card_utils display_connector cpufreq_dt sprdwl_ng cfg80211 sprdbt_tty rfkill uwe5622_bsp_sdio dwmac_sun8i i2c_mv64xxx mdio_mux
[172817.049169] CPU: 0 PID: 23248 Comm: kworker/u8:0 Tainted: G         C        5.10.75-sunxi64 #2.1.6
[172817.049171] Hardware name: OrangePi 3 LTS (DT)
[172817.049186] Workqueue: cfg80211 cfg80211_event_work [cfg80211]
[172817.049192] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[172817.049203] pc : __cfg80211_connect_result+0x374/0x418 [cfg80211]
[172817.049213] lr : __cfg80211_connect_result+0x230/0x418 [cfg80211]
[172817.049215] sp : ffff800018cebca0
[172817.049217] x29: ffff800018cebca0 x28: 0000000000000000
[172817.049222] x27: dead000000000100 x26: dead000000000122
[172817.049227] x25: 0000000000000000 x24: ffff000005f64a20
[172817.049232] x23: ffff800018cebce8 x22: ffff00000196a880
[172817.049237] x21: ffff000005f64000 x20: ffff000005f64948
[172817.049241] x19: ffff000008676218 x18: 0000000000000000
[172817.049246] x17: 0000000000000000 x16: 0000000000000000
[172817.049251] x15: 0000007bf489ff6c x14: 0000000000000000
[172817.049256] x13: 0000000000000001 x12: 0000000000000028
[172817.049261] x11: 0101010101010101 x10: 7f7f7f7f7f7f7f7f
[172817.049266] x9 : 0000000000000001 x8 : 0000000000000012
[172817.049271] x7 : 0000000000000010 x6 : 00000000000000e5
[172817.049275] x5 : 0000000000000004 x4 : 0000000000000000
[172817.049280] x3 : fffffffefd6e0234 x2 : 0000000000000000
[172817.049285] x1 : ffff00000196a880 x0 : 0000000000000000
[172817.049291] Call trace:
[172817.049303]  __cfg80211_connect_result+0x374/0x418 [cfg80211]
[172817.049314]  cfg80211_process_wdev_events+0x1cc/0x250 [cfg80211]
[172817.049325]  cfg80211_process_rdev_events+0x38/0x90 [cfg80211]
[172817.049335]  cfg80211_event_work+0x20/0x38 [cfg80211]
[172817.049343]  process_one_work+0x1c8/0x380
[172817.049347]  worker_thread+0x140/0x4e0
[172817.049353]  kthread+0xf8/0x128
[172817.049358]  ret_from_fork+0x10/0x30
[172817.049362] ---[ end trace 05d485f9ed598a1d ]---

Monitor mode

Will wifi firmware for the Orange Pi Zero W2 support monitor mode at some point in time? Or does the chip not allow this at all?

Kernel build 5.10.110 for OPi5B - dma-buf drivers fail

Hello, I wanted to build the kernel on the OPi5B (Ubuntu focal server distro image) which has Linux kernel 5.10.110, so I cloned the branch orange-pi-5.10-rk3588.

However, when building the kernel with the make command, it fails for dma-buf drivers:

drivers/dma-buf/dma-buf.c: In function 'dma_buf_export_sync_file':
drivers/dma-buf/dma-buf.c:464:34: error: storage size of 'arg' isn't known
  464 |  struct dma_buf_export_sync_file arg;
      |                                  ^~~
  CC      security/apparmor/mount.o
drivers/dma-buf/dma-buf.c:484:8: error: implicit declaration of function 'dma_resv_get_singleton'; did you mean 'dma_resv_get_list'? [-Werror=implicit-function-declaration]
  484 |  ret = dma_resv_get_singleton(dmabuf->resv, write, &fence);
      |        ^~~~~~~~~~~~~~~~~~~~~~
      |        dma_resv_get_list
drivers/dma-buf/dma-buf.c:464:34: warning: unused variable 'arg' [-Wunused-variable]
error, forbidden warning:dma-buf.c:464
  464 |  struct dma_buf_export_sync_file arg;
      |                                  ^~~
drivers/dma-buf/dma-buf.c: In function 'dma_buf_import_sync_file':
drivers/dma-buf/dma-buf.c:520:34: error: storage size of 'arg' isn't known
  520 |  struct dma_buf_import_sync_file arg;
      |                                  ^~~
drivers/dma-buf/dma-buf.c:520:34: warning: unused variable 'arg' [-Wunused-variable]
error, forbidden warning:dma-buf.c:520
drivers/dma-buf/dma-buf.c: In function 'dma_buf_ioctl':
drivers/dma-buf/dma-buf.c:641:7: error: 'DMA_BUF_IOCTL_EXPORT_SYNC_FILE' undeclared (first use in this function)
  641 |  case DMA_BUF_IOCTL_EXPORT_SYNC_FILE:
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/dma-buf/dma-buf.c:641:7: note: each undeclared identifier is reported only once for each function it appears in
drivers/dma-buf/dma-buf.c:643:7: error: 'DMA_BUF_IOCTL_IMPORT_SYNC_FILE' undeclared (first use in this function)
  643 |  case DMA_BUF_IOCTL_IMPORT_SYNC_FILE:
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:273: drivers/dma-buf/dma-buf.o] Error 1
make[1]: *** [scripts/Makefile.build:516: drivers/dma-buf] Error 2
make: *** [Makefile:1920: drivers] Error 2
make: *** Waiting for unfinished jobs....

How to solve this?

systemd-resolved cannot be installed

I use OrangePi3 LTS for HomeAssistant and have installed it successfully on two boards to date, the last one about two months ago. When I tried to install another one now it failed on the installation of systemd-resolved.
After installation of Debian11 apt update and upgrade were run and completed without faults. Performing 'apt install systemd-resolved' however fails.
Information below shows

  • failure to install
  • systemd installation details
  • apt-cache for systemd and systemd-resolved

Assistance appreciated

================
systemd-resolved installation failing
root@orangepi3-lts:~# apt install systemd-resolved -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
systemd-resolved : Depends: systemd (= 252.5-2bpo11+1)
E: Unable to correct problems, you have held broken packages.<<======= PROBLEM
root@orangepi3-lts:
#

==================
systemd installation

root@orangepi3-lts:# dpgk -i systemd
Command 'dpgk' not found, did you mean:
command 'dpkg' from deb dpkg
Try: apt install
root@orangepi3-lts:
# dpgh -s systemd
dpgh: command not found
root@orangepi3-lts:# dpkg -s systemd
Package: systemd
Status: install ok installed
Priority: important
Section: admin
Installed-Size: 15661
Maintainer: Debian systemd Maintainers [email protected]
Architecture: arm64
Multi-Arch: foreign
Version: 247.3-7+deb11u2
Depends: libacl1 (>= 2.2.23), libapparmor1 (>= 2.13), libaudit1 (>= 1:2.2.1), libcap2 (>= 1:2.24-9
), libcrypt1 (>= 1:4.4.0), libcryptsetup12 (>= 2:2.3), libgnutls30 (>= 3.7.0), libgpg-error0 (>= 1.14), libip4tc2 (>= 1.8.3), libkmod2 (>= 5~), liblz4-1 (>= 0.0r130), libmount1 (>= 2.30), libpam0g (>= 0.99.7.1), libseccomp2 (>= 2.4.1), libsystemd0 (= 247.3-7+deb11u2), util-linux (>= 2.27.1), mount (>= 2.26), adduser
Pre-Depends: libblkid1 (>= 2.24), libc6 (>= 2.30), libgcrypt20 (>= 1.8.0), liblz4-1 (>= 0.0
r122), liblzma5 (>= 5.1.1alpha+20120614), libselinux1 (>= 3.1~), libzstd1 (>= 1.4.0)
Recommends: dbus, systemd-timesyncd | time-daemon
Suggests: systemd-container, policykit-1
Breaks: python-dbusmock (<< 0.18), python3-dbusmock (<< 0.18), resolvconf (<< 1.83~), systemd-shim (<< 10-4~), udev (<< 247~)
Conflicts: consolekit, libpam-ck-connector
Conffiles:
/etc/systemd/journald.conf 4ec2bd40c816736799a8876f8acca94b
/etc/systemd/logind.conf ed2ccf7a51a5436f16e5ad88e5ace8b0
/etc/systemd/networkd.conf 522ed99a8c0d0e728713d8079d5524bd
/etc/systemd/pstore.conf fb081468c018a53786a975ce467c4989
/etc/systemd/resolved.conf 740d189c67f1e27fe37429ba92e71ac3
/etc/systemd/sleep.conf e912ff7c0833daa5a45d3918b3d6585f
/etc/systemd/system.conf 2e400b6d050412413636107a2ce86f15
/etc/systemd/user.conf 2fb7b9a89a8b8a1ff0ec7316384fd303
Description: system and service manager
systemd is a system and service manager for Linux. It provides aggressive
parallelization capabilities, uses socket and D-Bus activation for starting
services, offers on-demand starting of daemons, keeps track of processes using
Linux control groups, maintains mount and automount points and implements an
elaborate transactional dependency-based service control logic.
.
systemd is compatible with SysV and LSB init scripts and can work as a
drop-in replacement for sysvinit.
.
Installing the systemd package will not switch your init system unless you
boot with init=/lib/systemd/systemd or install systemd-sysv in addition.
Homepage: https://www.freedesktop.org/wiki/Software/systemd
root@orangepi3-lts:~#

==========
systemd-resolved is in apt-cache

root@orangepi3-lts:# apt-cache show systemd-resolved
Package: systemd-resolved
Source: systemd
Version: 252.5-2
bpo11+1
Installed-Size: 784
Maintainer: Debian systemd Maintainers [email protected]
Architecture: arm64
Replaces: resolvconf, systemd (<< 251.3-2~)
Provides: resolvconf
Depends: libc6 (>= 2.17), libssl1.1 (>= 1.1.1), libsystemd-shared (= 252.5-2bpo11+1), systemd (= 252.5-2bpo11+1), default-dbus-system-bus | dbus-system-bus
Recommends: libnss-myhostname, libnss-resolve
Suggests: polkitd | policykit-1
Conflicts: resolvconf
Breaks: systemd (<< 251.3-2~)
Description: systemd DNS resolver
Description-md5: 846dc3eb3129c6a17b29965b209c161e
Multi-Arch: foreign
Homepage: https://www.freedesktop.org/wiki/Software/systemd
Section: admin
Priority: optional
Filename: pool/main/s/systemd/systemd-resolved_252.5-2~bpo11+1_arm64.deb
Size: 276988
SHA256: 994043320e8d0a42589a178c8590cca1126d6e18af53a7181000fd9371ba1e4c

root@orangepi3-lts:~#

=============
systemd in apt-cache

_Package: systemd
Version: 247.3-7+deb11u2
Installed-Size: 15661
Maintainer: Debian systemd Maintainers [email protected]
Architecture: arm64
Depends: libacl1 (>= 2.2.23), libapparmor1 (>= 2.13), libaudit1 (>= 1:2.2.1), libcap2 (>= 1:2.24-9~), libcrypt1 (>= 1:4.4.0), libcryptsetup12 (>= 2:2.3), libgnutls30 (>= 3.7.0), libgpg-error0 (>= 1.14), libip4tc2 (>= 1.8.3), libkmod2 (>= 5~), liblz4-1 (>= 0.0r130), libmount1 (>= 2.30), libpam0g (>= 0.99.7.1), libseccomp2 (>= 2.4.1), libsystemd0 (= 247.3-7+deb11u2), util-linux (>= 2.27.1), mount (>= 2.26), adduser
Pre-Depends: libblkid1 (>= 2.24), libc6 (>= 2.30), libgcrypt20 (>= 1.8.0), liblz4-1 (>= 0.0
r122), liblzma5 (>= 5.1.1alpha+20120614), libselinux1 (>= 3.1~), libzstd1 (>= 1.4.0)
Recommends: dbus, systemd-timesyncd | time-daemon
Suggests: systemd-container, policykit-1
Conflicts: consolekit, libpam-ck-connector
Breaks: python-dbusmock (<< 0.18), python3-dbusmock (<< 0.18), resolvconf (<< 1.83~), systemd-shim (<< 10-4~), udev (<< 247~)
Description: system and service manager
Description-md5: 19399579cbc0c47a303288bf15eadcd4
Multi-Arch: foreign
Homepage: https://www.freedesktop.org/wiki/Software/systemd
Tag: admin::boot, implemented-in::c, interface::daemon, role::program,
works-with::software:running
Section: admin
Priority: important
Filename: pool/main/s/systemd/systemd_247.3-7+deb11u2_arm64.deb
Size: 4153420
MD5sum: 673058a072253d91fcdfd691ccee9093
SHA256: 0742eb74bd40d5df919292ef70f7273da38b04b4762f2f52925315e5088665f4

root@orangepi3-lts:~#_

Kernel crashes on orangepi5 with kbase_bifrost

It should be a common issue. I will try harder
Whatever I got a good new was able to compile kernel for OPi5 with bifrost and panfrost enabled it should more a pull request but I don't really know how to do :( you can check my modifications here
https://github.com/bbaranoff/bifrost_opi5_patch/
thank you (edit : sorry used a wrong config file it boots !!)
but i am facing another problem
[ 41.439376] bifrost_kbase: exports duplicate symbol corestack_driver_control
(owned by kernel)
modprobe: ERROR: could not insert 'bifrost_kbase': Exec format error
but I close this issue thank you

Edit 2 I GOT IT
bifrost_kbase 835584 0

Zero3 OTG虚拟成RNDIS出现异常

基本情况

烧录固件:Orangepizero3_1.0.0_ubuntu_jammy_server_linux5.4.125.7z

当前使用内核:https://github.com/orangepi-xunlong/linux-orangepi/tree/a187b273f42c0c5169d8ed46d2a0abece97fb0d4

PC电脑:Windows 7 64bit系统;

要实现的功能

使用Zero3的Type-C接口插入到电脑中,并虚拟成RNDIS类型的网卡;

遇到的问题

直接加载g_ether驱动会报错,操作如下:

# modprobe g_ether

[   96.967946] udc 5100000.udc-controller: registering UDC driver [g_ether]
[   96.968349] g_ether 5100000.udc-controller: failed to start g_ether: -2

对比Zero2开发板的驱动加载情况,手动载入usb_f_eem驱动,操作如下:

modprobe usb_f_eem
modprobe g_ether

[  170.854263] udc 5100000.udc-controller: registering UDC driver [g_ether]
[  170.854343] using random self ethernet address
[  170.854351] using random host ethernet address
[  170.855489] usb0: HOST MAC ee:57:e3:20:20:7d
[  170.855617] usb0: MAC b2:be:53:20:54:2e
[  170.855647] using random self ethernet address
[  170.855654] using random host ethernet address

这时PC机上可以看到设备,加载对应驱动(参考:https://supportcommunity.zebra.cn/s/article/000014464)之后,但是会提示网卡无法启动,具体为:“该设备无法启动。 (代码 10)”,同时Zero3的dmesg会出现如下的错误信息:

[  171.127318] ERR: Operation not supported

打开调试信息重新编译驱动,更详细的异常信息如下:

[  170.855688] g_ether gadget: adding config #2 'RNDIS'/00000000339d2b56
[  170.855705] rndis_register: configNr = 0
[  170.855717] g_ether gadget: adding 'rndis'/000000001ee5ea71 to config 'RNDIS'/00000000339d2b56
[  170.855745] rndis_set_param_medium: 0 0
[  170.855754] g_ether gadget: RNDIS: dual speed IN/ep1in-bulk OUT/ep1out-bulk NOTIFY/ep4-int
[  170.855765] g_ether gadget: cfg 2/00000000339d2b56 speeds: high full
[  170.855773] g_ether gadget:   interface 0 = rndis/000000001ee5ea71
[  170.855781] g_ether gadget:   interface 1 = rndis/000000001ee5ea71
[  170.855790] g_ether gadget: adding config #1 'CDC Ethernet (EEM)'/000000005b119b69
[  170.855801] g_ether gadget: adding 'cdc_eem'/000000000e911c10 to config 'CDC Ethernet (EEM)'/000000005b119b69
[  170.855816] g_ether gadget: CDC Ethernet (EEM): dual speed IN/ep1in-bulk OUT/ep1out-bulk
[  170.855825] g_ether gadget: cfg 1/000000005b119b69 speeds: high full
[  170.855833] g_ether gadget:   interface 0 = cdc_eem/000000000e911c10
[  170.855848] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[  170.855855] g_ether gadget: g_ether ready
[  171.010794] sunxi_set_cur_vol_work()395 WARN: get power supply failed
[  171.126232] g_ether gadget: high-speed config #2: RNDIS
[  171.126246] g_ether gadget: reset rndis control 0
[  171.126249] g_ether gadget: init rndis ctrl 0
[  171.126261] g_ether gadget: init rndis
[  171.126264] g_ether gadget: RNDIS RX/TX early activation ... 
[  171.126307] usb0: qlen 10
[  171.126310] g_ether gadget: rndis_close
[  171.126313] rndis_set_param_medium: 0 0
[  171.126321] rndis_set_param_dev:
[  171.126854] g_ether gadget: setup complete --> -71, 0/0
[  171.126860] g_ether gadget: non-core control reqa1.21 v0000 i0000 l7
[  171.126865] g_ether gadget: invalid control reqa1.21 v0000 i0000 l7
[  171.126867] ERR: Operation not supported
[  171.127072] g_ether gadget: non-core control req21.22 v0000 i0000 l0
[  171.127075] g_ether gadget: invalid control req21.22 v0000 i0000 l0
[  171.127077] ERR: Operation not supported
[  171.127087] handle_ep0: ep0 setup end
[  171.127314] g_ether gadget: non-core control req21.20 v0000 i0000 l7
[  171.127317] g_ether gadget: invalid control req21.20 v0000 i0000 l7
[  171.127318] ERR: Operation not supported
[  171.127507] g_ether gadget: non-core control reqa1.21 v0000 i0000 l7
[  171.127511] g_ether gadget: invalid control reqa1.21 v0000 i0000 l7
[  171.127512] ERR: Operation not supported

请问RK3328的ubuntu 20.04(内核分支"orange-pi-5.8-rockchip64")上如何支持mpp解码呢?

■概要
・硬件平台
Orange Pi R1 Plus(RK3328)
・内核分支
orange-pi-5.8-rockchip64
・mpp库源代码
https://github.com/rockchip-linux/mpp/
・错误现象
在上述硬件平台上,我们想使用mpp的硬解码功能,但是在运行mpp库时,报了错误,显示下面3个设备节点没有生成
①/dev/vpu_service
②/dev/dri/card0
③/dev/ion
・补充信息
上述硬件平台的Android9的linux内核版本是4.4,有下面2个设备节点
①/dev/vpu_service
②/dev/dri/card0

■问题
为了在RK3328的ubuntu20.04上支持mpp解码功能,我们应该怎么做比较好呢?我们现在想到的方向如下,你们觉得是否可行?
・方案①
将Android9上内核版本4.4的vpu_service驱动、dri驱动移植到ubuntu20.04上内核版本5.8上
※如果贵公司有相关补丁提供的话,不胜感激
・方案②
贵公司有没有其他的推荐方案

5.16-sunxi64: regression breaking audio on other SoCs

Hi,

I'm playing with https://github.com/orangepi-xunlong/linux-orangepi/commits/orange-pi-5.16-sunxi64 kernel to get audio on h616.
I also want to use this kernel on other SoCs as it offers audio on h616 SoC.

orange-pi-5.16-sunxi64 works for me on h616, but audio seem to be broken on other SoCs (rockchip and amlogic tested).

Looking on code I see places where sun5i specific code breaks other SOC support:

#if defined(CONFIG_SND_SOC_SUN50I_AHUB)

#if ! defined(CONFIG_SND_SOC_SUN50I_HDMI)

#if ! defined(CONFIG_SND_SOC_SUN50I_HDMI)

#if ! defined(CONFIG_SND_SOC_SUN50I_HDMI)

#if defined(CONFIG_SND_SOC_SUN50I_HDMI)

Above code lines are causing audio regression on other SoCs - effectively making 5.16-sunxi64 kernel non-usable with audio apps on non-allwinner SoCs

It is possible to fix this regression?

Where is 3.10 kernel for Orange PI 3 with an actual config for PCIe?

It seems that Orange PI 3 has a workable PCIe, I checked the voltages and they are correct, but there are no devices with the fresh kernel, so I concluded that it is a software problem to get it work with the fresh kernels.
Then I loaded an .img with 3.10 from old setups and it was able to run 'lspci' and it showed me some my devices.
But there is no branch here for 3.10 sources. Then I found it in the Android sources and it is compilable. I need at least a working config. It does not exist anywhere, nor in /boot nor in /proc. Do you have one?
Also it is interesting, if there any diif of changes for the only one working driver rtl 8822 against its original sources?

【orangepizero3 】uwe5622开热点,当热点被连接时,内核将会输出大量重复日志


## OUTPUT

[  154.142111] protocol 0000 is buggy, dev wlan0
[  154.142268] protocol 0000 is buggy, dev wlan0
[  182.011132] protocol 0000 is buggy, dev wlan0
[  186.156750] protocol 0000 is buggy, dev wlan0
[  186.157553] protocol 0000 is buggy, dev wlan0
[  245.481012] protocol 0000 is buggy, dev wlan0
[  292.931625] protocol 0000 is buggy, dev wlan0
[  292.932339] protocol 0000 is buggy, dev wlan0
[  491.875245] protocol 0000 is buggy, dev wlan0


信息过少,很难根据log找到具体原因

连接的热点正常使用,每当重新连接时,将会出现这堆报错。

Orange Pi Zero 2 sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed

I was told this was the kernel being used for the Batocera 34 image running on the board. Here are two logs after trying to run two games:

log1:

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.16.17 (batocera@f52701216d72) (aarch64-buildroot-linux-gnu-gcc.br_real (Buildroot 2019.11-15034-gc634032f0d) 11.2.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP PREEMPT Thu May 26 15:55:55 CEST 2022
[ 0.000000] Machine model: OrangePi Zero2
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x7fdcb140-0x7fdccfff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000004007ffff]
[ 0.000000] node 0: [mem 0x0000000040080000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] cma: Reserved 384 MiB at 0x0000000066c00000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.2
[ 0.000000] percpu: Embedded 19 pages/cpu s37592 r8192 d32040 u77824
[ 0.000000] pcpu-alloc: s37592 r8192 d32040 u77824 alloc=19*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] Fallback order for Node 0: 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 258048
[ 0.000000] Policy zone: DMA
[ 0.000000] Kernel command line: initrd=/boot/initrd.gz label=BATOCERA rootwait quiet loglevel=0 console=ttyS0,115200 console=tty3
[ 0.000000] Unknown kernel command line parameters "label=BATOCERA", will be passed to user space.
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 612940K/1048576K available (12416K kernel code, 1496K rwdata, 3976K rodata, 2368K init, 383K bss, 42420K reserved, 393216K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] rcu: Offload RCU callbacks from CPUs: (none).
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000508] Console: colour dummy device 80x25
[ 0.000540] printk: console [tty3] enabled
[ 0.000608] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.000622] pid_max: default: 32768 minimum: 301
[ 0.000716] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.000729] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.002306] rcu: Hierarchical SRCU implementation.
[ 0.003471] smp: Bringing up secondary CPUs ...
[ 0.004026] Detected VIPT I-cache on CPU1
[ 0.004101] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.004660] Detected VIPT I-cache on CPU2
[ 0.004721] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.005231] Detected VIPT I-cache on CPU3
[ 0.005289] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.005381] smp: Brought up 1 node, 4 CPUs
[ 0.005393] SMP: Total of 4 processors activated.
[ 0.005399] CPU features: detected: 32-bit EL0 Support
[ 0.005404] CPU features: detected: CRC32 instructions
[ 0.012891] CPU: All CPU(s) started at EL2
[ 0.012925] alternatives: patching kernel code
[ 0.014051] devtmpfs: initialized
[ 0.019375] random: get_random_u32 called from bucket_table_alloc.isra.0+0x64/0x150 with crng_init=0
[ 0.019908] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.019988] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.032503] pinctrl core: initialized pinctrl subsystem
[ 0.033594] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.034989] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.035120] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.035221] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.035804] thermal_sys: Registered thermal governor 'step_wise'
[ 0.036369] cpuidle: using governor ladder
[ 0.036395] cpuidle: using governor menu
[ 0.036558] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.036668] ASID allocator initialised with 65536 entries
[ 0.037436] Serial: AMBA PL011 UART driver
[ 0.047161] platform 6510000.tcon-top: Fixing up cyclic dependency with 6000000.hdmi
[ 0.047797] platform 6515000.lcd-controller: Fixing up cyclic dependency with 6510000.tcon-top
[ 0.049114] platform connector: Fixing up cyclic dependency with 6000000.hdmi
[ 0.058942] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.058962] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.058969] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.058974] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.059529] cryptd: max_cpu_qlen set to 1000
[ 0.060082] pwm module init!
[ 0.061645] iommu: Default domain type: Translated
[ 0.061662] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.061958] SCSI subsystem initialized
[ 0.062118] libata version 3.00 loaded.
[ 0.062351] usbcore: registered new interface driver usbfs
[ 0.062387] usbcore: registered new interface driver hub
[ 0.062422] usbcore: registered new device driver usb
[ 0.062764] mc: Linux media interface: v0.10
[ 0.062788] videodev: Linux video capture interface: v2.00
[ 0.062871] pps_core: LinuxPPS API ver. 1 registered
[ 0.062876] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [email protected]
[ 0.062890] PTP clock support registered
[ 0.063378] Advanced Linux Sound Architecture Driver Initialized.
[ 0.064267] clocksource: Switched to clocksource arch_sys_counter
[ 0.064610] VFS: Disk quotas dquot_6.6.0
[ 0.064670] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.070650] NET: Registered PF_INET protocol family
[ 0.070793] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.071622] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 0.071701] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.071776] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 0.071897] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.072029] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.072064] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.072208] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.072667] RPC: Registered named UNIX socket transport module.
[ 0.072680] RPC: Registered udp transport module.
[ 0.072684] RPC: Registered tcp transport module.
[ 0.072688] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.072904] Unpacking initramfs...
[ 0.081070] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.082687] Initialise system trusted keyrings
[ 0.082967] workingset: timestamp_bits=44 max_order=18 bucket_order=0
[ 0.089076] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.089930] NFS: Registering the id_resolver key type
[ 0.089977] Key type id_resolver registered
[ 0.089982] Key type id_legacy registered
[ 0.090066] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.090073] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.090836] Key type cifs.idmap registered
[ 0.091474] 9p: Installing v9fs 9p2000 file system support
[ 0.100173] Freeing initrd memory: 572K
[ 0.133345] NET: Registered PF_ALG protocol family
[ 0.133366] Key type asymmetric registered
[ 0.133370] Asymmetric key parser 'x509' registered
[ 0.133557] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[ 0.133749] io scheduler mq-deadline registered
[ 0.133756] io scheduler kyber registered
[ 0.144137] sun50i-h616-pinctrl 300b000.pinctrl: initialized sunXi PIO driver
[ 0.145070] sun50i-h616-r-pinctrl 7022000.pinctrl: initialized sunXi PIO driver
[ 0.153920] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.155160] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-ph not found, using dummy regulator
[ 0.155683] printk: console [ttyS0] disabled
[ 0.155761] 5000000.serial: ttyS0 at MMIO 0x5000000 (irq = 31, base_baud = 1500000) is a 16550A
[ 0.155889] printk: console [ttyS0] enabled
[ 0.157508] misc dump reg init
[ 0.161576] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.167076] loop: module loaded
[ 0.187910] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[ 0.187927] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld [email protected]. All Rights Reserved.
[ 0.189546] tun: Universal TUN/TAP device driver, 1.6
[ 0.191998] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.192014] ehci-platform: EHCI generic platform driver
[ 0.192183] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.192204] ohci-platform: OHCI generic platform driver
[ 0.192942] usbcore: registered new interface driver uas
[ 0.192992] usbcore: registered new interface driver usb-storage
[ 0.194543] mousedev: PS/2 mouse device common for all mice
[ 0.196083] sun6i-rtc 7000000.rtc: registered as rtc0
[ 0.196121] sun6i-rtc 7000000.rtc: setting system clock to 1970-01-02T00:00:03 UTC (86403)
[ 0.196221] sun6i-rtc 7000000.rtc: RTC enabled
[ 0.196401] i2c_dev: i2c /dev entries driver
[ 0.196779] mv64xxx_i2c 7081400.i2c: can't get pinctrl, bus recovery not supported
[ 0.197532] axp20x-i2c 0-0036: AXP20x variant AXP806 found
[ 0.201668] vdd-dram: Bringing 1500000uV into 1400000-1400000uV
[ 0.209623] axp20x-i2c 0-0036: AXP20X driver loaded
[ 0.210337] IR NEC protocol handler initialized
[ 0.210350] IR RC5(x/sz) protocol handler initialized
[ 0.210354] IR RC6 protocol handler initialized
[ 0.210357] IR JVC protocol handler initialized
[ 0.210360] IR Sony protocol handler initialized
[ 0.210364] IR SANYO protocol handler initialized
[ 0.210367] IR Sharp protocol handler initialized
[ 0.210370] IR MCE Keyboard/mouse protocol handler initialized
[ 0.210374] IR XMP protocol handler initialized
[ 0.210378] ir_imon_decoder: IR iMON protocol handler initialized
[ 0.210381] IR RCMM protocol handler initialized
[ 0.210435] usbcore: registered new interface driver xbox_remote
[ 0.211875] sunxi-wdt 30090a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.214433] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pg not found, using dummy regulator
[ 0.214846] sdhci: Secure Digital Host Controller Interface driver
[ 0.214854] sdhci: Copyright(c) Pierre Ossman
[ 0.214966] Synopsys Designware Multimedia Card Interface Driver
[ 0.215801] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.215972] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[ 0.216752] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pc not found, using dummy regulator
[ 0.216943] sunxi-mmc 4020000.mmc: Got CD GPIO
[ 0.216943] sunxi-mmc 4021000.mmc: allocated mmc-pwrseq
[ 0.217631] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.217819] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 0.218068] hid: raw HID events driver (C) Jiri Kosina
[ 0.218493] usbcore: registered new interface driver usbhid
[ 0.218501] usbhid: USB HID core driver
[ 0.219310] cedrus 1c0e000.video-codec: Device registered as /dev/video0
[ 0.229153] debugfs: Directory '5096000.codec' with parent 'H616 Audio Codec' already present!
[ 0.242350] sunxi-mmc 4020000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[ 0.270302] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 0.270555] Initializing XFRM netlink socket
[ 0.270870] NET: Registered PF_INET6 protocol family
[ 0.271742] Segment Routing with IPv6
[ 0.271768] In-situ OAM (IOAM) with IPv6
[ 0.271805] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.272222] NET: Registered PF_PACKET protocol family
[ 0.272400] 9pnet: Installing 9P2000 support
[ 0.272428] Key type dns_resolver registered
[ 0.272759] registered taskstats version 1
[ 0.272772] Loading compiled-in X.509 certificates
[ 0.278228] mmc1: host does not support reading read-only switch, assuming write-enable
[ 0.281182] mmc1: new high speed SDHC card at address aaaa
[ 0.281977] mmcblk1: mmc1:aaaa SK32G 29.7 GiB
[ 0.284141] mmcblk1: p1 p2
[ 0.284582] platform 1100000.mixer: Fixing up cyclic dependency with 6510000.tcon-top
[ 0.286666] debugfs: Directory '1100000.mixer' with parent 'regmap' already present!
[ 0.286698] debugfs: Directory '1100000.mixer' with parent 'regmap' already present!
[ 0.297313] sun4i-drm display-engine: bound 1100000.mixer (ops 0xffff800008cef3b8)
[ 0.297560] sun4i-drm display-engine: bound 6510000.tcon-top (ops 0xffff800008cf3b48)
[ 0.297810] sun4i-drm display-engine: bound 6515000.lcd-controller (ops 0xffff800008cea458)
[ 0.298137] sun8i-dw-hdmi 6000000.hdmi: Detected HDMI TX controller v2.12a with HDCP (DWC HDMI 2.0 TX PHY)
[ 0.298715] sun8i-dw-hdmi 6000000.hdmi: registered DesignWare HDMI I2C bus driver
[ 0.299674] sun4i-drm display-engine: bound 6000000.hdmi (ops 0xffff800008cee4a0)
[ 0.300058] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 0.300152] sun4i-drm display-engine: [drm] Cannot find any crtc or sizes
[ 0.301134] phy phy-5100400.phy.0: Changing dr_mode to 1
[ 0.301154] ehci-platform 5101000.usb: EHCI Host Controller
[ 0.301170] ehci-platform 5101000.usb: new USB bus registered, assigned bus number 1
[ 0.301259] ehci-platform 5101000.usb: irq 34, io mem 0x05101000
[ 0.316268] ehci-platform 5101000.usb: USB 2.0 started, EHCI 1.00
[ 0.316805] hub 1-0:1.0: USB hub found
[ 0.316834] hub 1-0:1.0: 1 port detected
[ 0.317639] ehci-platform 5200000.usb: EHCI Host Controller
[ 0.317662] ehci-platform 5200000.usb: new USB bus registered, assigned bus number 2
[ 0.317751] ehci-platform 5200000.usb: irq 36, io mem 0x05200000
[ 0.332274] ehci-platform 5200000.usb: USB 2.0 started, EHCI 1.00
[ 0.332736] hub 2-0:1.0: USB hub found
[ 0.332762] hub 2-0:1.0: 1 port detected
[ 0.333544] ehci-platform 5310000.usb: EHCI Host Controller
[ 0.333566] ehci-platform 5310000.usb: new USB bus registered, assigned bus number 3
[ 0.333659] ehci-platform 5310000.usb: irq 38, io mem 0x05310000
[ 0.348273] ehci-platform 5310000.usb: USB 2.0 started, EHCI 1.00
[ 0.348737] hub 3-0:1.0: USB hub found
[ 0.348762] hub 3-0:1.0: 1 port detected
[ 0.349542] ehci-platform 5311000.usb: EHCI Host Controller
[ 0.349566] ehci-platform 5311000.usb: new USB bus registered, assigned bus number 4
[ 0.349649] ehci-platform 5311000.usb: irq 40, io mem 0x05311000
[ 0.364282] ehci-platform 5311000.usb: USB 2.0 started, EHCI 1.00
[ 0.364842] hub 4-0:1.0: USB hub found
[ 0.364871] hub 4-0:1.0: 1 port detected
[ 0.448881] sunxi-mmc 4021000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[ 0.466429] random: fast init done
[ 0.467176] mmc0: new high speed SDIO card at address 8800
[ 0.508456] ohci-platform 5101400.usb: Generic Platform OHCI controller
[ 0.508521] ohci-platform 5101400.usb: new USB bus registered, assigned bus number 5
[ 0.508744] ohci-platform 5101400.usb: irq 35, io mem 0x05101400
[ 0.509093] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin
[ 0.509120] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 1
[ 0.572816] hub 5-0:1.0: USB hub found
[ 0.572858] hub 5-0:1.0: 1 port detected
[ 0.573643] ohci-platform 5200400.usb: Generic Platform OHCI controller
[ 0.573668] ohci-platform 5200400.usb: new USB bus registered, assigned bus number 6
[ 0.573770] ohci-platform 5200400.usb: irq 37, io mem 0x05200400
[ 0.636870] hub 6-0:1.0: USB hub found
[ 0.636901] hub 6-0:1.0: 1 port detected
[ 0.637669] ohci-platform 5310400.usb: Generic Platform OHCI controller
[ 0.637690] ohci-platform 5310400.usb: new USB bus registered, assigned bus number 7
[ 0.637789] ohci-platform 5310400.usb: irq 39, io mem 0x05310400
[ 0.657506] Console: switching to colour frame buffer device 240x67
[ 0.692231] sun4i-drm display-engine: [drm] fb0: sun4i-drmdrmfb frame buffer device
[ 0.700972] hub 7-0:1.0: USB hub found
[ 0.701017] hub 7-0:1.0: 1 port detected
[ 0.702005] ohci-platform 5311400.usb: Generic Platform OHCI controller
[ 0.702034] ohci-platform 5311400.usb: new USB bus registered, assigned bus number 8
[ 0.702158] ohci-platform 5311400.usb: irq 41, io mem 0x05311400
[ 0.758882] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugout
[ 0.758921] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 2
[ 0.765386] hub 8-0:1.0: USB hub found
[ 0.765453] hub 8-0:1.0: 1 port detected
[ 0.767254] usb_phy_generic usb_phy_generic.4.auto: supply vcc not found, using dummy regulator
[ 0.772984] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 0.773704] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 0.774380] ALSA device list:
[ 0.774393] #0: H616 Audio Codec
[ 0.774399] #1: sndahub
[ 0.775768] Freeing unused kernel memory: 2368K
[ 0.780336] Run /init as init process
[ 0.780343] with arguments:
[ 0.780346] /init
[ 0.780349] with environment:
[ 0.780352] HOME=/
[ 0.780355] TERM=linux
[ 0.780358] label=BATOCERA
[ 1.002498] loop0: detected capacity change from 0 to 2259848
[ 1.010281] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin
[ 1.010303] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 1
[ 1.031053] /dev/loop0: Can't open blockdev
[ 1.316382] usb 6-1: new full-speed USB device number 2 using ohci-platform
[ 1.390442] random: dbus-uuidgen: uninitialized urandom read (12 bytes read)
[ 1.390516] random: dbus-uuidgen: uninitialized urandom read (8 bytes read)
[ 1.429200] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[ 1.562290] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 1.834814] udevd[264]: starting version 3.2.11
[ 1.870698] udevd[275]: starting eudev-3.2.11
[ 2.082503] panfrost 1800000.gpu: clock rate = 432000000
[ 2.082540] panfrost 1800000.gpu: bus_clock rate = 200000000
[ 2.082785] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pi not found, using dummy regulator
[ 2.083169] dwmac-sun8i 5020000.ethernet: IRQ eth_wake_irq not found
[ 2.083187] dwmac-sun8i 5020000.ethernet: IRQ eth_lpi not found
[ 2.083480] panfrost 1800000.gpu: mali-g31 id 0x7093 major 0x0 minor 0x0 status 0x0
[ 2.083504] panfrost 1800000.gpu: features: 00000000,3fde77ff, issues: 00000000,00000400
[ 2.083511] panfrost 1800000.gpu: Features: L2:0x07100206 Shader:0x00000000 Tiler:0x00000209 Mem:0x1 MMU:0x00002821 AS:0xff JS:0x7
[ 2.083520] panfrost 1800000.gpu: shader_present=0x1 l2_present=0x1
[ 2.083810] dwmac-sun8i 5020000.ethernet: supply phy-io not found, using dummy regulator
[ 2.084446] dwmac-sun8i 5020000.ethernet: PTP uses main clock
[ 2.084508] dwmac-sun8i 5020000.ethernet: Current syscon value is not the default 51fe6 (expect 50000)
[ 2.086876] dwmac-sun8i 5020000.ethernet: No HW DMA feature register supported
[ 2.086904] dwmac-sun8i 5020000.ethernet: RX Checksum Offload Engine supported
[ 2.086909] dwmac-sun8i 5020000.ethernet: COE Type 2
[ 2.086916] dwmac-sun8i 5020000.ethernet: TX Checksum insertion supported
[ 2.086921] dwmac-sun8i 5020000.ethernet: Normal descriptors
[ 2.086926] dwmac-sun8i 5020000.ethernet: Chain mode enabled
[ 2.088879] [drm] Initialized panfrost 1.2.0 20180908 for 1800000.gpu on minor 1
[ 2.089679] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.134880] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.137991] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.170295] Registered IR keymap rc-empty
[ 2.172139] rc rc0: sunxi-ir as /devices/platform/soc/7040000.ir/rc/rc0
[ 2.172648] rc rc0: lirc_dev: driver sunxi-ir registered at minor = 0, raw IR receiver, no transmitter
[ 2.172845] input: sunxi-ir as /devices/platform/soc/7040000.ir/rc/rc0/input0
[ 2.174682] sunxi-ir 7040000.ir: initialized sunXi IR driver
[ 2.175582] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.254803] input: Sony Interactive Entertainment Wireless Controller Touchpad as /devices/platform/soc/5200400.usb/usb6/6-1/6-1:1.3/0003:054C:09CC.0001/input/input2
[ 2.287635] input: Sony Interactive Entertainment Wireless Controller Motion Sensors as /devices/platform/soc/5200400.usb/usb6/6-1/6-1:1.3/0003:054C:09CC.0001/input/input3
[ 2.298485] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.311727] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.348554] input: Sony Interactive Entertainment Wireless Controller as /devices/platform/soc/5200400.usb/usb6/6-1/6-1:1.3/0003:054C:09CC.0001/input/input1
[ 2.352781] sony 0003:054C:09CC.0001: input,hidraw0: USB HID v81.11 Gamepad [Sony Interactive Entertainment Wireless Controller] on usb-5200400.usb-1/input3
[ 2.361235] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.388121] usbcore: registered new interface driver snd-usb-audio
[ 2.389023] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 7.176372] random: crng init done
[ 7.176390] random: 7 urandom warning(s) missed due to ratelimiting
[ 8.176883] phy_rtl8211f_led_fixup in
[ 8.252327] dwmac-sun8i 5020000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[ 8.255967] dwmac-sun8i 5020000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 8.256935] dwmac-sun8i 5020000.ethernet eth0: No Safety Features support found
[ 8.256961] dwmac-sun8i 5020000.ethernet eth0: No MAC Management Counters available
[ 8.256969] dwmac-sun8i 5020000.ethernet eth0: PTP not supported by HW
[ 8.258146] dwmac-sun8i 5020000.ethernet eth0: configuring for phy/rgmii link mode
[ 8.318367] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 8.342447] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 9.187514] EXT4-fs (mmcblk1p2): recovery complete
[ 9.188745] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[ 9.318833] squashfs: Unknown parameter 'iocharset'
[ 11.137440] Bluetooth: Core ver 2.22
[ 11.137653] NET: Registered PF_BLUETOOTH protocol family
[ 11.137667] Bluetooth: HCI device and connection manager initialized
[ 11.137693] Bluetooth: HCI socket layer initialized
[ 11.137702] Bluetooth: L2CAP socket layer initialized
[ 11.137737] Bluetooth: SCO socket layer initialized
[ 11.253788] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 11.253824] Bluetooth: BNEP filters: protocol multicast
[ 11.253846] Bluetooth: BNEP socket layer initialized
[ 11.361600] dwmac-sun8i 5020000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 11.361657] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 31.708546] cldo1: disabling

log2:

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.16.17 (batocera@f52701216d72) (aarch64-buildroot-linux-gnu-gcc.br_real (Buildroot 2019.11-15034-gc634032f0d) 11.2.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP PREEMPT Thu May 26 15:55:55 CEST 2022
[ 0.000000] Machine model: OrangePi Zero2
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x7fdcb140-0x7fdccfff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000004007ffff]
[ 0.000000] node 0: [mem 0x0000000040080000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] cma: Reserved 384 MiB at 0x0000000066c00000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.2
[ 0.000000] percpu: Embedded 19 pages/cpu s37592 r8192 d32040 u77824
[ 0.000000] pcpu-alloc: s37592 r8192 d32040 u77824 alloc=19*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] Fallback order for Node 0: 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 258048
[ 0.000000] Policy zone: DMA
[ 0.000000] Kernel command line: initrd=/boot/initrd.gz label=BATOCERA rootwait quiet loglevel=0 console=ttyS0,115200 console=tty3
[ 0.000000] Unknown kernel command line parameters "label=BATOCERA", will be passed to user space.
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 612940K/1048576K available (12416K kernel code, 1496K rwdata, 3976K rodata, 2368K init, 383K bss, 42420K reserved, 393216K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] rcu: Offload RCU callbacks from CPUs: (none).
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000506] Console: colour dummy device 80x25
[ 0.000538] printk: console [tty3] enabled
[ 0.000607] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.000621] pid_max: default: 32768 minimum: 301
[ 0.000716] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.000729] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.002306] rcu: Hierarchical SRCU implementation.
[ 0.003478] smp: Bringing up secondary CPUs ...
[ 0.004034] Detected VIPT I-cache on CPU1
[ 0.004108] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.004652] Detected VIPT I-cache on CPU2
[ 0.004711] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.005221] Detected VIPT I-cache on CPU3
[ 0.005278] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.005375] smp: Brought up 1 node, 4 CPUs
[ 0.005389] SMP: Total of 4 processors activated.
[ 0.005394] CPU features: detected: 32-bit EL0 Support
[ 0.005399] CPU features: detected: CRC32 instructions
[ 0.012883] CPU: All CPU(s) started at EL2
[ 0.012918] alternatives: patching kernel code
[ 0.014040] devtmpfs: initialized
[ 0.019351] random: get_random_u32 called from bucket_table_alloc.isra.0+0x64/0x150 with crng_init=0
[ 0.019878] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.019906] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.032501] pinctrl core: initialized pinctrl subsystem
[ 0.033580] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.035031] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.035161] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.035261] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.035845] thermal_sys: Registered thermal governor 'step_wise'
[ 0.036410] cpuidle: using governor ladder
[ 0.036433] cpuidle: using governor menu
[ 0.036594] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.036706] ASID allocator initialised with 65536 entries
[ 0.037554] Serial: AMBA PL011 UART driver
[ 0.047249] platform 6510000.tcon-top: Fixing up cyclic dependency with 6000000.hdmi
[ 0.047904] platform 6515000.lcd-controller: Fixing up cyclic dependency with 6510000.tcon-top
[ 0.049249] platform connector: Fixing up cyclic dependency with 6000000.hdmi
[ 0.059038] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.059058] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.059064] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.059070] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.059628] cryptd: max_cpu_qlen set to 1000
[ 0.060293] pwm module init!
[ 0.061823] iommu: Default domain type: Translated
[ 0.061841] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.062133] SCSI subsystem initialized
[ 0.062281] libata version 3.00 loaded.
[ 0.062485] usbcore: registered new interface driver usbfs
[ 0.062524] usbcore: registered new interface driver hub
[ 0.062554] usbcore: registered new device driver usb
[ 0.062905] mc: Linux media interface: v0.10
[ 0.062933] videodev: Linux video capture interface: v2.00
[ 0.063013] pps_core: LinuxPPS API ver. 1 registered
[ 0.063019] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [email protected]
[ 0.063032] PTP clock support registered
[ 0.063524] Advanced Linux Sound Architecture Driver Initialized.
[ 0.064435] clocksource: Switched to clocksource arch_sys_counter
[ 0.064627] VFS: Disk quotas dquot_6.6.0
[ 0.064680] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.070502] NET: Registered PF_INET protocol family
[ 0.070647] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.071476] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 0.071556] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.071630] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 0.071750] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.071880] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.071916] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.072070] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.072508] RPC: Registered named UNIX socket transport module.
[ 0.072522] RPC: Registered udp transport module.
[ 0.072526] RPC: Registered tcp transport module.
[ 0.072530] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.072729] Unpacking initramfs...
[ 0.081096] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.082798] Initialise system trusted keyrings
[ 0.083133] workingset: timestamp_bits=44 max_order=18 bucket_order=0
[ 0.089232] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.090123] NFS: Registering the id_resolver key type
[ 0.090165] Key type id_resolver registered
[ 0.090170] Key type id_legacy registered
[ 0.090250] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.090257] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.091129] Key type cifs.idmap registered
[ 0.091808] 9p: Installing v9fs 9p2000 file system support
[ 0.100053] Freeing initrd memory: 572K
[ 0.134204] NET: Registered PF_ALG protocol family
[ 0.134225] Key type asymmetric registered
[ 0.134230] Asymmetric key parser 'x509' registered
[ 0.134417] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[ 0.134610] io scheduler mq-deadline registered
[ 0.134618] io scheduler kyber registered
[ 0.145057] sun50i-h616-pinctrl 300b000.pinctrl: initialized sunXi PIO driver
[ 0.145922] sun50i-h616-r-pinctrl 7022000.pinctrl: initialized sunXi PIO driver
[ 0.154793] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.156007] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-ph not found, using dummy regulator
[ 0.156577] printk: console [ttyS0] disabled
[ 0.156660] 5000000.serial: ttyS0 at MMIO 0x5000000 (irq = 31, base_baud = 1500000) is a 16550A
[ 0.156795] printk: console [ttyS0] enabled
[ 0.158359] misc dump reg init
[ 0.162518] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.168067] loop: module loaded
[ 0.188612] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[ 0.188630] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld [email protected]. All Rights Reserved.
[ 0.190227] tun: Universal TUN/TAP device driver, 1.6
[ 0.192734] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.192751] ehci-platform: EHCI generic platform driver
[ 0.192926] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.192950] ohci-platform: OHCI generic platform driver
[ 0.193605] usbcore: registered new interface driver uas
[ 0.193652] usbcore: registered new interface driver usb-storage
[ 0.195222] mousedev: PS/2 mouse device common for all mice
[ 0.196797] sun6i-rtc 7000000.rtc: registered as rtc0
[ 0.196834] sun6i-rtc 7000000.rtc: setting system clock to 1970-01-02T00:00:03 UTC (86403)
[ 0.196938] sun6i-rtc 7000000.rtc: RTC enabled
[ 0.197081] i2c_dev: i2c /dev entries driver
[ 0.197449] mv64xxx_i2c 7081400.i2c: can't get pinctrl, bus recovery not supported
[ 0.198189] axp20x-i2c 0-0036: AXP20x variant AXP806 found
[ 0.202311] vdd-dram: Bringing 1500000uV into 1400000-1400000uV
[ 0.210367] axp20x-i2c 0-0036: AXP20X driver loaded
[ 0.211085] IR NEC protocol handler initialized
[ 0.211098] IR RC5(x/sz) protocol handler initialized
[ 0.211102] IR RC6 protocol handler initialized
[ 0.211105] IR JVC protocol handler initialized
[ 0.211108] IR Sony protocol handler initialized
[ 0.211112] IR SANYO protocol handler initialized
[ 0.211115] IR Sharp protocol handler initialized
[ 0.211118] IR MCE Keyboard/mouse protocol handler initialized
[ 0.211122] IR XMP protocol handler initialized
[ 0.211125] ir_imon_decoder: IR iMON protocol handler initialized
[ 0.211129] IR RCMM protocol handler initialized
[ 0.211186] usbcore: registered new interface driver xbox_remote
[ 0.212651] sunxi-wdt 30090a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.215114] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pg not found, using dummy regulator
[ 0.215531] sdhci: Secure Digital Host Controller Interface driver
[ 0.215539] sdhci: Copyright(c) Pierre Ossman
[ 0.215646] Synopsys Designware Multimedia Card Interface Driver
[ 0.216572] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[ 0.216586] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.217328] sunxi-mmc 4020000.mmc: Got CD GPIO
[ 0.217330] sunxi-mmc 4021000.mmc: allocated mmc-pwrseq
[ 0.217442] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pc not found, using dummy regulator
[ 0.218190] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.218375] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 0.218611] hid: raw HID events driver (C) Jiri Kosina
[ 0.219036] usbcore: registered new interface driver usbhid
[ 0.219044] usbhid: USB HID core driver
[ 0.219968] cedrus 1c0e000.video-codec: Device registered as /dev/video0
[ 0.229776] debugfs: Directory '5096000.codec' with parent 'H616 Audio Codec' already present!
[ 0.240597] sunxi-mmc 4020000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[ 0.270204] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 0.270468] Initializing XFRM netlink socket
[ 0.270791] NET: Registered PF_INET6 protocol family
[ 0.271679] Segment Routing with IPv6
[ 0.271706] In-situ OAM (IOAM) with IPv6
[ 0.271763] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.272134] NET: Registered PF_PACKET protocol family
[ 0.272244] 9pnet: Installing 9P2000 support
[ 0.272272] Key type dns_resolver registered
[ 0.272618] registered taskstats version 1
[ 0.272633] Loading compiled-in X.509 certificates
[ 0.276472] mmc1: host does not support reading read-only switch, assuming write-enable
[ 0.279425] mmc1: new high speed SDHC card at address aaaa
[ 0.280196] mmcblk1: mmc1:aaaa SK32G 29.7 GiB
[ 0.284143] platform 1100000.mixer: Fixing up cyclic dependency with 6510000.tcon-top
[ 0.286289] debugfs: Directory '1100000.mixer' with parent 'regmap' already present!
[ 0.286324] debugfs: Directory '1100000.mixer' with parent 'regmap' already present!
[ 0.292543] mmcblk1: p1 p2
[ 0.296940] sun4i-drm display-engine: bound 1100000.mixer (ops 0xffff800008cef3b8)
[ 0.297198] sun4i-drm display-engine: bound 6510000.tcon-top (ops 0xffff800008cf3b48)
[ 0.297461] sun4i-drm display-engine: bound 6515000.lcd-controller (ops 0xffff800008cea458)
[ 0.297788] sun8i-dw-hdmi 6000000.hdmi: Detected HDMI TX controller v2.12a with HDCP (DWC HDMI 2.0 TX PHY)
[ 0.298053] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin
[ 0.298285] sun8i-dw-hdmi 6000000.hdmi: registered DesignWare HDMI I2C bus driver
[ 0.299185] sun4i-drm display-engine: bound 6000000.hdmi (ops 0xffff800008cee4a0)
[ 0.299567] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 0.299616] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 1
[ 0.331918] random: fast init done
[ 0.446112] Console: switching to colour frame buffer device 240x67
[ 0.449078] sunxi-mmc 4021000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[ 0.467331] mmc0: new high speed SDIO card at address 8800
[ 0.511135] sun4i-drm display-engine: [drm] fb0: sun4i-drmdrmfb frame buffer device
[ 0.512417] phy phy-5100400.phy.0: Changing dr_mode to 1
[ 0.512483] ehci-platform 5101000.usb: EHCI Host Controller
[ 0.512506] ehci-platform 5101000.usb: new USB bus registered, assigned bus number 1
[ 0.512629] ehci-platform 5101000.usb: irq 34, io mem 0x05101000
[ 0.528485] ehci-platform 5101000.usb: USB 2.0 started, EHCI 1.00
[ 0.529148] hub 1-0:1.0: USB hub found
[ 0.529179] hub 1-0:1.0: 1 port detected
[ 0.530001] ehci-platform 5200000.usb: EHCI Host Controller
[ 0.530026] ehci-platform 5200000.usb: new USB bus registered, assigned bus number 2
[ 0.530120] ehci-platform 5200000.usb: irq 36, io mem 0x05200000
[ 0.544447] ehci-platform 5200000.usb: USB 2.0 started, EHCI 1.00
[ 0.544945] hub 2-0:1.0: USB hub found
[ 0.544971] hub 2-0:1.0: 1 port detected
[ 0.545770] ehci-platform 5310000.usb: EHCI Host Controller
[ 0.545794] ehci-platform 5310000.usb: new USB bus registered, assigned bus number 3
[ 0.545881] ehci-platform 5310000.usb: irq 38, io mem 0x05310000
[ 0.560455] ehci-platform 5310000.usb: USB 2.0 started, EHCI 1.00
[ 0.561034] hub 3-0:1.0: USB hub found
[ 0.561065] hub 3-0:1.0: 1 port detected
[ 0.561983] ehci-platform 5311000.usb: EHCI Host Controller
[ 0.562010] ehci-platform 5311000.usb: new USB bus registered, assigned bus number 4
[ 0.562110] ehci-platform 5311000.usb: irq 40, io mem 0x05311000
[ 0.576446] ehci-platform 5311000.usb: USB 2.0 started, EHCI 1.00
[ 0.577084] hub 4-0:1.0: USB hub found
[ 0.577119] hub 4-0:1.0: 1 port detected
[ 0.720599] ohci-platform 5101400.usb: Generic Platform OHCI controller
[ 0.720668] ohci-platform 5101400.usb: new USB bus registered, assigned bus number 5
[ 0.721047] ohci-platform 5101400.usb: irq 35, io mem 0x05101400
[ 0.785692] hub 5-0:1.0: USB hub found
[ 0.785756] hub 5-0:1.0: 1 port detected
[ 0.787408] ohci-platform 5200400.usb: Generic Platform OHCI controller
[ 0.787453] ohci-platform 5200400.usb: new USB bus registered, assigned bus number 6
[ 0.787642] ohci-platform 5200400.usb: irq 37, io mem 0x05200400
[ 0.849516] hub 6-0:1.0: USB hub found
[ 0.849589] hub 6-0:1.0: 1 port detected
[ 0.851208] ohci-platform 5310400.usb: Generic Platform OHCI controller
[ 0.851254] ohci-platform 5310400.usb: new USB bus registered, assigned bus number 7
[ 0.851443] ohci-platform 5310400.usb: irq 39, io mem 0x05310400
[ 0.913518] hub 7-0:1.0: USB hub found
[ 0.913582] hub 7-0:1.0: 1 port detected
[ 0.915203] ohci-platform 5311400.usb: Generic Platform OHCI controller
[ 0.915249] ohci-platform 5311400.usb: new USB bus registered, assigned bus number 8
[ 0.915478] ohci-platform 5311400.usb: irq 41, io mem 0x05311400
[ 0.977632] hub 8-0:1.0: USB hub found
[ 0.977701] hub 8-0:1.0: 1 port detected
[ 0.979503] usb_phy_generic usb_phy_generic.4.auto: supply vcc not found, using dummy regulator
[ 0.985237] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 0.985950] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 0.986630] ALSA device list:
[ 0.986642] #0: H616 Audio Codec
[ 0.986648] #1: sndahub
[ 0.988049] Freeing unused kernel memory: 2368K
[ 0.992505] Run /init as init process
[ 0.992512] with arguments:
[ 0.992515] /init
[ 0.992518] with environment:
[ 0.992521] HOME=/
[ 0.992524] TERM=linux
[ 0.992527] label=BATOCERA
[ 1.050374] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugout
[ 1.050417] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 2
[ 1.215701] loop0: detected capacity change from 0 to 2259848
[ 1.230964] /dev/loop0: Can't open blockdev
[ 1.301467] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin
[ 1.301511] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 1
[ 1.532475] usb 6-1: new full-speed USB device number 2 using ohci-platform
[ 1.645374] random: dbus-uuidgen: uninitialized urandom read (12 bytes read)
[ 1.645453] random: dbus-uuidgen: uninitialized urandom read (8 bytes read)
[ 1.683337] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[ 1.772632] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.079937] udevd[260]: starting version 3.2.11
[ 2.115756] udevd[271]: starting eudev-3.2.11
[ 2.320345] panfrost 1800000.gpu: clock rate = 432000000
[ 2.320393] panfrost 1800000.gpu: bus_clock rate = 200000000
[ 2.321470] panfrost 1800000.gpu: mali-g31 id 0x7093 major 0x0 minor 0x0 status 0x0
[ 2.321504] panfrost 1800000.gpu: features: 00000000,3fde77ff, issues: 00000000,00000400
[ 2.321511] panfrost 1800000.gpu: Features: L2:0x07100206 Shader:0x00000000 Tiler:0x00000209 Mem:0x1 MMU:0x00002821 AS:0xff JS:0x7
[ 2.321519] panfrost 1800000.gpu: shader_present=0x1 l2_present=0x1
[ 2.325495] [drm] Initialized panfrost 1.2.0 20180908 for 1800000.gpu on minor 1
[ 2.326948] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.361420] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pi not found, using dummy regulator
[ 2.361846] dwmac-sun8i 5020000.ethernet: IRQ eth_wake_irq not found
[ 2.361869] dwmac-sun8i 5020000.ethernet: IRQ eth_lpi not found
[ 2.362250] dwmac-sun8i 5020000.ethernet: supply phy-io not found, using dummy regulator
[ 2.363770] dwmac-sun8i 5020000.ethernet: PTP uses main clock
[ 2.363825] dwmac-sun8i 5020000.ethernet: Current syscon value is not the default 51fe6 (expect 50000)
[ 2.364129] dwmac-sun8i 5020000.ethernet: No HW DMA feature register supported
[ 2.364149] dwmac-sun8i 5020000.ethernet: RX Checksum Offload Engine supported
[ 2.364153] dwmac-sun8i 5020000.ethernet: COE Type 2
[ 2.364159] dwmac-sun8i 5020000.ethernet: TX Checksum insertion supported
[ 2.364164] dwmac-sun8i 5020000.ethernet: Normal descriptors
[ 2.364169] dwmac-sun8i 5020000.ethernet: Chain mode enabled
[ 2.413476] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.419175] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.419293] Registered IR keymap rc-empty
[ 2.419433] rc rc0: sunxi-ir as /devices/platform/soc/7040000.ir/rc/rc0
[ 2.419776] rc rc0: lirc_dev: driver sunxi-ir registered at minor = 0, raw IR receiver, no transmitter
[ 2.419963] input: sunxi-ir as /devices/platform/soc/7040000.ir/rc/rc0/input0
[ 2.421924] sunxi-ir 7040000.ir: initialized sunXi IR driver
[ 2.422895] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.478819] input: Sony Interactive Entertainment Wireless Controller Touchpad as /devices/platform/soc/5200400.usb/usb6/6-1/6-1:1.3/0003:054C:09CC.0001/input/input2
[ 2.497243] input: Sony Interactive Entertainment Wireless Controller Motion Sensors as /devices/platform/soc/5200400.usb/usb6/6-1/6-1:1.3/0003:054C:09CC.0001/input/input3
[ 2.560842] input: Sony Interactive Entertainment Wireless Controller as /devices/platform/soc/5200400.usb/usb6/6-1/6-1:1.3/0003:054C:09CC.0001/input/input1
[ 2.572739] sony 0003:054C:09CC.0001: input,hidraw0: USB HID v81.11 Gamepad [Sony Interactive Entertainment Wireless Controller] on usb-5200400.usb-1/input3
[ 2.574786] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.598630] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.604922] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.682197] sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
[ 2.682935] usbcore: registered new interface driver snd-usb-audio
[ 7.452506] random: crng init done
[ 7.452529] random: 7 urandom warning(s) missed due to ratelimiting
[ 8.454069] phy_rtl8211f_led_fixup in
[ 8.544532] dwmac-sun8i 5020000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[ 8.546458] dwmac-sun8i 5020000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 8.547295] dwmac-sun8i 5020000.ethernet eth0: No Safety Features support found
[ 8.547317] dwmac-sun8i 5020000.ethernet eth0: No MAC Management Counters available
[ 8.547326] dwmac-sun8i 5020000.ethernet eth0: PTP not supported by HW
[ 8.549854] dwmac-sun8i 5020000.ethernet eth0: configuring for phy/rgmii link mode
[ 8.591705] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 8.613774] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 9.457547] EXT4-fs (mmcblk1p2): recovery complete
[ 9.458648] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[ 9.585128] squashfs: Unknown parameter 'iocharset'
[ 11.366660] Bluetooth: Core ver 2.22
[ 11.366798] NET: Registered PF_BLUETOOTH protocol family
[ 11.366802] Bluetooth: HCI device and connection manager initialized
[ 11.366821] Bluetooth: HCI socket layer initialized
[ 11.366829] Bluetooth: L2CAP socket layer initialized
[ 11.366845] Bluetooth: SCO socket layer initialized
[ 11.430032] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 11.430058] Bluetooth: BNEP filters: protocol multicast
[ 11.430077] Bluetooth: BNEP socket layer initialized
[ 12.669740] dwmac-sun8i 5020000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 12.669797] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 31.708517] cldo1: disabling

SSH卡死问题

今早ssh无法登录,在输入密码后就没有了响应,使用 ssh -v 得到的信息如下:

[email protected]'s password: 
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 52
debug1: Authentication succeeded (password).
Authenticated to 192.168.3.50 ([192.168.3.50]:22).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting [email protected]
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: receive packet: type 80
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x10
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug3: send packet: type 98
debug1: Sending environment.
debug1: Sending env LANG = zh_CN.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug2: channel 0: request shell confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 1
debug3: send packet: type 100
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 1
debug3: send packet: type 100
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 1
debug3: send packet: type 100
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 1
debug3: send packet: type 100
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 1
debug3: send packet: type 100
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 1
debug3: send packet: type 100
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 1
debug3: send packet: type 100
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 1
debug3: send packet: type 100
debug3: send packet: type 1

然后使用串口直接连接到板子上,也什么反应都没有。
在此期间,运行的其他的网络服务均可正常使用。

拔电源重启后在 /var/log/kern.log 得到的信息如下:

May 29 06:59:41 orangepizero kernel: [19546.888810]     (detected by 2, t=162485108 jiffies, g=172501, q=805)
May 29 06:59:41 orangepizero kernel: [19546.888823] Sending NMI from CPU 2 to CPUs 0:
May 29 06:59:41 orangepizero kernel: [19546.889396] NMI backtrace for cpu 0
May 29 06:59:41 orangepizero kernel: [19546.889401] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G         C        5.3.5 #1
May 29 06:59:41 orangepizero kernel: [19546.889404] Hardware name: Allwinner sun8i Family
May 29 06:59:41 orangepizero kernel: [19546.889406] PC is at __skb_gso_segment+0xc/0x140
May 29 06:59:41 orangepizero kernel: [19546.889408] LR is at validate_xmit_skb+0xe3/0x1f8
May 29 06:59:41 orangepizero kernel: [19546.889411] pc : [<c08171c0>]    lr : [<c08175f3>]    psr: 20010133
May 29 06:59:41 orangepizero kernel: [19546.889414] sp : c0f01988  ip : 00000001  fp : 00000022
May 29 06:59:41 orangepizero kernel: [19546.889416] r10: 00000b84  r9 : d5614000  r8 : c0f01a0b
May 29 06:59:41 orangepizero kernel: [19546.889419] r7 : d5e2b740  r6 : 00002080  r5 : 00004933  r4 : c8663438
May 29 06:59:41 orangepizero kernel: [19546.889422] r3 : 00002080  r2 : 00004933  r1 : 00000000  r0 : c8663438
May 29 06:59:41 orangepizero kernel: [19546.889425] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment none
May 29 06:59:41 orangepizero kernel: [19546.889428] Control: 50c5387d  Table: 55fc406a  DAC: 00000051
May 29 06:59:41 orangepizero kernel: [19546.889431] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G         C        5.3.5 #1
May 29 06:59:41 orangepizero kernel: [19546.889434] Hardware name: Allwinner sun8i Family
May 29 06:59:41 orangepizero kernel: [19546.889437] [<c010cfb9>] (unwind_backtrace) from [<c0109cdd>] (show_stack+0x11/0x14)
May 29 06:59:41 orangepizero kernel: [19546.889440] [<c0109cdd>] (show_stack) from [<c0961c4d>] (dump_stack+0x69/0x78)
May 29 06:59:41 orangepizero kernel: [19546.889443] [<c0961c4d>] (dump_stack) from [<c0965d09>] (nmi_cpu_backtrace+0x59/0x90)
May 29 06:59:41 orangepizero kernel: [19546.889447] [<c0965d09>] (nmi_cpu_backtrace) from [<c010bf21>] (handle_IPI+0x85/0x2c0)
May 29 06:59:41 orangepizero kernel: [19546.889450] [<c010bf21>] (handle_IPI) from [<c05c8613>] (gic_handle_irq+0x67/0x68)
May 29 06:59:41 orangepizero kernel: [19546.889454] [<c05c8613>] (gic_handle_irq) from [<c0101ae5>] (__irq_svc+0x65/0x94)
May 29 06:59:41 orangepizero kernel: [19546.889456] Exception stack(0xc0f01938 to 0xc0f01980)
May 29 06:59:41 orangepizero kernel: [19546.889459] 1920:                                                       c8663438 00000000
May 29 06:59:41 orangepizero kernel: [19546.889463] 1940: 00004933 00002080 c8663438 00004933 00002080 d5e2b740 c0f01a0b d5614000
May 29 06:59:41 orangepizero kernel: [19546.889466] 1960: 00000b84 00000022 00000001 c0f01988 c08175f3 c08171c0 20010133 ffffffff
May 29 06:59:41 orangepizero kernel: [19546.889470] [<c0101ae5>] (__irq_svc) from [<c08171c0>] (__skb_gso_segment+0xc/0x140)
May 29 06:59:41 orangepizero kernel: [19546.889473] [<c08171c0>] (__skb_gso_segment) from [<c08175f3>] (validate_xmit_skb+0xe3/0x1f8)
May 29 06:59:41 orangepizero kernel: [19546.889477] [<c08175f3>] (validate_xmit_skb) from [<c081773d>] (validate_xmit_skb_list+0x35/0x48)
May 29 06:59:41 orangepizero kernel: [19546.889481] [<c081773d>] (validate_xmit_skb_list) from [<c0850ba5>] (sch_direct_xmit+0x85/0x2a8)
May 29 06:59:41 orangepizero kernel: [19546.889484] [<c0850ba5>] (sch_direct_xmit) from [<c0818127>] (__dev_queue_xmit+0x693/0x7d0)
May 29 06:59:41 orangepizero kernel: [19546.889488] [<c0818127>] (__dev_queue_xmit) from [<c086dbb1>] (ip_finish_output2+0x1bd/0x474)
May 29 06:59:41 orangepizero kernel: [19546.889491] [<c086dbb1>] (ip_finish_output2) from [<c086faeb>] (ip_output+0x9b/0xe0)
May 29 06:59:41 orangepizero kernel: [19546.889494] [<c086faeb>] (ip_output) from [<c086f659>] (__ip_queue_xmit+0xe9/0x2ec)
May 29 06:59:41 orangepizero kernel: [19546.889498] [<c086f659>] (__ip_queue_xmit) from [<c0883a51>] (__tcp_transmit_skb+0x3e5/0x7c4)
May 29 06:59:41 orangepizero kernel: [19546.889501] [<c0883a51>] (__tcp_transmit_skb) from [<c0884797>] (tcp_write_xmit+0x17f/0xcb8)
May 29 06:59:41 orangepizero kernel: [19546.889505] [<c0884797>] (tcp_write_xmit) from [<c08852f9>] (__tcp_push_pending_frames+0x29/0xa8)
May 29 06:59:41 orangepizero kernel: [19546.889509] [<c08852f9>] (__tcp_push_pending_frames) from [<c0881087>] (tcp_rcv_established+0x49f/0x528)
May 29 06:59:41 orangepizero kernel: [19546.889513] [<c0881087>] (tcp_rcv_established) from [<c0888a7b>] (tcp_v4_do_rcv+0xe7/0x144)
May 29 06:59:41 orangepizero kernel: [19546.889516] [<c0888a7b>] (tcp_v4_do_rcv) from [<c088ad4b>] (tcp_v4_rcv+0x8bb/0xa78)
May 29 06:59:41 orangepizero kernel: [19546.889520] [<c088ad4b>] (tcp_v4_rcv) from [<c086b6b1>] (ip_protocol_deliver_rcu+0x25/0x240)
May 29 06:59:41 orangepizero kernel: [19546.889523] [<c086b6b1>] (ip_protocol_deliver_rcu) from [<c086b907>] (ip_local_deliver_finish+0x3b/0x40)
May 29 06:59:41 orangepizero kernel: [19546.889527] [<c086b907>] (ip_local_deliver_finish) from [<c086b943>] (ip_local_deliver+0x37/0x88)
May 29 06:59:41 orangepizero kernel: [19546.889531] [<c086b943>] (ip_local_deliver) from [<c086b9bf>] (ip_rcv+0x2b/0x64)
May 29 06:59:41 orangepizero kernel: [19546.889534] [<c086b9bf>] (ip_rcv) from [<c0818f15>] (__netif_receive_skb_one_core+0x29/0x2c)
May 29 06:59:41 orangepizero kernel: [19546.889539] [<c0818f15>] (__netif_receive_skb_one_core) from [<c0818f9b>] (netif_receive_skb_internal+0x23/0x70)
May 29 06:59:41 orangepizero kernel: [19546.889542] [<c0818f9b>] (netif_receive_skb_internal) from [<c0819671>] (napi_gro_receive+0xf9/0x114)
May 29 06:59:41 orangepizero kernel: [19546.889546] [<c0819671>] (napi_gro_receive) from [<c07169bd>] (stmmac_napi_poll_rx+0x2c5/0x5e4)
May 29 06:59:41 orangepizero kernel: [19546.889550] [<c07169bd>] (stmmac_napi_poll_rx) from [<c0819b91>] (net_rx_action+0x105/0x300)
May 29 06:59:41 orangepizero kernel: [19546.889553] [<c0819b91>] (net_rx_action) from [<c01022f9>] (__do_softirq+0xe1/0x2a4)
May 29 06:59:41 orangepizero kernel: [19546.889556] [<c01022f9>] (__do_softirq) from [<c011efa3>] (irq_exit+0x87/0x98)
May 29 06:59:41 orangepizero kernel: [19546.889560] [<c011efa3>] (irq_exit) from [<c015dcd1>] (__handle_domain_irq+0x49/0x84)
May 29 06:59:41 orangepizero kernel: [19546.889563] [<c015dcd1>] (__handle_domain_irq) from [<c05c85e5>] (gic_handle_irq+0x39/0x68)
May 29 06:59:41 orangepizero kernel: [19546.889566] [<c05c85e5>] (gic_handle_irq) from [<c0101ae5>] (__irq_svc+0x65/0x94)
May 29 06:59:41 orangepizero kernel: [19546.889569] Exception stack(0xc0f01f20 to 0xc0f01f68)
May 29 06:59:41 orangepizero kernel: [19546.889572] 1f20: 00000000 01da487c dff5dfb0 c0115841 ffffe000 c0f04f64 c0f04fa8 00000001
May 29 06:59:41 orangepizero kernel: [19546.889576] 1f40: 00000000 c0ec08b0 00000000 c0ff6863 000729a4 c0f01f70 c01075f7 c01075f8
May 29 06:59:41 orangepizero kernel: [19546.889578] 1f60: 40010033 ffffffff
May 29 06:59:41 orangepizero kernel: [19546.889581] [<c0101ae5>] (__irq_svc) from [<c01075f8>] (arch_cpu_idle+0x28/0x2c)
May 29 06:59:41 orangepizero kernel: [19546.889584] [<c01075f8>] (arch_cpu_idle) from [<c013cb7d>] (do_idle+0x12d/0x1b4)
May 29 06:59:41 orangepizero kernel: [19546.889588] [<c013cb7d>] (do_idle) from [<c013cdd9>] (cpu_startup_entry+0x19/0x20)
May 29 06:59:41 orangepizero kernel: [19546.889591] [<c013cdd9>] (cpu_startup_entry) from [<c0e00c17>] (start_kernel+0x3cf/0x3e4)
May 29 06:59:41 orangepizero kernel: [19546.889862] rcu_sched       I    0    10      2 0x00000000
May 29 06:59:41 orangepizero kernel: [19546.889888] [<c0971dd5>] (__schedule) from [<c097216d>] (schedule+0x35/0x84)
May 29 06:59:41 orangepizero kernel: [19546.889899] [<c097216d>] (schedule) from [<c0974595>] (schedule_timeout+0x69/0x264)
May 29 06:59:41 orangepizero kernel: [19546.889917] [<c0974595>] (schedule_timeout) from [<c0169e9f>] (rcu_gp_kthread+0x583/0x79c)
May 29 06:59:41 orangepizero kernel: [19546.889934] [<c0169e9f>] (rcu_gp_kthread) from [<c0131819>] (kthread+0xf9/0x100)
May 29 06:59:41 orangepizero kernel: [19546.889946] [<c0131819>] (kthread) from [<c01010f9>] (ret_from_fork+0x11/0x38)
May 29 06:59:41 orangepizero kernel: [19546.889951] Exception stack(0xd712ffb0 to 0xd712fff8)
May 29 06:59:41 orangepizero kernel: [19546.889959] ffa0:                                     00000000 00000000 00000000 00000000
May 29 06:59:41 orangepizero kernel: [19546.889969] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
May 29 06:59:41 orangepizero kernel: [19546.889976] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
May 29 07:24:47 orangepizero kernel: [21053.048265] printk: systemd-journal: 141 output lines suppressed due to ratelimiting

请问此问题有什么引起以及该如何修复。

OPI Zero LTS dropping off network over wifi

Hello,

We are having some OrengePi Zero LTS fall off our network and in somecases crash the intire kernel. I would appritated any advise you would be willing to provide. I will list various dmesg outputs I have seen relating to the xradio driver.

  • xradio WSM-ERR: wsm_generic_confirm failed for request 0x0010.
  • xradio WRN: BH: missed 1848 consecutive interrupts!
  • xradio TXRX-WRN: received frame has no key status
  • xradio WSM-WRN: Issue unjoin command(TX).
  • xradio STA-ERR: [CQM] if0 Reporting connection loss.

Joshua

camera /dev/video* <- not found

model : Orangepi 5B
OS: ubuntu 20.04 focal

camera: OV13850 and 13855

Hello

When the camera is operated using test_camera.sh, it works normally

I tried entering all videos 1 to 20 using ffplay /dev/video, but it says no device connected. Can you tell me why?

OPiOS on OPi Zero2: right channel not working in audio testing with alsa speaker-test

Hi,

I'm using https://drive.google.com/file/d/1Xpxu-HlvEPhDdhHZQQ3hkGqkUHDVsq6y/view?usp=drive_link on my OPI Zero2.
Opening terminal and issuing speaker-test -c2 i'm hearing audio but only on left channel
This seems to be the same issue like reported by me in #18

FYI: For older kernels (using non v2 audiohub implementation from cfe0a8d ) patch below fixed issue.


diff -Naur sunxi.old/sun50i-ahub-cpudai.c sunxi/sun50i-ahub-cpudai.c
--- sunxi.old/sun50i-ahub-cpudai.c	2023-07-24 17:27:19.383230277 +0200
+++ sunxi/sun50i-ahub-cpudai.c	2023-07-24 16:30:20.086637225 +0200
@@ -96,13 +96,14 @@
 				(1<<I2S1_GAT), (1<<I2S1_GAT));
 		sunxi_ahub_update_bits(SUNXI_AHUB_I2S_CTL(1),
 				(1<<I2S_CTL_TXEN), (1<<I2S_CTL_TXEN));
-
+#if 0
 		sunxi_ahub_update_bits(SUNXI_AHUB_RST,
 				(1<<I2S0_RST), (1<<I2S0_RST));
 		sunxi_ahub_update_bits(SUNXI_AHUB_GAT,
 				(1<<I2S0_GAT), (1<<I2S0_GAT));
 		sunxi_ahub_update_bits(SUNXI_AHUB_I2S_CTL(0),
 				(1<<I2S_CTL_TXEN), (1<<I2S_CTL_TXEN));
+#endif
 		break;
 	case 1:
 		/* operation CVBS module */
@@ -280,6 +281,32 @@
 	return 0;
 }

+static int sunxi_ahub_cpudai_hw_params(struct snd_pcm_substream *substream,
+				       struct snd_pcm_hw_params *params,
+				       struct snd_soc_dai *dai)
+{
+	struct sunxi_ahub_cpudai_priv *sunxi_ahub_cpudai =
+					snd_soc_dai_get_drvdata(dai);
+
+	switch (params_physical_width(params)) {
+	case 16:
+		sunxi_ahub_cpudai->playback_dma_param.addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;
+		sunxi_ahub_cpudai->capture_dma_param.addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;
+		break;
+	case 24:
+	case 32:
+		sunxi_ahub_cpudai->playback_dma_param.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
+		sunxi_ahub_cpudai->capture_dma_param.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
+		break;
+	default:
+		dev_err(dai->dev, "Unsupported physical sample width: %d\n",
+			params_physical_width(params));
+		return -EINVAL;
+	}
+
+	return 0;
+}
+
 static int sunxi_ahub_cpudai_startup(struct snd_pcm_substream *substream,
 				struct snd_soc_dai *dai)
 {
@@ -365,6 +392,7 @@
 }

 static struct snd_soc_dai_ops sunxi_ahub_cpudai_dai_ops = {
+	.hw_params = sunxi_ahub_cpudai_hw_params,
 	.startup = sunxi_ahub_cpudai_startup,
 	.trigger = sunxi_ahub_cpudai_trigger,
 };
@@ -452,12 +480,10 @@
 	sunxi_ahub_cpudai->playback_dma_param.addr =
 		res.start + SUNXI_AHUB_APBIF_TXFIFO(sunxi_ahub_cpudai->id);
 	sunxi_ahub_cpudai->playback_dma_param.maxburst = 8;
-	sunxi_ahub_cpudai->playback_dma_param.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;

 	sunxi_ahub_cpudai->capture_dma_param.addr =
 		res.start + SUNXI_AHUB_APBIF_RXFIFO(sunxi_ahub_cpudai->id);
 	sunxi_ahub_cpudai->capture_dma_param.maxburst = 8;
-	sunxi_ahub_cpudai->capture_dma_param.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;

 	sunxi_ahub_cpudai->regmap = sunxi_ahub_regmap_init(pdev);
 	if (!sunxi_ahub_cpudai->regmap) {
diff -Naur sunxi.old/sun50i-ahub-daudio.c sunxi/sun50i-ahub-daudio.c
--- sunxi.old/sun50i-ahub-daudio.c	2023-07-24 17:27:19.383230277 +0200
+++ sunxi/sun50i-ahub-daudio.c	2023-07-24 16:30:20.086637225 +0200
@@ -577,7 +577,7 @@

 	if (sunxi_ahub_daudio->tdm_config)
 		/* I2S/TDM two channel mode */
-		div_ratio = clk_div / (sunxi_ahub_daudio->pcm_lrck_period * 2);
+		div_ratio = clk_div / (sunxi_ahub_daudio->pcm_lrck_period * 4);
 	else
 		/* PCM mode */
 		div_ratio = clk_div / sunxi_ahub_daudio->pcm_lrck_period;

Libcamera integration with RKISP 3.x

I'm trying to integrate libcamera with rockchip ISP on my Orange PI 5 board (RK3588s), but I cannot find any documentation on stats and params structures.

struct isp3x_isp_meas_cfg {
	struct isp3x_rawaf_meas_cfg rawaf;
	struct isp3x_rawawb_meas_cfg rawawb;
	struct isp2x_rawaelite_meas_cfg rawae0;
	struct isp2x_rawaebig_meas_cfg rawae1;
	struct isp2x_rawaebig_meas_cfg rawae2;
	struct isp2x_rawaebig_meas_cfg rawae3;
	struct isp2x_rawhistlite_cfg rawhist0;
	struct isp2x_rawhistbig_cfg rawhist1;
	struct isp2x_rawhistbig_cfg rawhist2;
	struct isp2x_rawhistbig_cfg rawhist3;
} __attribute__ ((packed));


struct isp3x_isp_meas_cfg {
	struct isp3x_rawaf_meas_cfg rawaf;
	struct isp3x_rawawb_meas_cfg rawawb;
	struct isp2x_rawaelite_meas_cfg rawae0;
	struct isp2x_rawaebig_meas_cfg rawae1;
	struct isp2x_rawaebig_meas_cfg rawae2;
	struct isp2x_rawaebig_meas_cfg rawae3;
	struct isp2x_rawhistlite_cfg rawhist0;
	struct isp2x_rawhistbig_cfg rawhist1;
	struct isp2x_rawhistbig_cfg rawhist2;
	struct isp2x_rawhistbig_cfg rawhist3;
} __attribute__ ((packed));

Where I can find some description or samples using these structures?

Whether errors or warnings in the kernel log output are serious?

Sep 16 14:27:11 lalaki kernel: watchdog: watchdog0: watchdog did not stop!
Sep 16 14:26:51 lalaki kernel: cacheinfo: Unable to detect cache hierarchy for CPU 0
Sep 16 14:26:51 lalaki kernel: cacheinfo: Unable to detect cache hierarchy for CPU 1
Sep 16 14:26:51 lalaki kernel: cacheinfo: Unable to detect cache hierarchy for CPU 2
Sep 16 14:26:51 lalaki kernel: cacheinfo: Unable to detect cache hierarchy for CPU 3
Sep 16 14:26:51 lalaki kernel: KASLR disabled due to lack of seed
Sep 16 14:26:51 lalaki kernel: cacheinfo: Unable to detect cache hierarchy for CPU 0
Sep 16 14:26:51 lalaki kernel: axp20x-regulator axp20x-regulator: DCDC frequency on AXP313a is fixed to 3 MHz.
Sep 16 14:26:51 lalaki kernel: axp20x-regulator axp20x-regulator: Error setting dcdc frequency: -22
Sep 16 14:26:51 lalaki kernel: sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-ph not found, using dummy regulator
Sep 16 14:26:51 lalaki kernel: debugfs: Directory '1100000.mixer' with parent 'regmap' already present!
Sep 16 14:26:51 lalaki kernel: debugfs: Directory '1100000.mixer' with parent 'regmap' already present!
Sep 16 14:26:51 lalaki kernel: sun8i-dw-hdmi 6000000.hdmi: supply hvcc not found, using dummy regulator
Sep 16 14:26:51 lalaki kernel: sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pc not found, using dummy regulator
Sep 16 14:26:51 lalaki kernel: sun50i-cpufreq-nvmem: will use speed0 CPU OPPs
Sep 16 14:26:51 lalaki kernel: OF: /thermal-zones/gpu-thermal/cooling-maps/map0: could not get #cooling-cells for /soc/gpu@1800000
Sep 16 14:26:51 lalaki kernel: thermal_sys: Add a cooling_device property with at least one device
Sep 16 14:26:51 lalaki kernel: thermal thermal_zone0: binding zone gpu-thermal with cdev cpufreq-cpu0 failed:-2
Sep 16 14:26:51 lalaki kernel: sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pg not found, using dummy regulator
Sep 16 14:26:51 lalaki kernel: sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
Sep 16 14:26:51 lalaki kernel: usb_phy_generic usb_phy_generic.4.auto: supply vcc not found, using dummy regulator
Sep 16 14:26:51 lalaki kernel: usb_phy_generic usb_phy_generic.4.auto: dummy supplies not allowed for exclusive requests
Sep 16 14:26:51 lalaki kernel: mmc0: host does not support reading read-only switch, assuming write-enable
Sep 16 14:26:51 lalaki kernel: device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log.
Sep 16 14:26:51 lalaki kernel: WCN_ERR: dts node for bt_wake not found
Sep 16 14:26:53 lalaki kernel: sunxi_cedrus: module is from the staging directory, the quality is unknown, you have been warned.
Sep 16 14:26:53 lalaki kernel: sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pi not found, using dummy regulator
Sep 16 14:26:53 lalaki kernel: dwmac-sun8i 5020000.ethernet: Current syscon value is not the default 58000 (expect 0)
Sep 16 14:26:53 lalaki kernel: wifi ini path = /lib/firmware/wifi_2355b001_1ant.ini
Sep 16 14:26:53 lalaki kernel: sprdwl:sprdwl_get_fw_info length mismatch: len_count=83, r_len=89
Sep 16 14:26:53 lalaki kernel: sprdwl:sprdwl_get_fw_info, drv_version=1, fw_version=2, compat_ver=0
Sep 16 14:26:53 lalaki kernel: sprdwl:chip_model:0x2355, chip_ver:0x0
Sep 16 14:26:53 lalaki kernel: sprdwl:fw_ver:0, fw_std:0x7f, fw_capa:0x120f7f
Sep 16 14:26:53 lalaki kernel: sprdwl:mac_addr:a0:67:20:f1:db:fb
Sep 16 14:26:53 lalaki kernel: sprdwl:credit_capa:TX_WITH_CREDIT
Sep 16 14:26:53 lalaki kernel: sprdwl:ott support:0
Sep 16 14:26:53 lalaki kernel: unisoc_wifi unisoc_wifi wlan0: mixed HW and IP checksum settings.
Sep 16 17:10:16 lalaki kernel: unisoc_wifi unisoc_wifi wlan0: sprdwl_start_xmit drop msg due to TX Err
Sep 16 17:10:17 lalaki kernel: unisoc_wifi unisoc_wifi wlan0: sprdwl_start_xmit drop msg due to TX Err

Do I see these and is it necessary to fix them? Is some of the content just general information

Kernel:6.1.31-sun50iw9
Device: Orange Pi Zero 3

orange-pi-5.13-sunxi64 kernel on zeropi2: audio has only left channel

Hi,

I build e5d69c7 from orange-pi-5.13-sunxi64 repo and see audio works - but has only left channel.
Issue is seen in my media player app and also i.e. by issuing:
speaker-test -c2

I have this issue also on: orange-pi-5.16-sunxi64 kernel and also on: orangepizero2-2.1.6-ubuntu-bionic-linux5.13 downloaded from Xulong website - so it looks to me like issue is h616 audio driver...

alsamixer seems to be set correctly:

is this known issue?

state.sndahub {
        control.1 {
                iface MIXER
                name 'I2S0IN Switch'
                value false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.2 {
                iface MIXER
                name 'I2S0OUT Switch'
                value false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.3 {
                iface MIXER
                name 'I2S1IN Switch'
                value false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.4 {
                iface MIXER
                name 'I2S1OUT Switch'
                value true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.5 {
                iface MIXER
                name 'I2S2IN Switch'
                value false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.6 {
                iface MIXER
                name 'I2S2OUT Switch'
                value false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.7 {
                iface MIXER
                name 'I2S3IN Switch'
                value false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.8 {
                iface MIXER
                name 'I2S3OUT Switch'
                value false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.9 {
                iface MIXER
                name 'DAM0IN Switch'
                value false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.10 {
                iface MIXER
                name 'DAM1IN Switch'
                value false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.11 {
                iface MIXER
                name 'DAM0OUT Switch'
                value false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.12 {
                iface MIXER
                name 'DAM1OUT Switch'
                value false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.13 {
                iface MIXER
                name 'APBIF0 Src Select'
                value NONE
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 NONE
                        item.1 APBIF_TXDIF0
                        item.2 APBIF_TXDIF1
                        item.3 APBIF_TXDIF2
                        item.4 I2S0_TXDIF
                        item.5 I2S1_TXDIF
                        item.6 I2S2_TXDIF
                        item.7 I2S3_TXDIF
                        item.8 DAM0_TXDIF
                        item.9 DAM1_TXDIF
                }
        }
        control.14 {
                iface MIXER
                name 'APBIF1 Src Select'
                value NONE
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 NONE
                        item.1 APBIF_TXDIF0
                        item.2 APBIF_TXDIF1
                        item.3 APBIF_TXDIF2
                        item.4 I2S0_TXDIF
                        item.5 I2S1_TXDIF
                        item.6 I2S2_TXDIF
                        item.7 I2S3_TXDIF
                        item.8 DAM0_TXDIF
                        item.9 DAM1_TXDIF
                }
        }
        control.15 {
                iface MIXER
                name 'APBIF2 Src Select'
                value NONE
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 NONE
                        item.1 APBIF_TXDIF0
                        item.2 APBIF_TXDIF1
                        item.3 APBIF_TXDIF2
                        item.4 I2S0_TXDIF
                        item.5 I2S1_TXDIF
                        item.6 I2S2_TXDIF
                        item.7 I2S3_TXDIF
                        item.8 DAM0_TXDIF
                        item.9 DAM1_TXDIF
                }
        }
        control.16 {
                iface MIXER
                name 'I2S0 Src Select'
                value NONE
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 NONE
                        item.1 APBIF_TXDIF0
                        item.2 APBIF_TXDIF1
                        item.3 APBIF_TXDIF2
                        item.4 I2S0_TXDIF
                        item.5 I2S1_TXDIF
                        item.6 I2S2_TXDIF
                        item.7 I2S3_TXDIF
                        item.8 DAM0_TXDIF
                        item.9 DAM1_TXDIF
                }
        }
        control.17 {
                iface MIXER
                name 'I2S1 Src Select'
                value APBIF_TXDIF0
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 NONE
                        item.1 APBIF_TXDIF0
                        item.2 APBIF_TXDIF1
                        item.3 APBIF_TXDIF2
                        item.4 I2S0_TXDIF
                        item.5 I2S1_TXDIF
                        item.6 I2S2_TXDIF
                        item.7 I2S3_TXDIF
                        item.8 DAM0_TXDIF
                        item.9 DAM1_TXDIF
                }
        }
        control.18 {
                iface MIXER
                name 'I2S2 Src Select'
                value NONE
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 NONE
                        item.1 APBIF_TXDIF0
                        item.2 APBIF_TXDIF1
                        item.3 APBIF_TXDIF2
                        item.4 I2S0_TXDIF
                        item.5 I2S1_TXDIF
                        item.6 I2S2_TXDIF
                        item.7 I2S3_TXDIF
                        item.8 DAM0_TXDIF
                        item.9 DAM1_TXDIF
                }
        }
        control.19 {
                iface MIXER
                name 'I2S3 Src Select'
                value NONE
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 NONE
                        item.1 APBIF_TXDIF0
                        item.2 APBIF_TXDIF1
                        item.3 APBIF_TXDIF2
                        item.4 I2S0_TXDIF
                        item.5 I2S1_TXDIF
                        item.6 I2S2_TXDIF
                        item.7 I2S3_TXDIF
                        item.8 DAM0_TXDIF
                        item.9 DAM1_TXDIF
                }
        }
        control.20 {
                iface MIXER
                name 'DAM0Chan0 Src Select'
                value NONE
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 NONE
                        item.1 APBIF_TXDIF0
                        item.2 APBIF_TXDIF1
                        item.3 APBIF_TXDIF2
                        item.4 I2S0_TXDIF
                        item.5 I2S1_TXDIF
                        item.6 I2S2_TXDIF
                        item.7 I2S3_TXDIF
                        item.8 DAM0_TXDIF
                        item.9 DAM1_TXDIF
                }
        }
        control.21 {
                iface MIXER
                name 'DAM0Chan1 Src Select'
                value NONE
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 NONE
                        item.1 APBIF_TXDIF0
                        item.2 APBIF_TXDIF1
                        item.3 APBIF_TXDIF2
                        item.4 I2S0_TXDIF
                        item.5 I2S1_TXDIF
                        item.6 I2S2_TXDIF
                        item.7 I2S3_TXDIF
                        item.8 DAM0_TXDIF
                        item.9 DAM1_TXDIF
                }
        }
        control.22 {
                iface MIXER
                name 'DAM0Chan2 Src Select'
                value NONE
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 NONE
                        item.1 APBIF_TXDIF0
                        item.2 APBIF_TXDIF1
                        item.3 APBIF_TXDIF2
                        item.4 I2S0_TXDIF
                        item.5 I2S1_TXDIF
                        item.6 I2S2_TXDIF
                        item.7 I2S3_TXDIF
                        item.8 DAM0_TXDIF
                        item.9 DAM1_TXDIF
                }
        }
        control.23 {
                iface MIXER
                name 'DAM1Chan0 Src Select'
                value NONE
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 NONE
                        item.1 APBIF_TXDIF0
                        item.2 APBIF_TXDIF1
                        item.3 APBIF_TXDIF2
                        item.4 I2S0_TXDIF
                        item.5 I2S1_TXDIF
                        item.6 I2S2_TXDIF
                        item.7 I2S3_TXDIF
                        item.8 DAM0_TXDIF
                        item.9 DAM1_TXDIF
                }
        }
        control.24 {
                iface MIXER
                name 'DAM1Chan1 Src Select'
                value NONE
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 NONE
                        item.1 APBIF_TXDIF0
                        item.2 APBIF_TXDIF1
                        item.3 APBIF_TXDIF2
                        item.4 I2S0_TXDIF
                        item.5 I2S1_TXDIF
                        item.6 I2S2_TXDIF
                        item.7 I2S3_TXDIF
                        item.8 DAM0_TXDIF
                        item.9 DAM1_TXDIF
                }
        }
        control.25 {
                iface MIXER
                name 'DAM1Chan2 Src Select'
                value NONE
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 NONE
                        item.1 APBIF_TXDIF0
                        item.2 APBIF_TXDIF1
                        item.3 APBIF_TXDIF2
                        item.4 I2S0_TXDIF
                        item.5 I2S1_TXDIF
                        item.6 I2S2_TXDIF
                        item.7 I2S3_TXDIF
                        item.8 DAM0_TXDIF
                        item.9 DAM1_TXDIF
                }
        }
}
state.allwinnerhdmi {
        control.1 {
                iface PCM
                name 'Playback Channel Map'
                value.0 3
                value.1 4
                value.2 0
                value.3 0
                value.4 0
                value.5 0
                value.6 0
                value.7 0
                comment {
                        access read
                        type INTEGER
                        count 8
                        range '0 - 36'
                }
        }
        control.2 {
                iface PCM
                name ELD
                value '100009006930004f00000000000000004e8b1a5353322d54454b205456090707150750570700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
                comment {
                        access 'read volatile'
                        type BYTES
                        count 128
                }
        }
}
state.Codec {
        control.1 {
                iface MIXER
                name 'digital volume'
                value 0
                comment {
                        access 'read write'
                        type INTEGER
                        count 1
                        range '0 - 63'
                        dbmin -9999999
                        dbmax 4121460
                        dbvalue.0 -9999999
                }
        }
        control.2 {
                iface MIXER
                name 'LINEOUT volume'
                value 26
                comment {
                        access 'read write'
                        type INTEGER
                        count 1
                        range '0 - 31'
                        dbmin -9999999
                        dbmax 150
                        dbvalue.0 -600
                }
        }
        control.3 {
                iface MIXER
                name 'LINEOUT Switch'
                value true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.4 {
                iface MIXER
                name 'Left Output Mixer DACL Switch'
                value true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.5 {
                iface MIXER
                name 'Left Output Mixer DACR Switch'
                value true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.6 {
                iface MIXER
                name 'Right Output Mixer DACL Switch'
                value true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.7 {
                iface MIXER
                name 'Right Output Mixer DACR Switch'
                value true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.8 {
                iface MIXER
                name 'Left LINEOUT Mux'
                value LOMixer
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 LOMixer
                        item.1 LROMixer
                }
        }
        control.9 {
                iface MIXER
                name 'Right LINEOUT Mux'
                value ROMixer
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 ROMixer
                        item.1 LROMixer
                }
        }
}

orangepi3_lts linux driver request_irq error

I am try to write some drivers in orangepi3_lts, I can control the led turn on or turn off. but i get a error when i try to use the request_irq function. here is my code :

  for(i = 0; i < ARRAY_SIZE(irqs); i++){
    ret = request_irq(irqs[i].irq_id, gpiol_handler, IRQF_TRIGGER_RISING|IRQF_TRIGGER_FALLING, irqs[i].name, &irqs[i]);
    if(ret < 0)
      goto request_irq_fail;
  }

When i annotating the code. it is ok. But i use the request_irq, the dmesg show the error:
genirq: Failed to request resources for PL2 (irq 137) on irqchip sunxi_pio_edge

i try to use gpio_request in the gpio.h. buf i found the gpio.h don't have the interrupt system.the file like this:

static inline int gpio_request(unsigned gpio, const char *label)
{ 
  return -ENOSYS;
} 

so I'd like to confirm can i use the irq in the linux kernel driver?
Are there some other ways to use interrupts in the linux kernel driver on the orangep3_lts board?

no hdmi audio on orange-pi-5.16-sunxi64 on h616 orange-pi-zero2

Hi,

I trying to get hdmi audio using orange-pi-5.16-sunxi64 branch on orange-pi-zero2 (h616).
It not works unfortunatelly.
Looking on dmesg I see:
sunxi-hdmi soc:hdmi-audio@1: snd_soc_register_card failed
On orange-pi-5.13-sunxi64 i have working hdmi audio (and no any sunxi-hdmi errors in dmesg)
It looks - to me - like orange-pi-5.16-sunxi64 has regression ?

Hdmi orangepi 3 lts - next branch

Is hdmi screen working for orangepi 3 lts under the new 5.16 kernel?
Im able to build, but when i boot it, the leds do the right thing, but i get a totally black screen. nothing happens.
It seems to work perfectly for Armbian. Which i have now been able to successfully bring up properly. eveything works except bluetooth, crashes when i try to turn it on. Any ideas on that also?

Rebasing onto the mainline linux branches

Rebasing onto the mainline linux branches

Currently the branches at this repository does not based on mainline linux branches, i.e. it has not common history with official linux repository.

It may be quite useful to rebase changes on top of official branches (say from https://github.com/torvalds/linux linux-5.x.y). See raspberry pi linux kernel tree (https://github.com/raspberrypi/linux) and some other.

You may simply fetch needed branches (linux-5.x.y) from mainline linux repo and cherry-pick your commits.

Zero2 拷贝大文件时死机

我有一个硬盘座插两了两块硬盘(exfat),另外一个移动硬盘(ntfs)插在Zero2上,用的是官方镜像。
在拷贝大文件时出现如下情况
IMG_2102
直接死机(我接了hdmi,键盘没反应了)

再次测试了一下,scp拷贝硬盘座上的文件(exfat)到本地电脑成功,删除文件后scp把本地文件再拷回Zero2里原位置时失败。直接死机。
IMG_8504

Problem with the USB port for the image "Orangepizero3_1.0.2_debian_bookworm_desktop_xfce_linux6.1.31"

Hi. Today I received 6pcs Orange Pi Zero 3 1GB. I installed the image from orangepi.org "Orangepizero3_1.0.2_debian_bookworm_desktop_xfce_linux6.1.31". I have a problem with the USB port because it does not recognize any devices that work with the CP2102 and CH340 USB controller. I also have an Orange Pi Zero 2W and I have the same version of the system installed as in Pi Zero 3. USB devices with the CP2102 and CH340 controller work without any problems. How should I deal with this? Reagrds

Compilation error in xradio wireless driver

Hi,
When cross compiling the 5.4 branch with the default orangepi_defconfig, I encounter the following error when the xradio wireless driver is being built:

In file included from drivers/net/wireless/xradio/fwio.c:17:
drivers/net/wireless/xradio/xradio.h:206:26: error: field ‘pm_state’ has incomplete type
  206 |  struct xradio_pm_state  pm_state;
      |                          ^~~~~~~~
drivers/net/wireless/xradio/xradio.h:364:29: error: field ‘pm_state_vif’ has incomplete type
  364 |  struct xradio_pm_state_vif pm_state_vif;
      |                             ^~~~~~~~~~~~

Please find the generated config here:
orangepi_defconfig_5.4.txt

I am using a Gentoo cross-compilation toolchain:

  • cross-aarch64-unknown-linux-gnu/binutils-2.34-r2
  • cross-aarch64-unknown-linux-gnu/gcc-9.3.0-r2
  • cross-aarch64-unknown-linux-gnu/glibc-2.32-r5
  • cross-aarch64-unknown-linux-gnu/linux-headers-5.4-r1

Please let me know if you need more info. I am building the kernel to run on an Orange Pi PC2. Disabling all the drivers that cause compilation errors gives me a runnable kernel, but the Orange Pi PC2 locks up when I put load on the CPU, probably because I had to disable the CPU thermal throttling driver as well. But let's stick to this issue for now ;-)
Kind regards,
Simon de Hartog

请问如何修改spidev.bufsiz?

镜像为 Orangepizero_2.0.8_ubuntu_focal_server_linux5.4.65 spi开启 spidev_test无问题 默认bufsiz为4096 如何调节大小?谢谢

Orange pi zero 2 can not reboot or shutdown

Hello,

When I am trying to shutdown or reboot, it stuck at shutdown after giving message:
systemd-shutdown[1]: Waiting for process: grep, lscpu

Any idea why this is happening?

The OS image:
Orangepizero2_3.0.6_ubuntu_jammy_desktop_xfce_linux5.16.17

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.