Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / cpus / vonk / ss / api / sam / src / use.txt
CommitLineData
920dae64
AT
1Getting Started with SAM
2========================
3
4SAM provides three wizard scripts to get started with SAM
5
6o getsolaris - create a directory with Solaris software
7o simulate - create a SAM configuration (rc-file) and start SAM
8
9These three wizard scripts are in the bin directory of the release.
10In this document we assume that this bin directory is on your PATH.
11
12There are man pages under the man directory of the release. Add the
13man directory to you MANPATH environment variable to see the man
14pages for the three wizard scripts.
15
16% man getsolaris
17% man simulate
18
19
20Solaris
21=======
22
23First get a set of binaries to run Solaris
24To see which Solaris versions are available do:
25
26% getsolaris -p n2 -l
27
28This will output something along the lines of
29
30Use -v with one of: int12
31
32Then use -v with the version you want to use:
33
34% getsolaris -p n2 -v int12 int12
35
36This creates a directory int12 that contains a number
37of soft-links
38
39% cd int12
40% ls -l
41total 42
42...
43... 52 Mar 28 16:00 disk1 -> .../disk1
44...
45
46If you see the above you are ready to start running SAM. If not then
47check the error message: is the version correct? does the directory exist?
48getsolaris expects that the destination directory int12 does not exists.
49
50Now start SAM through the wizard
51
52% simulate -p n2 -c 1c1t -s -a -v
53
54This will create a SAM n2 configuration for the 1c1t (one strand)
55machine description (md). The -s option tells simulate to boot
56solaris, -a tells simulate to auto boot obp followed by solaris,
57and -v tells simulate to boot solaris in verbose mode.
58
59At the SAM prompt 'sam>>>' type run, and this should take you to
60the solaris login prompt. Login as root.
61
62A bigger configuration can be booted with
63
64% simulate -p n2 -c 1c2t -w2 -s -a -v
65
66using a two strand md (cpu0 and cpu2) and two worker threads.
67Make sure you use -w P on a machine with P or more cpus.