Skip to content

Commit d554b54

Browse files
committed
conf/evalsoc: guest linux kernel need 6.10, 6.6 is not working
Note: conf/evalsoc/evalsoc.json is required for this branch, since the irq for uart0/uart1/qspi0/qspi1 changed to adapt real evalsoc hardware about soc-cfg option of nuclei qemu, please refer to https://doc.nucleisys.com/nuclei_tools/qemu/intro.html#description-of-parameters Here is example log using Nuclei Qemu 2025.10 Run on qemu for simulation qemu-system-riscv64 --version QEMU emulator version 9.0.4 (v9.0.4-143-g1857be8c7d) Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers qemu-system-riscv64 -M nuclei_evalsoc,download=flashxip,soc-cfg=/Local/hqfang/workspace/software/nuclei-linux-sdk/conf/evalsoc/evalsoc.json,aia=aplic-imsic,aia-guests=4 -smp 1 -m 2G -cpu nuclei-ux900fd,ext=v_svpbmt_zicbom_sstc_sscofpmf_zba_zbb_zbc_zbs_zicond_ssaia_smaia_smstateen_ssstateen_smcntrpmf,h=true -bios /Local/hqfang/workspace/software/nuclei-linux-sdk/work/evalsoc/freeloader/freeloader.elf -nographic -drive file=/Local/hqfang/workspace/software/nuclei-linux-sdk/work/evalsoc/disk.img,if=sd,format=raw qemu-system-riscv64: warning: 'ssstateen' is unsupported extension! OpenSBI v1.3 Build time: 2025-11-21 17:39:06 +0800 Build compiler: gcc version 14.2.1 20240816 (g553a166de) ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|___/_____| | | |_| Platform Name : nuclei,evalsoc Platform Features : medeleg Platform HART Count : 1 Platform IPI Device : aia-imsic Platform Timer Device : aclint-mtimer @ 32768Hz Platform Console Device : nuclei_uart Platform HSM Device : --- Platform PMU Device : --- Platform Reboot Device : nuclei_reset Platform Shutdown Device : nuclei_reset Platform Suspend Device : --- Platform CPPC Device : --- Firmware Base : 0x80000000 Firmware Size : 322 KB Firmware RW Offset : 0x40000 Firmware RW Size : 66 KB Firmware Heap Offset : 0x48000 Firmware Heap Size : 34 KB (total), 2 KB (reserved), 10 KB (used), 22 KB (free) Firmware Scratch Size : 4096 B (total), 752 B (used), 3344 B (free) Runtime SBI Version : 1.0 Domain0 Name : root Domain0 Boot HART : 0 Domain0 HARTs : 0* Domain0 Region00 : 0x0000000018031000-0x0000000018031fff M: (I,R,W) S/U: () Domain0 Region01 : 0x000000001803c000-0x000000001803cfff M: (I,R,W) S/U: () Domain0 Region02 : 0x0000000018032000-0x0000000018033fff M: (I,R,W) S/U: () Domain0 Region03 : 0x0000000010040000-0x0000000010043fff M: (I,R,W) S/U: () Domain0 Region04 : 0x0000000018034000-0x0000000018037fff M: (I,R,W) S/U: () Domain0 Region05 : 0x0000000018038000-0x000000001803bfff M: (I,R,W) S/U: () Domain0 Region06 : 0x000000004f000000-0x000000004f007fff M: (I,R,W) S/U: () Domain0 Region07 : 0x0000000080040000-0x000000008005ffff M: (R,W) S/U: () Domain0 Region08 : 0x0000000080000000-0x000000008003ffff M: (R,X) S/U: () Domain0 Region09 : 0x0000000000000000-0xffffffffffffffff M: (R,W,X) S/U: (R,W,X) Domain0 Next Address : 0x0000000080200000 Domain0 Next Arg1 : 0x0000000088000000 Domain0 Next Mode : S-mode Domain0 SysReset : yes Domain0 SysSuspend : yes Boot HART ID : 0 Boot HART Domain : root Boot HART Priv Version : v1.12 Boot HART Base ISA : rv64imafdcvh Boot HART ISA Extensions : sscofpmf,time,smaia,smstateen,sstc Boot HART PMP Count : 16 Boot HART PMP Granularity : 4 Boot HART PMP Address Bits: 54 Boot HART MHPM Count : 29 Boot HART MIDELEG : 0x0000000000003666 Boot HART MEDELEG : 0x0000000000f0b509 U-Boot 2024.01-00008-gd1308a36c57 (Nov 21 2025 - 17:39:05 +0800) CPU: rv64imafdcvh_zicbom_svpbmt_sstc_sscofpmf_ssaia_smaia_smstateen_ssstateen Model: nuclei,evalsoc DRAM: 2 GiB Board: Initialized Core: 18 devices, 13 uclasses, devicetree: board MMC: Nuclei SPI version 0x10208 spi@10034000:mmc@0: 0 Loading Environment from nowhere... OK In: serial@10013000 Out: serial@10013000 Err: serial@10013000 Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot.scr 725 bytes read in 25 ms (28.3 KiB/s) Boot images located in . Loading kernel: ./uImage.lz4 4571990 bytes read in 11930 ms (374 KiB/s) Loading ramdisk: ./uInitrd.lz4 46361382 bytes read in 120614 ms (375 KiB/s) Loading dtb: ./kernel.dtb 8547 bytes read in 42 ms (198.2 KiB/s) Starts booting from SD Image Name: Linux Image Type: RISC-V Linux Kernel Image (lz4 compressed) Data Size: 4571926 Bytes = 4.4 MiB Load Address: 80400000 Entry Point: 80400000 Verifying Checksum ... OK Image Name: Initrd Image Type: RISC-V Linux RAMDisk Image (lz4 compressed) Data Size: 46361318 Bytes = 44.2 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Booting using the fdt blob at 0x88000000 Working FDT set to 88000000 Uncompressing Kernel Image Using Device Tree in place at 0000000088000000, end 0000000088005162 Working FDT set to 88000000 Starting kernel ... [ 0.000000] Linux version 6.12.28+ ([email protected]) (riscv64-unknown-linux-gnu-gcc (g553a166de) 14.2.1 20240816, GNU ld (GNU Binutils) 2.44) #8 SMP Fri Nov 21 17:39:06 CST 2025 [ 0.000000] Machine model: nuclei,evalsoc [ 0.000000] SBI specification v1.0 detected [ 0.000000] SBI implementation ID=0x1 Version=0x10003 [ 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] earlycon: sbi0 at I/O port 0x0 (options '') [ 0.000000] printk: legacy bootconsole [sbi0] enabled [ 0.000000] efi: UEFI not found. [ 0.000000] OF: reserved mem: 0x0000000080040000..0x000000008005ffff (128 KiB) nomap non-reusable mmode_resv0@80040000 [ 0.000000] OF: reserved mem: 0x0000000080000000..0x000000008003ffff (256 KiB) nomap non-reusable mmode_resv1@80000000 [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000080000000-0x00000000fdffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080000000-0x000000008005ffff] [ 0.000000] node 0: [mem 0x0000000080060000-0x00000000fdffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000fdffffff] [ 0.000000] SBI HSM extension detected [ 0.000000] CPU with hartid=1 is not available [ 0.000000] CPU with hartid=2 is not available [ 0.000000] CPU with hartid=3 is not available [ 0.000000] CPU with hartid=4 is not available [ 0.000000] CPU with hartid=5 is not available [ 0.000000] CPU with hartid=6 is not available [ 0.000000] CPU with hartid=7 is not available [ 0.000000] Falling back to deprecated "riscv,isa" [ 0.000000] riscv: base ISA extensions acdfhimv [ 0.000000] riscv: ELF capabilities acdfimv [ 0.000000] percpu: Embedded 17 pages/cpu s28824 r8192 d32616 u69632 [ 0.000000] Kernel command line: earlycon=sbi console=ttyNUC0 [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096 [ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off [ 0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 1MB [ 0.000000] software IO TLB: area num 1. [ 0.000000] software IO TLB: mapped [mem 0x00000000fbf49000-0x00000000fc149000] (2MB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] riscv-intc: 64 local interrupts mapped using AIA [ 0.000000] riscv-imsic: interrupt-controller@4f000000: no parent irqs available [ 0.000000] riscv-imsic: interrupt-controller@4f000000: failed to setup state (error -22) [ 0.000000] OF: of_irq_init: Failed to init /interrupt-controller@4f000000 ((____ptrval____)), parent (____ptrval____) [ 0.000000] riscv-imsic: interrupt-controller@4f200000: providing IPIs using interrupt 1 [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1ef4687b1, max_idle_ns: 112843571739654 ns [ 0.000122] sched_clock: 64 bits at 33kHz, resolution 30517ns, wraps every 70368744171142ns [ 0.000885] riscv-timer: Timer interrupt in S-mode is available via sstc extension [ 0.006652] Calibrating delay loop (skipped), value calculated using timer frequency.. 0.06 BogoMIPS (lpj=327) [ 0.007568] pid_max: default: 32768 minimum: 301 [ 0.012176] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.016418] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.099060] riscv: ELF compat mode supported [ 0.099639] ASID allocator using 16 bits (65536 entries) [ 0.103118] rcu: Hierarchical SRCU implementation. [ 0.103759] rcu: Max phase no-delay instances is 1000. [ 0.113159] EFI services will not be available. [ 0.114837] smp: Bringing up secondary CPUs ... [ 0.116119] smp: Brought up 1 node, 1 CPU [ 0.123046] Memory: 1965444K/2064384K available (5284K kernel code, 4722K rwdata, 2048K rodata, 2153K init, 321K bss, 95576K reserved, 0K cma-reserved) [ 0.134674] devtmpfs: initialized [ 0.150817] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.151794] futex hash table entries: 256 (order: 2, 16384 bytes, linear) [ 0.153411] pinctrl core: initialized pinctrl subsystem [ 0.155548] DMI not present or invalid. [ 0.164154] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.170257] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations [ 0.171173] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.230255] cpu0: rdtime lacks granularity needed to measure unaligned access speed [ 0.258453] pps_core: LinuxPPS API ver. 1 registered [ 0.258850] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]> [ 0.259582] PTP clock support registered [ 0.276641] clocksource: Switched to clocksource riscv_clocksource [ 0.288299] NET: Registered PF_INET protocol family [ 0.290710] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.297393] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear) [ 0.298095] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.298797] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.299835] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear) [ 0.301391] TCP: Hash tables configured (established 16384 bind 16384) [ 0.304168] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.305023] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.307373] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.309936] kvm [1]: hypervisor extension available [ 0.310394] kvm [1]: using Sv57x4 G-stage page table format [ 0.310852] kvm [1]: VMID 14 bits available [ 0.311187] kvm [1]: AIA available with 3 guest external interrupts [ 0.318847] Trying to unpack rootfs image as initramfs... [ 0.434295] workingset: timestamp_bits=62 max_order=19 bucket_order=0 [ 0.438903] 9p: Installing v9fs 9p2000 file system support [ 0.563079] NET: Registered PF_ALG protocol family [ 0.564025] io scheduler mq-deadline registered [ 0.564514] io scheduler kyber registered [ 0.565002] io scheduler bfq registered [ 0.762481] riscv-imsic: interrupt-controller@4f000000: fwnode mismatch [ 0.764678] riscv-imsic: interrupt-controller@4f200000: hart-index-bits: 0, guest-index-bits: 2 [ 0.765350] riscv-imsic: interrupt-controller@4f200000: group-index-bits: 0, group-index-shift: 24 [ 0.765991] riscv-imsic: interrupt-controller@4f200000: per-CPU IDs 255 at base address 0x000000004f200000 [ 0.767028] riscv-imsic: interrupt-controller@4f200000: total 254 interrupts available [ 1.121856] brd: module loaded [ 1.136016] loop: module loaded [ 1.167297] NET: Registered PF_INET6 protocol family [ 1.191894] Segment Routing with IPv6 [ 1.192901] In-situ OAM (IOAM) with IPv6 [ 1.194366] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 1.202362] NET: Registered PF_PACKET protocol family [ 1.340911] 9pnet: Installing 9P2000 support [ 1.361663] riscv-aplic 10044000.interrupt-controller: 31 interrupts forwarded to MSI base 0x000000004f200000 [ 1.373229] 10013000.serial: ttyNUC0 at MMIO 0x10013000 (irq = 11, base_baud = 3125000) is a Nuclei UART v0 [ 1.375640] printk: legacy console [ttyNUC0] enabled [ 1.375640] printk: legacy console [ttyNUC0] enabled [ 1.376770] printk: legacy bootconsole [sbi0] disabled [ 1.376770] printk: legacy bootconsole [sbi0] disabled [ 1.383331] nuclei_spi 10014000.spi: mapped; irq=13, cs=1 [ 1.517181] ftl_cs: FTL header not found. [ 1.715911] nuclei_spi 10034000.spi: mapped; irq=14, cs=1 [ 1.757171] mmc_spi spi1.0: SD/MMC host mmc0, no WP, no poweroff, cd polling [ 1.760925] clk: Disabling unused clocks [ 1.992523] mmc0: host does not support reading read-only switch, assuming write-enable [ 1.993347] mmc0: new SD card on SPI [ 1.997344] mmcblk0: mmc0:0000 QEMU! 1.00 GiB [ 2.019531] mmcblk0: p1 [ 2.554046] Freeing initrd memory: 45268K [ 2.606872] Freeing unused kernel image (initmem) memory: 2152K [ 2.607788] Run /init as init process Saving 256 bits of non-creditable seed for next boot Starting syslogd: OK Starting klogd: OK Running sysctl: OK eth0 device not present, will not configure it! Starting mdev... OK modprobe: can't change directory to '/lib/modules': No such file or directory Starting haveged: haveged: command socket is listening at fd 3 OK Starting crond: OK [ 7.117248] random: crng init done ssh-keygen: generating new host keys: RSA ECDSA ED25519 Starting sshd: OK Welcome to Nuclei System Technology nucleisys login: [ 12.028015] platform 10040000.interrupt-controller: deferred probe pending: platform: supplier 4f000000.interrupt-controller not ready Welcome to Nuclei System Technology nucleisys login: root Password: Execute KVM Testing Now + grep mnt + mount + mount /dev/mmcblk0p1 /mnt + chmod +x lkvm-static + lkvm-static run --9p /mnt,myshare_tag -m 1536 -c2 -k Image Info: # lkvm run -k Image -m 1536 -c 2 --name guest-104 Warning: The maximum recommended amount of VCPUs is 1 Warning: KVM_SET_ONE_REG failed (sbi_ext 11) Warning: KVM_SET_ONE_REG failed (sbi_ext 11) [ 0.000000] Linux version 6.10.14 ([email protected]) (riscv64-unknown-linux-gnu-gcc (g553a166de) 14.2.1 20240816, GNU ld (GNU Binutils) 2.44) #4 SMP Fri May 30 10:21:01 CST 2025 [ 0.000000] Machine model: linux,dummy-virt [ 0.000000] SBI specification v2.0 detected [ 0.000000] SBI implementation ID=0x3 Version=0x60c1c [ 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 DBCN extension detected [ 0.000000] efi: UEFI not found. [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000080000000-0x00000000dfffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080000000-0x00000000dfffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000dfffffff] [ 0.000000] SBI HSM extension detected [ 0.000000] Falling back to deprecated "riscv,isa" [ 0.000000] riscv: base ISA extensions acdfimv [ 0.000000] riscv: ELF capabilities acdfimv [ 0.000000] percpu: Embedded 22 pages/cpu s49720 r8192 d32200 u90112 [ 0.000000] Kernel command line: console=ttyS0 rw rootflags=trans=virtio,version=9p2000.L,cache=loose rootfstype=9p init=/virt/init ip=dhcp [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 393216 [ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off [ 0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 1MB [ 0.000000] software IO TLB: area num 2. [ 0.000000] software IO TLB: SWIOTLB bounce buffer size roundup to 2MB [ 0.000000] software IO TLB: mapped [mem 0x00000000dd200000-0x00000000dd400000] (2MB) [ 0.000000] Virtual kernel memory layout: [ 0.000000] fixmap : 0xff1bfffffea00000 - 0xff1bffffff000000 (6144 kB) [ 0.000000] pci io : 0xff1bffffff000000 - 0xff1c000000000000 ( 16 MB) [ 0.000000] vmemmap : 0xff1c000000000000 - 0xff20000000000000 (1024 TB) [ 0.000000] vmalloc : 0xff20000000000000 - 0xff60000000000000 (16384 TB) [ 0.000000] modules : 0xffffffff01597000 - 0xffffffff80000000 (2026 MB) [ 0.000000] lowmem : 0xff60000000000000 - 0xff60000060000000 (1536 MB) [ 0.000000] kernel : 0xffffffff80000000 - 0xffffffffffffffff (2047 MB) [ 0.000000] Memory: 1503984K/1572864K available (10142K kernel code, 4979K rwdata, 4096K rodata, 2254K init, 532K bss, 68880K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=2. [ 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 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2. [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] riscv-intc: 64 local interrupts mapped using AIA [ 0.000000] imsic_local_init line445 [ 0.000000] nr_ids:255 [ 0.000000] imsic_local_init line445 [ 0.000000] nr_ids:255 [ 0.000000] riscv-imsic: imsics@08000000: providing IPIs using interrupt 1 [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1ef4687b1, max_idle_ns: 112843571739654 ns [ 0.000122] sched_clock: 64 bits at 33kHz, resolution 30517ns, wraps every 70368744171142ns [ 0.000457] riscv-timer: Timer interrupt in S-mode is available via sstc extension [ 0.019958] Console: colour dummy device 80x25 [ 0.024230] Calibrating delay loop (skipped), value calculated using timer frequency.. 0.06 BogoMIPS (lpj=131) [ 0.024841] pid_max: default: 32768 minimum: 301 [ 0.028137] LSM: initializing lsm=capability [ 0.036102] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.037719] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.152465] riscv: ELF compat mode supported [ 0.153381] ASID allocator using 16 bits (65536 entries) [ 0.157257] rcu: Hierarchical SRCU implementation. [ 0.157348] rcu: Max phase no-delay instances is 1000. [ 0.176208] EFI services will not be available. [ 0.186492] smp: Bringing up secondary CPUs ... [ 0.239776] smp: Brought up 1 node, 2 CPUs [ 0.399810] devtmpfs: initialized [ 0.462371] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.462921] futex hash table entries: 512 (order: 3, 32768 bytes, linear) [ 0.470825] pinctrl core: initialized pinctrl subsystem [ 0.503540] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.570343] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations [ 0.584197] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.585235] audit: initializing netlink subsys (disabled) [ 0.620208] audit: type=2000 audit(0.408:1): state=initialized audit_enabled=0 res=1 [ 0.628051] thermal_sys: Registered thermal governor 'step_wise' [ 0.630249] cpuidle: using governor menu [ 0.718719] cpu1: rdtime lacks granularity needed to measure unaligned access speed [ 0.742309] cpu0: rdtime lacks granularity needed to measure unaligned access speed [ 0.864868] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages [ 0.864959] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page [ 0.909637] ACPI: Interpreter disabled. [ 0.910949] iommu: Default domain type: Translated [ 0.911041] iommu: DMA domain TLB invalidation policy: strict mode [ 0.923645] SCSI subsystem initialized [ 0.956756] usbcore: registered new interface driver usbfs [ 0.959930] usbcore: registered new interface driver hub [ 0.960449] usbcore: registered new device driver usb [ 0.971313] Advanced Linux Sound Architecture Driver Initialized. [ 1.012420] vgaarb: loaded [ 1.062225] clocksource: Switched to clocksource riscv_clocksource [ 1.090301] pnp: PnP ACPI: disabled [ 1.359649] NET: Registered PF_INET protocol family [ 1.378204] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 1.399749] tcp_listen_portaddr_hash hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 1.402557] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 1.402770] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 1.409149] TCP bind hash table entries: 16384 (order: 8, 1048576 bytes, linear) [ 1.469207] TCP: Hash tables configured (established 16384 bind 16384) [ 1.478027] UDP hash table entries: 1024 (order: 4, 98304 bytes, linear) [ 1.482818] UDP-Lite hash table entries: 1024 (order: 4, 98304 bytes, linear) [ 1.491271] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 1.559692] RPC: Registered named UNIX socket transport module. [ 1.559814] RPC: Registered udp transport module. [ 1.559844] RPC: Registered tcp transport module. [ 1.559844] RPC: Registered tcp-with-tls transport module. [ 1.559875] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.560150] PCI: CLS 0 bytes, default 64 [ 1.600524] workingset: timestamp_bits=46 max_order=19 bucket_order=0 [ 1.675659] NFS: Registering the id_resolver key type [ 1.677978] Key type id_resolver registered [ 1.678100] Key type id_legacy registered [ 1.679351] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.679718] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 1.683410] 9p: Installing v9fs 9p2000 file system support [ 1.689788] NET: Registered PF_ALG protocol family [ 1.691680] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 1.692077] io scheduler mq-deadline registered [ 1.692260] io scheduler kyber registered [ 1.692535] io scheduler bfq registered [ 1.697692] riscv-imsic: imsics@08000000: hart-index-bits: 1, guest-index-bits: 0 [ 1.697753] riscv-imsic: imsics@08000000: group-index-bits: 0, group-index-shift: 24 [ 1.697784] riscv-imsic: imsics@08000000: per-CPU IDs 255 at base PPN 0x0000000008000000 [ 1.697845] riscv-imsic: imsics@08000000: total 508 interrupts available [ 1.749755] SBI CPPC extension NOT detected!! [ 2.259094] hrtimer: interrupt took 8636475 ns [ 3.004180] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 3.034271] SuperH (H)SCI(F) driver initialized [ 3.154632] loop: module loaded [ 3.187591] e1000e: Intel(R) PRO/1000 Network Driver [ 3.187805] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 3.221038] usbcore: registered new interface driver uas [ 3.222106] usbcore: registered new interface driver usb-storage [ 3.227325] mousedev: PS/2 mouse device common for all mice [ 3.241302] sdhci: Secure Digital Host Controller Interface driver [ 3.241333] sdhci: Copyright(c) Pierre Ossman [ 3.242614] Synopsys Designware Multimedia Card Interface Driver [ 3.244873] sdhci-pltfm: SDHCI platform and OF driver helper [ 3.248199] usbcore: registered new interface driver usbhid [ 3.248260] usbhid: USB HID core driver [ 3.269775] NET: Registered PF_INET6 protocol family [ 3.349700] Segment Routing with IPv6 [ 3.350097] In-situ OAM (IOAM) with IPv6 [ 3.352020] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 3.369262] NET: Registered PF_PACKET protocol family [ 3.372894] 9pnet: Installing 9P2000 support [ 3.374206] Key type dns_resolver registered [ 3.482391] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level [ 3.594512] debug_vm_pgtable: [debug_vm_pgtable ]: Validating architecture page table helpers [ 3.634185] riscv-aplic 8002000.aplic: 8 interrupts forwarded to MSI base 0x0000000008000000 [ 3.650848] pci-host-generic 30000000.pci: host bridge /smb/pci ranges: [ 3.652008] pci-host-generic 30000000.pci: IO 0x0000000000..0x000000ffff -> 0x0000000000 [ 3.653350] pci-host-generic 30000000.pci: MEM 0x0040000000..0x007fffffff -> 0x0040000000 [ 3.670684] pci-host-generic 30000000.pci: ECAM at [mem 0x30000000-0x3fffffff] for [bus 00-01] [ 3.673492] pci-host-generic 30000000.pci: PCI host bridge to bus 0000:00 [ 3.675201] pci_bus 0000:00: root bus resource [bus 00-01] [ 3.675384] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 3.675476] pci_bus 0000:00: root bus resource [mem 0x40000000-0x7fffffff] [ 3.687896] pci 0000:00:00.0: [1af4:1049] type 00 class 0xff0000 conventional PCI endpoint [ 3.698242] pci 0000:00:00.0: BAR 0 [io 0x6200-0x62ff] [ 3.701599] pci 0000:00:00.0: BAR 1 [mem 0x40000000-0x400000ff] [ 3.703063] pci 0000:00:00.0: BAR 2 [mem 0x40000400-0x400007ff] [ 3.746429] pci 0000:00:01.0: [1af4:1049] type 00 class 0xff0000 conventional PCI endpoint [ 3.749877] pci 0000:00:01.0: BAR 0 [io 0x6300-0x63ff] [ 3.751403] pci 0000:00:01.0: BAR 1 [mem 0x40000800-0x400008ff] [ 3.753295] pci 0000:00:01.0: BAR 2 [mem 0x40000c00-0x40000fff] [ 3.784088] pci 0000:00:02.0: [1af4:1049] type 00 class 0xff0000 conventional PCI endpoint [ 3.787963] pci 0000:00:02.0: BAR 0 [io 0x6400-0x64ff] [ 3.791015] pci 0000:00:02.0: BAR 1 [mem 0x40001000-0x400010ff] [ 3.792510] pci 0000:00:02.0: BAR 2 [mem 0x40001400-0x400017ff] [ 3.824279] pci 0000:00:03.0: [1af4:1041] type 00 class 0x020000 conventional PCI endpoint [ 3.828338] pci 0000:00:03.0: BAR 0 [io 0x6500-0x65ff] [ 3.831268] pci 0000:00:03.0: BAR 1 [mem 0x40001800-0x400018ff] [ 3.832763] pci 0000:00:03.0: BAR 2 [mem 0x40001c00-0x40001fff] [ 3.882354] pci 0000:00:00.0: BAR 2 [mem 0x40000000-0x400003ff]: assigned [ 3.883605] pci 0000:00:01.0: BAR 2 [mem 0x40000400-0x400007ff]: assigned [ 3.884277] pci 0000:00:02.0: BAR 2 [mem 0x40000800-0x40000bff]: assigned [ 3.884887] pci 0000:00:03.0: BAR 2 [mem 0x40000c00-0x40000fff]: assigned [ 3.886718] pci 0000:00:00.0: BAR 0 [io 0x0100-0x01ff]: assigned [ 3.887359] pci 0000:00:00.0: BAR 1 [mem 0x40001000-0x400010ff]: assigned [ 3.887969] pci 0000:00:01.0: BAR 0 [io 0x0200-0x02ff]: assigned [ 3.888702] pci 0000:00:01.0: BAR 1 [mem 0x40001100-0x400011ff]: assigned [ 3.889282] pci 0000:00:02.0: BAR 0 [io 0x0300-0x03ff]: assigned [ 3.891265] pci 0000:00:02.0: BAR 1 [mem 0x40001200-0x400012ff]: assigned [ 3.891845] pci 0000:00:03.0: BAR 0 [io 0x0400-0x04ff]: assigned [ 3.892456] pci 0000:00:03.0: BAR 1 [mem 0x40001300-0x400013ff]: assigned [ 3.960479] msi_domain_activate,line669 [ 3.960632] imsic_irq_compose_vector_msg addr:0-8001000,data:2 [ 3.964263] msi_domain_activate,line669 [ 3.964324] imsic_irq_compose_vector_msg addr:0-8000000,data:3 [ 4.048858] msi_domain_activate,line669 [ 4.048919] imsic_irq_compose_vector_msg addr:0-8000000,data:4 [ 4.050903] msi_domain_activate,line669 [ 4.050964] imsic_irq_compose_vector_msg addr:0-8001000,data:4 [ 4.115356] msi_domain_activate,line669 [ 4.115417] imsic_irq_compose_vector_msg addr:0-8001000,data:5 [ 4.117004] msi_domain_activate,line669 [ 4.117065] imsic_irq_compose_vector_msg addr:0-8000000,data:6 [ 4.231353] msi_domain_activate,line669 [ 4.231445] imsic_irq_compose_vector_msg addr:0-8000000,data:7 [ 4.234374] msi_domain_activate,line669 [ 4.234436] imsic_irq_compose_vector_msg addr:0-8001000,data:7 [ 4.235992] msi_domain_activate,line669 [ 4.236083] imsic_irq_compose_vector_msg addr:0-8000000,data:8 [ 4.352050] printk: legacy console [ttyS0] disabled [ 4.370056] 10000000.U6_16550A: ttyS0 at MMIO 0x10000000 (irq = 24, base_baud = 115200) is a 16550A [ 4.375366] printk: legacy console [ttyS0] enabled [ 12.339416] 10001000.U6_16550A: ttyS1 at MMIO 0x10001000 (irq = 25, base_baud = 115200) is a 16550A [ 12.409576] 10002000.U6_16550A: ttyS2 at MMIO 0x10002000 (irq = 26, base_baud = 115200) is a 16550A [ 12.476867] 10003000.U6_16550A: ttyS3 at MMIO 0x10003000 (irq = 27, base_baud = 115200) is a 16550A [ 12.541931] Legacy PMU implementation is available [ 12.668701] Sending DHCP requests ., OK [ 12.734466] IP-Config: Got DHCP answer from 192.168.33.1, my address is 192.168.33.15 [ 12.782196] IP-Config: Complete: [ 12.801330] device=eth0, hwaddr=02:15:15:15:15:15, ipaddr=192.168.33.15, mask=255.255.255.0, gw=192.168.33.1 [ 12.861022] host=192.168.33.15, domain=, nis-domain=(none) [ 12.896118] bootserver=192.168.33.1, rootserver=0.0.0.0, rootpath= [ 12.896209] nameserver0=192.168.33.1 [ 12.981109] clk: Disabling unused clocks [ 13.007202] PM: genpd: Disabling unused power domains [ 13.049438] ALSA device list: [ 13.069763] No soundcards found. [ 13.130126] msi_domain_activate,line669 [ 13.153289] imsic_irq_compose_vector_msg addr:0-8001000,data:8 [ 13.271484] 9pnet_virtio: no channels available for device [ 13.361785] VFS: Mounted root (9p filesystem) on device 0:19. [ 13.460021] devtmpfs: mounted [ 13.713745] Freeing unused kernel image (initmem) memory: 2252K [ 13.742797] Run /virt/init as init process Mounting... Will find /host/root/kvm_guest_run_case.sh and execute it if any... sh-5.2# cat /proc/cpuinfo processor : 0 hart : 0 isa : rv64imafdcv_zicbom_zicntr_zicsr_zifencei_zihpm_smstateen_ssaia_sscofpmf_sstc_svpbmt mmu : sv57 mvendorid : 0x0 marchid : 0x0 mimpid : 0x0 hart isa : rv64imafdcv_zicbom_zicntr_zicsr_zifencei_zihpm_smstateen_ssaia_sscofpmf_sstc_svpbmt processor : 1 hart : 1 isa : rv64imafdcv_zicbom_zicntr_zicsr_zifencei_zihpm_smstateen_ssaia_sscofpmf_sstc_svpbmt mmu : sv57 mvendorid : 0x0 marchid : 0x0 mimpid : 0x0 hart isa : rv64imafdcv_zicbom_zicntr_zicsr_zifencei_zihpm_smstateen_ssaia_sscofpmf_sstc_svpbmt sh-5.2# uname -a Linux 192.168.33.15 6.10.14 #4 SMP Fri May 30 10:21:01 CST 2025 riscv64 GNU/Linux sh-5.2# cat /proc/interrupts CPU0 CPU1 10: 2734 3280 RISC-V INTC 5 Edge riscv-timer 12: 0 0 PCI-MSIX-0000:00:00.0 0 Edge virtio0-config 13: 957 0 PCI-MSIX-0000:00:00.0 1 Edge virtio0-requests 15: 0 0 PCI-MSIX-0000:00:01.0 0 Edge virtio1-config 16: 0 129 PCI-MSIX-0000:00:01.0 1 Edge virtio1-requests 18: 0 0 PCI-MSIX-0000:00:02.0 0 Edge virtio2-config 19: 0 0 PCI-MSIX-0000:00:02.0 1 Edge virtio2-requests 21: 0 0 PCI-MSIX-0000:00:03.0 0 Edge virtio3-config 22: 0 2 PCI-MSIX-0000:00:03.0 1 Edge virtio3-input.0 23: 9 0 PCI-MSIX-0000:00:03.0 2 Edge virtio3-output.0 24: 0 135 APLIC-MSI-8002000.aplic 1 Level -fasteoi ttyS0 IPI0: 21 11 Rescheduling interrupts IPI1: 1334 1773 Function call interrupts IPI2: 0 0 CPU stop interrupts IPI3: 0 0 CPU stop (for crash dump) interrupts IPI4: 0 0 IRQ work interrupts IPI5: 0 0 Timer broadcast interrupts sh-5.2# free -m total used free shared buff/cache available Mem: 1471 16 1452 0 3 1446 Swap: 0 0 0 sh-5.2# exit exit [ 65.562347] reboot: Restarting system Info: KVM session ended normally. total used free shared buff/cache available Mem: 1969 18 1838 101 113 1834 Swap: 0 0 0 processor : 0 hart : 0 isa : rv64imafdcvh_zicbom_zicntr_zicsr_zifencei_zihpm_zca_zcd_zve32f_zve32x_zve64d_zve64f_zve64x_smaia_smstateen_ssaia_sscofpmf_sstc_svpbmt mmu : sv57 mvendorid : 0x0 marchid : 0x0 mimpid : 0x0 hart isa : rv64imafdcvh_zicbom_zicntr_zicsr_zifencei_zihpm_zca_zcd_zve32f_zve32x_zve64d_zve64f_zve64x_smaia_smstateen_ssaia_sscofpmf_sstc_svpbmt Linux nucleisys 6.12.28+ #8 SMP Fri Nov 21 17:39:06 CST 2025 riscv64 GNU/Linux CPU0 10: 11651 RISC-V INTC 5 Edge riscv-timer 11: 56032 APLIC-MSI-10044000.interrupt-controller 1 Level -fasteoi 10013000.serial 12: 3731 RISC-V INTC 12 Edge riscv-kvm 13: 10432 APLIC-MSI-10044000.interrupt-controller 3 Level -fasteoi 10014000.spi 14: 322 APLIC-MSI-10044000.interrupt-controller 5 Level -fasteoi 10034000.spi IPI0: 0 Rescheduling interrupts IPI1: 0 Function call interrupts IPI2: 0 CPU stop interrupts IPI3: 0 CPU stop (for crash dump) interrupts IPI4: 0 IRQ work interrupts IPI5: 0 Timer broadcast interrupts IPI6: 0 CPU backtrace interrupts IPI7: 0 KGDB roundup interrupts Execute Qemu Testing Now + mount + grep mnt + umount /mnt + mount /dev/mmcblk0p1 /mnt + qemu-system-riscv64 -M virt,aia=aplic-imsic --enable-kvm -m 1.5G -smp 2 -nographic -kernel Image -initrd rootfs.img -virtfs local,path=/mnt/,mount_tag=myshare_tag,security_model=none qemu-system-riscv64: warning: Number of SMP cpus requested (2) exceeds the recommended cpus supported by KVM (1) qemu-system-riscv64: warning: Number of hotpluggable cpus requested (2) exceeds the recommended cpus supported by KVM (1) [ 0.000000] Linux version 6.10.14 ([email protected]) (riscv64-unknown-linux-gnu-gcc (g553a166de) 14.2.1 20240816, GNU ld (GNU Binutils) 2.44) #4 SMP Fri May 30 10:21:01 CST 2025 [ 0.000000] random: crng init done [ 0.000000] Machine model: riscv-virtio,qemu [ 0.000000] SBI specification v2.0 detected [ 0.000000] SBI implementation ID=0x3 Version=0x60c1c [ 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] efi: UEFI not found. [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000080000000-0x00000000dfffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080000000-0x00000000dfffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000dfffffff] [ 0.000000] SBI HSM extension detected [ 0.000000] riscv: base ISA extensions acdfimv [ 0.000000] riscv: ELF capabilities acdfimv [ 0.000000] percpu: Embedded 22 pages/cpu s49720 r8192 d32200 u90112 [ 0.000000] Kernel command line: [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 393216 [ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off [ 0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 1MB [ 0.000000] software IO TLB: area num 2. [ 0.000000] software IO TLB: SWIOTLB bounce buffer size roundup to 2MB [ 0.000000] software IO TLB: mapped [mem 0x00000000dd200000-0x00000000dd400000] (2MB) [ 0.000000] Virtual kernel memory layout: [ 0.000000] fixmap : 0xff1bfffffea00000 - 0xff1bffffff000000 (6144 kB) [ 0.000000] pci io : 0xff1bffffff000000 - 0xff1c000000000000 ( 16 MB) [ 0.000000] vmemmap : 0xff1c000000000000 - 0xff20000000000000 (1024 TB) [ 0.000000] vmalloc : 0xff20000000000000 - 0xff60000000000000 (16384 TB) [ 0.000000] modules : 0xffffffff01597000 - 0xffffffff80000000 (2026 MB) [ 0.000000] lowmem : 0xff60000000000000 - 0xff60000060000000 (1536 MB) [ 0.000000] kernel : 0xffffffff80000000 - 0xffffffffffffffff (2047 MB) [ 0.000000] Memory: 1502940K/1572864K available (10142K kernel code, 4979K rwdata, 4096K rodata, 2254K init, 532K bss, 69924K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=2. [ 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 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2. [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] riscv-intc: 64 local interrupts mapped using AIA [ 0.000000] imsic_local_init line445 [ 0.000000] nr_ids:255 [ 0.000000] imsic_local_init line445 [ 0.000000] nr_ids:255 [ 0.000000] riscv-imsic: imsics@28000000: providing IPIs using interrupt 1 [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1ef4687b1, max_idle_ns: 112843571739654 ns [ 0.000152] sched_clock: 64 bits at 33kHz, resolution 30517ns, wraps every 70368744171142ns [ 0.000457] riscv-timer: Timer interrupt in S-mode is available via sstc extension [ 0.023162] Console: colour dummy device 80x25 [ 0.024536] printk: legacy console [tty0] enabled [ 0.030944] Calibrating delay loop (skipped), value calculated using timer frequency.. 0.06 BogoMIPS (lpj=131) [ 0.031341] pid_max: default: 32768 minimum: 301 [ 0.035156] LSM: initializing lsm=capability [ 0.042999] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.044494] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.160766] riscv: ELF compat mode supported [ 0.161682] ASID allocator using 16 bits (65536 entries) [ 0.165679] rcu: Hierarchical SRCU implementation. [ 0.165832] rcu: Max phase no-delay instances is 1000. [ 0.185302] EFI services will not be available. [ 0.194610] smp: Bringing up secondary CPUs ... [ 0.239898] smp: Brought up 1 node, 2 CPUs [ 0.399871] devtmpfs: initialized [ 0.461364] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.462005] futex hash table entries: 512 (order: 3, 32768 bytes, linear) [ 0.470520] pinctrl core: initialized pinctrl subsystem [ 0.502380] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.570678] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations [ 0.585083] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.585968] audit: initializing netlink subsys (disabled) [ 0.609832] audit: type=2000 audit(0.416:1): state=initialized audit_enabled=0 res=1 [ 0.618225] thermal_sys: Registered thermal governor 'step_wise' [ 0.620422] cpuidle: using governor menu [ 0.708801] cpu1: rdtime lacks granularity needed to measure unaligned access speed [ 0.732086] cpu0: rdtime lacks granularity needed to measure unaligned access speed [ 0.874847] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages [ 0.875030] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page [ 0.910278] ACPI: Interpreter disabled. [ 0.913024] iommu: Default domain type: Translated [ 0.913177] iommu: DMA domain TLB invalidation policy: strict mode [ 0.925628] SCSI subsystem initialized [ 0.958251] usbcore: registered new interface driver usbfs [ 0.960052] usbcore: registered new interface driver hub [ 0.960479] usbcore: registered new device driver usb [ 0.971801] Advanced Linux Sound Architecture Driver Initialized. [ 1.020233] vgaarb: loaded [ 1.079589] clocksource: Switched to clocksource riscv_clocksource [ 1.112792] pnp: PnP ACPI: disabled [ 1.344329] NET: Registered PF_INET protocol family [ 1.364166] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 1.388244] tcp_listen_portaddr_hash hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 1.391601] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 1.391906] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 1.397735] TCP bind hash table entries: 16384 (order: 8, 1048576 bytes, linear) [ 1.452209] TCP: Hash tables configured (established 16384 bind 16384) [ 1.464660] UDP hash table entries: 1024 (order: 4, 98304 bytes, linear) [ 1.470581] UDP-Lite hash table entries: 1024 (order: 4, 98304 bytes, linear) [ 1.482116] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 1.539154] RPC: Registered named UNIX socket transport module. [ 1.539367] RPC: Registered udp transport module. [ 1.539428] RPC: Registered tcp transport module. [ 1.539489] RPC: Registered tcp-with-tls transport module. [ 1.539520] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.539855] PCI: CLS 0 bytes, default 64 [ 1.571624] Unpacking initramfs... [ 1.584533] workingset: timestamp_bits=46 max_order=19 bucket_order=0 [ 1.667114] NFS: Registering the id_resolver key type [ 1.669433] Key type id_resolver registered [ 1.669616] Key type id_legacy registered [ 1.679718] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.680450] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 1.690032] 9p: Installing v9fs 9p2000 file system support [ 1.695922] NET: Registered PF_ALG protocol family [ 1.697570] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 1.698028] io scheduler mq-deadline registered [ 1.698303] io scheduler kyber registered [ 1.709259] io scheduler bfq registered [ 1.733276] riscv-imsic: imsics@28000000: hart-index-bits: 1, guest-index-bits: 0 [ 1.733428] riscv-imsic: imsics@28000000: group-index-bits: 0, group-index-shift: 24 [ 1.733520] riscv-imsic: imsics@28000000: per-CPU IDs 255 at base PPN 0x0000000028000000 [ 1.733612] riscv-imsic: imsics@28000000: total 508 interrupts available [ 1.797821] SBI CPPC extension NOT detected!! [ 2.335662] Freeing initrd memory: 1024K [ 3.042633] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 3.072906] SuperH (H)SCI(F) driver initialized [ 3.258270] loop: module loaded [ 3.294891] e1000e: Intel(R) PRO/1000 Network Driver [ 3.295196] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 3.339477] usbcore: registered new interface driver uas [ 3.340332] usbcore: registered new interface driver usb-storage [ 3.345336] mousedev: PS/2 mouse device common for all mice [ 3.374938] sdhci: Secure Digital Host Controller Interface driver [ 3.375061] sdhci: Copyright(c) Pierre Ossman [ 3.376556] Synopsys Designware Multimedia Card Interface Driver [ 3.380187] sdhci-pltfm: SDHCI platform and OF driver helper [ 3.386535] usbcore: registered new interface driver usbhid [ 3.386688] usbhid: USB HID core driver [ 3.423583] NET: Registered PF_INET6 protocol family [ 3.557495] Segment Routing with IPv6 [ 3.560882] In-situ OAM (IOAM) with IPv6 [ 3.563629] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 3.584442] NET: Registered PF_PACKET protocol family [ 3.587402] 9pnet: Installing 9P2000 support [ 3.591949] Key type dns_resolver registered [ 3.733215] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level [ 3.846862] debug_vm_pgtable: [debug_vm_pgtable ]: Validating architecture page table helpers [ 3.949951] riscv-aplic d000000.aplic: 96 interrupts forwarded to MSI base 0x0000000028000000 [ 3.962219] pci-host-generic 30000000.pci: host bridge /soc/pci@30000000 ranges: [ 3.963806] pci-host-generic 30000000.pci: IO 0x0003000000..0x000300ffff -> 0x0000000000 [ 3.964874] pci-host-generic 30000000.pci: MEM 0x0040000000..0x007fffffff -> 0x0040000000 [ 3.965118] pci-host-generic 30000000.pci: MEM 0x0400000000..0x07ffffffff -> 0x0400000000 [ 3.971801] pci-host-generic 30000000.pci: Memory resource size exceeds max for 32 bits [ 3.973663] pci-host-generic 30000000.pci: ECAM at [mem 0x30000000-0x3fffffff] for [bus 00-ff] [ 3.977935] pci-host-generic 30000000.pci: PCI host bridge to bus 0000:00 [ 3.978973] pci_bus 0000:00: root bus resource [bus 00-ff] [ 3.980529] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 3.980682] pci_bus 0000:00: root bus resource [mem 0x40000000-0x7fffffff] [ 3.980712] pci_bus 0000:00: root bus resource [mem 0x400000000-0x7ffffffff] [ 3.989044] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000 conventional PCI endpoint [ 4.025207] pci 0000:00:01.0: [1af4:1009] type 00 class 0x000200 conventional PCI endpoint [ 4.030670] pci 0000:00:01.0: BAR 0 [io 0x0000-0x003f] [ 4.032104] pci 0000:00:01.0: BAR 1 [mem 0x00000000-0x00000fff] [ 4.037353] pci 0000:00:01.0: BAR 4 [mem 0x00000000-0x00003fff 64bit pref] [ 4.077911] pci 0000:00:01.0: BAR 4 [mem 0x400000000-0x400003fff 64bit pref]: assigned [ 4.082672] pci 0000:00:01.0: BAR 1 [mem 0x40000000-0x40000fff]: assigned [ 4.083465] pci 0000:00:01.0: BAR 0 [io 0x0040-0x007f]: assigned [ 4.097686] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003) [ 4.192596] msi_domain_activate,line669 [ 4.192840] imsic_irq_compose_vector_msg addr:0-28001000,data:2 [ 4.196350] msi_domain_activate,line669 [ 4.196472] imsic_irq_compose_vector_msg addr:0-28000000,data:3 [ 4.380584] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 14, base_baud = 230400) is a 16550A [ 4.399688] printk: legacy console [ttyS0] enabled [ 14.632812] msi_domain_activate,line669 [ 14.661865] imsic_irq_compose_vector_msg addr:0-28000000,data:4 [ 14.715515] goldfish_rtc 101000.rtc: registered as rtc0 [ 14.771148] goldfish_rtc 101000.rtc: setting system clock to 1970-01-01T00:02:25 UTC (145) [ 14.843231] Legacy PMU implementation is available [ 14.905517] clk: Disabling unused clocks [ 14.937438] PM: genpd: Disabling unused power domains [ 14.979614] ALSA device list: [ 15.019348] No soundcards found. [ 15.065887] msi_domain_activate,line669 [ 15.093688] imsic_irq_compose_vector_msg addr:0-28001000,data:3 [ 15.285247] Freeing unused kernel image (initmem) memory: 2252K [ 15.319427] Run /init as init process _ _ | ||_| | | _ ____ _ _ _ _ | || | _ \| | | |\ \/ / | || | | | | |_| |/ \ |_||_|_| |_|\____|\_/\_/ Busybox Rootfs Please press Enter to activate this console. / # cat /proc/cpuinfo processor : 0 hart : 0 isa : rv64imafdcv_zicbom_zicntr_zicsr_zifencei_zihpm_smstateen_ssaia_sstc_svpbmt mmu : sv57 mvendorid : 0x0 marchid : 0x0 mimpid : 0x0 hart isa : rv64imafdcv_zicbom_zicntr_zicsr_zifencei_zihpm_smstateen_ssaia_sstc_svpbmt processor : 1 hart : 1 isa : rv64imafdcv_zicbom_zicntr_zicsr_zifencei_zihpm_smstateen_ssaia_sstc_svpbmt mmu : sv57 mvendorid : 0x0 marchid : 0x0 mimpid : 0x0 hart isa : rv64imafdcv_zicbom_zicntr_zicsr_zifencei_zihpm_smstateen_ssaia_sstc_svpbmt / # uname -a Linux (none) 6.10.14 #4 SMP Fri May 30 10:21:01 CST 2025 riscv64 GNU/Linux / # cat /proc/interrupts CPU0 CPU1 10: 1483 1455 RISC-V INTC 5 Edge riscv-timer 12: 0 0 PCI-MSIX-0000:00:01.0 0 Edge virtio0-config 13: 0 0 PCI-MSIX-0000:00:01.0 1 Edge virtio0-requests 14: 0 247 APLIC-MSI-d000000.aplic 10 Level -fasteoi ttyS0 15: 0 0 APLIC-MSI-d000000.aplic 11 Level -fasteoi 101000.rtc IPI0: 22 15 Rescheduling interrupts IPI1: 1077 322 Function call interrupts IPI2: 0 0 CPU stop interrupts IPI3: 0 0 CPU stop (for crash dump) interrupts IPI4: 0 0 IRQ work interrupts IPI5: 0 0 Timer broadcast interrupts / # ifconfig / # ifconfig / # uptime 00:03:25 up 1 min, 0 users, load average: 0.34, 0.16, 0.05 / # QEMU: Terminated Linux nucleisys 6.12.28+ #8 SMP Fri Nov 21 17:39:06 CST 2025 riscv64 GNU/Linux total used free shared buff/cache available Mem: 1969 17 1838 101 114 1835 Swap: 0 0 0 processor : 0 hart : 0 isa : rv64imafdcvh_zicbom_zicntr_zicsr_zifencei_zihpm_zca_zcd_zve32f_zve32x_zve64d_zve64f_zve64x_smaia_smstateen_ssaia_sscofpmf_sstc_svpbmt mmu : sv57 mvendorid : 0x0 marchid : 0x0 mimpid : 0x0 hart isa : rv64imafdcvh_zicbom_zicntr_zicsr_zifencei_zihpm_zca_zcd_zve32f_zve32x_zve64d_zve64f_zve64x_smaia_smstateen_ssaia_sscofpmf_sstc_svpbmt Signed-off-by: Huaqi Fang <[email protected]>
1 parent 1619dd8 commit d554b54

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

conf/evalsoc/kvm/Image

53.5 KB
Binary file not shown.

conf/evalsoc/kvm/kvm.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ cd $SCRIPT_DIR
88
echo "Execute KVM Testing Now"
99

1010
set -x
11-
mkdir -p /tmp/myshared/
12-
mount /dev/mmcblk0p1 /tmp/myshared/
11+
if mount | grep mnt > /dev/null ; then
12+
umount /mnt
13+
fi
14+
mount /dev/mmcblk0p1 /mnt
1315
chmod +x lkvm-static
14-
lkvm-static run --9p /tmp/myshared,myshare_tag -m 1536 -c2 -k Image
16+
lkvm-static run --9p /mnt,myshare_tag -m 1536 -c2 -k Image

conf/evalsoc/kvm/qemu.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
5+
export PATH=$PATH:${SCRIPT_DIR}
6+
7+
cd $SCRIPT_DIR
8+
echo "Execute Qemu Testing Now"
9+
10+
set -x
11+
if mount | grep mnt > /dev/null ; then
12+
umount /mnt
13+
fi
14+
mount /dev/mmcblk0p1 /mnt
15+
qemu-system-riscv64 -M virt,aia=aplic-imsic --enable-kvm -m 1.5G -smp 2 -nographic -kernel Image -initrd rootfs.img -virtfs local,path=/mnt/,mount_tag=myshare_tag,security_model=none

conf/evalsoc/kvm/rootfs.img

1 MB
Binary file not shown.

0 commit comments

Comments
 (0)