Current-Users archive

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

Re: NetBSD on qemu-ppc



2013/8/6 Felix Deichmann <m4j0rd0m0%gmail.com@localhost>:
> The question is why the emulated IDE disk is not recognized. /prep
> kernels seem to be quite limited regarding IDE controller support,
> maybe I have to roll my own?

The answer is that this stuff is configured through pnpbus for prep.
It seems that qemu-ppc (prep) does not implement the necessary PnP
stuff for NetBSD to detect the devices (or in a way NetBSD doesn't
handle)...

A custom kernel with devices attached to isa instead of pnpbus (and
leaving out a possibly non-functional PCI part) produces a much more
useful result (correct i/o addresses, irq numbers etc. are taken from
the qemu ppc/prep sources). It should be easy to create corresponding
installation images etc. now for further testing. Only VGA is not
working yet, probably PCI IRQs, and maybe RTC/NVM. (I hope "cpu0: 0.00
MHz" won't be a problem either...)


NetBSD 6.1 (QEMU) #0: Tue Aug  6 15:38:06 CEST 2013
        felix@xxx:/usr/src/sys/arch/prep/compile/QEMU
Model: Qemu
total memory = 128 MB
avail memory = 119 MB
mainbus0 (root)
cpu0 at mainbus0: 604 (Revision 1.3), ID 0 (primary)
cpu0: HID0 0xc084<ICE,DCE,SGE,BHT>, powersave: 1
cpu0: 0.00 MHz
Couldn't find PNP data for bus 0 devfunc 0x0
pci0 at mainbus0 bus 0: indirect configuration space access
pchb0 at pci0 dev 0 function 0
pchb0: Motorola Raven Host Bridge & Multi-Processor Interrupt
Controller (rev. 0x00)
pcib0 at pci0 dev 1 function 0: Intel 82378ZB System I/O (rev. 0x03)
unmatched vendor 0x1234 product 0x1111 (VGA display) at pci0 dev 2
function 0 not configured
isa0 at pcib0
ne0 at isa0 port 0x300-0x31f irq 9
ne0: NE2000 Ethernet
ne0: Ethernet address 52:54:00:12:34:56
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 mux 1
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
attimer0 at isa0 port 0x40-0x43
wdc0 at isa0 port 0x1f0-0x1f7 irq 13
atabus0 at wdc0 channel 0
wdc1 at isa0 port 0x170-0x177 irq 13
atabus1 at wdc1 channel 0
pcppi0 at isa0 port 0x61
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
attimer0: attached to pcppi0
vmmask 4f000000 schedmask 4f000000 highmask 7f000000
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
fd1 at fdc0 drive 1: 1.44MB, 80 cyl, 2 head, 18 sec
wd0 at atabus0 drive 0
wd0: <QEMU HARDDISK>
wd0: 4096 MB, 8322 cyl, 16 head, 63 sec, 512 bytes/sect x 8388608 sectors
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00003, 1.5.1> cdrom removable
boot device: mainbus0
can't determine root device
root device (default mainbus0):


Home | Main Index | Thread Index | Old Index