|
|
1.1 root 1: # $Id: SUN4-75,v 1.2 2007/03/29 01:24:52 fredette Exp $
2:
3: ## SUN4-75 - example tmesh commands to create a Sun 4/75 (SPARCstation 2)
4: ## machine:
5:
6: ## the basic Sun 4/75 "Calvin" board, CPU, and sbus:
7: ##
8: board0: tme/machine/sun4 name Calvin
9: cpu0 at board0: tme/ic/cy7c601 fpu-type tms390-c602A fpu-compliance partial fpu-incomplete trap
10: sbus0: tme/generic/bus size 4GB slot-addr 0xf8000000 slot-size 32MB slot 0 slot 1 slot 2 slot 3
11: sbus0 controller at board0 sbus
12:
13: ## the sun4c mainbus RAM, ROM, and devices:
14: ##
15: ## NOTE THAT THE ram0 SIZE MUST BE A MULTIPLE OF 16MB, which is
16: ## the maximum bank size of the SS2, AND NO MORE THAN 64MB.
17: ## Once ram0 has reached 64MB, uncomment the ram1 line for 96MB of
18: ## total memory, and then the ram2 line for 128MB of total memory:
19: ##
20: alias mainbus0 sbus0
21: ram0 at mainbus0 addr 0x0: tme/host/posix/memory ram 16MB
22: #ram1 at mainbus0 addr 0x08000000: tme/host/posix/memory ram 32MB
23: #ram2 at mainbus0 addr 0x0a000000: tme/host/posix/memory ram 32MB
24: rom0 at mainbus0 addr 0xf6000000: tme/host/posix/memory rom sun4-75-rev-2.9.bin
25: zs0 at mainbus0 addr 0xf1000000 ipl 12: tme/machine/sun4/zs
26: zs1 at mainbus0 addr 0xf0000000 ipl 12: tme/machine/sun4/zs
27: nvram0 at mainbus0 addr 0xf2000000: tme/host/posix/memory persistent my-sun4c-nvram.bin
28: clock0 at mainbus0 addr 0xf20007f8: tme/machine/sun4/clock type tme/ic/mk48t02
29: board0 timer at mainbus0 addr 0xf3000000
30: board0 memerr at mainbus0 addr 0xf4000000
31: board0 intreg at mainbus0 addr 0xf5000000
32: fdc0 at mainbus0 addr 0xf7200000 ipl 11: tme/machine/sun4/fdc type tme/ic/i82072
33: audioamd0 at mainbus0 addr 0xf7201000 ipl 13: tme/ic/am7930
34: board0 auxreg at mainbus0 addr 0xf7400003
35:
36: ## the Sun type-4 keyboard and mouse:
37: ##
38: kbd0 at zs1 channel A: tme/serial/keyboard type sun-type-4-us macros my-sun-macros.txt map sun-keyboards.txt rate 20
39: ms0 at zs1 channel B: tme/serial/mouse type mousesystems-5
40:
41: ## IF YOU DO NOT ATTACH kbd0 at zs1 channel A, THEN YOU MUST ATTACH
42: ## sink0 at zs1 channel A, otherwise the PROM's keyboard poll never
43: ## finishes:
44: ##
45: #sink0 at zs1 channel A: tme/serial/sink
46:
47: ## ttya:
48: ##
49: # comment the first line, and uncomment the following line if you
50: # aren't using the GTK-based display console. this will connect ttya
51: # to the master side of a pseudo-tty (in this case, /dev/ttyr0), which
52: # you can connect to using tip or some other serial communications
53: # program on the slave side (in this case, /dev/ptyr0):
54: #
55: sink1 at zs0 channel A: tme/serial/sink
56: #console0 at zs0 channel A: tme/host/posix/serial device /dev/ttyr0 break-carats
57:
58: ## the SBus esp SCSI:
59: ##
60: esp0 at sbus0 slot 0 offset 0x800000 ipl 3: tme/ic/lsi64854 revision "1+" channel scsi
61: esp0 dma at sbus0 slot 0 offset 0x400000
62: ncr0 at esp0 master: tme/ic/ncr53c9x variant esp100
63: scsibus0 at ncr0: tme/scsi/bus
64:
65: ## the SBus LANCE Ethernet:
66: ##
67: # uncomment the bpf0 line if you have read/write permission on one
68: # of your /dev/bpfN devices and you want actual network access:
69: #
70: le0 at sbus0 slot 0 offset 0xc00000 ipl 5 dma-offset 0xff000000: tme/ic/am7990
71: #bpf0 at le0: tme/host/bsd/bpf
72:
73: ## an SBus cgthree:
74: ##
75: cgthree0 at sbus0 slot 1 offset 0x0 ipl 7: tme/bus/sbus/cgthree
76: cgthreerom0 at sbus0 slot 1 offset 0x0: tme/host/posix/memory rom "SUNW,501-1415.bin"
77:
78: ## an SBus bwtwo:
79: ##
80: # uncomment these lines if you want a bwtwo either in addition to, or
81: # instead of, the cgthree:
82: #
83: #bwtwo0 at sbus0 slot 2 offset 0x0 ipl 7: tme/bus/sbus/bwtwo
84: #bwtworom0 at sbus0 slot 2 offset 0x0: tme/host/posix/memory rom "SUNW,501-1561.bin"
85:
86: ## the GTK-based display console:
87: ##
88: # comment out these lines, and the bwtwo0 and cgthree0 declarations
89: # above, if you don't have GTK or you don't want a display console:
90: #
91: display0: tme/host/gtk/display
92: display0 at cgthree0
93: #display0 at bwtwo0
94: display0 at kbd0
95: display0 at ms0
96:
97: ## a SCSI disk:
98: ##
99: #
100: sd0 at scsibus0: tme/scsi/disk id 3 type tme-scsi-1
101: disk0 at sd0: tme/host/posix/disk file my-sun4c-disk.img
102:
103: ## a SCSI tape:
104: ##
105: st0 at scsibus0: tme/scsi/tape id 4 type tme-scsi-1
106: tape0 at st0: tme/host/posix/tape
107:
108: ## set the idle type, so tmesh doesn't consume all of the host CPU:
109: ##
110: # use the appropriate type for the guest operating system:
111: #
112: # NetBSD/sparc 1.6, 2.x, 3.x, 4.x: netbsd32-type-0
113: # SunOS 4.1.x: sunos32-type-0
114: #
115: command cpu0 idle-type netbsd32-type-0
116:
117: ## power up the machine:
118: ##
119: # uncomment this line to automatically power up the machine when
120: # tmesh starts:
121: #
122: #command board0 power up
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.