Skip to content

Instantly share code, notes, and snippets.

@paranlee
Last active November 28, 2024 16:20
Show Gist options
  • Save paranlee/b7157d9bec33ae10198380aa0af7e77f to your computer and use it in GitHub Desktop.
Save paranlee/b7157d9bec33ae10198380aa0af7e77f to your computer and use it in GitHub Desktop.

Download

RISC-V 64 QEMU

Check CPU List

> qemu-system-riscv64 -cpu help
any
rv64
shakti-c
sifive-e51
sifive-u54
x-rv128

Run Virtualized RISC-V 64 QEMU Machine

> qemu-system-riscv64 -M virt -smp 8 -m 8192 -nographic 
	-bios fw_jump.elf -kernel uboot.elf
	-drive if=none,file=ubuntu-20.04.4-preinstalled-server-riscv64+unleashed.img,format=raw,id=hd0
	-device virtio-blk-device,drive=hd0
	-drive file=user-data.img,format=raw
	-device virtio-net-device,netdev=net0 -netdev user,hostfwd=tcp:127.0.0.1:2222-:22,id=net0

SSH Login

> ssh -p 2222 [email protected]

user-data.img keep ID:PW ubuntu:asdfqwer If you do not working login password, then do ubuntu:ubuntu

RISC-V: Add kexec/kdump support

Copy the Firmware and OS images

Into your working directory...

#cloud-config
password: asdfqwer
chpasswd: { expire: False }
ssh_pwauth: True

Login first password will be asdfqwer

(Optional) Create the user-data.img

The Ubuntu server images require configuration data be provided as an image, such as setting auth credentials.

We need input password below example <WE_HAVE_PASSWORD_MUST_BE_CREDENTIAL>.

sudo apt -y install cloud-image-utils

cat >user-data <<EOF
#cloud-config
password: <WE_HAVE_PASSWORD_MUST_BE_CREDENTIAL>
chpasswd: { expire: False }
ssh_pwauth: True
EOF

cloud-localds user-data.img user-data

The tool used to convert the config text file into an image file only runs on Linux, so I've attached a user-data.img file (and the text file used to create it) in a zip file to this Gist. Extract the user-data.img file to the working directory.

In user-data text file contents.

#cloud-config
password: asdfqwer
chpasswd: { expire: False }
ssh_pwauth: True

The user-data.img file was created for password authentication as outlined in https://stackoverflow.com/a/53373376

Resize storage

If booting is confirmed, we will power off for a while and change the storage capacity.

Resize your image in the host what you want. :)

qemu-img resize ubuntu-20.04.4-preinstalled-server-riscv64+unleashed.img +32G

Start the vm, ssh into it and enter the following command

sudo growpart /dev/vda 1

Booting Message

riscv64-qemu>qemu-system-riscv64 -M virt -smp 8 -m 8192 -nographic -bios fw_jump.elf -kernel uboot.elf -drive if=none,file=ubuntu-20.04.4-preinstalled-server-riscv64+unleashed.img,format=raw,id=hd0 -device virtio-blk-device,drive=hd0 -drive file=user-data.img,format=raw -device virtio-net-device,netdev=net0 -netdev user,hostfwd=tcp:127.0.0.1:2222-:22,id=net0

OpenSBI v0.9
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name             : riscv-virtio,qemu
Platform Features         : timer,mfdeleg
Platform HART Count       : 8
Firmware Base             : 0x80000000
Firmware Size             : 156 KB
Runtime SBI Version       : 0.2

Domain0 Name              : root
Domain0 Boot HART         : 4
Domain0 HARTs             : 0*,1*,2*,3*,4*,5*,6*,7*
Domain0 Region00          : 0x0000000080000000-0x000000008003ffff ()
Domain0 Region01          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address      : 0x0000000080200000
Domain0 Next Arg1         : 0x0000000082200000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes

Boot HART ID              : 4
Boot HART Domain          : root
Boot HART ISA             : rv64imafdcsuh
Boot HART Features        : scounteren,mcounteren,time
Boot HART PMP Count       : 16
Boot HART PMP Granularity : 4
Boot HART PMP Address Bits: 54
Boot HART MHPM Count      : 0
Boot HART MHPM Count      : 0
Boot HART MIDELEG         : 0x0000000000001666
Boot HART MEDELEG         : 0x0000000000f0b509


U-Boot 2022.01+dfsg-2ubuntu2 (Mar 25 2022 - 10:15:18 +0000)

CPU:   rv64imafdch_zicsr_zifencei_zihintpause_zba_zbb_zbc_zbs_sstc
Model: riscv-virtio,qemu
DRAM:  8 GiB
Flash: 32 MiB
Loading Environment from nowhere... OK
In:    serial@10000000
Out:   serial@10000000
Err:   serial@10000000
Net:   eth0: virtio-net#1
Hit any key to stop autoboot:  0

Device 0: QEMU VirtIO Block Device
            Type: Hard Disk
            Capacity: 36352.0 MB = 35.5 GB (74448896 x 512)
... is now current device
Scanning virtio 0:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
U-Boot menu
1:      Ubuntu 20.04.4 LTS 5.11.0-1031-generic
2:      Ubuntu 20.04.4 LTS 5.11.0-1031-generic (rescue target)
3:      Ubuntu 20.04.4 LTS 5.11.0-1029-generic
4:      Ubuntu 20.04.4 LTS 5.11.0-1029-generic (rescue target)
Enter choice: 1
1:      Ubuntu 20.04.4 LTS 5.11.0-1031-generic
Retrieving file: /boot/initrd.img-5.11.0-1031-generic
Retrieving file: /boot/vmlinuz-5.11.0-1031-generic
append: root=LABEL=cloudimg-rootfs ro earlycon
Retrieving file: /lib/firmware/5.11.0-1031-generic/device-tree/qemu-riscv.dtb
** File not found /lib/firmware/5.11.0-1031-generic/device-tree/qemu-riscv.dtb **
Moving Image from 0x84000000 to 0x80200000, end=81f0f000
## Flattened Device Tree blob at ff737f60
   Booting using the fdt blob at 0xff737f60
   Using Device Tree in place at 00000000ff737f60, end 00000000ff73ce0d

Starting kernel ...

[    0.000000] Linux version 5.11.0-1031-generic (buildd@riscv64-qemu-lcy01-076) (gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #35-Ubuntu SMP Mon Mar 7 17:31:55 UTC 2022 (Ubuntu 5.11.0-1031.35-generic 5.11.22)
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[    0.000000] earlycon: ns16550a0 at MMIO 0x0000000010000000 (options '')
[    0.000000] printk: bootconsole [ns16550a0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Initial ramdisk at: 0x(____ptrval____) (182755328 bytes)
[    0.000000] cma: Reserved 32 MiB at 0x00000000fd400000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000080200000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000027fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080200000-0x000000027fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000027fffffff]
[    0.000000] On node 0, zone DMA32: 512 pages in unavailable ranges
[    0.000000] SBI specification v0.2 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] software IO TLB: mapped [mem 0x00000000f9400000-0x00000000fd400000] (64MB)
[    0.000000] SBI v0.2 HSM extension detected
[    0.000000] riscv: ISA extensions abcdefhimnprstu
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 26 pages/cpu s69464 r8192 d28840 u106496
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2063880
[    0.000000] Kernel command line: root=LABEL=cloudimg-rootfs ro earlycon
[    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:on, heap free:off
[    0.000000] Memory: 7918708K/8386560K available (9875K kernel code, 5764K rwdata, 10240K rodata, 2519K init, 991K bss, 435084K reserved, 32768K cma-reserved)
[    0.000000] random: get_random_u64 called from kmem_cache_open+0x36/0x344 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] ftrace: allocating 38913 entries in 153 pages
[    0.000000] ftrace: allocated 153 pages with 4 groups
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: plic@c000000: mapped 96 interrupts with 8 handlers for 16 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [4]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.000189] sched_clock: 64 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns
[    0.017779] Console: colour dummy device 80x25
[    0.020880] printk: console [tty0] enabled
[    0.023848] printk: bootconsole [ns16550a0] disabled
[    0.000000] Linux version 5.11.0-1031-generic (buildd@riscv64-qemu-lcy01-076) (gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #35-Ubuntu SMP Mon Mar 7 17:31:55 UTC 2022 (Ubuntu 5.11.0-1031.35-generic 5.11.22)
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[    0.000000] earlycon: ns16550a0 at MMIO 0x0000000010000000 (options '')
[    0.000000] printk: bootconsole [ns16550a0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Initial ramdisk at: 0x(____ptrval____) (182755328 bytes)
[    0.000000] cma: Reserved 32 MiB at 0x00000000fd400000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000080200000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000027fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080200000-0x000000027fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000027fffffff]
[    0.000000] On node 0, zone DMA32: 512 pages in unavailable ranges
[    0.000000] SBI specification v0.2 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] software IO TLB: mapped [mem 0x00000000f9400000-0x00000000fd400000] (64MB)
[    0.000000] SBI v0.2 HSM extension detected
[    0.000000] riscv: ISA extensions abcdefhimnprstu
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 26 pages/cpu s69464 r8192 d28840 u106496
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2063880
[    0.000000] Kernel command line: root=LABEL=cloudimg-rootfs ro earlycon
[    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:on, heap free:off
[    0.000000] Memory: 7918708K/8386560K available (9875K kernel code, 5764K rwdata, 10240K rodata, 2519K init, 991K bss, 435084K reserved, 32768K cma-reserved)
[    0.000000] random: get_random_u64 called from kmem_cache_open+0x36/0x344 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] ftrace: allocating 38913 entries in 153 pages
[    0.000000] ftrace: allocated 153 pages with 4 groups
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: plic@c000000: mapped 96 interrupts with 8 handlers for 16 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [4]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.000189] sched_clock: 64 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns
[    0.017779] Console: colour dummy device 80x25
[    0.020880] printk: console [tty0] enabled
[    0.023848] printk: bootconsole [ns16550a0] disabled
[    0.028956] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000)
[    0.029624] pid_max: default: 32768 minimum: 301
[    0.031930] LSM: Security Framework initializing
[    0.033637] Yama: becoming mindful.
[    0.038551] AppArmor: AppArmor initialized
[    0.042457] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.042622] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.108617] rcu: Hierarchical SRCU implementation.
[    0.115737] EFI services will not be available.
[    0.123010] smp: Bringing up secondary CPUs ...
[    0.156246] smp: Brought up 1 node, 8 CPUs
[    0.189504] devtmpfs: initialized
[    0.205954] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.206398] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.213573] pinctrl core: initialized pinctrl subsystem
[    0.243705] NET: Registered protocol family 16
[    0.249615] audit: initializing netlink subsys (disabled)
[    0.253698] audit: type=2000 audit(0.180:1): state=initialized audit_enabled=0 res=1
[    0.262760] thermal_sys: Registered thermal governor 'fair_share'
[    0.262916] thermal_sys: Registered thermal governor 'bang_bang'
[    0.263001] thermal_sys: Registered thermal governor 'step_wise'
[    0.263039] thermal_sys: Registered thermal governor 'user_space'
[    0.327914] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.328084] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.379484] fbcon: Taking over console
[    0.381786] iommu: Default domain type: Translated
[    0.392296] SCSI subsystem initialized
[    0.401569] vgaarb: loaded
[    0.403946] usbcore: registered new interface driver usbfs
[    0.404965] usbcore: registered new interface driver hub
[    0.406032] usbcore: registered new device driver usb
[    0.407324] pps_core: LinuxPPS API ver. 1 registered
[    0.407393] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.407577] PTP clock support registered
[    0.409438] EDAC MC: Ver: 3.0.0
[    0.430382] NetLabel: Initializing
[    0.430499] NetLabel:  domain hash size = 128
[    0.430549] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.433088] NetLabel:  unlabeled traffic allowed by default
[    0.439830] clocksource: Switched to clocksource riscv_clocksource
[    0.641919] VFS: Disk quotas dquot_6.6.0
[    0.642399] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.650933] AppArmor: AppArmor Filesystem Enabled
[    0.696560] NET: Registered protocol family 2
[    0.699382] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.714377] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.715473] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.716874] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.717934] TCP: Hash tables configured (established 65536 bind 65536)
[    0.721826] MPTCP token hash table entries: 8192 (order: 5, 196608 bytes, linear)
[    0.722603] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.723228] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.731622] NET: Registered protocol family 1
[    0.732695] NET: Registered protocol family 44
[    0.733170] PCI: CLS 0 bytes, default 64
[    0.741134] Trying to unpack rootfs image as initramfs...
[   13.523368] Freeing initrd memory: 178468K
[   13.530111] Initialise system trusted keyrings
[   13.533560] Key type blacklist registered
[   13.535353] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[   13.552507] zbud: loaded
[   13.560969] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[   13.565749] fuse: init (API version 7.33)
[   13.573787] integrity: Platform Keyring initialized
[   13.602715] Key type asymmetric registered
[   13.602939] Asymmetric key parser 'x509' registered
[   13.603387] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[   13.605203] io scheduler mq-deadline registered
[   13.615152] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[   13.621358] pci-host-generic 30000000.pci: host bridge /soc/pci@30000000 ranges:
[   13.622878] pci-host-generic 30000000.pci:       IO 0x0003000000..0x000300ffff -> 0x0000000000
[   13.623714] pci-host-generic 30000000.pci:      MEM 0x0040000000..0x007fffffff -> 0x0040000000
[   13.623849] pci-host-generic 30000000.pci:      MEM 0x0400000000..0x07ffffffff -> 0x0400000000
[   13.624785] pci-host-generic 30000000.pci: Memory resource size exceeds max for 32 bits
[   13.626327] pci-host-generic 30000000.pci: ECAM at [mem 0x30000000-0x3fffffff] for [bus 00-ff]
[   13.628898] pci-host-generic 30000000.pci: PCI host bridge to bus 0000:00
[   13.629641] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[   13.629821] pci_bus 0000:00: root bus resource [mem 0x40000000-0x7fffffff]
[   13.629872] pci_bus 0000:00: root bus resource [mem 0x400000000-0x7ffffffff]
[   13.630098] pci_bus 0000:00: root bus resource [bus 00-ff]
[   13.633792] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000
[   13.652734] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[   13.691498] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 2, base_baud = 230400) is a 16550A
[   13.828916] hrtimer: interrupt took 18424500 ns
[   13.830665] printk: console [ttyS0] enabled
[   14.169127] loop: module loaded
[   14.182083] libphy: Fixed MDIO Bus: probed
[   14.183815] tun: Universal TUN/TAP device driver, 1.6
[   14.186754] PPP generic driver version 2.4.2
[   14.190369] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   14.192840] ehci-pci: EHCI PCI platform driver
[   14.194818] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   14.197355] ohci-pci: OHCI PCI platform driver
[   14.199551] uhci_hcd: USB Universal Host Controller Interface driver
[   14.205105] mousedev: PS/2 mouse device common for all mice
[   14.214090] goldfish_rtc 101000.rtc: registered as rtc0
[   14.218245] goldfish_rtc 101000.rtc: setting system clock to 2023-04-23T12:28:06 UTC (1682252886)
[   14.222826] i2c /dev entries driver
[   14.232025] syscon-poweroff poweroff: pm_power_off already claimed for default_power_off
[   14.234918] syscon-poweroff: probe of poweroff failed with error -16
[   14.238245] device-mapper: uevent: version 1.0.3
[   14.241867] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: [email protected]
[   14.247541] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT)
[   14.255587] ledtrig-cpu: registered to indicate activity on CPUs
[   14.259474] drop_monitor: Initializing network drop monitor service
[   14.265350] NET: Registered protocol family 10
[   14.852203] Segment Routing with IPv6
[   14.854599] NET: Registered protocol family 17
[   14.858245] Key type dns_resolver registered
[   14.860816] registered taskstats version 1
[   14.863335] Loading compiled-in X.509 certificates
[   14.887780] Loaded X.509 cert 'Build time autogenerated kernel key: 544ecc29834a605eb050d439c833e33571e490a1'
[   14.895875] Loaded X.509 cert 'Canonical Ltd. Live Patch Signing: 14df34d1a87cf37625abec039ef2bf521249b969'
[   14.902507] Loaded X.509 cert 'Canonical Ltd. Kernel Module Signing: 88f752e560a1e0737e31163a466ad7b70a850c19'
[   14.906153] blacklist: Loading compiled-in revocation X.509 certificates
[   14.911087] Loaded X.509 cert 'Canonical Ltd. Secure Boot Signing: 61482aa2830d0ab2ad5af10b7250da9033ddcef0'
[   14.920497] zswap: loaded using pool lzo/zbud
[   14.926951] Key type ._fscrypt registered
[   14.928741] Key type .fscrypt registered
[   14.929918] Key type fscrypt-provisioning registered
[   15.139818] Key type encrypted registered
[   15.141832] AppArmor: AppArmor sha1 policy hashing enabled
[   15.144738] ima: No TPM chip found, activating TPM-bypass!
[   15.146571] ima: Allocated hash algorithm: sha1
[   15.151638] ima: No architecture policies found
[   15.154499] evm: Initialising EVM extended attributes:
[   15.156053] evm: security.selinux
[   15.158079] evm: security.SMACK64
[   15.159575] evm: security.SMACK64EXEC
[   15.161354] evm: security.SMACK64TRANSMUTE
[   15.162862] evm: security.SMACK64MMAP
[   15.164044] evm: security.apparmor
[   15.165257] evm: security.ima
[   15.166235] evm: security.capability
[   15.168033] evm: HMAC attrs: 0x1
[   15.259438] Freeing unused kernel memory: 2516K
[   15.295436] ------------[ cut here ]------------
[   15.297401] riscv/mm: Found insecure W+X mapping at address (____ptrval____)/0xffffffdff8000000
[   15.301985] WARNING: CPU: 2 PID: 1 at arch/riscv/mm/ptdump.c:231 note_page+0x254/0x25a
[   15.304973] Modules linked in:
[   15.306544] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 5.11.0-1031-generic #35-Ubuntu
[   15.309917] epc: ffffffe00000b356 ra : ffffffe00000b356 sp : ffffffe07fff7b20
[   15.312725]  gp : ffffffe001c14630 tp : ffffffe080004500 t0 : ffffffe07ff08000
[   15.314845]  t1 : ffffffe07ff080a0 t2 : 0000000000000000 s0 : ffffffe07fff7b70
[   15.317165]  s1 : ffffffe07fff7de8 a0 : 0000000000000053 a1 : ffffffe001b05ae0
[   15.319799]  a2 : 0000000000000010 a3 : 0000000000000000 a4 : cc4b1e90215de100
[   15.322150]  a5 : cc4b1e90215de100 a6 : 0000000000000012 a7 : ffffffe00055b8b0
[   15.324518]  s2 : ffffffdff8001000 s3 : 0000000000000000 s4 : 0000000000000004
[   15.326543]  s5 : 0000000000000000 s6 : 0000000000000000 s7 : ffffffe07fff7d18
[   15.329765]  s8 : ffffffdff8001000 s9 : ffffffe001c17148 s10: ffffffdff8002000
[   15.332536]  s11: ffffffe000e18a80 t3 : 0000000007200720 t4 : 0000000000000001
[   15.334995]  t5 : 0293687091b35632 t6 : ffffffe07fff7838
[   15.337441] status: 0000000200000120 badaddr: 0000000000000000 cause: 0000000000000003
[   15.339741] ---[ end trace f7ed341ed0fdb44c ]---
[   15.342441] Checked W+X mappings: failed, 1 W+X pages found
[   15.345453] Run /init as init process
Loading, please wait...
Starting version 245.4-4ubuntu3.15
[   19.603865] virtio_blk virtio0: [vda] 74448896 512-byte logical blocks (38.1 GB/35.5 GiB)
[   19.687982]  vda: vda1 vda12 vda13 vda14 vda15
[   20.181902] random: fast init done
Begin: Loading essential drivers ... [   24.893315] raid6: int64x8  gen()   361 MB/s
[   24.960352] raid6: int64x8  xor()   444 MB/s
[   25.028218] raid6: int64x4  gen()  1340 MB/s
[   25.097281] raid6: int64x4  xor()   832 MB/s
[   25.164274] raid6: int64x2  gen()  1528 MB/s
[   25.233416] raid6: int64x2  xor()   904 MB/s
[   25.301285] raid6: int64x1  gen()  1158 MB/s
[   25.369292] raid6: int64x1  xor()   725 MB/s
[   25.370848] raid6: using algorithm int64x2 gen() 1528 MB/s
[   25.372623] raid6: .... xor() 904 MB/s, rmw enabled
[   25.374227] raid6: using intx1 recovery algorithm
[   25.393749] xor: measuring software checksum speed
[   25.400742]    8regs           :  2272 MB/sec
[   25.407170]    8regs_prefetch  :  2235 MB/sec
[   25.415157]    32regs          :  1820 MB/sec
[   25.422000]    32regs_prefetch :  2158 MB/sec
[   25.424040] xor: using function: 8regs (2272 MB/sec)
[   25.437866] async_tx: api initialized (async)
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... [   30.463241] Btrfs loaded, crc32c=crc32c-generic, zoned=yes
Scanning for Btrfs filesystems
done.
Begin: Will now check root file system ... fsck from util-linux 2.34
[/usr/sbin/fsck.ext4 (1) -- /dev/vda1] fsck.ext4 -a -C0 /dev/vda1
cloudimg-rootfs: clean, 234257/4507648 files, 5043257/9276663 blocks
done.
[   32.158944] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   39.518915] systemd[1]: Inserted module 'autofs4'
[   39.827383] systemd[1]: systemd 245.4-4ubuntu3.15 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[   39.839082] systemd[1]: Detected architecture riscv64.

Welcome to Ubuntu 20.04.4 LTS!

[   39.947617] systemd[1]: Set hostname to <ubuntu>.
[   42.307073] random: lvmconfig: uninitialized urandom read (4 bytes read)
[   46.863998] systemd[1]: Created slice system-modprobe.slice.
[  OK  ] Created slice system-modprobe.slice.
[   46.886177] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[   46.904207] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[  OK  ] Created slice system-systemd\x2dfsck.slice.
[   46.922610] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[   46.934393] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password R?쫢ests to Wall Directory Watch.
[   46.979345] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary?쫟 File System Automount Point.
[   46.990355] systemd[1]: Reached target User and Group Name Lookups.
[  OK  ] Reached target User and Group Name Lookups.
[   46.997582] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[   47.003386] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[   47.014024] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[  OK  ] Listening on Device-mapper event daemon FIFOs.
[   47.027374] systemd[1]: Listening on LVM2 poll daemon socket.
[  OK  ] Listening on LVM2 poll daemon socket.
[   47.037620] systemd[1]: Listening on multipathd control socket.
[  OK  ] Listening on multipathd control socket.
[   47.049095] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[   47.059577] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[   47.069401] systemd[1]: Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[   47.090081] systemd[1]: Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Audit Socket.
[   47.102462] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[   47.115573] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[   47.126776] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[   47.139537] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   47.150158] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[   47.201206] systemd[1]: Mounting Huge Pages File System...
         Mounting Huge Pages File System...
[   47.248558] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[   47.301170] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[   47.355698] systemd[1]: Mounting Kernel Trace File System...
         Mounting Kernel Trace File System...
[   47.459860] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[   47.515697] systemd[1]: Starting Set the console keyboard layout...
         Starting Set the console keyboard layout...
[   47.564940] systemd[1]: Starting Create list of static device nodes for the current kernel...
         Starting Create list of st?쫛des for the current kernel...
[   47.612972] systemd[1]: Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
         Starting Monitoring of LVM?쫗eventd or progress polling...
[   47.666993] systemd[1]: Starting Load Kernel Module drm...
         Starting Load Kernel Module drm...
[   47.677472] systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped.
[   47.693088] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[   47.698949] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[   47.761358] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[   47.849962] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[   47.913012] systemd[1]: Starting udev Coldplug all Devices...
         Starting udev Coldplug all Devices...
[   47.950923] random: lvm: uninitialized urandom read (4 bytes read)
[   47.983121] systemd[1]: Starting Uncomplicated firewall...
         Starting Uncomplicated firewall...
[   48.128035] systemd[1]: Mounted Huge Pages File System.
[  OK  ] Mounted Huge Pages File System.
[   48.146591] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[   48.161666] systemd[1]: Mounted Kernel Debug File System.
[  OK  ] Mounted Kernel Debug File System.
[   48.174849] systemd[1]: Mounted Kernel Trace File System.
[  OK  ] Mounted Kernel Trace File System.
[   48.249955] systemd[1]: Finished Create list of static device nodes for the current kernel.
[  OK  ] Finished Create list of st?? nodes for the current kernel.
[   48.375759] EXT4-fs (vda1): re-mounted. Opts: (null). Quota mode: none.
[   48.421151] systemd[1]: Finished Uncomplicated firewall.
[  OK  ] Finished Uncomplicated firewall.
[   48.509007] systemd[1]: Finished Remount Root and Kernel File Systems.
[  OK  ] Finished Remount Root and Kernel File Systems.
[   48.535554] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[   48.543230] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[   48.591763] systemd[1]: Starting Load/Save Random Seed...
         Starting Load/Save Random Seed...
[   48.662647] systemd[1]: Starting Create System Users...
         Starting Create System Users...
[   48.877437] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Finished Load/Save Random Seed.
[   49.945652] systemd-journald[377]: Received client request to flush runtime journal.
[  OK  ] Finished Set the console keyboard layout.
[  OK  ] Finished Flush Journal to Persistent Storage.
[   51.730380] IPMI message handler: version 39.2
[   51.759005] ipmi device interface
[  OK  ] Finished Create System Users.
[  OK  ] Finished Load Kernel Modules.
         Mounting FUSE Control File System...
         Mounting Kernel Configuration File System...
         Starting Apply Kernel Variables...
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Monitoring of LVM?? dmeventd or progress polling.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Finished udev Coldplug all Devices.
         Starting udev Wait for Complete Device Initialization...
         Starting udev Kernel Device Manager...
[  OK  ] Finished Load Kernel Module drm.
[  OK  ] Finished Apply Kernel Variables.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Dispatch Password ?쫡s to Console Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Listening on Load/Save RF ?쫒tch Status /dev/rfkill Watch.
[  OK  ] Found device /dev/disk/by-label/UEFI.
[  OK  ] Finished udev Wait for Complete Device Initialization.
         Starting Device-Mapper Multipath Device Controller...
[  OK  ] Started Device-Mapper Multipath Device Controller.
[  OK  ] Reached target Local File Systems (Pre).
         Starting File System Check on /dev/disk/by-label/UEFI...
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Finished File System Check on /dev/disk/by-label/UEFI.
         Mounting /boot/efi...
[  OK  ] Mounted /boot/efi.
[  OK  ] Reached target Local File Systems.
         Starting Load AppArmor profiles...
         Starting Set console font and keymap...
         Starting Create final runt?쫉ir for shutdown pivot root...
         Starting Initial cloud-init job (pre-networking)...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create final runt?쫊 dir for shutdown pivot root.
[  OK  ] Finished Set console font and keymap.
[  OK  ] Finished Tell Plymouth To Write Out Runtime Data.
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Finished Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Set.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Finished Load AppArmor profiles.
[   84.006113] cloud-init[526]: Cloud-init v. 22.1-14-g2e17a0d6-0ubuntu1~20.04.3 running 'init-local' at Sun, 23 Apr 2023 12:29:13 +0000. Up 81.09 seconds.
[  OK  ] Finished Initial cloud-init job (pre-networking).
[  OK  ] Reached target Network (Pre).
         Starting Network Service...
[  OK  ] Started Network Service.
         Starting Wait for Network to be Configured...
         Starting Network Name Resolution...
[  OK  ] Finished Wait for Network to be Configured.
         Starting Initial cloud-ini?? (metadata service crawler)...
[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Network.
[  OK  ] Reached target Host and Network Name Lookups.
[  104.525912] cloud-init[536]: Cloud-init v. 22.1-14-g2e17a0d6-0ubuntu1~20.04.3 running 'init' at Sun, 23 Apr 2023 12:29:30 +0000. Up 98.03 seconds.
[  104.534768] cloud-init[536]: ci-info: ++++++++++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++++++++++
[  104.542470] cloud-init[536]: ci-info: +--------+------+----------------------------+---------------+--------+-------------------+
[  104.550639] cloud-init[536]: ci-info: | Device |  Up  |          Address           |      Mask     | Scope  |     Hw-Address    |
[  104.557666] cloud-init[536]: ci-info: +--------+------+----------------------------+---------------+--------+-------------------+
[  104.565196] cloud-init[536]: ci-info: |  eth0  | True |         10.0.2.15          | 255.255.255.0 | global | 52:54:00:12:34:56 |
[  104.572179] cloud-init[536]: ci-info: |  eth0  | True | fec0::5054:ff:fe12:3456/64 |       .       |  site  | 52:54:00:12:34:56 |
[  104.580909] cloud-init[536]: ci-info: |  eth0  | True | fe80::5054:ff:fe12:3456/64 |       .       |  link  | 52:54:00:12:34:56 |
[  104.588559] cloud-init[536]: ci-info: |   lo   | True |         127.0.0.1          |   255.0.0.0   |  host  |         .         |
[  104.596831] cloud-init[536]: ci-info: |   lo   | True |          ::1/128           |       .       |  host  |         .         |
[  104.605467] cloud-init[536]: ci-info: +--------+------+----------------------------+---------------+--------+-------------------+
[  104.612972] cloud-init[536]: ci-info: ++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++
[  104.620434] cloud-init[536]: ci-info: +-------+-------------+----------+-----------------+-----------+-------+
[  104.628367] cloud-init[536]: ci-info: | Route | Destination | Gateway  |     Genmask     | Interface | Flags |
[  104.634900] cloud-init[536]: ci-info: +-------+-------------+----------+-----------------+-----------+-------+
[  104.641856] cloud-init[536]: ci-info: |   0   |   0.0.0.0   | 10.0.2.2 |     0.0.0.0     |    eth0   |   UG  |
[  104.649346] cloud-init[536]: ci-info: |   1   |   10.0.2.0  | 0.0.0.0  |  255.255.255.0  |    eth0   |   U   |
[  104.656560] cloud-init[536]: ci-info: |   2   |   10.0.2.2  | 0.0.0.0  | 255.255.255.255 |    eth0   |   UH  |
[  104.664531] cloud-init[536]: ci-info: +-------+-------------+----------+-----------------+-----------+-------+
[  104.671343] cloud-init[536]: ci-info: +++++++++++++++++++Route IPv6 info+++++++++++++++++++
[  104.678712] cloud-init[536]: ci-info: +-------+-------------+---------+-----------+-------+
[  104.685819] cloud-init[536]: ci-info: | Route | Destination | Gateway | Interface | Flags |
[  104.692135] cloud-init[536]: ci-info: +-------+-------------+---------+-----------+-------+
[  104.698360] cloud-init[536]: ci-info: |   1   |  fe80::/64  |    ::   |    eth0   |   U   |
[  104.706028] cloud-init[536]: ci-info: |   2   |  fec0::/64  |    ::   |    eth0   |   Ue  |
[  104.712821] cloud-init[536]: ci-info: |   3   |     ::/0    | fe80::2 |    eth0   |  UGe  |
[  104.720564] cloud-init[536]: ci-info: |   5   |    local    |    ::   |    eth0   |   U   |
[  104.726883] cloud-init[536]: ci-info: |   6   |    local    |    ::   |    eth0   |   U   |
[  104.733018] cloud-init[536]: ci-info: |   7   |  multicast  |    ::   |    eth0   |   U   |
[  104.739831] cloud-init[536]: ci-info: +-------+-------------+---------+-----------+-------+
[  OK  ] Finished Initial cloud-ini?쫛b (metadata service crawler).
[  OK  ] Reached target Cloud-config availability.
[  OK  ] Reached target Network is Online.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Trigger to poll fo?쫦 enabled on GCP LTS non-pro).
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Periodic ext4 Onli?쫆ta Check for All Filesystems.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Started Refresh fwupd metadata regularly.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Daily man-db regeneration.
[  OK  ] Started Message of the Day.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started Ubuntu Advantage Timer for running repeated jobs.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Timers.
[  OK  ] Listening on cloud-init hotplug hook socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on Open-iSCSI iscsid Socket.
[  OK  ] Listening on UUID daemon activation socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Accounts Service...
         Starting Apply the settings specified in cloud-config...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Save initial kernel messages after boot.
         Starting Remove Stale Onli?쫡4 Metadata Check Snapshots...
[  OK  ] Started irqbalance daemon.
         Starting Dispatcher daemon for systemd-networkd...
[  OK  ] Started Set the CPU Frequency Scaling governor.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting LSB: automatic crash report generation...
         Starting Deferred execution scheduler...
         Starting Availability of block devices...
[  OK  ] Started Regular background program processing daemon.
         Starting Authorization Manager...
         Starting System Logging Service...
         Starting OpenBSD Secure Shell server...
         Starting Login Service...
         Starting Permit User Sessions...
         Starting Disk Manager...
[  OK  ] Finished Remove Stale Onli?쫊xt4 Metadata Check Snapshots.
[  OK  ] Started Deferred execution scheduler.
[  OK  ] Finished Availability of block devices.
[  OK  ] Finished Permit User Sessions.
[  OK  ] Started System Logging Service.
         Starting Online ext4 Metad?쫆 Check for All Filesystems...
         Starting Discard unused bl?쫋ilesystems from /etc/fstab...
         Starting Hold until boot process finishes up...
         Starting Terminate Plymouth Boot Screen...
         Starting Rotate log files...
         Starting Daily man-db regeneration...
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Finished Online ext4 Metadata Check for All Filesystems.
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Finished Hold until boot process finishes up.
[  OK  ] Finished Terminate Plymouth Boot Screen.
[  OK  ] Started Serial Getty on ttyS0.
         Starting Set console scheme...
[  OK  ] Finished Set console scheme.
[  OK  ] Started Login Service.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Unattended Upgrades Shutdown.
[  OK  ] Started Authorization Manager.
         Starting Modem Manager...
[  OK  ] Started Dispatcher daemon for systemd-networkd.
[  OK  ] Finished Rotate log files.

Ubuntu 20.04.4 LTS ubuntu ttyS0

ubuntu login: [  127.250944] cloud-init[687]: Cloud-init v. 22.1-14-g2e17a0d6-0ubuntu1~20.04.3 running 'modules:config' at Sun, 23 Apr 2023 12:29:56 +0000. Up 123.51 seconds.
[  143.323378] cloud-init[692]: Cloud-init v. 22.1-14-g2e17a0d6-0ubuntu1~20.04.3 running 'modules:final' at Sun, 23 Apr 2023 12:30:12 +0000. Up 139.35 seconds.
[  143.335063] cloud-init[692]: Cloud-init v. 22.1-14-g2e17a0d6-0ubuntu1~20.04.3 finished at Sun, 23 Apr 2023 12:30:15 +0000. Datasource DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net].  Up 143.15 seconds
ubuntu
Password:
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.11.0-1031-generic riscv64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Sun Apr 23 12:31:06 UTC 2023

  System load:           1.15
  Usage of /:            52.9% of 34.25GB
  Memory usage:          2%
  Swap usage:            0%
  Processes:             135
  Users logged in:       0
  IPv4 address for eth0: 10.0.2.15
  IPv6 address for eth0: fec0::5054:ff:fe12:3456

 * Super-optimized for small spaces - read how we shrank the memory
   footprint of MicroK8s to make it the smallest full K8s around.

   https://ubuntu.com/blog/microk8s-memory-optimisation

0 updates can be applied immediately.


The list of available updates is more than a week old.
To check for new updates run: sudo apt update

Last login: Sun Apr  3 16:42:29 UTC 2022 on ttyS0
ubuntu@ubuntu:~$ ls
2022-04-03-dmesg.txt
crash_vm_linux_dbgsym_dump.sh
dbgsym-rhel8.sh
dbgsym-ubuntu2004.sh
debhelper
ftrace_before_vmcore.sh
get_ftrace_log.sh
gettext
is_kdump_ok.sh
linux-hwe-5.15-cloud-tools-common_5.15.0-23.23~20.04.1_all.deb
linux-hwe-5.15-headers-5.15.0-23_5.15.0-23.23~20.04.1_all.deb
linux-hwe-5.15-source-5.15.0_5.15.0-23.23~20.04.1_all.deb
linux-hwe-5.15-tools-common_5.15.0-23.23~20.04.1_all.deb
linux-hwe-5.15-tools-host_5.15.0-23.23~20.04.1_all.deb
m4
mainline
make-ubuntu-kernel-dbgsym.sh
make-ubuntu-kernel-generic.sh
make-ubuntu-kernel-release.sh
panic.sh
ubuntu-focal
ubuntu@ubuntu:~$ poweroff
Failed to set wall message, ignoring: Interactive authentication required.
Failed to power off system via logind: Interactive authentication required.
Failed to open initctl fifo: Permission denied
Failed to talk to init daemon.
ubuntu@ubuntu:~$ sudo poweroff
         Stopping Session 1 of user ubuntu.
[  OK  ] Removed slice system-modprobe.slice.
[  OK  ] Stopped target Cloud-init target.
[  OK  ] Stopped target Graphical Interface.
[  OK  ] Stopped target Host and Network Name Lookups.
[  OK  ] Stopped target Timers.
[  OK  ] Stopped Daily apt upgrade and clean activities.
[  OK  ] Stopped Daily apt download activities.
[  OK  ] Stopped Periodic ext4 Onli?쫆ta Check for All Filesystems.
[  OK  ] Stopped Discard unused blocks once a week.
[  OK  ] Stopped Refresh fwupd metadata regularly.
[  OK  ] Stopped Daily rotation of log files.
[  OK  ] Stopped Daily man-db regeneration.
[  OK  ] Stopped Message of the Day.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Stopped Ubuntu Advantage Timer for running repeated jobs.
[  OK  ] Stopped target System Time Synchronized.
[  OK  ] Stopped target System Time Set.
[  OK  ] Closed LVM2 poll daemon socket.
[  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Stopping Accounts Service...
         Stopping Availability of block devices...
[  OK  ] Stopped Execute cloud user/final scripts.
[  OK  ] Stopped target Multi-User System.
[  OK  ] Stopped target Login Prompts.
         Stopping Modem Manager...
         Stopping LSB: automatic crash report generation...
         Stopping Deferred execution scheduler...
[  OK  ] Stopped Apply the settings specified in cloud-config.
[  OK  ] Stopped target Cloud-config availability.
[  OK  ] Stopped target Network is Online.
         Stopping Regular background program processing daemon...
         Stopping Create final runt?쫉ir for shutdown pivot root...
         Stopping Getty on tty1...
         Stopping irqbalance daemon...
         Stopping Dispatcher daemon for systemd-networkd...
         Stopping System Logging Service...
         Stopping Serial Getty on ttyS0...
         Stopping OpenBSD Secure Shell server...
         Stopping Load/Save Random Seed...
         Stopping Disk Manager...
         Stopping Unattended Upgrades Shutdown...
[  OK  ] Stopped Accounts Service.
[  OK  ] Stopped irqbalance daemon.
[  OK  ] Stopped Dispatcher daemon for systemd-networkd.
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped Disk Manager.
[  OK  ] Stopped Deferred execution scheduler.
[  OK  ] Stopped OpenBSD Secure Shell server.
[  OK  ] Stopped Serial Getty on ttyS0.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Unattended Upgrades Shutdown.
[  OK  ] Stopped Modem Manager.
[  OK  ] Stopped Load/Save Random Seed.
[  OK  ] Stopped Session 1 of user ubuntu.
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Removed slice system-serial\x2dgetty.slice.
         Stopping Authorization Manager...
         Stopping Login Service...
         Stopping User Manager for UID 1000...
[  OK  ] Stopped Authorization Manager.
[  OK  ] Stopped Availability of block devices.
[  OK  ] Stopped Login Service.
[  OK  ] Stopped User Manager for UID 1000.
         Stopping User Runtime Directory /run/user/1000...
[  OK  ] Stopped LSB: automatic crash report generation.
[  OK  ] Unmounted /run/user/1000.
[  OK  ] Stopped User Runtime Directory /run/user/1000.
[  OK  ] Removed slice User Slice of UID 1000.
         Stopping D-Bus System Message Bus...
         Stopping Permit User Sessions...
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Network.
[  OK  ] Stopped target User and Group Name Lookups.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped Trigger to poll fo?쫦 enabled on GCP LTS non-pro).
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped target Remote File Systems (Pre).
[  OK  ] Stopped target Slices.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed cloud-init hotplug hook socket.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Closed Open-iSCSI iscsid Socket.
[  OK  ] Closed Syslog Socket.
[  OK  ] Closed UUID daemon activation socket.
[  OK  ] Stopped target System Initialization.
[  OK  ] Stopped target Local Encrypted Volumes.
[  OK  ] Stopped Dispatch Password ?쫡s to Console Directory Watch.
[  OK  ] Stopped Forward Password R?쫢ests to Wall Directory Watch.
[  OK  ] Stopped target Swap.
[  OK  ] Stopped Initial cloud-init?쫛b (metadata service crawler).
[  OK  ] Stopped Wait for Network to be Configured.
         Stopping Network Name Resolution...
         Stopping Network Time Synchronization...
         Stopping Update UTMP about System Boot/Shutdown...
[  OK  ] Stopped Network Time Synchronization.
[  OK  ] Stopped Network Name Resolution.
         Stopping Network Service...
[  OK  ] Stopped Network Service.
[  OK  ] Stopped Update UTMP about System Boot/Shutdown.
[  OK  ] Stopped target Network (Pre).
[  OK  ] Stopped Initial cloud-init job (pre-networking).
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped Load Kernel Modules.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped Create final runtime dir for shutdown pivot root.
[  OK  ] Stopped target Local File Systems.
         Unmounting /boot/efi...
[  OK  ] Unmounted /boot/efi.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped File System Check on /dev/disk/by-label/UEFI.
[  OK  ] Removed slice system-systemd\x2dfsck.slice.
[  OK  ] Stopped target Local File Systems (Pre).
         Stopping Monitoring of LVM?쫗eventd or progress polling...
         Stopping Device-Mapper Multipath Device Controller...
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Stopped Create System Users.
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Stopped Device-Mapper Multipath Device Controller.
[  OK  ] Stopped Monitoring of LVM2?? dmeventd or progress polling.
[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
[  OK  ] Finished Power-Off.
[  OK  ] Reached target Power-Off.
[  289.508917] reboot: Power down
[  316.193302] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [shutdown:1]
[  316.195632] Modules linked in: nls_iso8859_1 dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua ofpart redboot cmdlinepart cfi_cmdset_0001 cfi_probe cfi_util gen_probe physmap map_funcs chipreg mtd uio_pdrv_genirq uio sch_fq_codel drm ipmi_devintf ipmi_msghandler backlight ip_tables x_tables autofs4 btrfs blake2b_generic raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear virtio_net net_failover virtio_blk failover
[  316.213126] CPU: 0 PID: 1 Comm: shutdown Tainted: G        W         5.11.0-1031-generic #35-Ubuntu
[  316.216558] epc: ffffffe000004cba ra : ffffffe000004d22 sp : ffffffe07fff7d30
[  316.218892]  gp : ffffffe001c14630 tp : ffffffe080004500 t0 : ffffffe001c26157
[  316.221358]  t1 : ffffffe001c26148 t2 : 0000000000000000 s0 : ffffffe07fff7d40
[  316.223631]  s1 : 000000004321fedc a0 : ffffffe000004d22 a1 : ffffffe001b05ae0
[  316.226393]  a2 : 0000000000000010 a3 : 0000000000000000 a4 : cc4b1e90215de100
[  316.229546]  a5 : ffffffe000004ca4 a6 : 0000000000000021 a7 : ffffffe00055b8b0
[  316.231724]  s2 : 0000000028121969 s3 : ffffffe001a1f100 s4 : fffffffffee1dead
[  316.234659]  s5 : ffffffe001c170c0 s6 : 5302444c45256d00 s7 : 0000003fffb22cd8
[  316.238334]  s8 : 0000000000000fff s9 : fffffffffffff000 s10: 0000000000000000
[  316.240711]  s11: 0000000000000000 t3 : 0000000000000072 t4 : ffffffffffffffff
[  316.244563]  t5 : 0000000000000002 t6 : ffffffe07fff7a88
[  316.246977] status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000005
[  344.191308] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [shutdown:1]
[  344.193862] Modules linked in: nls_iso8859_1 dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua ofpart redboot cmdlinepart cfi_cmdset_0001 cfi_probe cfi_util gen_probe physmap map_funcs chipreg mtd uio_pdrv_genirq uio sch_fq_codel drm ipmi_devintf ipmi_msghandler backlight ip_tables x_tables autofs4 btrfs blake2b_generic raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear virtio_net net_failover virtio_blk failover
[  344.210836] CPU: 0 PID: 1 Comm: shutdown Tainted: G        W    L    5.11.0-1031-generic #35-Ubuntu
[  344.215405] epc: ffffffe000004cbe ra : ffffffe000004d22 sp : ffffffe07fff7d30
[  344.219373]  gp : ffffffe001c14630 tp : ffffffe080004500 t0 : ffffffe001c26157
[  344.223013]  t1 : ffffffe001c26148 t2 : 0000000000000000 s0 : ffffffe07fff7d40
[  344.225824]  s1 : 000000004321fedc a0 : ffffffe000004d22 a1 : ffffffe001b05ae0
[  344.229392]  a2 : 0000000000000010 a3 : 0000000000000000 a4 : cc4b1e90215de100
[  344.232988]  a5 : ffffffe000004ca4 a6 : 0000000000000021 a7 : ffffffe00055b8b0
[  344.236088]  s2 : 0000000028121969 s3 : ffffffe001a1f100 s4 : fffffffffee1dead
[  344.239017]  s5 : ffffffe001c170c0 s6 : 5302444c45256d00 s7 : 0000003fffb22cd8
[  344.242880]  s8 : 0000000000000fff s9 : fffffffffffff000 s10: 0000000000000000
[  344.246426]  s11: 0000000000000000 t3 : 0000000000000072 t4 : ffffffffffffffff
[  344.249965]  t5 : 0000000000000002 t6 : ffffffe07fff7a88
[  344.252061] status: 0000000200000120 badaddr: 0000000000000000 cause: 8000000000000005
[  349.510633] rcu: INFO: rcu_sched self-detected stall on CPU
[  349.512728] rcu:     0-....: (14969 ticks this GP) idle=16a/1/0x4000000000000002 softirq=9002/9002 fqs=6190
[  349.516492]  (t=15000 jiffies g=38377 q=17)
[  349.518801] Call Trace:
@paranlee
Copy link
Author

paranlee commented Apr 25, 2023

Vs Real Board (Starfive VisionFive2)

v5.15

$ sudo minicom -D /dev/ttyUSB0 -b 115200
[sudo] kim 암호: 


Welcome to minicom 2.8

OPTIONS: I18n 
Port /dev/ttyUSB0, 22:22:10

Press CTRL-A Z for help on special keys

�
U-Boot SPL 2021.10 (Feb 12 2023 - 18:15:33 +0800)
DDR version: dc2e84f0.
Trying to boot from SPI

OpenSBI v1.2
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name             : StarFive VisionFive V2
Platform Features         : medeleg
Platform HART Count       : 5
Platform IPI Device       : aclint-mswi
Platform Timer Device     : aclint-mtimer @ 4000000Hz
Platform Console Device   : uart8250
Platform HSM Device       : jh7110-hsm
Platform PMU Device       : ---
Platform Reboot Device    : pm-reset
Platform Shutdown Device  : pm-reset
Firmware Base             : 0x40000000
Firmware Size             : 292 KB
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 1
Domain0 HARTs             : 0*,1*,2*,3*,4*
Domain0 Region00          : 0x0000000002000000-0x000000000200ffff (I)
Domain0 Region01          : 0x0000000040000000-0x000000004007ffff ()
Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address      : 0x0000000040200000
Domain0 Next Arg1         : 0x0000000042200000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes

Boot HART ID              : 1
Boot HART Domain          : root
Boot HART Priv Version    : v1.11
Boot HART Base ISA        : rv64imafdcbx
Boot HART ISA Extensions  : none
Boot HART PMP Count       : 8
Boot HART PMP Granularity : 4096
Boot HART PMP Address Bits: 34
Boot HART MHPM Count      : 2
Boot HART MIDELEG         : 0x0000000000000222
Boot HART MEDELEG         : 0x000000000000b109


U-Boot 2021.10 (Feb 12 2023 - 18:15:33 +0800), Build: jenkins-VF2_515_Branch_SDK_Release-24

CPU:   rv64imacu
Model: StarFive VisionFive V2
DRAM:  8 GiB
MMC:   sdio0@16010000: 0, sdio1@16020000: 1
Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

StarFive EEPROM format v2

--------EEPROM INFO--------
Vendor : StarFive Technology Co., Ltd.
Product full SN: VF7110B1-2253-D008E000-00003305
data version: 0x2
PCB revision: 0xb2
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:3d:2e
Ethernet MAC1 address: 6c:cf:39:00:3d:2f
--------EEPROM INFO--------

In:    serial@10000000
Out:   serial@10000000
Err:   serial@10000000
Model: StarFive VisionFive V2
Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
Card did not respond to voltage select! : -110
bootmode flash device 0
Card did not respond to voltage select! : -110
Hit any key to stop autoboot:  0 
Card did not respond to voltage select! : -110
Couldn't find partition mmc 0:3
Can't set block device
Importing environment from mmc0 ...
## Warning: Input data exceeds 1048576 bytes - truncated
## Info: input data size = 1048578 = 0x100002
385 bytes read in 5 ms (75.2 KiB/s)
## Warning: defaulting to text format
## Error: "boot2" not defined
47546 bytes read in 10 ms (4.5 MiB/s)
47546 bytes written in 38 ms (1.2 MiB/s)
Retrieving file: /boot/extlinux/extlinux.conf
798 bytes read in 8 ms (96.7 KiB/s)
U-Boot menu
1:      Debian GNU/Linux bookworm/sid 5.15.0-dirty
2:      Debian GNU/Linux bookworm/sid 5.15.0-starfive (rescue target)
Enter choice: 1:        Debian GNU/Linux bookworm/sid 5.15.0-dirty
Retrieving file: /initrd.img-5.15.0-dirty
9920941 bytes read in 424 ms (22.3 MiB/s)
Retrieving file: /vmlinuz-5.15.0-dirty
9489353 bytes read in 407 ms (22.2 MiB/s)
append: root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
Retrieving file: /dtbs/starfive/jh7110-visionfive-v2.dtb
48366 bytes read in 10 ms (4.6 MiB/s)
   Uncompressing Kernel Image
Moving Image from 0x44000000 to 0x40200000, end=41b6b000
## Flattened Device Tree blob at 48000000
   Booting using the fdt blob at 0x48000000
   Using Device Tree in place at 0000000048000000, end 000000004800eced

Starting kernel ...

clk u5_dw_i2c_clk_core already disabled
clk u5_dw_i2c_clk_apb already disabled
[    0.000000] Linux version 5.15.0-dirty (kim@kim-GL702ZC) (riscv64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #8 SMP Thu Apr 3
[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Machine model: StarFive VisionFive V2
[    0.000000] earlycon: uart0 at MMIO32 0x0000000010000000 (options '115200')
[    0.000000] printk: bootconsole [uart0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000080000000, size 512 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x00000000c010ffff]
[    0.000000]   node   0: [mem 0x00000000c0110000-0x00000000c01fffff]
[    0.000000]   node   0: [mem 0x00000000c0200000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x000000013fffffff]
[    0.000000] SBI specification v1.0 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10002
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI SRST extension detected
[    0.000000] SBI v0.2 HSM extension detected
[    0.000000] CPU with hartid=0 is not available
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv: base ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 18 pages/cpu s33896 r8192 d31640 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1033735
[    0.000000] Kernel command line: root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
[    0.000000] Unknown command line parameters: stmmaceth=chain_mode:1 selinux=0
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
[    0.000000] Memory: 3447020K/4192256K available (9857K kernel code, 4990K rwdata, 8192K rodata, 2197K init, 403K bss, 220948K reserved, 524288K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] rcu:     RCU debug extended QS entry/exit.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    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: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv-intc: unable to find hart id for /cpus/cpu@0/interrupt-controller
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: plic@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    0.000000] random: get_random_bytes called from start_kernel+0x4c4/0x6e6 with crng_init=0
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [1]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
[    0.000001] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
[    0.008990] clocksource: [email protected]: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.020312] clocksource: [email protected]: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.031633] clocksource: [email protected]: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.042955] clocksource: [email protected]: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.054487] Console: colour dummy device 80x25
[    0.060690] printk: console [tty0] enabled
[    0.065245] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=40000)
[    0.076467] pid_max: default: 32768 minimum: 301
[    0.081738] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.089979] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.100056] ASID allocator disabled
[    0.103996] rcu: Hierarchical SRCU implementation.
[    0.109449] EFI services will not be available.
[    0.114839] smp: Bringing up secondary CPUs ...
[    0.121474] smp: Brought up 1 node, 4 CPUs
[    0.127180] devtmpfs: initialized
[    0.138851] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.149717] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.170544] pinctrl core: initialized pinctrl subsystem
[    0.177201] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.184452] cpuidle: using governor menu
[    0.210938] platform soc:dsi-output: Fixing up cyclic dependency with 29400000.dc8200
[    0.220122] platform 295d0000.mipi: Fixing up cyclic dependency with soc:dsi-output
[    0.228975] platform 29590000.hdmi: Fixing up cyclic dependency with 29400000.dc8200
[    0.249613] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.256999] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.267560] vgaarb: loaded
[    0.270792] SCSI subsystem initialized
[    0.275280] usbcore: registered new interface driver usbfs
[    0.281356] usbcore: registered new interface driver hub
[    0.287314] usbcore: registered new device driver usb
[    0.293156] mc: Linux media interface: v0.10
[    0.297894] videodev: Linux video capture interface: v2.00
[    0.304131] Advanced Linux Sound Architecture Driver Initialized.
[    0.311230] Bluetooth: Core ver 2.22
[    0.315188] NET: Registered PF_BLUETOOTH protocol family
[    0.321035] Bluetooth: HCI device and connection manager initialized
[    0.328032] Bluetooth: HCI socket layer initialized
[    0.333413] Bluetooth: L2CAP socket layer initialized
[    0.338985] Bluetooth: SCO socket layer initialized
[    0.344670] clocksource: Switched to clocksource riscv_clocksource
[    0.358781] NET: Registered PF_INET protocol family
[    0.364779] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.376890] tcp_listen_portaddr_hash hash table entries: 2048 (order: 4, 81920 bytes, linear)
[    0.386416] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.395565] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.404871] TCP: Hash tables configured (established 32768 bind 32768)
[    0.412332] UDP hash table entries: 2048 (order: 5, 196608 bytes, linear)
[    0.420061] UDP-Lite hash table entries: 2048 (order: 5, 196608 bytes, linear)
[    0.428435] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.435342] RPC: Registered named UNIX socket transport module.
[    0.441866] RPC: Registered udp transport module.
[    0.447061] RPC: Registered tcp transport module.
[    0.452235] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.460031] PCI: CLS 0 bytes, default 64
[    0.465204] Initialise system trusted keyrings
[    0.470304] workingset: timestamp_bits=62 max_order=20 bucket_order=0
[    0.470449] Unpacking initramfs...
[    0.483631] NFS: Registering the id_resolver key type
[    0.489251] Key type id_resolver registered
[    0.493867] Key type id_legacy registered
[    0.498401] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.505806] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.514022] ntfs: driver 2.1.32 [Flags: R/W].
[    0.519126] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.526337] fuse: init (API version 7.34)
[    0.570724] NET: Registered PF_ALG protocol family
[    0.576059] Key type asymmetric registered
[    0.580580] Asymmetric key parser 'x509' registered
[    0.586090] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.594248] io scheduler mq-deadline registered
[    0.599280] io scheduler kyber registered
[    0.714876] clk-starfive-jh7110 13020000.clock-controller: starfive JH7110 clkgen init successfully.
[    0.726129] L2CACHE: DataError @ 0x00000000.080400E8
[    0.731679] L2CACHE: DataFail @ 0x00000000.0804005B
[    0.737189] L2CACHE: No. of Banks in the cache: 8
[    0.742388] L2CACHE: No. of ways per bank: 16
[    0.747220] L2CACHE: Sets per bank: 256
[    0.751461] L2CACHE: Bytes per cache block: 64
[    0.756390] L2CACHE: Index of the largest way enabled: 15
[    0.762679] jh7110-pmu 17030000.power-controller: registered 8 power domains
[    0.835026] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.845280] @@#########################@@
[    0.855673] @@ dev ptr:ffffffe0bfede400/1500/1
[    0.860854] PVR_K:  1: Read BVNC 36.50.54.182 from HW device registers
[    0.868174] PVR_K:  1: RGX Device registered BVNC 36.50.54.182 with 1 core in the system
[    1.302662] Freeing initrd memory: 9688K
[    1.307300] pvrsrvkm 18000000.gpu: Direct firmware load for rgx.fw.36.50.54.182 failed with error -2
[    1.317579] pvrsrvkm 18000000.gpu: Direct firmware load for rgx.fw.36.50p.54.182 failed with error -2
[    1.327894] pvrsrvkm 18000000.gpu: Direct firmware load for rgx.fw failed with error -2
[    1.336777] PVR_K:(Fatal):     1: All RGX Firmware image loads failed for 'rgx.fw.36.50.54.182' (PVRSRV_ERROR_NOT_FOUND) [1599]
[    1.349511] PVR_K:(Error):     1: RGXInit: InitFirmware failed (275) [1556]
[    1.357226] PVR_K:(Error):     1: RGXInit() failed (PVRSRV_ERROR_NOT_FOUND) in PVRSRVCommonDeviceInitialise() [2156]
[    1.368886] PVR_K:(Error):     1: PVRSRVDeviceFinalise() failed (PVRSRV_ERROR_NOT_INITIALISED) in PVRSRVCommonDeviceInitialise() [2170]
[    1.382385] [drm:pvr_drm_load] *ERROR* device (____ptrval____) initialisation failed (err=-19)
[    1.401879] loop: module loaded
[    1.407822] spi-nor spi0.0: gd25lq128d (16384 Kbytes)
[    1.430398] 3 fixed-partitions partitions found on MTD device 13010000.spi.0
[    1.438225] Creating 3 MTD partitions on "13010000.spi.0":
[    1.444294] 0x000000000000-0x000000040000 : "spl"
[    1.451329] 0x000000100000-0x000000400000 : "uboot"
[    1.458318] 0x000000f00000-0x000001000000 : "data"
[    1.466418] libphy: Fixed MDIO Bus: probed
[    1.472420] CAN device driver interface
[    1.477232] starfive-eth-plat 16030000.ethernet: force_sf_dma_mode is ignored if force_thresh_dma_mode is set.
[    1.488652] starfive-eth-plat 16030000.ethernet: User ID: 0x41, Synopsys ID: 0x52
[    1.496949] starfive-eth-plat 16030000.ethernet:     DWMAC4/5
[    1.503013] starfive-eth-plat 16030000.ethernet: DMA HW capability register supported
[    1.511670] starfive-eth-plat 16030000.ethernet: RX Checksum Offload Engine supported
[    1.520333] starfive-eth-plat 16030000.ethernet: Wake-Up On Lan supported
[    1.527914] starfive-eth-plat 16030000.ethernet: TSO supported
[    1.534358] starfive-eth-plat 16030000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.543606] starfive-eth-plat 16030000.ethernet: Enabled Flow TC (entries=1)
[    1.551406] starfive-eth-plat 16030000.ethernet: TSO feature enabled
[    1.558434] starfive-eth-plat 16030000.ethernet: Using 40 bits DMA width
[    1.818539] libphy: stmmac: probed
[    1.822321] YT8531 Gigabit Ethernet stmmac-0:00: attached PHY driver (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    1.833299] YT8531 Gigabit Ethernet stmmac-0:01: attached PHY driver (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    1.845532] starfive-eth-plat 16040000.ethernet: force_sf_dma_mode is ignored if force_thresh_dma_mode is set.
[    1.856970] starfive-eth-plat 16040000.ethernet: User ID: 0x41, Synopsys ID: 0x52
[    1.865265] starfive-eth-plat 16040000.ethernet:     DWMAC4/5
[    1.871324] starfive-eth-plat 16040000.ethernet: DMA HW capability register supported
[    1.879986] starfive-eth-plat 16040000.ethernet: RX Checksum Offload Engine supported
[    1.888644] starfive-eth-plat 16040000.ethernet: Wake-Up On Lan supported
[    1.896212] starfive-eth-plat 16040000.ethernet: TSO supported
[    1.902656] starfive-eth-plat 16040000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.911908] starfive-eth-plat 16040000.ethernet: Enabled Flow TC (entries=1)
[    1.919701] starfive-eth-plat 16040000.ethernet: TSO feature enabled
[    1.926730] starfive-eth-plat 16040000.ethernet: Using 40 bits DMA width
[    2.186412] libphy: stmmac: probed
[    2.190198] YT8531 Gigabit Ethernet stmmac-1:00: attached PHY driver (mii_bus:phy_addr=stmmac-1:00, irq=POLL)
[    2.201186] YT8531 Gigabit Ethernet stmmac-1:01: attached PHY driver (mii_bus:phy_addr=stmmac-1:01, irq=POLL)
[    2.213723] Intel(R) Wireless WiFi driver for Linux
[    2.221254] cdns3-starfive 10210000.usbdrd: usb mode 2 2.0 probe success
[    2.229490] usbcore: registered new interface driver uas
[    2.235431] usbcore: registered new interface driver usb-storage
[    2.255120] starfive-rtc 17040000.rtc: registered as rtc0
[    2.261104] starfive-rtc 17040000.rtc: setting system clock to 2001-01-01T00:00:00 UTC (978307200)
[    2.271176] i2c_dev: i2c /dev entries driver
[    2.276153] usbcore: registered new interface driver uvcvideo
[    2.283408] starfive-wdt 13070000.wdog: Heartbeat: timeout=15, count/2=180000000 (0aba9500)
[    2.293195] Bluetooth: HCI UART driver ver 2.3
[    2.298132] Bluetooth: HCI UART protocol H4 registered
[    2.304505] sdhci: Secure Digital Host Controller Interface driver
[    2.311375] sdhci: Copyright(c) Pierre Ossman
[    2.316232] Synopsys Designware Multimedia Card Interface Driver
[    2.323186] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.330245] jh7110-sec 16000000.crypto: Unable to request sec_m dma channel in DMA channel
[    2.339414] jh7110-sec 16000000.crypto: Cannot initial dma chan
[    2.346251] usbcore: registered new interface driver usbhid
[    2.352415] usbhid: USB HID core driver
[    2.356857] riscv-pmu-sbi: SBI PMU extension is available
[    2.362841] riscv-pmu-sbi: 16 firmware and 4 hardware counters
[    2.369302] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
[    2.380062] usbcore: registered new interface driver snd-usb-audio
[    2.390292] NET: Registered PF_PACKET protocol family
[    2.395919] can: controller area network core
[    2.400823] NET: Registered PF_CAN protocol family
[    2.406135] can: raw protocol
[    2.409412] can: broadcast manager protocol
[    2.414039] can: netlink gateway - max_hops=1
[    2.419196] Bluetooth: RFCOMM TTY layer initialized
[    2.424598] Bluetooth: RFCOMM socket layer initialized
[    2.430320] Bluetooth: RFCOMM ver 1.11
[    2.434473] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.440350] Bluetooth: BNEP filters: protocol multicast
[    2.446143] Bluetooth: BNEP socket layer initialized
[    2.451805] 9pnet: Installing 9P2000 support
[    2.456596] Key type dns_resolver registered
[    2.462112] Loading compiled-in X.509 certificates
[    2.505091] starfive_jh7110-pinctrl 13040000.gpio: SiFive GPIO chip registered 64 GPIOs
[    2.514751] starfive_jh7110-pinctrl 17020000.gpio: SiFive GPIO chip registered 4 GPIOs
[    2.523719] pl08xdmac 16008000.sec_dma: initialized 8 virtual memcpy channels
[    2.531636] pl08xdmac 16008000.sec_dma: initialized 16 virtual slave channels
[    2.541249] debugfs: Directory '16008000.sec_dma' with parent 'dmaengine' already present!
[    2.550447] pl08xdmac 16008000.sec_dma: DMA: PL080 rev0 at 0x16008000 irq 23
[    2.558501] ssp-pl022 10060000.spi: ARM PL022 driver for StarFive SoC platform, device ID: 0x00041022
[    2.568721] ssp-pl022 10060000.spi: mapped registers from 0x0000000010060000 to (____ptrval____)
[    2.578843] ssp-pl022 10060000.spi: Requested frequency: 10000000 Hz is unsupported,select by default 8250000 Hz
[    2.590491] ssp-pl022 10060000.spi: will use autosuspend for runtime pm, delay 100ms
[    2.600423] i2c 2-0045: Fixing up cyclic dependency with 295d0000.mipi
[    2.607930] seeed_panel 2-0045: Unknown Atmel firmware revision: 0x00
[    2.615394] i2c 2-0019: Fixing up cyclic dependency with 295d0000.mipi
[    2.624325] at24 5-0050: supply vcc not found, using dummy regulator
[    2.632206] at24 5-0050: 512 byte 24c04 EEPROM, writable, 16 bytes/write
[    2.641537] axp15060-regulator 5-0036: Register mipi_0p9 done! vol range:900 ~ 900 mV
[    2.651699] axp15060-regulator 5-0036: Register hdmi_1p8 done! vol range:1800 ~ 1800 mV
[    2.662065] axp15060-regulator 5-0036: Register hdmi_0p9 done! vol range:900 ~ 900 mV
[    2.672261] axp15060-regulator 5-0036: Register cpu_vdd done! vol range:500 ~ 1540 mV
[    2.681728] i2c 6-0010: Fixing up cyclic dependency with 19800000.vin_sysctl
[    2.689941] imx219 6-0010: supply VANA not found, using dummy regulator
[    2.697390] imx219 6-0010: supply VDIG not found, using dummy regulator
[    2.704767] imx219 6-0010: supply VDDL not found, using dummy regulator
[    2.719557] imx219 6-0010: failed to read chip id 219
[    2.725366] imx219: probe of 6-0010 failed with error -5
[    2.733852] pcie_plda 2b000000.pcie: host bridge /soc/pcie@2B000000 ranges:
[    2.741643] pcie_plda 2b000000.pcie:      MEM 0x0030000000..0x0037ffffff -> 0x0030000000
[    2.750620] pcie_plda 2b000000.pcie:      MEM 0x0900000000..0x093fffffff -> 0x0900000000
[    2.759620] ATR entry: 0x0940000000 -> 0x0000000000 [0x0010000000] (param: 0x000001)
[    2.768213] ATR entry: 0x0030000000 -> 0x0030000000 [0x0008000000] (param: 0x000000)
[    2.776791] ATR entry: 0x0900000000 -> 0x0900000000 [0x0040000000] (param: 0x000000)
[    3.134766] pcie_plda 2b000000.pcie: Port link up.
[    3.140231] pcie_plda 2b000000.pcie: PCI host bridge to bus 0000:00
[    3.147194] pci_bus 0000:00: root bus resource [bus 00-ff]
[    3.153262] pci_bus 0000:00: root bus resource [mem 0x30000000-0x37ffffff]
[    3.160882] pci_bus 0000:00: root bus resource [mem 0x900000000-0x93fffffff pref]
[    3.169197] pci 0000:00:00.0: [1556:1111] type 01 class 0x060400
[    3.175860] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0xffffffff 64bit pref]
[    3.183902] pci 0000:00:00.0: supports D1 D2
[    3.188636] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    3.199644] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.208666] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    3.215341] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    3.222919] pci 0000:01:00.0: PME# supported from D0 D3cold
[    3.232587] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.239942] pci 0000:00:00.0: BAR 0: no space for [mem size 0x100000000 64bit pref]
[    3.248435] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x100000000 64bit pref]
[    3.257309] pci 0000:00:00.0: BAR 8: assigned [mem 0x30000000-0x300fffff]
[    3.264829] pci 0000:01:00.0: BAR 0: assigned [mem 0x30000000-0x30000fff 64bit]
[    3.272931] pci 0000:00:00.0: PCI bridge to [bus 01]
[    3.278430] pci 0000:00:00.0:   bridge window [mem 0x30000000-0x300fffff]
[    3.286048] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    3.292304] pci 0000:01:00.0: enabling device (0000 -> 0002)
[    3.298616] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x9f0 took 12283 usecs
[    3.307020] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    3.312816] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    3.321408] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000040000000890
[    3.331587] pcie_plda 2b000000.pcie: msi#0 address_hi 0x0 address_lo 0x190
[    3.339636] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    3.345455] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    3.353635] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    3.361394] hub 1-0:1.0: USB hub found
[    3.365592] hub 1-0:1.0: 1 port detected
[    3.370988] hub 2-0:1.0: USB hub found
[    3.375186] hub 2-0:1.0: 4 ports detected
[    3.382500] pcie_plda 2c000000.pcie: host bridge /soc/pcie@2C000000 ranges:
[    3.390268] pcie_plda 2c000000.pcie:      MEM 0x0038000000..0x003fffffff -> 0x0038000000
[    3.399242] pcie_plda 2c000000.pcie:      MEM 0x0980000000..0x09bfffffff -> 0x0980000000
[    3.408246] ATR entry: 0x09c0000000 -> 0x0000000000 [0x0010000000] (param: 0x000001)
[    3.416831] ATR entry: 0x0038000000 -> 0x0038000000 [0x0008000000] (param: 0x000000)
[    3.425413] ATR entry: 0x0980000000 -> 0x0980000000 [0x0040000000] (param: 0x000000)
[    3.584714] usb usb2-port2: over-current condition
[    3.684744] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    3.744747] usb usb2-port4: over-current condition
[    3.854943] pcie_plda 2c000000.pcie: Port link down, exit.
[    3.874937] clk-starfive-jh7110-vout 295c0000.clock-controller: starfive JH7110 clk_vout init successfully.
[    3.895979] hub 1-1:1.0: USB hub found
[    3.897599] clk-starfive-jh7110-isp 19810000.clock-controller: starfive JH7110 clk_isp init successfully.
[    3.900311] hub 1-1:1.0: 4 ports detected
[    3.911375] dw_axi_dmac_platform 16050000.dma-controller: DesignWare AXI DMA Controller, 4 channels
[    3.926179] printk: console [ttyS0] disabled
[    3.951147] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 17, base_baud = 1500000) is a 16550A
[    3.961019] printk: console [ttyS0] enabled
[    3.961019] printk: console [ttyS0] enabled
[    3.969836] printk: bootconsole [uart0] disabled
[    3.969836] printk: bootconsole [uart0] disabled
[    3.980119] jh7110-vin 19800000.vin_sysctl: stfcamss probe enter!
[    3.988180] jh7110-vin 19800000.vin_sysctl: stfcamss probe success!
[    3.997746] dwmmc_starfive 16010000.sdio0: IDMAC supports 32-bit address mode.
[    4.004708] dwmmc_starfive 16020000.sdio1: IDMAC supports 32-bit address mode.
[    4.005079] dwmmc_starfive 16010000.sdio0: Using internal DMA controller.
[    4.012308] dwmmc_starfive 16020000.sdio1: Using internal DMA controller.
[    4.019100] dwmmc_starfive 16010000.sdio0: Version ID is 290a
[    4.019152] dwmmc_starfive 16010000.sdio0: DW MMC controller at irq 29,32 bit host data width,32 deep fifo
[    4.025933] dwmmc_starfive 16020000.sdio1: Version ID is 290a
[    4.031839] mmc_host mmc0: card is non-removable.
[    4.041419] dwmmc_starfive 16020000.sdio1: DW MMC controller at irq 30,32 bit host data width,32 deep fifo
[    4.061636] mmc_host mmc1: card is polling.
[    4.065910] jh7110-sec 16000000.crypto: will run requests pump with realtime priority
[    4.075538] jh7110-sec 16000000.crypto: Initialized
[    4.081071] starfive-i2s 120b0000.i2stx_4ch0:  designware: play supported
[    4.087875] starfive-i2s 120b0000.i2stx_4ch0: designware: i2s master mode supported
[    4.095662] sf-mipi-dphy-tx 295e0000.mipi-dphy: sf_dphy_probe begin
[    4.101938] sf-mipi-dphy-tx 295e0000.mipi-dphy: ===> sf_dphy_probe enter, 445 
[    4.109247] sf-mipi-dphy-tx 295e0000.mipi-dphy: control ECO
[    4.114842] sf-mipi-dphy-tx 295e0000.mipi-dphy: supply mipi_1p8 not found, using dummy regulator
[    4.123817] sf-mipi-dphy-tx 295e0000.mipi-dphy: sf_dphy_probe end
[    4.130029] cdns-dsi 295d0000.mipi: dsi_sys_clk = 297000000
[    4.135776] cdns-dsi 295d0000.mipi: starfive dsi bind end
[    4.142431] of_cfs_init
[    4.144942] of_cfs_init: OK
[    4.148054] starfive-pwmdac 100b0000.pwmdac: clk_apb0 = 49500000, clk_pwmdac_apb = 49500000, clk_pwmdac_core = 4068493
[    4.159461] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.264709] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    4.284711] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    4.288136] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.305548] starfive soc:display-subsystem: bound 29400000.dc8200 (ops 0xffffffff80e74fd8)
[    4.313873] innohdmi-starfive 29590000.hdmi: inno hdmi bind begin
[    4.321271] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    4.329977] cfg80211: failed to load regulatory.db
[    4.335685] innohdmi-starfive 29590000.hdmi: [drm:inno_hdmi_bind] registered Inno HDMI I2C bus driver success
[    4.345772] innohdmi-starfive 29590000.hdmi: HDMI&AUDIO register done.
[    4.352343] innohdmi-starfive 29590000.hdmi: inno hdmi bind end
[    4.358282] starfive soc:display-subsystem: bound 29590000.hdmi (ops 0xffffffff80e75d70)
[    4.366388] vs-simple-encoder soc:dsi-output: encoder_bind begin
[    4.372415] no panel, -517
[    4.375124] vs-simple-encoder soc:dsi-output: encoder_bind error
[    4.381133] starfive soc:display-subsystem: bound soc:dsi-output (ops 0xffffffff80e759b8)
[    4.389738] [drm] Initialized starfive 1.0.0 20191101 for soc:display-subsystem on minor 0
[    4.466631] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate rate 148500000 tmdsclk 148500000
[    4.497066] random: fast init done
[    4.535412] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 50000000Hz, actual 49500000HZ div = 2)
[    4.535460] mmc1: new high speed SDXC card at address 0001
[    4.545506] mmcblk1: mmc1:0001 EC2QT 59.6 GiB 
[    4.552758]  mmcblk1: p1 p2 p3
[    4.566695] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->pixclock = 148500000
[    4.566702] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->tmdsclock = 148500000
[    4.566707] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->prediv = 1
[    4.566711] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->fbdiv = 99
[    4.566715] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->tmds_div_a = 1
[    4.566719] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->tmds_div_b = 1
[    4.566724] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->tmds_div_c = 1
[    4.566728] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->pclk_div_a = 1
[    4.566732] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->pclk_div_b = 2
1;-1fdone.
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.38
[/sbin/fsck.ext4 (1) -- /dev/mmcblk1p3] fsck.ext4 -a -C0 /dev/mmcblk1p3 
root: clean, 310537/3884688 files, 5190602/15600379 blocks
done.
[    8.390644] EXT4-fs (mmcblk1p3): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[    9.187687] systemd[1]: System time before build time, advancing clock.
[    9.305526] systemd[1]: systemd 251.2-5 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FID)
[    9.344899] systemd[1]: Detected architecture riscv64.

Welcome to D[    9.354319] systemd[1]: Hostname set to <starfive>.
ebian GNU/Linux bookworm/sid!

[    9.965924] systemd[1]: Queued start job for default target Graphical Interface.
[    9.977145] systemd[1]: Created slice Slice /system/getty.
[  OK      9.983637] systemd[1]: Created slice Slice /system/modprobe.
0m] Created slic[    9.991011] systemd[1]: Created slice Slice /system/serial-getty.
e Slice[    9.998421] systemd[1]: Created slice Slice /system/systemd-fsck.
 /system/getty   10.005644] systemd[1]: Created slice User and Session Slice.
0m.
[  [   10.012644] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
OK  ] Create[   10.021580] systemd[1]: Arbitrary Executable File Formats File System Automount Point was skipped because of a failed condition check (ConditionPathExists=/proc/.
d slice    10.039176] systemd[1]: Reached target Local Integrity Protected Volumes.
mSlice /system/m[   10.047241] systemd[1]: Reached target Remote File Systems.
odprobe.
[[   10.053992] systemd[1]: Reached target Slice Units.
  OK     10.060339] systemd[1]: Reached target Swaps.
m] Created slice[   10.065968] systemd[1]: Reached target Local Verity Protected Volumes.
 Slice [   10.074345] systemd[1]: Listening on Syslog Socket.
/system/serial-g[   10.080318] systemd[1]: Listening on fsck to fsckd communication Socket.
etty.
[   10.088365] systemd[1]: Listening on initctl Compatibility Named Pipe.
;32m  OK  ] Created slice Slice /system/systemd-fsck.
[   10.102454] systemd[1]: Journal Audit Socket was skipped because of a failed condition check (ConditionSecurity=audit).
m  OK  ] Cre[   10.114243] systemd[1]: Listening on Journal Socket (/dev/log).
ated slice    10.121435] systemd[1]: Listening on Journal Socket.
;39mUser and Ses[   10.127848] systemd[1]: Listening on udev Control Socket.
[   10.134394] systemd[1]: Listening on udev Kernel Socket.

[  OK  ] Started    10.142940] systemd[1]: Mounting Huge Pages File System...
0;1;39mForward Password R…uest[   10.150997] systemd[1]: Mounting POSIX Message Queue File System...
[   10.160060] systemd[1]: Mounting Kernel Debug File System...

[  OK    10.166899] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
[0m] Reached tar[   10.181058] systemd[1]: Create List of Static Device Nodes was skipped because of a failed condition check (ConditionFileNotEmpty=/lib/modules/5.15.0-dirty/m.
get Local Integrity Protected Volumes   10.199880] systemd[1]: Starting Load Kernel Module configfs...
0m.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Reached target Slice Units.
[  OK  ] Reached target Swaps   10.217416] systemd[1]: Starting Load Kernel Module drm...
m.
[  OK  ] Reached target Local Verity Protected Volumes.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Listen[   10.250761] systemd[1]: Starting Load Kernel Module fuse...
ing on fsck to fsckd communication Socket.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Liste[   10.275646] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathExists=!/run/initramfs/fsck-root).
ning on Journal Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on    10.280323] systemd[1]: Starting Journal Service...
;1;39mudev Kernel Socket.
         Mounting Huge Pages File System...
         Mounting POSIX Message Queue File System...
         Mounting Kernel Debug File System...
         Starting Load Kernel Module config[   10.337965] systemd[1]: Starting Load Kernel Modules...
fs...
         Starting Load Kernel Module drm...
         Starting Load Kernel Module fuse...
         Starting Journal Service...
         Starting Load Kernel Modules...
[   10.359289] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[   10.381133] systemd[1]: Repartition Root Disk was skipped because all trigger condition checks failed.
[   10.383930] systemd[1]: Starting Coldplug All udev Devices...
[   10.414772] EXT4-fs (mmcblk1p3): re-mounted. Opts: errors=remount-ro. Quota mode: disabled.
         Starting Coldplug All udev Devices...
[   10.444564] systemd[1]: Mounted Huge Pages File System.
[  OK  ] Mounted Huge Pages File System.
[   10.463626] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[   10.491014] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Finished Load Kernel Module configfs.
[  OK  ] Finished Load Kernel Module drm.
[  OK  ] Finished Load Kernel Module fuse.
[  OK  ] Finished Load Kernel Modules.
[  OK  ] Finished Remount Root and Kernel File Systems.
         Mounting FUSE Control File System...
         Mounting Kernel Configuration File System...
         Starting Flush Journal to Persistent Storage...
         Starting Load/Save Random Seed...
         Starting Apply Kernel Variables...
         Starting Create System Users...
[  OK  ] Mounted FUSE Control File System.
[   10.663580] systemd-journald[259]: Received client request to flush runtime journal.
[  OK  ] Mounted Kernel Configuration File System.
[   10.710222] systemd-journald[259]: File /var/log/journal/bd887d4196a5463aa4c948eb57286362/system.journal corrupted or uncleanly shut down, renaming and replacing.
[  OK  ] Finished Apply Kernel Variables.
[  OK  ] Finished Create System Users.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Preparation for Local File Systems.
         Starting Rule-based Manage…for Device Events and Files...
[  OK  ] Finished Coldplug All udev Devices.
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Finished Helper to synchronize boot up for ifupdown.
[  OK  ] Finished Flush Journal to Persistent Storage.
[  OK  ] Started Rule-based Manager for Device Events and Files.
         Starting Show Plymouth Boot Screen...
[  OK  ] Found device /dev/mmcblk1p2.
[  OK  ] Started Show Plymouth Boot Screen.
[  OK  ] Started Forward Password R…s to Plymouth Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Reached target Path Units.
         Starting File System Check on /dev/mmcblk1p2...
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Reached target Hardware activated USB gadget.
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Found device /dev/hvc0.
[  OK  ] Finished File System Check on /dev/mmcblk1p2.
         Mounting /boot...
[  OK  ] Mounted /boot.
[  OK  ] Reached target Local File Systems.
         Starting Raise network interfaces...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Tell Plymouth To Write Out Runtime Data.
[   12.983040] random: alsactl: uninitialized urandom read (4 bytes read)
[  OK  ] Finished Create Volatile Files and Directories.
[  OK  ] Finished Raise network interfaces.
[   13.418663] random: alsactl: uninitialized urandom read (4 bytes read)
         Starting Network Time Synchronization...
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
[   14.006318] systemd-journald[259]: Oldest entry in /var/log/journal/bd887d4196a5463aa4c948eb57286362/system.journal is older than the configured file retention duration (1month), suggesting rotation.
[   14.034874] systemd-journald[259]: /var/log/journal/bd887d4196a5463aa4c948eb57286362/system.journal: Journal header limits reached or header out-of-date, rotating.
[  OK  ] Started Network Time Synchronizatio[   14.053733] random: crng init done
n.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target System Time Set.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Daily dpkg database backup timer.
[  OK  ] Started Periodic ext4 Onli…ata Check for All Filesystems.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Daily man-db regeneration.
[  OK  ] Reached target Timer Units.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
         Starting Save/Restore Sound Card State...
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started Regular background program processing daemon.
         Starting D-Bus System Message Bus...
         Starting Remove Stale Onli…t4 Metadata Check Snapshots...
         Starting Authorization Manager...
         Starting System Logging Service...
         Starting User Login Management...
         Starting Disk Manager...
[  OK  ] Finished Load/Save Random Seed.
[  OK  ] Finished Save/Restore Sound Card State.
[  OK  ] Reached target Sound Card.
[  OK  ] Finished Remove Stale Onli…ext4 Metadata Check Snapshots.                                                                                                                                         [  OK  ] Started System Logging Service.inicom 2.8 | VT102 | Offline | ttyUSB0                                                                                                                             [  OK  ] Started D-Bus System Message Bus.
         Starting Network Manager...
         Starting WPA supplicant...
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started User Login Management.
[  OK  ] Started Authorization Manager.
         Starting Modem Manager...
[  OK  ] Started WPA supplicant.
[  OK  ] Started Disk Manager.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
         Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
[  OK  ] Finished Permit User Sessions.
         Starting Light Display Manager...
         Starting Hold until boot process finishes up...
         Starting Hostname Service...
[  OK  ] Started Modem Manager.
[   17.331833] starfive-eth-plat 16030000.ethernet eth0: PHY [stmmac-0:00] driver [YT8531 Gigabit Ethernet] (irq=POLL)
[   17.350052] starfive-eth-plat 16030000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   17.358533] dwmac4: Master AXI performs fixed burst length
[   17.364155] starfive-eth-plat 16030000.ethernet eth0: No Safety Features support found
[   17.372311] starfive-eth-plat 16030000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   17.397327] starfive-eth-plat 16030000.ethernet eth0: configuring for phy/rgmii-id link mode
[   17.427375] starfive-eth-plat 16040000.ethernet eth1: PHY [stmmac-1:00] driver [YT8531 Gigabit Ethernet] (irq=POLL)
[   17.427605] starfive-eth-plat 16040000.ethernet eth1: Register MEM_TYPE_PAGE_POOL RxQ-0
[   17.434712] dwmac4: Master AXI performs fixed burst length
[   17.434731] starfive-eth-plat 16040000.ethernet eth1: No Safety Features support found
[   17.434747] starfive-eth-plat 16040000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[   17.466364] starfive-eth-plat 16040000.ethernet eth1: configuring for phy/rgmii-id link mode

Debian GNU/Linux bookworm/sid starfive hvc0

starfive login: 
Debian GNU/Linux bookworm/sid starfive ttyS0

starfive login: [   20.566949] starfive-eth-plat 16030000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off

v6.3.rc

U-Boot SPL 2021.10 (Feb 12 2023 - 18:15:33 +0800)
DDR version: dc2e84f0.
Trying to boot from SPI

OpenSBI v1.2
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name             : StarFive VisionFive V2
Platform Features         : medeleg
Platform HART Count       : 5
Platform IPI Device       : aclint-mswi
Platform Timer Device     : aclint-mtimer @ 4000000Hz
Platform Console Device   : uart8250
Platform HSM Device       : jh7110-hsm
Platform PMU Device       : ---
Platform Reboot Device    : pm-reset
Platform Shutdown Device  : pm-reset
Firmware Base             : 0x40000000
Firmware Size             : 292 KB
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 1
Domain0 HARTs             : 0*,1*,2*,3*,4*
Domain0 Region00          : 0x0000000002000000-0x000000000200ffff (I)
Domain0 Region01          : 0x0000000040000000-0x000000004007ffff ()
Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address      : 0x0000000040200000
Domain0 Next Arg1         : 0x0000000042200000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes

Boot HART ID              : 1
Boot HART Domain          : root
Boot HART Priv Version    : v1.11
Boot HART Base ISA        : rv64imafdcbx
Boot HART ISA Extensions  : none
Boot HART PMP Count       : 8
Boot HART PMP Granularity : 4096
Boot HART PMP Address Bits: 34
Boot HART MHPM Count      : 2
Boot HART MIDELEG         : 0x0000000000000222
Boot HART MEDELEG         : 0x000000000000b109


U-Boot 2021.10 (Feb 12 2023 - 18:15:33 +0800), Build: jenkins-VF2_515_Branch_SDK_Release-24

CPU:   rv64imacu
Model: StarFive VisionFive V2
DRAM:  8 GiB
MMC:   sdio0@16010000: 0, sdio1@16020000: 1
Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

StarFive EEPROM format v2

--------EEPROM INFO--------
Vendor : StarFive Technology Co., Ltd.
Product full SN: VF7110B1-2253-D008E000-00003305
data version: 0x2
PCB revision: 0xb2
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:3d:2e
Ethernet MAC1 address: 6c:cf:39:00:3d:2f
--------EEPROM INFO--------

In:    serial@10000000
Out:   serial@10000000
Err:   serial@10000000
Model: StarFive VisionFive V2
Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
Card did not respond to voltage select! : -110
bootmode flash device 0
Card did not respond to voltage select! : -110
Hit any key to stop autoboot:  0 
Card did not respond to voltage select! : -110
Couldn't find partition mmc 0:3
Can't set block device
Importing environment from mmc0 ...
## Warning: Input data exceeds 1048576 bytes - truncated
## Info: input data size = 1048578 = 0x100002
399 bytes read in 6 ms (64.5 KiB/s)
## Warning: defaulting to text format
## Error: "boot2" not defined
399 bytes read in 8 ms (47.9 KiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
399 bytes written in 12 ms (32.2 KiB/s)
Retrieving file: /boot/extlinux/extlinux.conf
1159 bytes read in 8 ms (140.6 KiB/s)
U-Boot menu
1:      Debian GNU/Linux bookworm/sid 6.3.0-rc3-gcea31b2516ed-dirty
2:      Debian GNU/Linux bookworm/sid 5.15.0-dirty
Enter choice: 1:        Debian GNU/Linux bookworm/sid 6.3.0-rc3-gcea31b2516ed-dirty
Retrieving file: /initrd.img-6.3.0-rc3-gcea31b2516ed-dirty
9945448 bytes read in 423 ms (22.4 MiB/s)
Retrieving file: /vmlinuz-6.3.0-rc3-gcea31b2516ed-dirty
9447487 bytes read in 402 ms (22.4 MiB/s)
append: root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
Retrieving file: /dtbs-6.3.0-rc3-gcea31b2516ed-dirty/starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
21438 bytes read in 9 ms (2.3 MiB/s)
   Uncompressing Kernel Image
Moving Image from 0x44000000 to 0x40200000, end=41b69000
## Flattened Device Tree blob at 48000000
   Booting using the fdt blob at 0x48000000
   Using Device Tree in place at 0000000048000000, end 00000000480083bd

Starting kernel ...

clk u5_dw_i2c_clk_core already disabled
clk u5_dw_i2c_clk_apb already disabled
[    0.000000] Linux version 6.3.0-rc3-gcea31b2516ed-dirty (kim@kim-GL702ZC) (riscv64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) 3
[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Machine model: StarFive VisionFive 2 v1.3B
[    0.000000] earlycon: uart0 at MMIO32 0x0000000010000000 (options '115200n8')
[    0.000000] printk: bootconsole [uart0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 16 MiB at 0x00000000ff000000
[    0.000000] OF: reserved mem: 0x0000000040000000..0x000000004007ffff (512 KiB) nomap non-reusable opensbi@40000000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x000000013fffffff]
[    0.000000] SBI specification v1.0 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10002
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI SRST extension detected
[    0.000000] SBI HSM extension detected
[    0.000000] CPU with hartid=0 is not available
[    0.000000] CPU with hartid=0 is not available
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv: base ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 19 pages/cpu s39224 r8192 d30408 u77824
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1033735
[    0.000000] Kernel command line: root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
[    0.000000] Unknown kernel command line parameters "selinux=0", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x00000000fb000000-0x00000000ff000000] (64MB)
[    0.000000] Memory: 4009264K/4192256K available (9736K kernel code, 4940K rwdata, 8192K rodata, 2208K init, 435K bss, 166608K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] rcu:     RCU debug extended QS entry/exit.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    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: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv-intc: unable to find hart id for /cpus/cpu@0/interrupt-controller
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: interrupt-controller@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] riscv-timer: riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [1]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
[    0.000001] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
[    0.009002] Console: colour dummy device 80x25
[    0.013880] printk: console [tty0] enabled
[    0.018959] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=40000)
[    0.030147] pid_max: default: 32768 minimum: 301
[    0.035436] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.043661] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.053179] CPU node for /cpus/cpu@0 exist but the possible cpu range is :0-3
[    0.062081] cblist_init_generic: Setting adjustable number of callback queues.
[    0.070026] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.076841] riscv: ELF compat mode unsupported
[    0.076850] ASID allocator disabled (0 bits)
[    0.086536] rcu: Hierarchical SRCU implementation.
[    0.091810] rcu:     Max phase no-delay instances is 1000.
[    0.097805] EFI services will not be available.
[    0.103274] smp: Bringing up secondary CPUs ...
[    0.110366] smp: Brought up 1 node, 4 CPUs
[    0.116114] devtmpfs: initialized
[    0.124075] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.134911] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.142989] pinctrl core: initialized pinctrl subsystem
[    0.149962] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.156959] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.164797] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.173917] cpuidle: using governor menu
[    0.181432] platform soc: Fixed dependency cycle(s) with /soc/interrupt-controller@c000000
[    0.198080] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.205568] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.212453] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.219921] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.227636] SCSI subsystem initialized
[    0.232087] usbcore: registered new interface driver usbfs
[    0.238144] usbcore: registered new interface driver hub
[    0.244024] usbcore: registered new device driver usb
[    0.249854] mc: Linux media interface: v0.10
[    0.254609] videodev: Linux video capture interface: v2.00
[    0.260838] Advanced Linux Sound Architecture Driver Initialized.
[    0.268062] Bluetooth: Core ver 2.22
[    0.272020] NET: Registered PF_BLUETOOTH protocol family
[    0.277867] Bluetooth: HCI device and connection manager initialized
[    0.284851] Bluetooth: HCI socket layer initialized
[    0.290222] Bluetooth: L2CAP socket layer initialized
[    0.295782] Bluetooth: SCO socket layer initialized
[    0.301499] vgaarb: loaded
[    0.304763] clocksource: Switched to clocksource riscv_clocksource
[    0.320928] NET: Registered PF_INET protocol family
[    0.327022] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.341071] tcp_listen_portaddr_hash hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.350554] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.359093] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.368229] TCP bind hash table entries: 32768 (order: 9, 2097152 bytes, linear)
[    0.379765] TCP: Hash tables configured (established 32768 bind 32768)
[    0.387215] UDP hash table entries: 2048 (order: 5, 196608 bytes, linear)
[    0.394971] UDP-Lite hash table entries: 2048 (order: 5, 196608 bytes, linear)
[    0.403291] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.410057] RPC: Registered named UNIX socket transport module.
[    0.416588] RPC: Registered udp transport module.
[    0.421754] RPC: Registered tcp transport module.
[    0.426933] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.435283] PCI: CLS 0 bytes, default 64
[    0.440456] Initialise system trusted keyrings
[    0.445621] workingset: timestamp_bits=62 max_order=20 bucket_order=0
[    0.445783] Unpacking initramfs...
[    0.456803] NFS: Registering the id_resolver key type
[    0.462409] Key type id_resolver registered
[    0.467033] Key type id_legacy registered
[    0.471485] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.478876] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.487065] ntfs: driver 2.1.32 [Flags: R/W].
[    0.491913] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.498975] fuse: init (API version 7.38)
[    0.542006] NET: Registered PF_ALG protocol family
[    0.547336] Key type asymmetric registered
[    0.551845] Asymmetric key parser 'x509' registered
[    0.557319] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.565472] io scheduler mq-deadline registered
[    0.570468] io scheduler kyber registered
[    0.641094] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.658541] loop: module loaded
[    0.665006] CAN device driver interface
[    0.669598] Intel(R) Wireless WiFi driver for Linux
[    0.675648] usbcore: registered new interface driver uas
[    0.681533] usbcore: registered new interface driver usb-storage
[    0.688364] i2c_dev: i2c /dev entries driver
[    0.693224] usbcore: registered new interface driver uvcvideo
[    0.700952] Bluetooth: HCI UART driver ver 2.3
[    0.705863] Bluetooth: HCI UART protocol H4 registered
[    0.711973] sdhci: Secure Digital Host Controller Interface driver
[    0.718797] sdhci: Copyright(c) Pierre Ossman
[    0.723646] Synopsys Designware Multimedia Card Interface Driver
[    0.730511] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.731019] dwmmc_starfive 16010000.mmc: IDMAC supports 32-bit address mode.
[    0.731224] dwmmc_starfive 16020000.mmc: IDMAC supports 32-bit address mode.
[    0.731267] dwmmc_starfive 16020000.mmc: Using internal DMA controller.
[    0.731278] dwmmc_starfive 16020000.mmc: Version ID is 290a
[    0.731323] dwmmc_starfive 16020000.mmc: DW MMC controller at irq 3,32 bit host data width,32 deep fifo
[    0.731424] mmc_host mmc0: card is polling.
[    0.737287] clocksource: 13050000.timer.ch0: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.744507] dwmmc_starfive 16010000.mmc: Using internal DMA controller.
[    0.752359] clocksource: 13050000.timer.ch1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.759507] dwmmc_starfive 16010000.mmc: Version ID is 290a
[    0.765752] clocksource: 13050000.timer.ch2: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.775975] dwmmc_starfive 16010000.mmc: DW MMC controller at irq 2,32 bit host data width,32 deep fifo
[    0.780655] clocksource: 13050000.timer.ch3: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.791899] mmc_host mmc1: card is non-removable.
[    0.799349] usbcore: registered new interface driver usbhid
[    0.860844] usbhid: USB HID core driver
[    0.865361] riscv-pmu-sbi: SBI PMU extension is available
[    0.871330] riscv-pmu-sbi: 16 firmware and 4 hardware counters
[    0.877768] riscv-pmu-sbi: SSCOFPMF: 0, mvendorid: 0x00000489, marchid: 0x00000007, mimpid: 0x04210427
[    0.888757] usbcore: registered new interface driver snd-usb-audio
[    0.951093] NET: Registered PF_PACKET protocol family
[    0.954832] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    0.956668] can: controller area network core
[    0.972149] NET: Registered PF_CAN protocol family
[    0.977454] can: raw protocol
[    0.980725] can: broadcast manager protocol
[    0.985360] can: netlink gateway - max_hops=1
[    0.990436] Bluetooth: RFCOMM TTY layer initialized
[    0.995851] Bluetooth: RFCOMM socket layer initialized
[    1.001522] Bluetooth: RFCOMM ver 1.11
[    1.005678] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.011522] Bluetooth: BNEP filters: protocol multicast
[    1.017295] Bluetooth: BNEP socket layer initialized
[    1.022871] 9pnet: Installing 9P2000 support
[    1.024812] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    1.027696] Key type dns_resolver registered
[    1.058226] Loading compiled-in X.509 certificates
[    1.088442] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.098599] starfive-jh7110-sys-pinctrl 13040000.pinctrl: StarFive GPIO chip registered 64 GPIOs
[    1.114410] printk: console [ttyS0] disabled
[    1.139388] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 12, base_baud = 1500000) is a 16550A
[    1.149237] printk: console [ttyS0] enabled
[    1.149237] printk: console [ttyS0] enabled
[    1.158040] printk: bootconsole [uart0] disabled
[    1.158040] printk: bootconsole [uart0] disabled
[    1.170755] starfive-dphy-rx 19820000.phy: supply mipi_0p9 not found, using dummy regulator
[    1.180876] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.217824] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 50000000Hz, actual 49500000HZ div = 2)
[    1.227781] mmc0: new high speed SDXC card at address 0001
[    1.234440] mmcblk0: mmc0:0001 EC2QT 59.6 GiB 
[    1.246832]  mmcblk0: p1 p2 p3
[    1.484811] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 300000Hz, actual 300000HZ div = 330)
[    1.512665] Freeing initrd memory: 9712K
[    1.540195] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.546232] ALSA device list:
[    1.549212]   No soundcards found.
[    1.555404] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    1.556679] Freeing unused kernel image (initmem) memory: 2208K
[    1.654813] Run /init as init process
Loading, please wait...
Starting version 251.2-5
[    1.934809] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 200000Hz, actual 200000HZ div = 495)
[    2.252323] dw_axi_dmac_platform 16050000.dma-controller: DesignWare AXI DMA Controller, 4 channels
[    2.263357] random: crng init done
[    2.335664] starfive-dwmac 16040000.ethernet: User ID: 0x41, Synopsys ID: 0x52
[    2.337850] cdns3-starfive soc:usb@10100000: usb mode peripheral 2.0 probe success
[    2.342905] starfive-dwmac 16040000.ethernet:        DWMAC4/5
1;-1fdone.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/mmcblk1p3 does not exist.  Dropping to a shell!


BusyBox v1.35.0 (Debian 1:1.35.0-1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

@paranlee
Copy link
Author

v6.3 Linux kernel 에서 다음과 같은 오류를 확인할 수 있다.

[    1.307300] pvrsrvkm 18000000.gpu: Direct firmware load for rgx.fw.36.50.54.182 failed with error -2
[    1.317579] pvrsrvkm 18000000.gpu: Direct firmware load for rgx.fw.36.50p.54.182 failed with error -2
[    1.327894] pvrsrvkm 18000000.gpu: Direct firmware load for rgx.fw failed with error -2
[    1.336777] PVR_K:(Fatal):     1: All RGX Firmware image loads failed for 'rgx.fw.36.50.54.182' (PVRSRV_ERROR_NOT_FOUND) [1599]
[    1.349511] PVR_K:(Error):     1: RGXInit: InitFirmware failed (275) [1556]
[    1.357226] PVR_K:(Error):     1: RGXInit() failed (PVRSRV_ERROR_NOT_FOUND) in PVRSRVCommonDeviceInitialise() [2156]
[    1.368886] PVR_K:(Error):     1: PVRSRVDeviceFinalise() failed (PVRSRV_ERROR_NOT_INITIALISED) in PVRSRVCommonDeviceInitialise() [2170]
[    1.382385] [drm:pvr_drm_load] *ERROR* device (____ptrval____) initialisation failed (err=-19)

@Ethan-cho
Copy link

@paranlee 포스트 잘 참고하였습니다 :) 혹시 RISCV Ubuntu QEMU 진입 후 네트워크 설정도 잘 되실까요..?

@paranlee
Copy link
Author

@Ethan-cho 네, 잘 되구요. 접속은 ssh 로 들어가셔서 apt 로 패키지 받으시면 되요~

@kzall0c
Copy link

kzall0c commented Nov 19, 2023

@paranlee
Copy link
Author

@paranlee
Copy link
Author

paranlee commented Nov 23, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment