I'm trying to set up a virtualised qemu OpenBSD kernel debug environment, with a reasonable amount of success, but am running into the following problem on bootup :

com1: at isa0 port 0x2f8/8 irq 3panic: com_isa_attach: mapping failed
The operating system has halted

Presumably because the kernel debugger is already using it (it attaches fine after the initial boot -d). I note that in a non debug kernel it's referring to pccom instead of straight com... I imagine I'm doing something wrong?

My kernel config file is :

include "arch/i386/conf/GENERIC"

rmoption DDB
makeoptions DEBUG="-g"
option KGDB
option "KGDB_DEVNAME=\"com\"",KGDBADDR=0x2f8,KGDBRATE=19200

/etc/ttys has

tty01 "/usr/libexec/getty std.19200" unknown off local

(but it's not getting that far, is it?).

Do I need to rebuild the kernel with


option "KGDB_DEVNAME=\"pccom\"",KGDBADDR=0x2fs,KGDBRATE=19200

Perhaps? Or is this a virtualisation issue? I'm using qemu 0.91 under Vista x64 with redirected serial ports (-serial tcp:<binding IP address>:<port>,server,nowait)

Thanks!

PK

Reply via email to