clockworkpi

[Solved]Update linux kernel to 5.2.21 issue

I try to update the Linux kernel to version 5.2.21.It can boot, lima driver seems working fine,but i can’t change sound volumn by launch, the screen stucked when I do this.
Here is the dmesg output:

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.2.21-clockworkpi-cpi3 (shell@shell-pc) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 SMP Mon Oct 14 09:39:13 CST 2019
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Clockwork CPI3
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 64 MiB at 0x6c000000
[ 0.000000] On node 0 totalpages: 262069
[ 0.000000] Normal zone: 1536 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 196608 pages, LIFO batch:63
[ 0.000000] HighMem zone: 65461 pages, LIFO batch:15
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] percpu: Embedded 15 pages/cpu s30476 r8192 d22772 u61440
[ 0.000000] pcpu-alloc: s30476 r8192 d22772 u61440 alloc=15*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260533
[ 0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk no_console_suspend root=/dev/mmcblk0p2 rootfstype=ext4 rootwait init=/sbin/init noinitrd panic=10
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 962356K/1048276K available (7168K kernel code, 401K rwdata, 1656K rodata, 1024K init, 254K bss, 20384K reserved, 65536K cma-reserved, 261832K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] random: get_random_bytes called from start_kernel+0x298/0x3c8 with crng_init=0
[ 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.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000017] Switching to timer-based delay loop, resolution 41ns
[ 0.000204] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000594] Console: colour dummy device 80x30
[ 0.000640] Calibrating delay loop (skipped), value calculated using timer frequency… 48.00 BogoMIPS (lpj=240000)
[ 0.000655] pid_max: default: 32768 minimum: 301
[ 0.000791] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000806] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001320] *** VALIDATE proc ***
[ 0.001430] *** VALIDATE cgroup1 ***
[ 0.001440] *** VALIDATE cgroup2 ***
[ 0.001451] CPU: Testing write buffer coherency: ok
[ 0.001804] /cpus/cpu@0 missing clock-frequency property
[ 0.001822] /cpus/cpu@1 missing clock-frequency property
[ 0.001836] /cpus/cpu@2 missing clock-frequency property
[ 0.001851] /cpus/cpu@3 missing clock-frequency property
[ 0.001862] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002353] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002457] rcu: Hierarchical SRCU implementation.
[ 0.002908] smp: Bringing up secondary CPUs …
[ 0.003635] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.004449] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.005201] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.005288] smp: Brought up 1 node, 4 CPUs
[ 0.005306] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[ 0.005311] CPU: All CPU(s) started in HYP mode.
[ 0.005315] CPU: Virtualization extensions available.
[ 0.006353] devtmpfs: initialized
[ 0.012179] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.012405] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.012426] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.014627] pinctrl core: initialized pinctrl subsystem
[ 0.015246] NET: Registered protocol family 16
[ 0.016608] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.017619] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.017629] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.036319] usbcore: registered new interface driver usbfs
[ 0.036376] usbcore: registered new interface driver hub
[ 0.036460] usbcore: registered new device driver usb
[ 0.036793] Advanced Linux Sound Architecture Driver Initialized.
[ 0.037260] Bluetooth: Core ver 2.22
[ 0.037295] NET: Registered protocol family 31
[ 0.037302] Bluetooth: HCI device and connection manager initialized
[ 0.037316] Bluetooth: HCI socket layer initialized
[ 0.037325] Bluetooth: L2CAP socket layer initialized
[ 0.037334] Bluetooth: SCO socket layer initialized
[ 0.037873] clocksource: Switched to clocksource arch_sys_counter
[ 0.038436] simple-framebuffer 7ffb5000.framebuffer: framebuffer at 0x7ffb5000, 0x4b000 bytes, mapped to 0x(ptrval)
[ 0.038450] simple-framebuffer 7ffb5000.framebuffer: format=x8r8g8b8, mode=320x240x32, linelength=1280
[ 0.040214] Console: switching to colour frame buffer device 40x30
[ 0.041430] simple-framebuffer 7ffb5000.framebuffer: fb0: simplefb registered!
[ 0.048223] NET: Registered protocol family 2
[ 0.048712] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.048739] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.048826] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.048940] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.049053] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.049111] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.049316] NET: Registered protocol family 1
[ 0.049824] RPC: Registered named UNIX socket transport module.
[ 0.049835] RPC: Registered udp transport module.
[ 0.049840] RPC: Registered tcp transport module.
[ 0.049845] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.051557] Initialise system trusted keyrings
[ 0.051693] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 0.058263] NFS: Registering the id_resolver key type
[ 0.058300] Key type id_resolver registered
[ 0.058307] Key type id_legacy registered
[ 0.059930] Key type asymmetric registered
[ 0.059940] Asymmetric key parser ‘x509’ registered
[ 0.059990] bounce: pool size: 64 pages
[ 0.060041] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.060051] io scheduler mq-deadline registered
[ 0.060057] io scheduler kyber registered
[ 0.060187] io scheduler bfq registered
[ 0.061610] sun8i-a23-r-pinctrl 1f02c00.pinctrl: Reset controller missing
[ 0.064198] sun8i-a33-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.110101] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.111695] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[ 0.112409] printk: console [ttyS0] disabled
[ 0.132571] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1500000) is a U6_16550A
[ 0.793261] printk: console [ttyS0] enabled
[ 0.797818] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 0.828425] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 35, base_baud = 1500000) is a U6_16550A
[ 0.844303] lima 1c40000.gpu: bus rate = 200000000
[ 0.849125] lima 1c40000.gpu: mod rate = 384000000
[ 0.854369] lima 1c40000.gpu: gp - mali400 version major 1 minor 1
[ 0.860612] lima 1c40000.gpu: pp0 - mali400 version major 1 minor 1
[ 0.866918] lima 1c40000.gpu: pp1 - mali400 version major 1 minor 1
[ 0.873231] lima 1c40000.gpu: l2 cache 64K, 4-way, 64byte cache line, 64bit external bus
[ 0.882001] [drm] Initialized lima 1.0.0 20190217 for 1c40000.gpu on minor 0
[ 0.891189] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 0.897711] ehci-platform: EHCI generic platform driver
[ 0.903248] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 0.909442] ohci-platform: OHCI generic platform driver
[ 0.915253] udc-core: couldn’t find an available UDC - added [g_ether] to list of pending drivers
[ 0.924646] sun6i-rtc 1f00000.rtc: registered as rtc0
[ 0.929732] sun6i-rtc 1f00000.rtc: RTC enabled
[ 0.934307] i2c /dev entries driver
[ 0.938701] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.946629] Bluetooth: HCI UART driver ver 2.3
[ 0.951088] Bluetooth: HCI UART protocol H4 registered
[ 0.957359] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 0.968176] sun4i-ss 1c15000.crypto-engine: Die ID 5
[ 0.975159] usbcore: registered new interface driver usbhid
[ 0.980753] usbhid: USB HID core driver
[ 0.985696] usbcore: registered new interface driver snd-usb-audio
[ 0.993482] NET: Registered protocol family 17
[ 0.998112] Bluetooth: RFCOMM TTY layer initialized
[ 1.002996] Bluetooth: RFCOMM socket layer initialized
[ 1.008146] Bluetooth: RFCOMM ver 1.11
[ 1.011892] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.017807] Bluetooth: HIDP socket layer initialized
[ 1.022990] Key type dns_resolver registered
[ 1.027419] Registering SWP/SWPB emulation handler
[ 1.032659] Loading compiled-in X.509 certificates
[ 1.039815] sun8i-a23-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[ 1.048810] sun8i-a23-r-pinctrl 1f02c00.pinctrl: 1f02c00.pinctrl supply vcc-pl not found, using dummy regulator
[ 1.059373] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 1.070269] asoc-simple-card sound: ASoC: codec-analog not registered
[ 1.077453] rfkill_gpio rfkill_gpio: rfkill_gpio device registered.
[ 1.084172] sunxi-rsb 1f03400.rsb: RSB running at 3000000 Hz
[ 1.090226] axp20x-rsb sunxi-rsb-3a3: AXP20x variant AXP223 found
[ 1.098352] input: axp20x-pek as /devices/platform/soc/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/input/input0
[ 1.108405] axp20x-adc axp22x-adc: DMA mask not set
[ 1.113889] axp20x-battery-power-supply axp20x-battery-power-supply: DMA mask not set
[ 1.122205] dcdc1: supplied by regulator-dummy
[ 1.126885] dcdc2: supplied by regulator-dummy
[ 1.131515] dcdc3: supplied by regulator-dummy
[ 1.136126] dcdc4: supplied by regulator-dummy
[ 1.140803] dcdc5: supplied by regulator-dummy
[ 1.145514] dc1sw: supplied by vcc-3v0
[ 1.149425] dc5ldo: supplied by vcc-dram
[ 1.153608] aldo1: supplied by regulator-dummy
[ 1.158356] aldo2: supplied by regulator-dummy
[ 1.163053] aldo3: supplied by regulator-dummy
[ 1.167781] eldo1: supplied by regulator-dummy
[ 1.172513] eldo2: supplied by regulator-dummy
[ 1.177218] eldo3: supplied by regulator-dummy
[ 1.181852] dldo1: supplied by regulator-dummy
[ 1.186324] vcc-wifi0: Bringing 700000uV into 3300000-3300000uV
[ 1.192507] dldo2: supplied by regulator-dummy
[ 1.196981] vcc-wifi1: Bringing 700000uV into 3300000-3300000uV
[ 1.203091] dldo3: supplied by regulator-dummy
[ 1.207563] vcc-amp: Bringing 700000uV into 3300000-3300000uV
[ 1.213543] dldo4: supplied by regulator-dummy
[ 1.218036] vcc-wifi2: Bringing 700000uV into 3300000-3300000uV
[ 1.224167] rtc_ldo: supplied by regulator-dummy
[ 1.228933] ldo_io0: supplied by regulator-dummy
[ 1.233716] ldo_io1: supplied by regulator-dummy
[ 1.238526] drivevbus: supplied by vcc5v0
[ 1.242981] axp20x-ac-power-supply axp20x-ac-power-supply: DMA mask not set
[ 1.250289] axp20x-usb-power-supply axp20x-usb-power-supply: DMA mask not set
[ 1.258252] axp20x-rsb sunxi-rsb-3a3: AXP20X driver loaded
[ 1.265190] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 1.270838] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 1.279094] ehci-platform 1c1a000.usb: irq 28, io mem 0x01c1a000
[ 1.307891] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 1.314708] hub 1-0:1.0: USB hub found
[ 1.318511] hub 1-0:1.0: 1 port detected
[ 1.323180] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 1.329829] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 1.337717] ohci-platform 1c1a400.usb: irq 29, io mem 0x01c1a400
[ 1.412564] hub 2-0:1.0: USB hub found
[ 1.416344] hub 2-0:1.0: 1 port detected
[ 1.421103] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.432131] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.437893] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.446696] hub 3-0:1.0: USB hub found
[ 1.450496] hub 3-0:1.0: 1 port detected
[ 1.454918] using random self ethernet address
[ 1.459383] using random host ethernet address
[ 1.464282] usb0: HOST MAC 42:3a:91:40:81:3f
[ 1.468597] usb0: MAC 86:45:f9:e5:09:20
[ 1.472448] using random self ethernet address
[ 1.476887] using random host ethernet address
[ 1.481406] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[ 1.488026] g_ether gadget: g_ether ready
[ 1.492610] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 1.503143] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[ 1.530605] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.538593] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[ 1.566982] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 1.575873] asoc-simple-card sound: sun8i <-> 1c22c00.dai mapping ok
[ 1.585103] sun6i-rtc 1f00000.rtc: setting system clock to 2019-10-14T02:50:43 UTC (1571021443)
[ 1.594019] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.594059] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 1.605659] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1.612573] cfg80211: Loaded X.509 cert ‘sforshee: 00b28ddf47aef9cea7’
[ 1.615423] mmc0: new high speed SDHC card at address aaaa
[ 1.621893] ALSA device list:
[ 1.628426] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[ 1.630283] #0: sun8i-a33-audio
[ 1.636003] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.638156] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.643531] mmcblk0: p1 p2
[ 1.652104] cfg80211: failed to load regulatory.db
[ 1.656795] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.667896] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1.676664] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
[ 1.680704] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.690311] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 1.690527] random: fast init done
[ 1.707428] devtmpfs: mounted
[ 1.711512] Freeing unused kernel memory: 1024K
[ 1.718065] Run /sbin/init as init process
[ 1.775619] mmc1: new high speed SDIO card at address 0001
[ 1.785098] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430a0-sdio for chip BCM43430/0
[ 1.828435] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430a0-sdio.clockwork,clockworkpi-cpi3.txt failed with error -2
[ 1.930891] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430a0-sdio for chip BCM43430/0
[ 1.939894] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[ 1.951352] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/0 wl0: Oct 8 2016 15:27:51 version 7.46.57.4.ap.r4 (A0 Station/P2P) FWID 01-e2c3069b es6.c5.n4.a3
[ 2.098747] systemd[1]: Failed to insert module ‘autofs4’: No such file or directory
[ 2.136288] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.148531] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 2.167042] systemd[1]: Detected architecture arm.
[ 2.211893] systemd[1]: Set hostname to .
[ 2.233150] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.272638] random: systemd-cryptse: uninitialized urandom read (16 bytes read)
[ 2.623162] systemd[1]: Created slice System Slice.
[ 2.658497] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 2.688275] systemd[1]: Listening on Journal Socket (/dev/log).
[ 2.718197] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ 2.748068] systemd[1]: dev-hugepages.mount: Couldn’t determine result for ConditionVirtualization=!private-users, assuming failed: No such file or directory
[ 2.762451] systemd[1]: Listening on udev Kernel Socket.
[ 2.798077] systemd[1]: Reached target Swap.
[ 3.397914] usb 2-1: new low-speed USB device number 2 using ohci-platform
[ 3.576782] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[ 4.180150] systemd-journald[181]: Received request to flush runtime journal from PID 1
[ 4.247970] input: rancidbacon.com UsbKeyboard as /devices/platform/soc/1c1a400.usb/usb2/2-1/2-1:1.0/0003:4242:E131.0001/input/input1
[ 4.329718] hid-generic 0003:4242:E131.0001: input: USB HID v1.01 Keyboard [rancidbacon.com UsbKeyboard] on usb-1c1a400.usb-1/input0
[ 22.567536] ieee80211 phy0: brcmf_cfg80211_scan: Connecting: status (3)
[ 31.847953] vcc3v0: disabling
[ 31.850940] vcc3v3: disabling
[ 31.853922] vcc5v0: disabling
[ 31.856907] dc1sw: disabling
[ 133.661871] random: crng init done
[ 133.665284] random: 7 urandom warning(s) missed due to ratelimiting

1 Like

Can you try installing this script, and see if it works? Volume control everywhere

Also, with the updated kernel, does the Lima driver appear to be more stable/perform any better?

I tried,it failed at line

m = alsaaudio.Mixer()

I checked /var/log/daemon.log and find an error bellow:

Oct 14 18:56:14 clockworkpi systemd-udevd[302]: Process ‘/usr/sbin/alsactl -E HOME=/run/alsa restore 0’ failed with exit code 99.
Oct 14 18:56:14 clockworkpi alsactl[486]: Found hardware: “sun8i-a33-audio” “” “” “” “”
Oct 14 18:56:14 clockworkpi alsactl[486]: Hardware is initialized using a generic method
Oct 14 18:56:14 clockworkpi alsactl[486]: /usr/sbin/alsactl: set_control:1325: failed to obtain info for control #1 (No such file or directory)

It seems ALSA daemon process failed caused by the new kernel.

have you apply clockwork kernel patch & drivers ?

Yes,is there any other configuration?

@guu mentioned this in this the thread above.

I know this.I did it just like this tip,but with kernel 5.2.21.

Solved,see GameShell OS update to kernel 5.3.6

1 Like