Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
KBCOMMON:KB-CSSstyle
KBCOMMON:KB-CSSstyle

Name

ss20 – CHARON-SSP/V8 4M 32-bit SPARC Virtual Machine

e450 – CHARON-SSP/V9 4U 64-bit SPARC Virtual Machine

...

The sma utility is the lowest level access to the CHARON-AXP/SMA SSP virtual machine software.  It can be started in four different modes:

...

In utility mode it is possible to specify the -l and -k options to list and terminate running instances.  In both foreground and background mode, the sma software can be used to start a running Alpha SPARC virtual machine.  The difference between the two being that background mode will run the virtual machine as a daemon, releasing the controlling terminal.  Lastly, interactive mode will run a virtual machine as well as start an interactive command line described in the section Interactive Mode

...

Panel
bgColor#ffffff
titleBGColor#f0f0f0
title{{sma}} Command Line Utility Options
OptionDescription
-a alias_name

Assign alias_name to the new virtual machine instances. This option can be very useful when attempting to locate a specific instance in the list reported by the -l option.

If this option is not specified, a name of the form instance-%02d will be assigned by the sma utility.

-d

Run the virtual machine as a daemon.

This option cannot be specified with -s.

-f config_file

When starting a new instance, use this option to specify the location of the virtual machine configuration file. For further details of the format of this file see the /wiki/spaces/DocCHAXPSMAv2240L/pages/32473949 section.

This is not an optional argument.

-s

Start the sma virtual machine in interactive mode. See the section Interactive Mode below.

This option cannot be specified with -d.

-hDisplay a brief usage message.
-k pid

Stop the virtual machine instance specified by pid. Use the -l to determine the process id of the relevant instance.

This option cannot be specified with an others.

-l

This option lists the currently running CHARON-AXP/SMA SSP instances. The list is constructed of the following columns:

  • pid – process id of the virtual machine,
  • alias – instance alias specified by the -a option at startup,
  • start time – timestamp indicating when the virtual machine instance was started,
  • log time – timestamp indicating last event, and
  • log code – descriptive code indicating the type of event.

This option cannot be specified with any others.

...

Running the sma virtual machine with the -s option will, as well as starting a virtual machine, start an interactive command line on the controlling terminal.  This command line is indicated by the CHARON/SS20> or CHARON-AXP/SMA>E450> prompt and allows the user to query and manipulate the operation of the running virtual machine.  The terminal output shown below shows the tail end of the virtual machine start up messages before displaying the prompt.

Panel
bgColor#ffffff
titleBGColor#f0f0f0
titleInteractive Mode Session

2015-0102-09 1125 15:30:21 INFO    ES40     DIT is ON59:31 INFO    vm       DIT is ON
2015-0102-09 1125 15:30:21 INFO    Thread   System has 2 processor59:31 INFO    Thread   System has 2 processor(s).
2015-01-09 11:30:22 INFO    CPU      Host CPU frequency is 2494Mhz
2015-01-09 11:30:23 ERROR   PC16550  Failed to start putty!
 
2015-01-09 11:30:24 INFO    Thread   Set CPU thread to No.1 processor
2015-01-09 11:30:25 INFO    SRM CONSOLE model es40
CHARON-AXP/SMA>02-25 15:59:31 INFO    NVRAM    Initialize NVRAM with ./vm.nvram......
2015-02-25 15:59:31 INFO    Memory   Allocating 67108864 bytes memory from system...
2015-02-25 15:59:32 INFO    NET      Find 2 interfaces.
2015-02-25 15:59:32 INFO    NET      Connected to eth0.
2015-02-25 15:59:32 INFO    NET      Set 'eth0' to promiscuous mode successfully
2015-02-25 15:59:35 INFO    License  Virtual hardware model SPARCstation_20 is licensed
2015-02-25 15:59:35 INFO    License  Current UTC time:    2015-02-25 07:59:03
2015-02-25 15:59:35 INFO    License  Expiration UTC time: 2015-08-26 23:55:00
2015-02-25 15:59:35 INFO    Thread   Set CPU thread to No.1 processor
2015-02-25 15:59:35 INFO    NET      Network RX started on eth0
CHARON/SS20>

Note

Interactive Mode does not refer to running the Alpha SRM SPARC Open Boot console in the current tty.

The following command reference describes the syntax and operation of the commands supported in this version of CHARON-AXP/SMA SSP for GNU/Linux.

Panel
bgColor#ffffff
titleBGColor#f0f0f0
titleInteractive Mode Command Reference
dit [ on | off | reset ]
Control the operation of the Dynamic Instruction Translation (DIT) engine. To display the current DIT execution counters do not specify any argument.
CommandDescription
Arguments
onEnable the DIT engine.
offDisable the DIT engine.
resetReset the DIT engine statistics counters.
help [ command ]

Display command line help.
Arguments
commandSpecify a command name to return more specific help. This argument is optional.
memory d [address size ]


Display a region of memory within the virtual machine. If no parameters are specified the command will use the previous values for address and size.
Arguments
address 
size 
set m address value


Set the 8-bit value at address to value.
Arguments
addressAddress of memory location to update. This address is specified in hexadecimal notation.
value8 bit value to be stored at address. This value is specified in hexadecimal notation.
quitExit the virtual machine. This is equivalent of executing power off from the Alpha SRM console.

Exit Status

The smass20 virtual machine exits 0 on success and 255 if an error occurs.

...

The following is a very basic example configuration file.

Panel
bgColor#ffffff
titleBGColor#f0f0f0
titleExample SPARCstation 20 Configuration

[system]
model = AS200
toy = vm.toy
env = vm.env
  
[memory]
size = 128
  
[ewa0]
interface = eth0
  
[opa0]
type = socket
port = 9000
  model = "SPARCstation_20"
 
[ram]
size = 64
 
[nvram]
path = ./vm.nvram
 
[ethernet]
interface = eth0
 
[ttya]
type = socket
port = 9000
 
[log]
severity severity = info info
destination destination = console console
path path = vm vm.log

Assuming the configuration file above is stored in vm.config the following commands can be used to start the virtual machine and connect to the console.

# /opt/charon-axpspk-smass20/sma ss20 -f vm.config

This will generate output similar to the following on the current terminal:

Panel
bgColor#ffffff
titleBGColor#f0f0f0
titleCHARON-AXP/SMA SSP Virtual Machine Output

***********************************************************
 
   CHARON-AXPSPK/SMA V2SS20 V1.20.1413
   Copyright    Copyright (C) 2015 Stromasys S 2015 Stromasys S.A. All Rights Reserved All Rights Reserved.
 
***********************************************************
 
2015-0102-21 1625 14:30:47 INFO    EMULATOR Build time: Sep 25 2014 10:54:1050:50 INFO    vm       Build time: Feb 11 2015 11:49:38
2015-0102-21 1625 14:3050:47 INFO    EMULATOR Version50 INFO    vm       Version: CHARON CHARON-AXP/SMA/as200 V2.2.14SPK/SS20 V1.0.13
2015-0102-21 1625 14:3050:47 INFO    EMULATOR Copyright 50 INFO    vm       Copyright (C) 2015 Stromasys S 2015 Stromasys S.A. All Rights Reserved All Rights Reserved.
2015-0102-21 1625 14:3050:47 INFO    System   OS  : Linux snoopy 3.10.0-123.13.2.el7.x86_64 x8650 INFO    System   OS  : Linux localhost.localdomain 3.8.13-35.3.1.el7uek.x86_64 x86_64
2015-0102-21 1625 14:3050:47 INFO    System CPU 50 INFO    System   CPU : Intel Intel(R) Core Core(TM) i5-4300U CPU @ 1.90GHz (running under 64bit i5-4300U CPU @ 1.90GHz (running under 64bit)
2015-0102-21 1625 14:3050:47 INFO    System   Total memory50 INFO    System   Total memory: 3003MB 3683MB
2015-0102-21 1625 14:3050:47 INFO    System   Free memory 50 INFO    System   Free memory : 1664MB 227MB
2015-0102-21 1625 14:30:49 INFO    License  Licensed product: "CHARON-AXP/SMA VAR all Signatures for Windows and Linux x64"50:50 INFO    vm       DIT is ON
2015-0102-21 1625 14:30:49 INFO    License  Licensed virtual hardware: AS200
2015-01-21 16:30:49 INFO    License  Virtual hardware model as200 is licensed
2015-01-21 16:30:49 INFO    License  Maximum concurrent instances are limited to 3
2015-01-21 16:30:49 INFO    License  Maximum allowed virtual CPU(s) are 4
2015-01-21 16:30:49 INFO    License  Maximum virtualized RAM is 16384MB
2015-01-21 16:30:49 INFO    License  Major version number is 2
2015-01-21 16:30:49 INFO    License  Minor version number is 2
2015-01-21 16:30:49 INFO    License  Maximum build number is 100
2015-01-21 16:30:49 INFO    License  Minimum build number is 1
2015-01-21 16:30:49 INFO    License  Maximum allowed CPU speed is 100%
2015-01-21 16:30:49 INFO    License  Current UTC time:    2015-01-21 08:36:49
2015-01-21 16:30:49 INFO    License  Expiration UTC time: 2015-04-29 23:55:00
2015-01-21 16:30:49 INFO    EB164    DIT is ON
2015-01-21 16:30:49 INFO    Thread   System has 2 processor(s).
2015-01-21 16:30:49 INFO    CPU      Host CPU frequency is 2494Mhz
2015-01-21 16:30:49 INFO    NET      Find 2 interfaces.
2015-01-21 16:30:49 INFO    NET      Connected to eth0.
2015-01-21 16:30:49 INFO    NET      Set 'eth0' to promiscuous mode successfully
2015-01-21 16:30:50 INFO    ALPHA_SYS Use local MAC 4A:83:68:E0:65:11
2015-01-21 16:30:50 INFO    NET      Network RX started on eth0
2015-01-21 16:30:52 INFO    Thread   Set CPU thread to No.1 processor
2015-01-21 16:30:53 INFO    SRM CONSOLE model as200

...

50:50 INFO    Thread   System has 2 processor(s).
2015-02-25 14:50:50 INFO    NVRAM    Initialize NVRAM with ./vm.nvram......
2015-02-25 14:50:50 INFO    Memory   Allocating 67108864 bytes memory from system...
2015-02-25 14:50:50 INFO    NET      Find 2 interfaces.
2015-02-25 14:50:50 INFO    NET      Connected to eth0.
2015-02-25 14:50:50 INFO    NET      Set 'eth0' to promiscuous mode successfully

The following shows the SPARC Open Boot console after the virtual machine has started:

Alpha Emulator Firmware
Version 2.2.14
AlphaStation 200
Initialized physical memory: 128 MB
Loaded HWRPB: physical address 2000
Initialized CPU0
 
CPU0 halted: power up
 
P00>>>
Panel
bgColor#ffffff
titleBGColor#f0f0f0
titleAlpha SRM Console Ouptut
Open Boot Console Ouptut

           SMCC SPARCstation 20 Emulator by Stromasys
 
 
CPU_#0       TI, TMS390Z50(3.x)       0Mb External cache
 
CPU_#1       ****** NOT installed ******
CPU_#1       ****** NOT installed ******
CPU_#1       ****** NOT installed ******
 
 
           >>>>> Power On Self Test (POST) is running .... <<<<<
 
SPARCstation 20 (1 X 390Z50), No Keyboard
Emulate OBP Rev. 2.25, 64 MB memory installed, Serial #12648430.
Ethernet address 2:c:29:4a:d3:29, Host ID: 72c0ffee.
 
 
Type  help  for more
 
ok