On Sat, Oct 28, 2006 at 09:04:17AM +0400, Bruno Carnazzi wrote:
>      Hi all,
> 
> I'm trying to use qemu-0.8.1 from package to build a port test environment.
> While under X11, everything seems ok (vm boot and install ok), I can't get
> any i/o from a terminal using -nographic option. I've try to use some
> combinaison of -monitor stdio and -serial stdio without success.
> 
> I know that with -nographic, vm output is redirected to the serial port, but
> how can I read it ? cu ?
> Is there some openbsd specific stuff here ?

Just setup your OpenBSD like with serial console[1]. I've my OpenBSD LiveCD
and checked that few seconds before and it's working except boot.conf
file (cdboot itn's reading cd0a:/etc/boot.conf). Below examples for Qemu:

$ cat etc/boot.conf
# /etc/boot.conf; see boot(8) for more information.
stty com0 115200
set tty com0
set timeout 5
set image /bsd
echo Welcome to the OpenBSD/i386

$ grep tty00 etc/ttys
tty00   "/usr/libexec/getty std.115200" vt100   on  secure

$ qemu \
        -nographic \
        -serial stdio \
        -m 128 \
        -boot d \
        -cdrom cdrom.iso \
        -hda virtual.hd

I'm attaching dmesg which don't has console redirected to pccom0, but
that is because, as wrote above, cdboot doesn't read my boot.conf file.
If you have hdd instalation in qemu you should be able to edit above
files like shown here and it should works.

References
 1. http://www.openbsd.org/faq/faq7.html#SerCon

-- 
best regards
q#
OpenBSD 4.0-current (GENERIC_CD) #2: Wed Oct 25 09:50:17 IST 2006
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC_CD
cpu0: QEMU Virtual CPU version 0.8.1 ("GenuineIntel" 686-class) 4.12 GHz
cpu0: 
FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3
real mem  = 133787648 (130652K)
avail mem = 114606080 (111920K)
using 1663 buffers containing 6811648 bytes (6652K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(37) BIOS, date 06/23/99, BIOS32 rev. 0 @ 0xf9f00
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfa1e0/128 (6 entries)
pcibios0: PCI Interrupt Router at 000:01:0 ("Intel 82371SB ISA" rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <QEMU HARDDISK>
wd0: 16-sector PIO, LBA48, 1024MB, 2097152 sectors
wd0(pciide0:0:0): using PIO mode 0, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <QEMU, QEMU CD-ROM, 0.8.> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 0, DMA mode 1
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ne3 at pci0 dev 3 function 0 "Realtek 8029" rev 0x00: irq 11, address 
52:54:00:12:34:56
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16450, no fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: density unknown
fd1 at fdc0 drive 1: density unknown
biomask e76d netmask ef6d ttymask ffef
pctr: 686-class user-level performance counters enabled
mtrr: CPU supports MTRRs but not enabled
nvram: invalid checksum
wd0: no disk label
dkcsum: wd0 matches BIOS drive 0x80
root on cd0c
rootdev=0x602 rrootdev=0xf02 rawdev=0xf02
WARNING: preposterous time in file system
clock: unknown CMOS layout
WARNING: file system time much less than clock time

Reply via email to