Qemu Command : qemu-system-riscv32 -M virt -nographic -kernel kernel.img -initrd rootfs.img -serial pipe:guest_pipe -no-reboot
Qemu Version : QEMU emulator version 8.1.2
Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

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

Platform Name             : riscv-virtio,qemu
Platform Features         : medeleg
Platform HART Count       : 1
Platform IPI Device       : aclint-mswi
Platform Timer Device     : aclint-mtimer @ 10000000Hz
Platform Console Device   : uart8250
Platform HSM Device       : ---
Platform PMU Device       : ---
Platform Reboot Device    : sifive_test
Platform Shutdown Device  : sifive_test
Platform Suspend Device   : ---
Platform CPPC Device      : ---
Firmware Base             : 0x80000000
Firmware Size             : 190 KB
Firmware RW Offset        : 0x20000
Firmware RW Size          : 62 KB
Firmware Heap Offset      : 0x27000
Firmware Heap Size        : 34 KB (total), 2 KB (reserved), 8 KB (used), 23 KB (free)
Firmware Scratch Size     : 4096 B (total), 464 B (used), 3632 B (free)
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 0
Domain0 HARTs             : 0*
Domain0 Region00          : 0x02000000-0x0200ffff M: (I,R,W) S/U: ()
Domain0 Region01          : 0x80020000-0x8002ffff M: (R,W) S/U: ()
Domain0 Region02          : 0x80000000-0x8001ffff M: (R,X) S/U: ()
Domain0 Region03          : 0x00000000-0xffffffff M: (R,W,X) S/U: (R,W,X)
Domain0 Next Address      : 0x80400000
Domain0 Next Arg1         : 0x87e00000
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        : rv32imafdch
Boot HART ISA Extensions  : time,sstc
Boot HART PMP Count       : 16
Boot HART PMP Granularity : 4
Boot HART PMP Address Bits: 32
Boot HART MHPM Count      : 16
Boot HART MIDELEG         : 0x00001666
Boot HART MEDELEG         : 0x00f0b509
[    0.000000] Linux version 6.5.10 (ramin@ramin-pc) (riscv32-openadk-linux-uclibc-gcc (GCC) 10.5.0, GNU ld (GNU Binutils) 2.39) #3 SMP Mon Nov 20 18:52:30 CET 2023
[    0.000000] random: crng init done
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80400000
[    0.000000] Machine model: riscv-virtio,qemu
[    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] efi: UEFI not found.
[    0.000000] OF: reserved mem: 0x80000000..0x8001ffff (128 KiB) nomap non-reusable mmode_resv1@80000000
[    0.000000] OF: reserved mem: 0x80020000..0x8002ffff (64 KiB) nomap non-reusable mmode_resv0@80020000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080400000-0x0000000087ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080400000-0x0000000087ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080400000-0x0000000087ffffff]
[    0.000000] SBI HSM extension detected
[    0.000000] riscv: base ISA extensions acdfhim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 15 pages/cpu s32480 r8192 d20768 u61440
[    0.000000] Kernel command line: 
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 31465
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Virtual kernel memory layout:
[    0.000000]       fixmap : 0x9c800000 - 0x9d000000   (8192 kB)
[    0.000000]       pci io : 0x9d000000 - 0x9e000000   (  16 MB)
[    0.000000]      vmemmap : 0x9e000000 - 0xa0000000   (  32 MB)
[    0.000000]      vmalloc : 0xa0000000 - 0xc0000000   ( 512 MB)
[    0.000000]       lowmem : 0xc0000000 - 0xc7c00000   ( 124 MB)
[    0.000000] Memory: 82532K/126976K available (7962K kernel code, 8837K rwdata, 4096K rodata, 4184K init, 323K bss, 44444K reserved, 0K cma-reserved)
[    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 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=1
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] riscv-intc: 32 local interrupts mapped
[    0.000000] plic: plic@c000000: mapped 95 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv: providing IPIs using SBI IPI extension
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.000103] sched_clock: 64 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns
[    0.000196] riscv-timer: Timer interrupt in S-mode is available via sstc extension
[    0.004528] Console: colour dummy device 80x25
[    0.004749] printk: console [tty0] enabled
[    0.010168] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000)
[    0.010325] pid_max: default: 32768 minimum: 301
[    0.041245] LSM: initializing lsm=capability,integrity
[    0.042834] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.042900] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.089775] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.090327] ASID allocator using 9 bits (512 entries)
[    0.091116] rcu: Hierarchical SRCU implementation.
[    0.091162] rcu: 	Max phase no-delay instances is 1000.
[    0.092644] EFI services will not be available.
[    0.093593] smp: Bringing up secondary CPUs ...
[    0.094099] smp: Brought up 1 node, 1 CPU
[    0.102943] devtmpfs: initialized
[    0.108522] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.108715] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.124714] pinctrl core: initialized pinctrl subsystem
[    0.127812] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.131011] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.131330] audit: initializing netlink subsys (disabled)
[    0.134503] cpuidle: using governor menu
[    0.135358] audit: type=2000 audit(0.060:1): state=initialized audit_enabled=0 res=1
[    0.146288] HugeTLB: registered 4.00 MiB page size, pre-allocated 0 pages
[    0.146346] HugeTLB: 0 KiB vmemmap can be freed for a 4.00 MiB page
[    0.149182] iommu: Default domain type: Translated
[    0.149231] iommu: DMA domain TLB invalidation policy: strict mode
[    0.150106] SCSI subsystem initialized
[    0.151252] usbcore: registered new interface driver usbfs
[    0.151444] usbcore: registered new interface driver hub
[    0.151571] usbcore: registered new device driver usb
[    0.185390] vgaarb: loaded
[    0.186658] clocksource: Switched to clocksource riscv_clocksource
[    0.201226] NET: Registered PF_INET protocol family
[    0.201977] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.205433] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 5120 bytes, linear)
[    0.205565] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.205622] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.205804] TCP bind hash table entries: 1024 (order: 3, 40960 bytes, linear)
UDP hash table entries: 256 (order: 1, 12288 bytes, linear)
[    0.206999] UDP-Lite hash table entries: 256 (order: 1, 12288 bytes, linear)
[    0.207796] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.234674] RPC: Registered named UNIX socket transport module.
[    0.234778] RPC: Registered udp transport module.
[    0.234799] RPC: Registered tcp transport module.
[    0.234818] RPC: Registered tcp-with-tls transport module.
[    0.234838] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.234977] PCI: CLS 0 bytes, default 64
[    0.256516] Unpacking initramfs...
[    0.313302] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.317163] NFS: Registering the id_resolver key type
[    0.317877] Key type id_resolver registered
[    0.317918] Key type id_legacy registered
[    0.318119] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.318198] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.318792] 9p: Installing v9fs 9p2000 file system support
[    0.320029] NET: Registered PF_ALG protocol family
[    0.320292] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.320396] io scheduler mq-deadline registered
[    0.320450] io scheduler kyber registered
[    0.324526] pci-host-generic 30000000.pci: host bridge /soc/pci@30000000 ranges:
[    0.325105] pci-host-generic 30000000.pci:       IO 0x0003000000..0x000300ffff -> 0x0000000000
[    0.325450] pci-host-generic 30000000.pci:      MEM 0x0040000000..0x007fffffff -> 0x0040000000
[    0.325523] pci-host-generic 30000000.pci:      MEM 0x0300000000..0x03ffffffff -> 0x0300000000
[    0.326039] pci-host-generic 30000000.pci: ECAM at [mem 0x30000000-0x3fffffff] for [bus 00-ff]
[    0.346195] pci-host-generic 30000000.pci: PCI host bridge to bus 0000:00
[    0.346511] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.346595] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.346651] pci_bus 0000:00: root bus resource [mem 0x40000000-0x7fffffff]
[    0.347572] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000
[    0.511946] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.525799] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 12, base_baud = 230400) is a 16550A
[    0.527115] printk: console [ttyS0] enabled
[    2.015861] Freeing initrd memory: 17508K
[    2.032396] loop: module loaded
[    2.035436] e1000e: Intel(R) PRO/1000 Network Driver
[    2.035590] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    2.036871] usbcore: registered new interface driver uas
[    2.037129] usbcore: registered new interface driver usb-storage
[    2.037749] mousedev: PS/2 mouse device common for all mice
[    2.040116] goldfish_rtc 101000.rtc: registered as rtc0
[    2.040747] goldfish_rtc 101000.rtc: setting system clock to 2026-07-26T15:04:23 UTC (1785078263)
[    2.042629] syscon-poweroff poweroff: pm_power_off already claimed for sbi_srst_power_off
[    2.043128] syscon-poweroff: probe of poweroff failed with error -16
[    2.044128] sdhci: Secure Digital Host Controller Interface driver
[    2.044297] sdhci: Copyright(c) Pierre Ossman
[    2.044518] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.045044] usbcore: registered new interface driver usbhid
[    2.045206] usbhid: USB HID core driver
[    2.045509] riscv-pmu-sbi: SBI PMU extension is available
[    2.045910] riscv-pmu-sbi: 16 firmware and 18 hardware counters
[    2.046089] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
[    2.047653] NET: Registered PF_INET6 protocol family
[    2.052400] Segment Routing with IPv6
[    2.052615] In-situ OAM (IOAM) with IPv6
[    2.052949] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.054936] NET: Registered PF_PACKET protocol family
[    2.055795] 9pnet: Installing 9P2000 support
[    2.056096] Key type dns_resolver registered
[    2.078991] debug_vm_pgtable: [debug_vm_pgtable         ]: Validating architecture page table helpers
[    2.083326] clk: Disabling unused clocks
[    2.124589] Freeing unused kernel image (initmem) memory: 4184K
[    2.125494] Run /init as init process
test console
test ttyS0
Disabled Tests :/bin/run_tests.sh: line 2: cat: Function not implemented
-------------------- tests_start ------------------------
/bin/run_tests.sh: line 5: sh: Function not implemented