Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

virtio hard disk on qemu



Hi,

Has anyone tried using virtio hard disks on NetBSD/sparc64 on QEMU?

I gave it a go today, but the kernel didn't finish booting. From
what I can gather, it hung while trying to read the disklabel (on a
blank, unformatted disk, in my case).

The only thing I really tried so far is connecting up other blank
disks to the three other IDE ports (the ones not connected to the
DVD-ROM drive). But that didn't seem to make any difference.

Here's a log of my attempt. Any advice welcome!

Many thanks,
Tyler
$ system_profiler -detailLevel mini SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 13.1 (22C65)
      Kernel Version: Darwin 22.2.0
      Time since boot: 11 days, 8 hours, 29 minutes

$ qemu-system-sparc64 -version
QEMU emulator version 7.2.0
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
$ qemu-system-sparc64 -m 3840 \
        -drive file=chalna.qcow2,if=none,id=hd0 \
        -device virtio-blk-pci,bus=pciB,drive=hd0,bootindex=0 \
        -cdrom ../../NetBSD-10.99.2-sparc64.iso \
        -net nic,netdev=n0,macaddr=52:54:00:80:05:00 -netdev vde,id=n0,sock=vde0 \
        -nographic
OpenBIOS for Sparc64
Configuration device id QEMU version 1 machine id 0
kernel cmdline
CPUs: 1 x SUNW,UltraSPARC-IIi
UUID: 00000000-0000-0000-0000-000000000000
Welcome to OpenBIOS v1.1 built on Mar 7 2022 23:09
  Type 'help' for detailed information
Trying /pci@1fe,0/pci@1/scsi@0/disk:f...
Trying /pci@1fe,0/pci@1/scsi@0/disk:a...
Trying /pci@1fe,0/pci@1/scsi@0/disk...
Not a bootable ELF image
Not a bootable a.out image
Not a bootable FCode image
No valid state has been set by load or init-program

0 > boot cdrom:f Not a Linux kernel image
Not a bootable ELF image
Not a bootable a.out image

Loading FCode image...
Loaded 7547 bytes
entry point is 0x4000
Evaluating FCode...
NetBSD IEEE 1275 Multi-FS Bootblock
Version $NetBSD: bootblk.fth,v 1.17 2022/11/17 06:40:39 chs Exp $
>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.20 (Mon Jan 23 13:40:04 UTC 2023)
=0xc9cfd0
Loading netbsd: 13225872+511080+333784 [747192+490527]=0xefd090
Unimplemented service set-symbol-lookup ([2] -- [0])
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[   1.0000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[   1.0000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023
[   1.0000000]     The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.

[   1.0000000] NetBSD 10.99.2 (GENERIC) #0: Mon Jan 23 13:40:04 UTC 2023
[   1.0000000]  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/sparc64/compile/GENERIC
[   1.0000000] total memory = 3840 MB
[   1.0000000] avail memory = 3750 MB
[   1.0000000] mainbus0 (root): OpenBiosTeam,OpenBIOS: hostid 80800500
[   1.0000000] cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 100 MHz, CPU id 0
[   1.0000000] cpu0: manuf 17, impl 12, mask 91
[   1.0000000] cpu0: 256K instruction (64 b/l), 16K data (32 b/l), 256K external (64 b/l)
[   1.0000000] psycho0 at mainbus0
[   1.0000000] psycho0: SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 2; PCI bus 0
[   1.0000000] pci0 at psycho0
[   1.0000000] ppb0 at pci0 dev 1 function 1: Sun Microsystems Simba PCI Bridge (rev. 0x11)
[   1.0000000] pci1 at ppb0 bus 1
[   1.0000000] ebus0 at pci1 dev 1 function 0: Sun Microsystems PCIO Ebus2, revision 0x01
[   1.0000000] clock0 at ebus0 addr 2000-3fff: mk48t59
[   1.0000000] power at ebus0 addr 7240-7243 ipl 1 not configured
[   1.0000000] fdthree at ebus0 addr 0-ffffffff not configured
[   1.0000000] com0 at ebus0 addr 3f8-3ff ipl 2b: ns16550a, 16-byte FIFO
[   1.0000000] com0: console
[   1.0000000] pckbc0 at ebus0 addr 60-67 ipl 29: no intr 1: selftest ok
[   1.0000000] pckbd0 at pckbc0 (kbd slot)
[   1.0000000] wskbd1 at pckbd0 mux 1
[   1.0000000] pms0 at pckbc0 (aux slot)
[   1.0000000] wsmouse0 at pms0 mux 0
[   1.0000000] hme0 at pci1 dev 1 function 1: Sun Happy Meal Ethernet, rev. 0
[   1.0000000] hme0: interrupting at ivec 3021
[   1.0000000] hme0: Ethernet address 52:54:00:80:05:00
[   1.0000000] nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 1
[   1.0000000] nsphy0: 100baseTX-FDX, auto
[   1.0000000] genfb0 at pci1 dev 2 function 0: vendor 1234 product 1111 (rev. 0x02)
[   1.0000000] cmdide0 at pci1 dev 3 function 0: CMD Technology PCI0646 (rev. 0x07)
[   1.0000000] cmdide0: primary channel configured to native-PCI mode, channel non-independent
[   1.0000000] cmdide0: using ivec 1820 for native-PCI interrupt
[   1.0000000] atabus0 at cmdide0 channel 0
[   1.0000000] cmdide0: secondary channel configured to native-PCI mode, channel non-independent
[   1.0000000] atabus1 at cmdide0 channel 1
[   1.0000000] ppb1 at pci0 dev 1 function 0: Sun Microsystems Simba PCI Bridge (rev. 0x11)
[   1.0000000] pci2 at ppb1 bus 2
[   1.0000000] virtio0 at pci2 dev 0 function 0
[   1.0000000] virtio0: block device (id 2, rev. 0x00)
[   1.0000000] ld0 at virtio0: features: 0x10000a54<INDIRECT_DESC,CONFIG_WCE,FLUSH,BLK_SIZE,GEOMETRY,SEG_MAX>
[   1.0000000] virtio0: interrupting at ivec 1810
[   1.0000000] ld0: 12288 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 25165824 sectors
[   1.0000000] pcons at mainbus0 not configured
[   1.0000000] WARNING: system needs entropy for security; see entropy(7)
[   1.0000030] No counter-timer -- using %tick at 100MHz as system clock.
[   4.0726510] atapibus0 at atabus1: 2 targets
[   4.0928460] cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00003, 2.5+> cdrom removable
QEMU 7.2.0 monitor - type 'help' for more information
(qemu) chardev-send-break serial0-base
(qemu) Stopped in pid 0.2 (system) at  netbsd:cpu_Debugger+0x4:        nop
db{0}>
bt
sparc_interrupt(56c6, 0, 1c60f58, 1af7c00, 2014000, 1033f0040) at netbsd:sparc_interrupt+0x294
uvmpdpol_idle(1c70900, 0, 2014000, 0, 2014000, 2014000) at netbsd:uvmpdpol_idle+0xf8
idle_loop(1afdcb8, 1a627a8, 1a627b8, 2014000, 0, e0048000) at netbsd:idle_loop+0x390
lwp_trampoline(ffd0d92c, 1167a0, 119b58, 1, ffe99670, 0) at netbsd:lwp_trampoline+0x8
db{0}> ps/w
PID   LID          COMMAND     EMUL  PRI WAIT-MSG    WAIT-CHANNEL
1        1             init   netbsd   63 lbolt        1c74a00
0       98           system   netbsd   96 sccomp       103efc980
0       97           system   netbsd   96              0
0       96           system   netbsd   96 npfgcw       1040e8688
0       59           system   netbsd  222 rt_free      1033e1c08
0       58           system   netbsd   96 unpgc        1ccafc0
0       57           system   netbsd  222 icmp6_wqinput 1033e1ac8
0       56           system   netbsd  222 nd6_timer    1033e1988
0       55           system   netbsd  222 carp6_wqinput 1033e1848
0       54           system   netbsd  222 carp_wqinput 1033e1708
0       31           system   netbsd  222 icmp_wqinput 1033e15c8
0       30           system   netbsd  222 rt_timer     1033e1488
0       29           system   netbsd  125 vmem_rehash  1033e1348
0       21           system   netbsd   96 biowait      103f44130
0       20           system   netbsd   63 entropy      1c71f68
0       19           system   netbsd   96 atath        103efc9c0
0       18           system   netbsd   96 atath        103efc3d0
0       17           system   netbsd   96 pmsreset     103ee3b94
0       16           system   netbsd   96 smtaskq      1c9ce48
0       15           system   netbsd   63 pmfsuspend   1033e0808
0       14           system   netbsd   63 pmfevent     1033e06c8
0       13           system   netbsd   96 sopendfr     1ccaf48
0       12           system   netbsd  222 ifwdog       1033e0588
0       11           system   netbsd  222 iflnkst      1033e0448
0       10           system   netbsd   63 nfssilly     1033e0308
0        9           system   netbsd  125 vdrain       1ccc0e0
0        8           system   netbsd  125 mod_unld     1cbf158
0        7           system   netbsd  127 xcall        2014010
0        6           system   netbsd  223              0
0        5           system   netbsd  220              0
0        4           system   netbsd  221              0
0        3           system   netbsd  222              0
0    >   2           system   netbsd    0              0
0        0           system   netbsd   43 cfgmisc      1cc4de0
db{0}> x/Lx 103f44130
103f44130:      10340f600
db{0}> bt/a
sparc_interrupt(56c6, 0, 1c60f58, 1af7c00, 2014000, 1033f0040) at netbsd:sparc_interrupt+0x294
uvmpdpol_idle(1c70900, 0, 2014000, 0, 2014000, 2014000) at netbsd:uvmpdpol_idle+0xf8
idle_loop(1afdcb8, 1a627a8, 1a627b8, 2014000, 0, e0048000) at netbsd:idle_loop+0x390
lwp_trampoline(ffd0d92c, 1167a0, 119b58, 1, ffe99670, 0) at netbsd:lwp_trampoline+0x8
db{0}> bt/a 10340f600
trace: pid 0 lid 21 at 0x2241d8d21
sleepq_block(0, 0, 1c5ef88, 1, 1cbec00, 10340f600) at netbsd:sleepq_block+0xa4
cv_wait(103f44130, 1c7bf80, 103efaad9, 1b10400, 1, 10340f600) at netbsd:cv_wait+0x3c
biowait(103f44040, 10340f600, ff070000000001, 103efaad8, 0, 103f44130) at netbsd:biowait+0x34
readdisklabel(12f02, 125e740, 103f01100, 103f03140, 103f03140, 103f44040) at netbsd:readdisklabel+0xa8
dk_getdisklabel(103efaa00, 12f02, 806, 2000, 103f01100, 19d4380) at netbsd:dk_getdisklabel+0x74
dk_open(103efaa00, 12f02, 40000001, 2000, 2, 10) at netbsd:dk_open+0x13c
cdev_open(12f02, 40000001, 2000, 10340f600, 19d43d8, 0) at netbsd:cdev_open+0xe8
spec_open(2241d9c90, 103ee5a40, 103ee59c0, 12f02, 103f402c0, 0) at netbsd:spec_open+0x228
VOP_OPEN(103f402c0, 40000001, ffffffffffffffff, 1c60a08, 12f00, 10340f600) at netbsd:VOP_OPEN+0x30
dkwedge_discover(103efaa18, 10340f600, 10340f600, 1afe800, 1ccc800, 10340ed80) at netbsd:dkwedge_discover+0x78
config_interrupts_thread(1c61000, 1c613e0, 1, 1cc4df0, 103f02e00, 103ee5740) at netbsd:config_interrupts_thread+0x8c
lwp_trampoline(ffd0d92c, 1167a0, 119b58, 1, ffe99670, 0) at netbsd:lwp_trampoline+0x8
db{0}> 


Home | Main Index | Thread Index | Old Index