Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sipeed-lichepi-4a: Official support #5689

Closed
wants to merge 11 commits into from
Closed

Conversation

Kreyren
Copy link
Contributor

@Kreyren Kreyren commented Sep 8, 2023


REVIEWERS: Squash using GitHub UI with message from the first commit

sipeed-lichepi-4a: Official support

Adds official support for the board and solid foundation for the development

Adds official support for the board and solid foundation for the development

Description

Progress from #5684

Uses #5714 for compilation of OpenSBI, but doesn't depend on it

The original work is on https://github.com/Kreyren/armbian-build-kreyren/compare/6cd581c96c0b7b800b6549afe23112d4a662d2a0..811288169004dccacab964129ecaf8cfe891b22d i tried to shorten it as much as possible for the easy merge request review

  • The image boots and seems to work without major issues

  • The fans doesn't work and need to be corrected on boot with:

echo 1 > /sys/class/pwm/pwmchip0/export
echo 1000000 > /sys/class/pwm/pwmchip0/pwm1/period
echo 1000000 > /sys/class/pwm/pwmchip0/pwm1/duty_cycle
echo 1 > /sys/class/pwm/pwmchip0/pwm1/enable

CC @chainsx - Rerefencing #5684 (comment) -> you seem to have better understanding for how to make it work, please implement it

  • The audio has issues with playback e.g. crab rave from youtube has lot of popping sounds on both the HDMI output and headphones through JACK, same observed on the official image

  • UEFI was not implemented and i try to submit that in next patch, TODO tracking

@chainsx You seem to be working on UEFI in your armbian fork rn, want to take over that implementation or do you want me to handle it?

Build Log: https://paste.next.armbian.com/oxamexecoj

  • Complains about:
[🐳|🔨]   ===================== WARNING ======================
[🐳|🔨]   This board does not use CONFIG_DM_USB. Please update
[🐳|🔨]   the board to use CONFIG_DM_USB before the v2019.07 release.
[🐳|🔨]   Failure to update by the deadline may result in board removal.
[🐳|🔨]   See doc/driver-model/MIGRATION.txt for more info.
[🐳|🔨]   ====================================================
[🐳|🔨]   ===================== WARNING ======================
[🐳|🔨]   CONFIG_OF_EMBED is enabled. This option should only
[🐳|🔨]   be used for debugging purposes. Please use
[🐳|🔨]   CONFIG_OF_SEPARATE for boards in mainline.
[🐳|🔨]   See doc/README.fdt-control for more info.
[🐳|🔨]   ====================================================

I try to address it in next merge request

  • The GPU and NPU are not usable, context in Figure out the GPU and NPU GPU/NPU Support? ryan4yin/nixos-licheepi4a#11.. blame the manufacturer

  • GNOME doesn't compile as it's currently broken for riscv64 in debian repositories

  • I didn't work on ubuntu compatibility, @chainsx seems to be better option for that as it seems to be his main distro

  • Debian claims that bookworm will never support riscv so should be flagged

  • Trixie doesn't build because:

[🐳|🚸] Could not find package filename for 'base-files' in 'https://packages.debian.org/bookworm/riscv64/base-files/download' [ looking for base-files ]

Debian upstream informed and working on the issue, i try to submit patch if they take long time

  • Complains about:
[    2.563670]
[    2.565219] ********************************************************************
[    2.572714] **     NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE           **
[    2.580204] **                                                                **
[    2.587680] **  WRITEABLE clk DebugFS SUPPORT HAS BEEN ENABLED IN THIS KERNEL **
[    2.595150] **                                                                **
[    2.602619] ** This means that this kernel is built to expose clk operations  **
[    2.610105] ** such as parent or rate setting, enabling, disabling, etc.      **
[    2.617589] ** to userspace, which may compromise security on your system.    **
[    2.625091] **                                                                **
[    2.632561] ** If you see this message and you are not debugging the          **
[    2.640030] ** kernel, report this immediately to your vendor!                **
[    2.647498] **                                                                **
[    2.654967] **     NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE           **
[    2.662433] ********************************************************************
[    2.669998] random: fast init done

I try to address that in upcoming merge, TODO tracking

  • Complains about:
[FAILED] Failed to listen on systemd-networ…t - Network Service Netlink Socket.

TODO: Track this

  • The flashing is not implemented and needs to be done manually as i and the riscv community ware unable to find any documentation or data on how to make it bootable through the sdcard, needs to be flashed through fastboot:
  1. Hold the BOOT button and connect the USB-C cable to your system
  2. Verify that the Android Downloader shows up in # dmesg
  3. Verify that fastboot can see the device with # fastboot devices
  4. Invoke:
# fastboot flash rom ./path/to/uboot/binary # Flash the binary in the tempfs so that we can flash it
# fastboot reboot # Reboot the device to the binary
# fastboot flash uboot ./path/to/uboot/binary # Flash the uboot on the board
# fastboot flash root ./path/to/rootfs.tar # Flash the rootfs
  1. Remove the USB-C and try to boot the device, you should be greeted with armbian
  • Issues were observed with serial console in picocom as it starts to print data that are not sensible, to fix this use C-a C-x to close picocom and reopen it again, repeat until it works

  • I tried to adjust the coding style to the armbian standard where possible

  • riscv64 include was added with stuff that should always be included

  • thead family adjusted to provide generic configuration for the family of chips

  • Installs the 8GB version, needs to be adjusted for the 16GB

  • These errors were already present in the code before i touched them:

image

So the Lint On Scripts / Shell script analysis (pull_request) failure won't be addressed in this merge request.

Refer to https://forum.armbian.com/topic/30111-implement-request-for-comment-rfc for permanent solution, i've partially refactored the uboot compilation so once we agree that the current coding style is atrocious and define a clear standard to follow then i can do more refactoring.

Jira reference number: Ehwww jira

How Has This Been Tested?

Through pain, suffering and lack of sleep by trying to boot the SD Card and flashing the fastboot and then testing the features

  • Bluetooth has not been tested

Changes tested on the 16GB version

  • platform board version 51602
  • module board version 51601

As delivered by the manufacturer and verified with RV Debugger Plus (supplied by manufacturer) through UART serial console

Notice: I got two RV Debuggers Plus where one of them works fine and the other seems to have issues, it's likely an older version provided through promotion and needs to be flashed with newer firmware

Built using:

$ ./compile.sh build BOARD=sipeed-licheepi-4a BRANCH=legacy BUILD_DESKTOP=no BUILD_MINIMAL=yes EXPERT=yes KERNEL_CONFIGURE=no RELEASE=sid

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Do not place your (c) to trivial config changes or things you have copy / pasted. Git does this for us.

Made where possible, i try to work on the documentation separatedly

  • My changes generate no new warnings

Beyond the one mentioned

  • Any dependent changes have been merged and published in downstream modules

Credit

  • chainsx

i compared his changes from https://github.com/chainsx/armbian-riscv-build/compare/911ed65ea5b37abf6e6fa0c8974083dcb0d7b8a2..081c7de1cfa9034009b64e7b129d93c38ce6c332 and used them as a reference for implementation in addition to my changes

Please archive the repository once you are done with it so that it can be used for a reference, thankuu

Adds official support for the board and solid foundation for the development
Comment on lines 203 to 206
# FIXME-QA(Krey): I don't like the handling of OPENSBI here
do_with_ccache_statistics run_host_command_logged_long_running \
"CFLAGS='${uboot_cflags}'" "KCFLAGS='${uboot_cflags}'" \
CCACHE_BASEDIR="$(pwd)" PATH="${toolchain}:${toolchain2}:${PATH}" \
CCACHE_BASEDIR="$(pwd)" OPENSBI="$([ -z "$OPENSBISOURCE" ] || echo "$SRC/cache/sources/opensbi/fw_dynamic.bin")" PATH="${toolchain}:${toolchain2}:${PATH}" \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the handling here, but i couldn't think of a way to improve it without rewriting things, kept as is for easy review

Comment on lines 296 to 297
# FIXME-DOCS(Krey): Missing explanation
: "${artifact_version:?artifact_version is not set}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was unable to provide a docs for what this does, someone decypher it plz

Comment on lines 37 to 38
KERNEL_TARGET="legacy"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I try to work on current and edge kernel implementation in different merge request

Comment on lines 39 to 41
KERNELSOURCE='https://github.com/revyos/thead-kernel'
KERNELBRANCH="branch:lpi4a"
declare -g KERNEL_MAJOR_MINOR="5.10"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the kernel that sipeed considers their official and work on mainlining there


case "$BRANCH" in
legacy)
UBOOT_USE_GCC='< 8.0'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seek chainsx for rationale about this, if needed

Comment on lines +53 to +55
# FIXME(Krey): Figure out sane values
## [ -n $CPUMIN ] || CPUMIN=480000
## [ -n $CPUMAX ] || CPUMAX=1010000
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brainstorm? I dunno what values to put there as the default

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just don't assign values. Or take it from /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will investigate..

@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 9, 2023

@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 9, 2023

Armbian documentation provided in sipeed/sipeed_wiki#512 to accompany this contribution

@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 9, 2023

CC seemingly the assigned developer for licheepi4a upstream in sipeed @Zepan - Can you provide context to how to make the sdcard boot to work?

I tried to fastboot it according to the sipeed wiki and installing that on various offsets, but it's not working. I assume that it has some special process like the AllWinner A64 and currently have to fastboot flash it to the eMMC for testing..

Tried to brainstorm that in the riscv community and we weren't able to make it boot from the sdcard either, the closest we got is https://github.com/ryan4yin/nixos-licheepi4a/tree/main#flash-into-sd-card

Documentation for the TH1520 would also help as it's really painful to develop without it atm, any relevant information related to making the board work is also appreciated e.g. context to the audio issue

@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 9, 2023

Thirdly, the 8GB and 16GB memory versions of LicheePi 4A have separate u-boot and kernel device tree files. In my previous pull request (PR), I only used the device tree for the 8GB version. However, in your code, you are using the device tree for the 8GB version, even though you mentioned testing it on the 16GB version and it worked successfully. Can you please explain how this is possible? -- @chainsx (#5689 (comment))

Built the thing, flashed it and it works 🤷 Just shows 7.52G instead of the 16GB

image

I don't know the components of the 16GB vs 8GB version, but either:

  1. It's using the same RAM chip just doesn't have the slot populated
  2. It's using different RAM chip and the linux kernel is able to manage that?

@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 9, 2023

Secondly, the pwm-fan is already defined in the kernel device tree node, and it is in the default enabled state.
However, in your description, the fan is not working. It's apparent that you haven't conducted any testing.

https://github.com/revyos/thead-kernel/blob/lpi4a/arch/riscv/boot/dts/thead/light-lpi4a-ref.dts#L210 -- @chainsx (#5689 (comment))

That's very helpful! thanks

@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 9, 2023

Fourthly, in your description, you mentioned fastboot flash root ./path/to/rootfs.tar,
but anyone who has used LicheePi 4A knows that when using fastboot to flash the root image, it should be an ext4 file system image.
Using a tar file as you've mentioned here clearly doesn't make sense. -- @chainsx (#5689 (comment))

Interesting 🤔 Armbian produces the rootfs as .tar.zstd and i decompressed it in tar and then flashed it on the device, i try to investigate it and get back to you

@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 9, 2023

In summary, I'm starting to doubt if you even have the actual device for testing. Your actions seem to lack authenticity. Can you provide the device's boot logs? -- @chainsx (#5689 (comment))

Boot log
[APP][E] protocol_connect failed, exit.
-----------------------------------------
  _____             _  _____ _____  _  __
 |  __ \           (_)/ ____|  __ \| |/ /
 | |__) |   _ _   _ _| (___ | |  | | ' /
 |  _  / | | | | | | |\___ \| |  | |  <
 | | \ \ |_| | |_| | |____) | |__| | . \
 |_|  \_\__,_|\__, |_|_____/|_____/|_|\_\
               __/ |
              |___/
                    -- Presented by ISCAS
-----------------------------------------
                              |/
                             _/_
    +-----------------+ ____  O
    |                 ||    \
    |                 ||     \     O     O
    |   ___   RISC-V  ||  ___ |   /|\_  /|\_
    +--/ o \----------++-/ o \+  _/ \  _/ \
       \___/             \___/

U-Boot SPL 2020.01-armbian (Sep 08 2023 - 05:07:34 +0000)
FM[1] lpddr4x dualrank freq=3733 64bit dbi_off=n sdram init
ddr initialized, jump to uboot
image has no header


U-Boot 2020.01-armbian (Sep 08 2023 - 05:07:34 +0000)

CPU:   rv64imafdcvsu
Model: T-HEAD c910 light
DRAM:  8 GiB
C910 CPU FREQ: 750MHz
AHB2_CPUSYS_HCLK FREQ: 250MHz
AHB3_CPUSYS_PCLK FREQ: 125MHz
PERISYS_AHB_HCLK FREQ: 250MHz
PERISYS_APB_PCLK FREQ: 62MHz
GMAC PLL POSTDIV FREQ: 1000MHZ
DPU0 PLL POSTDIV FREQ: 1188MHZ
DPU1 PLL POSTDIV FREQ: 1188MHZ
MMC:   sdhci@ffe7080000: 0, sd@ffe7090000: 1
Loading Environment from MMC... OK
Error reading output register
Warning: cannot get lcd-en GPIO
LCD panel cannot be found : -121
splash screen startup cost 16 ms
In:    serial
Out:   serial
Err:   serial
ethaddr: c6:42:5e:15:04:3f
eth1addr: c6:42:5e:15:04:40
Net:   ethernet@ffe7070000 (eth0) using MAC address - c6:42:5e:15:04:3f
eth0: ethernet@ffe7070000ethernet@ffe7070000:0 is connected to ethernet@ffe7070000.  Reconnecting to ethernet@ffe7060000
ethernet@ffe7060000 (eth1) using MAC address - c6:42:5e:15:04:40
, eth1: ethernet@ffe7060000
Hit any key to stop autoboot:  0
50340 bytes read in 5 ms (9.6 MiB/s)
16388 bytes read in 3 ms (5.2 MiB/s)
85856 bytes read in 5 ms (16.4 MiB/s)
Retrieving file: /extlinux/extlinux.conf
352 bytes read in 2 ms (171.9 KiB/s)
1:	Armbian
Retrieving file: /uInitrd
9349039 bytes read in 395 ms (22.6 MiB/s)
Retrieving file: /Image
20508672 bytes read in 863 ms (22.7 MiB/s)
append: root=UUID=699e54ed-f071-4dca-9973-81f307264773 rootwait rw earlycon clk_ignore_unused loglevel=7 eth= rootrwoptions=rw,noatime rootrwreset=yes rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 splash plymouth.ignore-serial-consoles
Retrieving file: /dtb/thead/light-lpi4a.dtb
78168 bytes read in 7 ms (10.6 MiB/s)
## Loading init Ramdisk from Legacy Image at 06000000 ...
   Image Name:   uInitrd
   Image Type:   RISC-V Linux RAMDisk Image (gzip compressed)
   Data Size:    9348975 Bytes = 8.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Ramdisk to 1f715000, end 1ffff76f ... OK
   Using Device Tree in place at 0000000001f00000, end 0000000001f16157

Starting kernel ...

[    0.000000] Linux version 5.10.113-legacy-thead (armbian@next) (riscv64-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 SMP PREEMPT Wed Sep 6 04:31:53 UTC 2023
[    0.000000] earlycon: uart0 at MMIO32 0x000000ffe7014000 (options '115200n8')
[    0.000000] printk: bootconsole [uart0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Initial ramdisk at: 0x(____ptrval____) (9351168 bytes)
[    0.000000] Reserved memory: created CMA memory pool at 0x00000000e4000000, size 320 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000000200000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x000000000fffffff]
[    0.000000]   node   0: [mem 0x0000000010000000-0x00000000166fffff]
[    0.000000]   node   0: [mem 0x0000000016700000-0x0000000016ffffff]
[    0.000000]   node   0: [mem 0x0000000017000000-0x0000000018ffffff]
[    0.000000]   node   0: [mem 0x0000000019000000-0x000000001bffffff]
[    0.000000]   node   0: [mem 0x000000001c000000-0x000000001e00ffff]
[    0.000000]   node   0: [mem 0x000000001e010000-0x000000001fffffff]
[    0.000000]   node   0: [mem 0x0000000020000000-0x00000000207fffff]
[    0.000000]   node   0: [mem 0x0000000020800000-0x0000000031ffffff]
[    0.000000]   node   0: [mem 0x0000000032000000-0x00000000383fffff]
[    0.000000]   node   0: [mem 0x0000000038400000-0x00000001ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x00000001ffffffff]
[    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
[    0.000000] SBI specification v0.3 detected
[    0.000000] SBI implementation ID=0x1 Version=0x9
[    0.000000] SBI v0.2 TIME extension detected
[    0.000000] SBI v0.2 IPI extension detected
[    0.000000] SBI v0.2 RFENCE extension detected
[    0.000000] SBI v0.2 HSM extension detected
[    0.000000] riscv: ISA extensions acdfimsuv
[    0.000000] riscv: ELF capabilities acdfimv
[    0.000000] percpu: Embedded 27 pages/cpu s72920 r8192 d29480 u110592
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2067975
[    0.000000] Kernel command line: root=UUID=699e54ed-f071-4dca-9973-81f307264773 rootwait rw earlycon clk_ignore_unused loglevel=7 eth= rootrwoptions=rw,noatime rootrwreset=yes rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 splash plymouth.ignore-serial-consoles
[    0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 7553656K/8386560K available (8933K kernel code, 4851K rwdata, 4096K rodata, 295K init, 397K bss, 505224K reserved, 327680K 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=8 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] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: interrupt-controller@ffd8000000: mapped 64 interrupts with 4 handlers for 8 contexts.
[    0.000000] random: get_random_bytes called from start_kernel+0x36c/0x4ce with crng_init=0
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1623fa770, max_idle_ns: 881590404476 ns
[    0.000007] sched_clock: 64 bits at 3000kHz, resolution 333ns, wraps every 4398046511097ns
[    0.008724] Console: colour dummy device 80x25
[    0.013213] printk: console [tty0] enabled
[    0.017336] printk: bootconsole [uart0] disabled
[    0.000000] Linux version 5.10.113-legacy-thead (armbian@next) (riscv64-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 SMP PREEMPT Wed Sep 6 04:31:53 UTC 2023
[    0.000000] earlycon: uart0 at MMIO32 0x000000ffe7014000 (options '115200n8')
[    0.000000] printk: bootconsole [uart0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Initial ramdisk at: 0x(____ptrval____) (9351168 bytes)
[    0.000000] Reserved memory: created CMA memory pool at 0x00000000e4000000, size 320 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000000200000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000001ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x000000000fffffff]
[    0.000000]   node   0: [mem 0x0000000010000000-0x00000000166fffff]
[    0.000000]   node   0: [mem 0x0000000016700000-0x0000000016ffffff]
[    0.000000]   node   0: [mem 0x0000000017000000-0x0000000018ffffff]
[    0.000000]   node   0: [mem 0x0000000019000000-0x000000001bffffff]
[    0.000000]   node   0: [mem 0x000000001c000000-0x000000001e00ffff]
[    0.000000]   node   0: [mem 0x000000001e010000-0x000000001fffffff]
[    0.000000]   node   0: [mem 0x0000000020000000-0x00000000207fffff]
[    0.000000]   node   0: [mem 0x0000000020800000-0x0000000031ffffff]
[    0.000000]   node   0: [mem 0x0000000032000000-0x00000000383fffff]
[    0.000000]   node   0: [mem 0x0000000038400000-0x00000001ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x00000001ffffffff]
[    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
[    0.000000] SBI specification v0.3 detected
[    0.000000] SBI implementation ID=0x1 Version=0x9
[    0.000000] SBI v0.2 TIME extension detected
[    0.000000] SBI v0.2 IPI extension detected
[    0.000000] SBI v0.2 RFENCE extension detected
[    0.000000] SBI v0.2 HSM extension detected
[    0.000000] riscv: ISA extensions acdfimsuv
[    0.000000] riscv: ELF capabilities acdfimv
[    0.000000] percpu: Embedded 27 pages/cpu s72920 r8192 d29480 u110592
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2067975
[    0.000000] Kernel command line: root=UUID=699e54ed-f071-4dca-9973-81f307264773 rootwait rw earlycon clk_ignore_unused loglevel=7 eth= rootrwoptions=rw,noatime rootrwreset=yes rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 splash plymouth.ignore-serial-consoles
[    0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 7553656K/8386560K available (8933K kernel code, 4851K rwdata, 4096K rodata, 295K init, 397K bss, 505224K reserved, 327680K 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=8 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] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: interrupt-controller@ffd8000000: mapped 64 interrupts with 4 handlers for 8 contexts.
[    0.000000] random: get_random_bytes called from start_kernel+0x36c/0x4ce with crng_init=0
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1623fa770, max_idle_ns: 881590404476 ns
[    0.000007] sched_clock: 64 bits at 3000kHz, resolution 333ns, wraps every 4398046511097ns
[    0.008724] Console: colour dummy device 80x25
[    0.013213] printk: console [tty0] enabled
[    0.017336] printk: bootconsole [uart0] disabled
[    0.022019] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=12000)
[    0.022057] pid_max: default: 32768 minimum: 301
[    0.022325] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.022390] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.024529] ASID allocator initialised with 65536 entries
[    0.024698] rcu: Hierarchical SRCU implementation.
[    0.025498] EFI services will not be available.
[    0.025949] smp: Bringing up secondary CPUs ...
[    0.028857] smp: Brought up 1 node, 4 CPUs
[    0.030931] devtmpfs: initialized
[    0.060522] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.060571] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.069911] pinctrl core: initialized pinctrl subsystem
[    0.071327] NET: Registered protocol family 16
[    0.096414] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.097483] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.098190] thermal_sys: Registered thermal governor 'step_wise'
[    0.098744] cpuidle: using governor ladder
[    0.098837] cpuidle: using governor menu
[    0.192430] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.192480] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.202393] SCSI subsystem initialized
[    0.202732] usbcore: registered new interface driver usbfs
[    0.202839] usbcore: registered new interface driver hub
[    0.202938] usbcore: registered new device driver usb
[    0.203695] mc: Linux media interface: v0.10
[    0.203780] videodev: Linux video capture interface: v2.00
[    0.204250] Advanced Linux Sound Architecture Driver Initialized.
[    0.205027] Bluetooth: Core ver 2.22
[    0.205110] NET: Registered protocol family 31
[    0.205141] Bluetooth: HCI device and connection manager initialized
[    0.205178] Bluetooth: HCI socket layer initialized
[    0.205215] Bluetooth: L2CAP socket layer initialized
[    0.205273] Bluetooth: SCO socket layer initialized
[    0.205982] clocksource: Switched to clocksource riscv_clocksource
[    0.321749] NET: Registered protocol family 2
[    0.322268] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.329306] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.329481] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.329909] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.330908] TCP: Hash tables configured (established 65536 bind 65536)
[    0.331137] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.331251] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.331542] NET: Registered protocol family 1
[    0.332629] Unpacking initramfs...
[    0.829526] Freeing initrd memory: 9128K
[    0.830721] khv_probe, 164, irq: 64.
[    0.832353] Initialise system trusted keyrings
[    0.832667] workingset: timestamp_bits=62 max_order=21 bucket_order=0
[    0.845677] fuse: init (API version 7.32)
[    0.931868] NET: Registered protocol family 38
[    0.931918] Key type asymmetric registered
[    0.931958] Asymmetric key parser 'x509' registered
[    0.932039] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.932098] io scheduler mq-deadline registered
[    0.932130] io scheduler kyber registered
[    0.934057] light-pinctrl ffe7f3c000.pinctrl1-apsys: initialized light pinctrl driver
[    0.934506] light-pinctrl ffec007000.padctrl0-apsys: initialized light pinctrl driver
[    0.934984] light-pinctrl fffff4a000.padctrl-aosys: initialized light pinctrl driver
[    0.935438] light-pinctrl ffcb01d000.padctrl-audiosys: initialized light pinctrl driver
[    0.943157] pwm-backlight pwm-backlight@0: supply power not found, using dummy regulator
[    0.960109] light-fm-clk ffef010000.clock-controller: succeed to register light fullmask clock driver
[    0.968513] visys-clk-gate-provider soc:visys-clk-gate: succeed to register visys gate clock provider
[    0.972101] vpsys-clk-gate-provider ffecc30000.vpsys-clk-gate: succeed to register vpsys gate clock provider
[    0.980646] vosys-clk-gate-provider ffef528000.vosys-clk-gate: succeed to register vosys gate clock provider
[    0.981331] dspsys-clk-gate-provider soc:dspsys-clk-gate: cannot find regmap for tee dsp system register
[    0.984887] dspsys-clk-gate-provider soc:dspsys-clk-gate: succeed to register dspsys gate clock provider
[    0.985571] light_audiosys_clk_probe audiosys_regmap=0xffffffe102171800
[    0.992612] audiosys-clk-gate-provider soc:audiosys-clk-gate: succeed to register audiosys gate clock provider
[    0.993671] dw_axi_dmac_platform ffefc00000.dmac: DesignWare AXI DMA Controller, 4 channels
[    0.995804] dw_axi_dmac_platform ffc8000000.audio_dmac: DesignWare AXI DMA Controller, 16 channels
[    0.996966] (NULL device *): failed to find vdmabuf_reserved_memory node
[    0.997009] virtio-vdmabuf: carveout bufs setup failed -22
[    1.085960] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    1.089369] ffe7014000.serial: ttyS0 at MMIO 0xffe7014000 (irq = 4, base_baud = 6250000) is a 16550A
[    1.947558] printk: console [ttyS0] enabled
[    1.953386] ffe7f00000.serial: ttyS1 at MMIO 0xffe7f00000 (irq = 6, base_baud = 6250000) is a 16550A
[    1.964073] fff7f08000.serial: ttyS4 at MMIO 0xfff7f08000 (irq = 8, base_baud = 6250000) is a 16550A
[    1.982116] vs-dc ffef600000.dc8200: dpu0pll_on:0 dpu1pll_on:1
[    1.992124] vs-drm display-subsystem: bound ffef600000.dc8200 (ops 0xffffffe000c811b8)
[    2.000384] dwhdmi-light ffef540000.dw-hdmi-tx: Detected HDMI TX controller v2.14a with HDCP (DWC HDMI 2.0 TX PHY)
[    2.010871] dwhdmi-light ffef540000.dw-hdmi-tx: failed to allocate extcon device
[    2.018501] vs-drm display-subsystem: failed to bind ffef540000.dw-hdmi-tx (ops 0xffffffe000c82980): -12
[    2.028518] vs-drm display-subsystem: master bind failed: -12
[    2.034391] vs-drm: probe of display-subsystem failed with error -12
[    2.054164] loop: module loaded
[    2.058296] zram: Added device: zram0
[    2.064698] spi_norflash@0 enforce active low on chipselect handle
[    2.072009] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[    2.079034] dw_spi_mmio ffe700c000.spi: cs1 >= max 1
[    2.084075] spi_master spi0: spi_device register error /soc/spi@ffe700c000/spidev@1
[    2.091832] spi_master spi0: Failed to create SPI device for /soc/spi@ffe700c000/spidev@1
[    2.100610] spidev@0 enforce active low on chipselect handle
[    2.112654] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.119903] usbcore: registered new interface driver usb-storage
[    2.126312] mousedev: PS/2 mouse device common for all mice
[    2.133069] xgene-rtc fffff40000.rtc: registered as rtc0
[    2.138512] xgene-rtc fffff40000.rtc: setting system clock to 1970-01-01T00:00:00 UTC (0)
[    2.147131] i2c /dev entries driver
[    2.152452] hwmon hwmon0: temp2_input not attached to any thermal zone
[    2.159673] light_reset_deassert id:0
[    2.163412] dw_wdt ffefc30000.watchdog: No valid TOPs array specified
[    2.170686] light_reset_deassert id:1
[    2.174437] dw_wdt ffefc31000.watchdog: No valid TOPs array specified
[    2.182362] Watchdog module: light-wdt loaded
[    2.186793] Bluetooth: HCI UART driver ver 2.2.0c90be4.20211102-175223
[    2.193371] Bluetooth: HCI H4 protocol initialized
[    2.198212] Bluetooth: HCI Realtek H5 protocol initialized
[    2.203746] rtk_btcoex: rtk_btcoex_init: version: 1.2
[    2.208841] rtk_btcoex: create workqueue
[    2.213030] rtk_btcoex: alloc buffers 1792, 2432 for ev and l2
[    2.221014] sdhci: Secure Digital Host Controller Interface driver
[    2.227266] sdhci: Copyright(c) Pierre Ossman
[    2.231666] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.241376] usbcore: registered new interface driver usbhid
[    2.247047] usbhid: USB HID core driver
[    2.251582] misc vhost-vdmabuf: failed to find vdmabuf_reserved_memory node
[    2.258620] misc vhost-vdmabuf: vhost-vdmabuf: carveout bufs setup failed -22
[    2.265807] misc vhost-vdmabuf: vhost-vdmabuf: init successfully
[    2.266671] mmc0: SDHCI controller on ffe7080000.sdhci [ffe7080000.sdhci] using ADMA 64-bit
[    2.274197] light-adc fffff51000.adc: Thead light adc registered.
[    2.280338] mmc1: SDHCI controller on ffe7090000.sd [ffe7090000.sd] using ADMA 64-bit
[    2.294760] [perf] T-HEAD C900 PMU v1 probed
[    2.300101] light_efuse ffff210000.efuse: succeed to register light efuse driver
[    2.317252] NET: Registered protocol family 10
[    2.323118] Segment Routing with IPv6
[    2.327051] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.334005] NET: Registered protocol family 17
[    2.338598] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.351859] Bluetooth: RFCOMM TTY layer initialized
[    2.356877] Bluetooth: RFCOMM socket layer initialized
[    2.362049] mmc2: SDHCI controller on ffe70a0000.sd [ffe70a0000.sd] using ADMA 64-bit
[    2.370059] Bluetooth: RFCOMM ver 1.11
[    2.373893] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.379324] Bluetooth: BNEP socket layer initialized
[    2.384373] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.384380] sdhci-dwcmshc ffe70a0000.sd: card claims to support voltages below defined range
[    2.398917] Bluetooth: HIDP socket layer initialized
[    2.403964] [WLAN_RFKILL]: Enter rfkill_wlan_init
[    2.409271] [WLAN_RFKILL]: Enter rfkill_wlan_probe
[    2.414159] [WLAN_RFKILL]: can't find rockchip,grf property
[    2.419818] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = rtl8723ds
[    2.427050] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power will enabled while kernel starting and keep on.
[    2.437062] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[    2.444706] [WLAN_RFKILL]: wlan_platdata_parse_dt: The ref_wifi_clk not found !
[    2.452110] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio
[    2.457435] [WLAN_RFKILL]: rockchip_wifi_power: 1
[    2.462231] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
[    2.471361] [WLAN_RFKILL]: wifi turn on power. -1
[    2.471376] mmc0: new HS400 MMC card at address 0001
[    2.476129] [WLAN_RFKILL]: Exit rfkill_wlan_probe
[    2.476256] [BT_RFKILL]: Enter rfkill_rk_init
[    2.482065] mmcblk0: mmc0:0001 Y2P128 116 GiB
[    2.486432] [BT_RFKILL]: bluetooth_platdata_parse_dt: uart_rts_gpios is no-in-use.
[    2.490689] mmcblk0boot0: mmc0:0001 Y2P128 partition 1 4.00 MiB
[    2.494881] [BT_RFKILL]: bluetooth_platdata_parse_dt: clk_get failed!!!.
[    2.502800] mmcblk0boot1: mmc0:0001 Y2P128 partition 2 4.00 MiB
[    2.508634] [BT_RFKILL]: bt_default device registered.
[    2.521387] mmcblk0rpmb: mmc0:0001 Y2P128 partition 3 16.0 MiB, chardev (246:0)
[    2.526768] 9pnet: Installing 9P2000 support
[    2.538317] Key type dns_resolver registered
[    2.544007] NET: Registered protocol family 40
[    2.549477] mmc2: new high speed SDIO card at address 0001
[    2.549925] Loading compiled-in X.509 certificates
[    2.550079]  mmcblk0: p1
[    2.562645] random: fast init done
[    2.566904]
[    2.568477] ********************************************************************
[    2.576010] **     NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE           **
[    2.583535] **                                                                **
[    2.591096] **  WRITEABLE clk DebugFS SUPPORT HAS BEEN ENABLED IN THIS KERNEL **
[    2.598683] **                                                                **
[    2.599723] mmc1: new ultra high speed SDR104 SDXC card at address aaaa
[    2.606219] ** This means that this kernel is built to expose clk operations  **
[    2.613620] mmcblk1: mmc1:aaaa SN128 119 GiB
[    2.620277] ** such as parent or rate setting, enabling, disabling, etc.      **
[    2.620282] ** to userspace, which may compromise security on your system.    **
[    2.620294] **                                                                **
[    2.646947]  mmcblk1: p1 p2
[    2.647048] ** If you see this message and you are not debugging the          **
[    2.657306] ** kernel, report this immediately to your vendor!                **
[    2.664760] **                                                                **
[    2.672207] **     NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE           **
[    2.679655] ********************************************************************
[    2.743557] pca953x 0-0018: supply vcc not found, using dummy regulator
[    2.750504] pca953x 0-0018: using no AI
[    2.759009] pca953x 1-0018: supply vcc not found, using dummy regulator
[    2.765949] pca953x 1-0018: using no AI
[    2.773336] pca953x 3-0018: supply vcc not found, using dummy regulator
[    2.780262] pca953x 3-0018: using no AI
[    2.789789] pwm-light ffec01c000.pwm: succeed to add a pwm chip
[    2.796016] pwm-backlight pwm-backlight@0: supply power not found, using dummy regulator
[    2.805058] light_dwmac_eth ffe7070000.ethernet: IRQ eth_wake_irq not found
[    2.812089] light_dwmac_eth ffe7070000.ethernet: IRQ eth_lpi not found
[    2.818803] light_dwmac_eth ffe7070000.ethernet: Cannot get CSR clock
[    2.825319] light_dwmac_eth ffe7070000.ethernet: PTP uses main clock
[    2.831772] light_dwmac_eth ffe7070000.ethernet: no reset control found
[    2.838452] light_dwmac_eth ffe7070000.ethernet: id: 0
[    2.843639] light_dwmac_eth ffe7070000.ethernet: phy interface: 9
[    2.849839] RX clk delay: 0x0
[    2.852853] TX clk delay: 0x0
[    2.856137] light_dwmac_eth ffe7070000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[    2.863704] light_dwmac_eth ffe7070000.ethernet: 	DWMAC1000
[    2.869321] light_dwmac_eth ffe7070000.ethernet: DMA HW capability register supported
[    2.877214] light_dwmac_eth ffe7070000.ethernet: RX Checksum Offload Engine supported
[    2.885099] light_dwmac_eth ffe7070000.ethernet: COE Type 2
[    2.890717] light_dwmac_eth ffe7070000.ethernet: TX Checksum insertion supported
[    2.898164] light_dwmac_eth ffe7070000.ethernet: Enhanced/Alternate descriptors
[    2.905526] light_dwmac_eth ffe7070000.ethernet: Enabled extended descriptors
[    2.912703] light_dwmac_eth ffe7070000.ethernet: Ring mode enabled
[    2.918934] light_dwmac_eth ffe7070000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    2.927342] light_dwmac_eth ffe7070000.ethernet: Using 0 bits DMA width,skb alloc dma32 flag 4
[    2.985760] light_dwmac_eth ffe7060000.ethernet: IRQ eth_wake_irq not found
[    2.992819] light_dwmac_eth ffe7060000.ethernet: IRQ eth_lpi not found
[    2.999521] light_dwmac_eth ffe7060000.ethernet: Cannot get CSR clock
[    3.006026] light_dwmac_eth ffe7060000.ethernet: PTP uses main clock
[    3.012433] light_dwmac_eth ffe7060000.ethernet: no reset control found
[    3.019102] light_dwmac_eth ffe7060000.ethernet: id: 1
[    3.024290] light_dwmac_eth ffe7060000.ethernet: phy interface: 9
[    3.030505] RX clk delay: 0x0
[    3.033499] TX clk delay: 0x0
[    3.036754] light_dwmac_eth ffe7060000.ethernet: User ID: 0x10, Synopsys ID: 0x37
[    3.044333] light_dwmac_eth ffe7060000.ethernet: 	DWMAC1000
[    3.049963] light_dwmac_eth ffe7060000.ethernet: DMA HW capability register supported
[    3.057851] light_dwmac_eth ffe7060000.ethernet: RX Checksum Offload Engine supported
[    3.065738] light_dwmac_eth ffe7060000.ethernet: COE Type 2
[    3.071351] light_dwmac_eth ffe7060000.ethernet: TX Checksum insertion supported
[    3.078806] light_dwmac_eth ffe7060000.ethernet: Enhanced/Alternate descriptors
[    3.086172] light_dwmac_eth ffe7060000.ethernet: Enabled extended descriptors
[    3.093350] light_dwmac_eth ffe7060000.ethernet: Ring mode enabled
[    3.099585] light_dwmac_eth ffe7060000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.108003] light_dwmac_eth ffe7060000.ethernet: Using 0 bits DMA width,skb alloc dma32 flag 4
[    3.517611] succeed to create power domain debugfs direntry
[    3.525449] soc_vdd_3v3_en GPIO handle specifies active low - ignored
[    3.532716] soc_lcd0_vdd33_en GPIO handle specifies active low - ignored
[    3.541166] soc_lcd0_vdd18_en GPIO handle specifies active low - ignored
[    3.549278] soc_vdd5v_se_en GPIO handle specifies active low - ignored
[    3.556640] soc_wcn33_en GPIO handle specifies active low - ignored
[    3.563835] soc_vbus_en GPIO handle specifies active low - ignored
[    3.571035] soc_avdd28_rgb GPIO handle specifies active low - ignored
[    3.579749] soc_dovdd18_rgb GPIO handle specifies active low - ignored
[    3.588169] soc_dvdd12_rgb GPIO handle specifies active low - ignored
[    3.596386] soc_avdd25_ir GPIO handle specifies active low - ignored
[    3.604248] soc_dovdd18_ir GPIO handle specifies active low - ignored
[    3.612192] soc_dvdd12_ir GPIO handle specifies active low - ignored
[    3.620017] soc_cam2_avdd25_ir GPIO handle specifies active low - ignored
[    3.628331] soc_cam2_dovdd18_ir GPIO handle specifies active low - ignored
[    3.636772] soc_cam2_dvdd12_ir GPIO handle specifies active low - ignored
[    3.670821] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 750000 KHz, changing to: 800000 KHz
[    3.681990] cpu cpu0: finish to register cpufreq driver
[    3.687970] thead,light-aon-test aon:light-aon-test: Successfully registered
[    3.697060] regulator-pwr-en GPIO handle specifies active low - ignored
[    3.704713] regulator-hub-vdd12-en GPIO handle specifies active low - ignored
[    3.713304] regulator-hub-vcc5v-en GPIO handle specifies active low - ignored
[    3.734894] light-event soc:light-event: failed to set aon reservemem
[    3.741435] light-event soc:light-event: set aon reservemem failed!
[    3.747829] light-event: probe of soc:light-event failed with error -1
[    3.756786] [light_wdt_probe,329] register power off callback
[    3.762629] succeed to register light pmic watchdog
[    3.825303] debugfs: File 'ES8156 SDOUT' in directory 'dapm' already present!
[    3.835625] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    3.842887] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.864484] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.871318] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.873676] clk: Not disabling unused clocks
[    3.880037] cfg80211: failed to load regulatory.db
[    3.884344] ALSA device list:
[    3.892160]   #0: Light-Sound-Card
[    3.896304] dw-apb-uart ffe7014000.serial: forbid DMA for kernel console
[    3.903170] Freeing unused kernel memory: 292K
[    3.922681] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 254.1-3
[    4.797845] dwc3-thead soc:usb@ffec03f000: hubswitch usb_role = 1
[    4.829421] dwc3-thead soc:usb@ffec03f000: light dwc3 probe ok!
[    4.906047] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    4.914012] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[    4.924176] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe65 hci version 0x110 quirks 0x0000000000010810
[    4.935338] xhci-hcd xhci-hcd.1.auto: irq 73, io mem 0xffe7040000
[    4.942792] hub 1-0:1.0: USB hub found
[    4.948794] hub 1-0:1.0: 1 port detected
[    4.959037] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    4.965909] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[    4.974026] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    4.983585] hub 2-0:1.0: USB hub found
[    4.987717] hub 2-0:1.0: 1 port detected
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.39.2
[/sbin/fsck.ext4 (1) -- /dev/mmcblk1p2] fsck.ext4 -y -C0 /dev/mmcblk1p2
e2fsck 1.47.0 (5-Feb-2023)
armbi_root: recovering journal
[    5.214010] usb 1-1: new high-speed USB device number 2 using xhci-hcd
Setting free inodes count to 7616987 (was 7616995)
Setting free blocks count to 29957255 (was 29955381)
armbi_root: clean, 38373/7655360 files, 814969/30772224 blocks
done.
[    5.417348] EXT4-fs (mmcblk1p2): mounted filesystem with writeback data mode. Opts: (null)
done.
[    5.431158] hub 1-1:1.0: USB hub found
Begin: Running /[    5.435210] hub 1-1:1.0: 5 ports detected
scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[    5.526264] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
[    5.703724] hub 2-1:1.0: USB hub found
[    5.708153] hub 2-1:1.0: 4 ports detected
[    5.773652] random: crng init done
[    5.800474] systemd[1]: System time before build time, advancing clock.
[    5.832762] systemd[1]: systemd 254.1-3 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[    5.864806] systemd[1]: Detected architecture riscv64.

Welcome to Armbian 23.08.0-trunk sid!

[    5.888894] systemd[1]: Hostname set to <sipeed-licheepi-4a>.
[    6.111808] (sd-execu[252]: /usr/lib/systemd/system-generators/netplan failed with exit status 1.
[    6.190014] usb 1-1.5: new high-speed USB device number 3 using xhci-hcd
[    6.621551] systemd[1]: Queued start job for default target graphical.target.
[    6.631949] systemd[1]: Created slice system-getty.slice - Slice /system/getty.
[  OK  ] Created slice system-getty.slice - Slice /system/getty.
[    6.663924] systemd[1]: Created slice system-modprobe.slice - Slice /system/modprobe.
[  OK  ] Created slice system-modprobe.slice - Slice /system/modprobe.
[    6.693947] systemd[1]: Created slice system-serial\x2dgetty.slice - Slice /system/serial-getty.
[  OK  ] Created slice system-serial\x2dget…slice - Slice /system/serial-getty.
[    6.725963] systemd[1]: Created slice system-systemd\x2dfsck.slice - Slice /system/systemd-fsck.
[  OK  ] Created slice system-systemd\x2dfs…slice - Slice /system/systemd-fsck.
[    6.754849] systemd[1]: Created slice user.slice - User and Session Slice.
[  OK  ] Created slice user.slice - User and Session Slice.
[    6.782234] systemd[1]: bootsplash-ask-password-console.path - Dispatch Password Requests to Console Directory Watch when bootsplash is active was skipped because of an unmet condition check (ConditionPathExists=/sys/devices/platform/bootsplash.0/enabled).
[    6.806916] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[  OK  ] Started systemd-ask-password-wall.…d Requests to Wall Directory Watch.
[    6.838883] systemd[1]: proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point was skipped because of an unmet condition check (ConditionPathExists=/proc/sys/fs/binfmt_misc).
[    6.859755] systemd[1]: Reached target cryptsetup.target - Local Encrypted Volumes.
[  OK  ] Reached target cryptsetup.target - Local Encrypted Volumes.
[    6.886263] systemd[1]: Reached target integritysetup.target - Local Integrity Protected Volumes.
[  OK  ] Reached target integritysetup.targ… Local Integrity Protected Volumes.
[    6.915880] systemd[1]: Reached target paths.target - Path Units.
[  OK  ] Reached target paths.target - Path Units.
[    6.938258] systemd[1]: Reached target remote-cryptsetup.target - Remote Encrypted Volumes.
[  OK  ] Reached target remote-cryptsetup.target - Remote Encrypted Volumes.
[    6.966173] systemd[1]: Reached target remote-fs.target - Remote File Systems.
[  OK  ] Reached target remote-fs.target - Remote File Systems.
[    6.994947] systemd[1]: Reached target remote-veritysetup.target - Remote Verity Protected Volumes.
[  OK  ] Reached target remote-veritysetup.… - Remote Verity Protected Volumes.
[    7.026336] systemd[1]: Reached target slices.target - Slice Units.
[  OK  ] Reached target slices.target - Slice Units.
[    7.050993] systemd[1]: Reached target swap.target - Swaps.
[  OK  ] Reached target swap.target - Swaps.
[    7.074195] systemd[1]: Reached target time-set.target - System Time Set.
[  OK  ] Reached target time-set.target - System Time Set.
[    7.102383] systemd[1]: Reached target time-sync.target - System Time Synchronized.
[  OK  ] Reached target time-sync.target - System Time Synchronized.
[    7.130577] systemd[1]: Reached target veritysetup.target - Local Verity Protected Volumes.
[  OK  ] Reached target veritysetup.target - Local Verity Protected Volumes.
[    7.160722] systemd[1]: Listening on syslog.socket - Syslog Socket.
[  OK  ] Listening on syslog.socket - Syslog Socket.
[    7.189185] systemd[1]: Listening on systemd-fsckd.socket - fsck to fsckd communication Socket.
[  OK  ] Listening on systemd-fsckd.socket …fsck to fsckd communication Socket.
[    7.218725] systemd[1]: Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
[  OK  ] Listening on systemd-initctl.socke…- initctl Compatibility Named Pipe.
[    7.271513] systemd[1]: systemd-journald-audit.socket - Journal Audit Socket was skipped because of an unmet condition check (ConditionSecurity=audit).
[    7.285858] systemd[1]: Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
[  OK  ] Listening on systemd-journald-dev-…socket - Journal Socket (/dev/log).
[    7.317932] systemd[1]: Listening on systemd-journald.socket - Journal Socket.
[  OK  ] Listening on systemd-journald.socket - Journal Socket.
[    7.342804] systemd[1]: systemd-networkd.socket: Socket service systemd-networkd.service not loaded, refusing.
[    7.353470] systemd[1]: Failed to listen on systemd-networkd.socket - Network Service Netlink Socket.
[FAILED] Failed to listen on systemd-networ…t - Network Service Netlink Socket.
See 'systemctl status systemd-networkd.socket' for details.
[    7.407847] systemd[1]: Listening on systemd-udevd-control.socket - udev Control Socket.
[  OK  ] Listening on systemd-udevd-control.socket - udev Control Socket.
[    7.436913] systemd[1]: Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[  OK  ] Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[    7.478607] systemd[1]: Mounting dev-hugepages.mount - Huge Pages File System...
         Mounting dev-hugepages.mount - Huge Pages File System...
[    7.504758] systemd[1]: Mounting dev-mqueue.mount - POSIX Message Queue File System...
         Mounting dev-mqueue.mount - POSIX Message Queue File System...
[    7.540640] systemd[1]: Mounting sys-kernel-debug.mount - Kernel Debug File System...
         Mounting sys-kernel-debug.mount - Kernel Debug File System...
[    7.570465] systemd[1]: Mounting sys-kernel-tracing.mount - Kernel Trace File System...
         Mounting sys-kernel-tracing.mount - Kernel Trace File System...
[    7.603592] systemd[1]: Starting fake-hwclock.service - Restore / save the current clock...
         Startin[    7.613924] (-hwclock)[271]: fake-hwclock.service: Referenced but unset environment variable evaluates to an empty string: FORCE
g fake-hwclock.service - Restore / save the current clock...
[    7.646245] systemd[1]: Starting keyboard-setup.service - Set the console keyboard layout...
         Starting keyboard-setup.service - Set the console keyboard layout...
[    7.677423] systemd[1]: Starting kmod-static-nodes.service - Create List of Static Device Nodes...
         Starting kmod-static-nodes.service…eate List of Static Device Nodes...
[    7.708851] systemd[1]: Starting modprobe@configfs.service - Load Kernel Module configfs...
         Starting modprobe@configfs.service - Load Kernel Module configfs...
[    7.736894] systemd[1]: Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
         Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
[    7.764958] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm...
         Starting modprobe@drm.service - Load Kernel Module drm...
[    7.792960] systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore...
         Starting modprobe@efi_pstore.servi… - Load Kernel Module efi_pstore...
[    7.820871] systemd[1]: Starting modprobe@fuse.service - Load Kernel Module fuse...
         Starting modprobe@fuse.service - Load Kernel Module fuse...
[    7.848897] systemd[1]: Starting modprobe@loop.service - Load Kernel Module loop...
         Starting modprobe@loop.service - Load Kernel Module loop...
[    7.878873] systemd[1]: systemd-fsck-root.service - File System Check on Root Device was skipped because of an unmet condition check (ConditionPathExists=!/run/initramfs/fsck-root).
[    7.901308] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
         Starting systemd-modules-load.service - Load Kernel Modules...
[    7.928956] systemd[1]: Starting systemd-network-generator.service - Generate network units from Kernel command line...
         Starting systemd-network-generator…k units from Kernel command line...
[    7.958171] systemd[1]: systemd-pcrmachine.service - TPM2 PCR Machine ID Measurement was skipped because of an unmet condition check (ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f).
[    7.983634] systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
         Starting systemd-remount-fs.servic…unt Root and Kernel File Systems...
[    8.012607] EXT4-fs (mmcblk1p2): re-mounted. Opts: commit=600,errors=remount-ro
[    8.012748] systemd[1]: Starting systemd-udev-trigger.service - Coldplug All udev Devices...
         Starting systemd-udev-trigger.service - Coldplug All udev Devices...
[    8.058742] systemd[1]: Mounted dev-hugepages.mount - Huge Pages File System.
[  OK  ] Mounted dev-hugepages.mount - Huge Pages File System.
[    8.082622] systemd[1]: Mounted dev-mqueue.mount - POSIX Message Queue File System.
[  OK  ] Mounted dev-mqueue.mount - POSIX Message Queue File System.
[    8.106562] systemd[1]: Mounted sys-kernel-debug.mount - Kernel Debug File System.
[  OK  ] Mounted sys-kernel-debug.mount - Kernel Debug File System.
[    8.130583] systemd[1]: Mounted sys-kernel-tracing.mount - Kernel Trace File System.
[  OK  ] Mounted sys-kernel-tracing.mount - Kernel Trace File System.
[    8.154896] systemd[1]: Finished fake-hwclock.service - Restore / save the current clock.
[  OK  ] Finished fake-hwclock.service - Restore / save the current clock.
[    8.188708] systemd[1]: Finished keyboard-setup.service - Set the console keyboard layout.
[  OK  ] Finished keyboard-setup.service - Set the console keyboard layout.
[    8.214856] systemd[1]: Finished kmod-static-nodes.service - Create List of Static Device Nodes.
[  OK  ] Finished kmod-static-nodes.service…Create List of Static Device Nodes.
[    8.243072] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[    8.250793] systemd[1]: Finished modprobe@configfs.service - Load Kernel Module configfs.
[  OK  ] Finished modprobe@configfs.service - Load Kernel Module configfs.
[    8.279496] systemd[1]: modprobe@dm_mod.service: Deactivated successfully.
[    8.286980] systemd[1]: Finished modprobe@dm_mod.service - Load Kernel Module dm_mod.
[  OK  ] Finished modprobe@dm_mod.service - Load Kernel Module dm_mod.
[    8.315453] systemd[1]: modprobe@drm.service: Deactivated successfully.
[    8.322665] systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm.
[  OK  ] Finished modprobe@drm.service - Load Kernel Module drm.
[    8.347417] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
[    8.355204] systemd[1]: Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
[  OK  ] Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
[    8.383426] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[    8.390711] systemd[1]: Finished modprobe@fuse.service - Load Kernel Module fuse.
[  OK  ] Finished modprobe@fuse.service - Load Kernel Module fuse.
[    8.415447] systemd[1]: modprobe@loop.service: Deactivated successfully.
[    8.422749] systemd[1]: Finished modprobe@loop.service - Load Kernel Module loop.
[  OK  ] Finished modprobe@loop.service - Load Kernel Module loop.
[    8.447300] systemd[1]: Finished systemd-modules-load.service - Load Kernel Modules.
[  OK  ] Finished systemd-modules-load.service - Load Kernel Modules.
[    8.474877] systemd[1]: Finished systemd-network-generator.service - Generate network units from Kernel command line.
[  OK  ] Finished systemd-network-generator…ork units from Kernel command line.
[    8.506930] systemd[1]: Finished systemd-remount-fs.service - Remount Root and Kernel File Systems.
[  OK  ] Finished systemd-remount-fs.servic…mount Root and Kernel File Systems.
[    8.535144] systemd[1]: Reached target network-pre.target - Preparation for Network.
[  OK  ] Reached target network-pre.target - Preparation for Network.
[    8.564449] systemd[1]: Mounting sys-fs-fuse-connections.mount - FUSE Control File System...
         Mounting sys-fs-fuse-connections.mount - FUSE Control File System...
[    8.592329] systemd[1]: Mounting sys-kernel-config.mount - Kernel Configuration File System...
         Mounting sys-kernel-config.mount - Kernel Configuration File System...
[    8.618283] systemd[1]: systemd-pstore.service - Platform Persistent Storage Archival was skipped because of an unmet condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore).
[    8.636801] systemd[1]: Starting systemd-random-seed.service - Load/Save OS Random Seed...
         Starting systemd-random-seed.service - Load/Save OS Random Seed...
[    8.662284] systemd[1]: systemd-repart.service - Repartition Root Disk was skipped because no trigger condition checks were met.
[    8.676692] systemd[1]: Starting systemd-sysctl.service - Apply Kernel Variables...
         Starting systemd-sysctl.service - Apply Kernel Variables...
[    8.704962] systemd[1]: Starting systemd-sysusers.service - Create System Users...
         Starting systemd-sysusers.service - Create System Users...
         Starting systemd-tmpfiles-setup-de…eate Static Device Nodes in /dev...
[  OK  ] Mounted sys-fs-fuse-connections.mount - FUSE Control File System.
[  OK  ] Mounted sys-kernel-config.mount - Kernel Configuration File System.
[  OK  ] Finished systemd-random-seed.service - Load/Save OS Random Seed.
[  OK  ] Finished systemd-sysctl.service - Apply Kernel Variables.
[  OK  ] Finished systemd-sysusers.service - Create System Users.
[  OK  ] Finished systemd-udev-trigger.service - Coldplug All udev Devices.
[  OK  ] Finished systemd-tmpfiles-setup-de…Create Static Device Nodes in /dev.
[  OK  ] Reached target local-fs-pre.target…Preparation for Local File Systems.
         Mounting tmp.mount - /tmp...
         Starting systemd-udevd.service - R…ager for Device Events and Files...
[  OK  ] Mounted tmp.mount - /tmp.
[  OK  ] Started systemd-udevd.service - Ru…anager for Device Events and Files.
[  OK  ] Found device dev-ttyS0.device - /dev/ttyS0.
[  OK  ] Found device dev-disk-by\x2duuid-B…vice - /dev/disk/by-uuid/B4FD-5DB5.
[  OK  ] Created slice system-systemd\x2dba… - Slice /system/systemd-backlight.
[  OK  ] Listening on systemd-rfkill.socket…ll Switch Status /dev/rfkill Watch.
         Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
         Starting modprobe@efi_pstore.servi… - Load Kernel Module efi_pstore...
         Starting modprobe@loop.service - Load Kernel Module loop...
         Starting systemd-backlight@backlig…ess of backlight:pwm-backlight@0...
         Starting systemd-fsck@dev-disk-by\…k on /dev/disk/by-uuid/B4FD-5DB5...
[  OK  ] Finished modprobe@dm_mod.service - Load Kernel Module dm_mod.
[  OK  ] Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
[  OK  ] Finished modprobe@loop.service - Load Kernel Module loop.
[  OK  ] Finished systemd-backlight@backlig…tness of backlight:pwm-backlight@0.
[  OK  ] Started systemd-fsckd.service - Fi…stem Check Daemon to report status.
         Starting systemd-rfkill.service - Load/Save RF Kill Switch Status...
[  OK  ] Started systemd-rfkill.service - Load/Save RF Kill Switch Status.
[  OK  ] Finished systemd-fsck@dev-disk-by\…eck on /dev/disk/by-uuid/B4FD-5DB5.
         Mounting boot.mount - /boot...
[  OK  ] Mounted boot.mount - /boot.
[  OK  ] Reached target local-fs.target - Local File Systems.
         Starting armbian-zram-config.service - Armbian ZRAM config...
         Starting console-setup.service - Set console font and keymap...
[  OK  ] Finished console-setup.service - Set console font and keymap.
[  OK  ] Finished armbian-zram-config.service - Armbian ZRAM config.
         Starting armbian-ramlog.service - Armbian memory supported logging...
[  OK  ] Finished armbian-ramlog.service - Armbian memory supported logging.
         Starting systemd-journald.service - Journal Service...
[  OK  ] Started systemd-journald.service - Journal Service.
         Starting systemd-journal-flush.ser…sh Journal to Persistent Storage...
[  OK  ] Finished systemd-journal-flush.ser…lush Journal to Persistent Storage.
         Starting systemd-tmpfiles-setup.se…e Volatile Files and Directories...
[  OK  ] Finished systemd-tmpfiles-setup.se…ate Volatile Files and Directories.
         Starting systemd-update-utmp.servi…ord System Boot/Shutdown in UTMP...
[  OK  ] Finished systemd-update-utmp.servi…ecord System Boot/Shutdown in UTMP.
[  OK  ] Reached target sysinit.target - System Initialization.
[  OK  ] Started apt-daily.timer - Daily apt download activities.
[  OK  ] Started apt-daily-upgrade.timer - …y apt upgrade and clean activities.
[  OK  ] Started dpkg-db-backup.timer - Daily dpkg database backup timer.
[  OK  ] Started e2scrub_all.timer - Period…Metadata Check for All Filesystems.
[  OK  ] Started fstrim.timer - Discard unused filesystem blocks once a week.
[  OK  ] Started logrotate.timer - Daily rotation of log files.
[  OK  ] Started man-db.timer - Daily man-db regeneration.
[  OK  ] Started sysstat-collect.timer - Ru…y accounting tool every 10 minutes.
[  OK  ] Started sysstat-summary.timer - Ge… of yesterday's process accounting.
[  OK  ] Started systemd-tmpfiles-clean.tim…y Cleanup of Temporary Directories.
[  OK  ] Reached target timers.target - Timer Units.
[  OK  ] Listening on dbus.socket - D-Bus System Message Bus Socket.
[  OK  ] Listening on ssh.socket - OpenBSD Secure Shell server socket.
[  OK  ] Reached target sockets.target - Socket Units.
         Starting armbian-hardware-monitor.…ce - Armbian hardware monitoring...
         Starting armbian-hardware-optimize… - Armbian hardware optimization...
         Starting armbian-led-state.service - Armbian leds state...
[  OK  ] Finished armbian-hardware-monitor.…vice - Armbian hardware monitoring.
[FAILED] Failed to start armbian-led-state.service - Armbian leds state.
See 'systemctl status armbian-led-state.service' for details.
[  OK  ] Finished armbian-hardware-optimize…ce - Armbian hardware optimization.
[  OK  ] Reached target basic.target - Basic System.
         Starting alsa-restore.service - Save/Restore Sound Card State...
         Starting chronyd-restricted.service - NTP client (restricted)...
[  OK  ] Started cron.service - Regular background program processing daemon.
         Starting dbus.service - D-Bus System Message Bus...
         Starting e2scrub_reap.service - Re…ne ext4 Metadata Check Snapshots...
         Starting lm-sensors.service - Init…lize hardware monitoring sensors...
         Starting rsyslog.service - System Logging Service...
         Starting sysfsutils.service - Apply sysfs variables...
         Starting sysstat.service - Resets System Activity Logs...
         Starting systemd-logind.service - User Login Management...
[  OK  ] Started dbus.service - D-Bus System Message Bus.
[  OK  ] Started rsyslog.service - System Logging Service.
[  OK  ] Finished alsa-restore.service - Save/Restore Sound Card State.
[  OK  ] Finished sysstat.service - Resets System Activity Logs.
[  OK  ] Finished e2scrub_reap.service - Re…line ext4 Metadata Check Snapshots.
[  OK  ] Finished lm-sensors.service - Initialize hardware monitoring sensors.
[  OK  ] Reached target sound.target - Sound Card.
         Starting NetworkManager.service - Network Manager...
         Starting wpa_supplicant.service - WPA supplicant...
[  OK  ] Started chronyd-restricted.service - NTP client (restricted).
[  OK  ] Started systemd-logind.service - User Login Management.
[  OK  ] Finished sysfsutils.service - Apply sysfs variables.
[  OK  ] Started wpa_supplicant.service - WPA supplicant.
         Starting systemd-hostnamed.service - Hostname Service...
[  OK  ] Started systemd-hostnamed.service - Hostname Service.
         Starting NetworkManager-dispatcher…anager Script Dispatcher Service...
[  OK  ] Started NetworkManager-dispatcher.… Manager Script Dispatcher Service.
[  OK  ] Started NetworkManager.service - Network Manager.
[  OK  ] Reached target network.target - Network.
         Starting NetworkManager-wait-onlin…ce - Network Manager Wait Online...
         Starting ssh.service - OpenBSD Secure Shell server...
         Starting systemd-user-sessions.service - Permit User Sessions...
[  OK  ] Finished systemd-user-sessions.service - Permit User Sessions.
[  OK  ] Started ssh.service - OpenBSD Secure Shell server.
[  OK  ] Finished NetworkManager-wait-onlin…vice - Network Manager Wait Online.
[  OK  ] Reached target network-online.target - Network is Online.
         Starting rc-local.service - /etc/rc.local Compatibility...
[  OK  ] Started rc-local.service - /etc/rc.local Compatibility.
[  OK  ] Started getty@tty1.service - Getty on tty1.
[  OK  ] Started serial-getty@ttyS0.service - Serial Getty on ttyS0.
[  OK  ] Reached target getty.target - Login Prompts.
[  OK  ] Reached target multi-user.target - Multi-User System.
[  OK  ] Reached target graphical.target - Graphical Interface.
         Starting systemd-update-utmp-runle…- Record Runlevel Change in UTMP...
[  OK  ] Finished systemd-update-utmp-runle…e - Record Runlevel Change in UTMP.

Armbian 23.08.0-trunk Sid ttyS0

sipeed-licheepi-4a login:

In addition to that here you go~ :p

image


Btw. I am maintainer of OLIMEX Teres-A64 in Armbian https://www.armbian.com/olimex-teres-a64 and work/developing an OSHW hardware i am not some random troll, though people keep saying that i am loud for reasons~

@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 9, 2023

Finally, it's currently very challenging to obtain information about th1520. We can only rely on the limited knowledge we have for our development work. I frequently communicate with the official repository maintainers of Revyos and Sipeed's technical team, but that's the extent of it. -- @chainsx (#5689 (comment))

Share contact on them plz, might make it less of a pain to develop

@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 9, 2023

I'm sorry about this. Nice to meet you~~~ -- @chainsx (#5689 (comment))

@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 9, 2023

In fact, the 8GB version and the 16GB version correspond to two different kernel device trees, so you might want to consider adding a board config for the 16GB version. -- @chainsx (#5689 (comment))

Yep will work on that tomorrow bcs too tired now, i guess the most sensible thing would be to add an include directory in the ./config/boards and then source that for {8,16} GB {EXTLINUX,UEFI} declared as invidual files as i don't want to add conditionals to the config file for different configurations, brainstorm?

@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 9, 2023

@chainsx Were you able to figure out what the dip switches are for? (They are not populated on my board)

image

@Kreyren Kreyren marked this pull request as draft September 9, 2023 22:19
@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 9, 2023

Based on feedback, compiling U-Boot, OpenSBI, and the kernel using the GNU GCC compiler instead of the Thead-optimized compilation toolchain can lead to occasional issues in areas such as audio. -- @chainsx (#5689 (comment))

Is the official revyos using the optimized toolchain? Cuz i have the audio issue there as well and can't figure out how to check if it is.

Copy link
Member

@igorpecovnik igorpecovnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • rework into existing coding style,
  • do not split board configs,
  • keep only board related things in PR (SBI is not this board specific, also other fixes),
  • advertisement and banners in PR's are not allowed. In case you want to show your graphics skills, make a wallpaper
  • do not place donation links to your PR. If its not possible to work without, simply close the PR down.
  • do not place your (c) to trivial config changes or things you have copy / pasted. Git does this for us.
  • support always starts with .wip (all riscv64 will be WIP/CSC for another 6 months for sure), then we decide if it can be moved under supported or to csc / eos. Active maintainer is just a minimal condition. We don't know that and general software support for this hardware is early WIP.
  • riscv64 hardware is not well supported even on userland. Packages are missing.
  • riscv64 is not a family but architecture. This file adds no value except confusion: config/sources/families/include/riscv64_common.inc

Next time make sure to provide professional cleaned code that is easy and fast to review. Or PR will be closed without even looking.

@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 14, 2023

do not split board configs, -- @igorpecovnik (#5689 (review))

Propose better handling for the issue of 3 variants (beta, 8GB, 16GB)

keep only board related things in PR (SBI is not this board specific, also other fixes), -- @igorpecovnik (#5689 (review))

Will be submitted as separate at the cost of verifying functionality as that depends on a functional config (rationale for it to be included here..)

support always starts with .wip (all riscv64 will be WIP/CSC for another 6 months for sure), then we decide if it can be moved under supported or to csc / eos. Active maintainer is just a minimal condition. We don't know that and general software support for this hardware is early WIP. -- @igorpecovnik (#5689 (review))

The kernel, bootloader, sbi and toolchain are changes made by sipeed affiliates so the configuration is at the same or higher quality then the official image.

decide if it should be moved in wip or csc, i suggest conf > csc and discourage wip

riscv64 hardware is not well supported even on userland. Packages are missing. -- @igorpecovnik (#5689 (review))

All packages needed for the board to work are available in debian sid with the exception of gnome that is currently broken.

riscv64 is not a family but architecture. This file adds no value except confusion: config/sources/families/include/riscv64_common.inc -- @igorpecovnik (#5689 (review))

Will investigate, might remove or rename to thead_common.inc


Note #5692 as it's needed to fix issues with the config

@Kreyren Kreyren changed the title sipeed-lichepi-4a: Official support + OpenSBI sipeed-lichepi-4a: Official support Sep 14, 2023
Kreyren added a commit to Kreyren/armbian-build-kreyren that referenced this pull request Sep 14, 2023
@Kreyren
Copy link
Contributor Author

Kreyren commented Sep 21, 2023

This should address issues with eMMC to enable booting from it without an sdcard pdp7/linux@81572ed

ginkage pushed a commit to ginkage/build that referenced this pull request Sep 23, 2023
@igorpecovnik igorpecovnik added the Backlog Stalled work that needs to be completed label Dec 24, 2023
@igorpecovnik igorpecovnik added Duplicate Issue is already present Can be closed? Ping developers on stalled issues / PR labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog Stalled work that needs to be completed Can be closed? Ping developers on stalled issues / PR Duplicate Issue is already present
Development

Successfully merging this pull request may close these issues.

None yet

3 participants