Subject: netbsd-MALTA on qemu
To: None <port-evbmips@NetBSD.org>
From: Alexander Voropay <alec@sensi.org>
List: port-evbmips
Date: 01/28/2008 12:12:45
Hi!

 Did anyone try to run netbsd-MALTA on the qemu/MIPS ?

 The current (CVS) qemu emulates MALTA well enough to run MIPS Linux
on this platform.

 Unfortunately there are some troubles with netbsd-MALTA:


1) The current NetBSD/MIPS does not understand MIPS 24K core,
the standart for qemu/MIPS

$ qemu-system-mipsel -M malta -nographic -kernel netbsd-MALTA
panic: CPU type (0x19300) not supported
Terminated

Can someone add a MIPS 24K core support ?



2) It runs with 4Kc core, but hangs very early

$ qemu-system-mipsel -M malta -cpu 4Kc -nographic -kernel netbsd-MALTA
MIPS32/64 params: cpu arch: 32
MIPS32/64 params: TLB entries: 16
MIPS32/64 params: Icache: line = 16, total = 2048, ways = 2
                 sets = 64
MIPS32/64 params: Dcache: line = 16, total = 2048, ways = 2
                 sets = 64
  picache_stride    = 1024
  picache_loopcount = 2
  pdcache_stride    = 1024
  pdcache_loopcount = 2
Timer calibration: 199947200 cycles/sec [(6298300, 6198400) * 16]
[ Kernel symbol table missing! ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 4.0 (MALTA) #0: Sat Dec 15 22:13:51 PST 2007
        builds@wb39:/home/builds/ab/netbsd-4-0-RELEASE/evbmips-mipsel/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/evbmips/compile/MALTA
total memory = 128 MB
avail memory = 120 MB
timecounter: Timecounters tick every 10.000 msec
mainbus0 (root)
cpu0 at mainbus0: 199.94MHz (hz cycles = 999736, delay divisor = 100)
cpu0: MIPS 4Kc (0x18000) Rev. 0 with software emulated floating point
cpu0: 2KB/16B 2-way set-associative L1 Instruction cache, 16 TLB entries
cpu0: 2KB/16B 2-way set-associative write-back L1 Data cache
gt0 at mainbus0 addr 0x1be00000
pci0 at gt0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Galileo Technology GT-64120A System Controller (rev. 0x10)
pcib0 at pci0 dev 10 function 0
pcib0: Intel 82371AB (PIIX4) PCI-ISA Bridge, (rev . 0x00)
pciide0 at pci0 dev 10 function 1
pciide0: Intel 82371AB (PIIX4) IDE controller (rev. 0x00)
pciide0: device disabled (at device)
uhci0 at pci0 dev 10 function 2: Intel 82371AB (PIIX4) USB Host
Controller (rev. 0x01)
uhci0: can't map i/o space
Intel 82371AB (PIIX4) Power Management Controller (miscellaneous
bridge) at pci0 dev 10 function 3 not configured
pcn0 at pci0 dev 11 function 0: AMD PCnet-PCI Ethernet
pcn0: Unknown PCnet-PCI variant rev 7, Ethernet address 00:00:00:00:00:00
panic: pcib_isa_intr_string: bogus isa irq 0x0
Stopped in pid 0.1 (swapper) at 0x802b0954:     jr      ra
                bdslot: nop
db>