source: mainline/contrib/conf/HelenOS.sparc64.simics@ badbd888

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since badbd888 was 8d4a577, checked in by Jakub Jermar <jakub@…>, 19 years ago

Add sample configuration file for running HelenOS/sparc64 in Simics 3.0.

  • Property mode set to 100644
File size: 3.5 KB
Line 
1#
2# This configuration file was assembled from the bagle machine
3# configuration files as found in Simics 3.0.21. It won't probably
4# work in Simics versions prior to Simics 3.0.
5#
6# The machine simulated is SunFire server Sun Enterprise E6500.
7#
8# - modified to boot from CD-ROM
9# - framebuffer color depth set to 24bpp
10#
11
12script-branch {
13 wait-for-variable machine_defined
14 $pcibrd = (create-sunfire-pci-board mac_address = "10:10:10:10:10:14")
15 $pgx64 = (create-sun-pci-pgx64)
16 $gfxcon = (create-std-graphics-console)
17 $keyboard = (create-sun-type5-keyboard)
18 $mouse = (create-sun-type5-mouse)
19 $scsi_bus = (create-std-scsi-bus)
20
21 $system.connect slot2 $pcibrd
22 $pcibrd.connect pci-slot0 $pgx64
23 $pcibrd.connect $scsi_bus
24 $system.connect keyboard $keyboard
25 $system.connect mouse $mouse
26
27 $gfxcon.connect $pgx64
28 $gfxcon.connect $keyboard
29 $gfxcon.connect $mouse
30}
31
32$save_slot2 = "yes"
33
34if not defined hostid {$hostid = 0x80804a6c}
35if not defined freq_mhz {$freq_mhz = 168}
36if not defined mac_address {$mac_address = "10:10:10:10:10:12"}
37if not defined disk_size {$disk_size = 2128486400}
38if not defined rtc_time {$rtc_time = "2002-06-02 13:00:00 UTC"}
39if not defined num_cpus {$num_cpus = 1}
40if not defined memory_megs {$memory_megs = 256}
41if not defined save_slot2 {$save_slot2 = "no"}
42
43add-directory "%simics%/targets/sunfire/images/"
44
45import-pci-components
46import-std-components
47import-sun-components
48import-sunfire-components
49
50$system = (create-sunfire-6500-backplane cpu_frequency = $freq_mhz
51 hostid = $hostid
52 mac_address = $mac_address
53 rtc_time = $rtc_time)
54
55$board = 0
56$cpus_left = $num_cpus
57$megs_left = $memory_megs
58
59while $cpus_left or $megs_left {
60 $cpubrd[$board] = (create-sunfire-cpu-board
61 num_cpus = (min $cpus_left 2)
62 memory_megs = (min $megs_left 4096))
63 $system.connect ("slot" + $board) $cpubrd[$board]
64 if $board == 0 {
65 $system.connect central-cpu $cpubrd[$board]
66 }
67 $cpus_left = (max ($cpus_left - 2) 0)
68 $megs_left = (max ($megs_left - 4096) 0)
69 $board += 1
70 if $board == 1 {$board = 2}
71 if $board == 2 and ($save_slot2 == yes) {$board = 3}
72}
73
74$sbusbrd = (create-sunfire-sbus-board mac_address = $mac_address)
75$scsi_bus = (create-std-scsi-bus)
76$scsi_disk = (create-std-scsi-disk scsi_id = 1 size = $disk_size)
77$scsi_cdrom = (create-std-scsi-cdrom scsi_id = 6)
78$console = (create-std-text-console)
79
80$system.connect slot1 $sbusbrd
81$sbusbrd.connect $scsi_bus
82$scsi_bus.connect $scsi_disk
83$scsi_bus.connect $scsi_cdrom
84$system.connect ttya $console
85
86$machine_defined = 1
87
88instantiate-components
89
90$eth_comp = $sbus_fas_hme
91$eth_cnt = ""
92run-command-file "%simics%/targets/common/add-eth-link.include"
93
94if not defined ip_address {$ip_address = "10.10.0.6"}
95
96if $service_node {
97 local $sn = ($service_node.get-component-object sn)
98 ($sn.add-host name = $host_name
99 ip = $ip_address domain = network.sim
100 mac = $mac_address)
101}
102
103default-port-forward-target $ip_address
104
105$cdrom_path = "/home/jermar/software/HelenOS/image.iso"
106($scsi_cdrom.get-component-object cd).insert (new-file-cdrom $cdrom_path)
107
108$system.set-prom-env boot-command "boot cdrom"
109$system.set-prom-env auto-boot? true
110$system.set-prom-env "output-device" "screen:r1152x900x76x24"
Note: See TracBrowser for help on using the repository browser.