Running NetBSD in the Emulator

From ES40 Emulator
Jump to: navigation, search

Running NetBSD works to a degree at this point. Here's what configuration is used for NetBSD 5.1 boot iso.

Config file

gui = sdl
{
 keyboard.use_mapping = false;
 keyboard.map = "keys.map";
}

sys0 = tsunami
{
 rom.srm = "rom/cl67srmrom.exe";
 rom.decompressed = "rom/decompressed.rom";
 rom.flash = "rom/flash.rom";
 memory.bits = 29;

 cpu0 = ev68cb
 {
   icache = false;
 }

 pci0.7 = ali {
   mouse.enabled = true;
   lpt.outfile = "lpt.out";
   vga_console = true;
 }

 pci0.19 = ali_usb {}

 pci0.3 = sym53c810
 {
  disk0.0 = file
   {
     file =          "img/dka0.img";
     read_only     = false;
     cdrom         = false;
     autocreate_size = 1000M;
   }
   disk0.4 = file
   {
     file =          "img/netbsd.iso";
     read_only     = true;
     cdrom         = true;
   }
   disk0.5 = ramdisk
   {
     size = 200M;
   }
 }

 serial0 = serial {
   port = 21264;
 }

}

Obtaining NetBSD iso

Download it from one of the NetBSD mirrors. I got it from here I renamed it to netbsd.iso and put it in img/ just for clarity.


Running

After launching the emulator, telnetting to 21264 and booting from dka400 here is how far it gets:

Connected to localhost.
Escape character is '^]'.
This is serial port #0 on ES40 Emulator


OpenVMS PALcode V1.98-104, Tru64 UNIX PALcode V1.92-105

starting console on CPU 0
initialized idle PCB
initializing semaphores
initializing heap
initial heap 240c0
memory low limit = 1b0000 heap = 240c0, 17fc0
initializing driver structures
initializing idle process PID
initializing file system
initializing hardware
initializing timer data structures
lowering IPL
CPU 0 speed is 500 MHz
create dead_eater
create poll
create timer
create powerup
access NVRAM
Memory size 512 MB
testing memory
..
probe I/O subsystem
probing hose 1, PCI
probing hose 0, PCI
probing PCI-to-ISA bridge, bus 1
bus 0, slot 3 -- pka -- NCR 53C810
starting drivers
entering idle loop
*** system serial number not set. use set sys_serial_num command.
Partition 0, Memory base: 000000000, size: 020000000
initializing GCT/FRU at 1c8000
Initializing pka 
Memory Testing and Configuration Status
  Array       Size       Base Address    Intlv Mode
---------  ----------  ----------------  ----------
    0        512Mb     0000000000000000    4-Way

     512 MB of System Memory
Testing the System
Testing the Disks (read only)
AlphaServer ES40 Console V7.3-1, built on Feb 27 2007 at 12:57:47
P00>>>show devices
P00>>>show dev
dka0.0.0.3.0               DKA0                           RZ58  2000
dka400.4.0.3.0             DKA400                        RRD42  4.5d
dka500.5.0.3.0             DKA500                         RZ58  2000
dva0.0.0.1000.0            DVA0                               
pka0.7.0.3.0               PKA0                  SCSI Bus ID 7
P00>>>boot dka400
(boot dka400.4.0.3.0 -flags 0)
block 0 of dka400.4.0.3.0 is a valid boot block
reading 12 blocks from dka400.4.0.3.0
bootstrap code read in
base = 200000, image_start = 0, image_bytes = 1800(6144)
initializing HWRPB at 2000
initializing page table at 1ff56000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code

NetBSD/alpha 5.1 ISO 9660 Primary Bootstrap
Jumping to entry point...

NetBSD/alpha 5.1 Secondary Bootstrap, Revision 1.13
(builds@b8.netbsd.org, Sat Nov  6 13:44:45 UTC 2010)

VMS PAL rev: 0x4006800010162
OSF PAL rev: 0x400690002015c
Switch to OSF PAL code succeeded.

Boot flags: 0
9800080+331728=0x9a9f20

Entering netbsd at 0xfffffc0000431140...
Unrecognized boot flag '0'.
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010
    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 5.1 (INSTALL) #0: Sat Nov  6 13:56:26 UTC 2010
	builds@b8.netbsd.org:/home/builds/ab/netbsd-5-1-RELEASE/alpha/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/alpha/compile/INSTALL
AlphaServer ES40, 500MHz, s/n 
8192 byte page size, 1 processor.
total memory = 512 MB
(2736 KB reserved for PROM, 509 MB used by NetBSD)
avail memory = 492 MB
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264C-6
cpu0: Architecture extensions: 1305<PAT,MVI,CIX,BWX>
tsc0 at mainbus0: 21272 Core Logic Chipset, Cchip rev 0
tsc0: 8 Dchips, 2 memory buses of 16 bytes
tsc0: arrays present: 512MB, 0MB, 0MB, 0MB, Dchip 0 rev 1
tsp0 at tsc0
pci0 at tsp0 bus 0
siop0 at pci0 dev 3 function 0: Symbios Logic 53c810 (fast scsi)
siop0: interrupting at dec 6600 irq 16
scsibus0 at siop0: 8 targets, 8 luns per target
sio0 at pci0 dev 7 function 0: vendor 0x10b9 product 0x1533 (rev. 0xc3)
vendor 0x10b9 product 0x5237 (USB serial bus, interface 0x10, revision 0x03) at pci0 dev 19 function 0 not configured
isa0 at sio0
lpt0 at isa0 port 0x3bc-0x3bf irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
com0: console
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux ignored)
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 (mux ignored)
mcclock0 at isa0 port 0x70-0x71: mc146818 compatible time-of-day clock