We haven?t really used any of these configurations here in CMU. However, I
will try to answer your question. 

 

I believe that you need to modify the do_at_prompt() function in
prepare-test-app-v9.simics. The purpose of this function is to perform
automatically the login process in the newly booted machine, kill some of
the Solaris daemons to have a more quite system and then launch the
application. Some of the statements there may give you the problem you
observing. Specifically, the ?wait_for_string()? call will block the script
until the simulated machine prints on the screen the specific string given
as parameter. Since you now have changed OS, it is highly possible that the
messages printed on the screen are different than the ones in Solaris. 

 

The instructions you want to execute in this function should look like this:

- wait for login prompt

- do the login (since you now have linux this might be similar to the login
process in the x86 script)

- mount the new disk with the application

- start the application

 

The first thing you should do is to have a very simple do_at_prompt() that
would do nothing (just ?continue?). In this way you will be able to see and
interact with the system and decide on the set of instructions you need to
execute in order to perform the previously mentioned objectives. 

 

Good luck!

 

Evangelos

 

  _____  

From: simflex-bounces at ece.cmu.edu [mailto:simflex-bounces at ece.cmu.edu] On
Behalf Of sparsh1 mittal1
Sent: Monday, June 15, 2009 12:56 PM
To: simflex at ece.cmu.edu
Subject: [Simflex] Help for installing ultrasparc over linux

 

Hello

On simics website, the images for cashew and bagle machine ('linux on
sparc') are available. In order to use and install them, I changed the
"prepare-test-app" file as follows:
abisko-common.simics  ==> cashew-common.simics (and serengeti==> sunfire)

In prepare-test-app-v9 I changed :
serengeti==> sunfire
serengeti-6800... ==> sunfire-6500
abisko-setup.include ==> cashew-setup.include

I have also downloaded the image files. Thus instead of solaris on sparc, I
want linux on sparc.

However, despite these, on running the modified file: ./prepare-test-app
with Is_V9=1, the installation stops at one point. Please let me know of the
mistake. It seems the scripts require some other modifications too, which I
am not able to see. I will be grateful for the help.
Here is the output of this command:

$./prepare-test-app 
Launching simulation using Flexus version 3.0.0 (using SIMICS 3 version)
Checking out a license... done: academic license.
                              
  +----------------+    Copyright 1998-2007 by Virtutech, All Rights
Reserved
  |   Virtutech    |    Version: Simics 3.0.31
  |     Simics     |    Build: 1406  Host: x86-linux
  +----------------+
    www.simics.com      "Virtutech" and "Simics" are trademarks of Virtutech
AB

Use of this software is subject to appropriate license.
Type 'copyright' for details on copyright.
Type 'help help' for info on the on-line documentation.

Switching to high addresses 
Setting up TLBs Done
MMU ON
PC = 0000.01ff.f000.1cb8
PC = 0000.0000.0000.1d24
Decompressing into Memory Done
Size = 0000.0000.0006.d840
ttya initialized
Using POST's System Configuration
Setting up memory
Clock board TOD does not match TOD on any IO board.
fhc ac simm-status environment sram flashprom SUNW,UltraSPARC-II 
Probing UPA Slot at 2,0   sbus fhc ac environment flashprom eeprom
sbus-speed counter-timer 
Probing UPA Slot at 3,0   sbus counter-timer 
Probing /sbus at 2,0 at 1,0  Nothing there
Probing /sbus at 2,0 at 2,0  Nothing there
Probing /sbus at 3,0 at 3,0  SUNW,hme SUNW,fas sd st 
Probing /sbus at 3,0 at 0,0  Nothing there
16-slot Sun Enterprise E6500, No Keyboard
OpenBoot 3.2.29, 256 MB memory installed, Serial #8407660.
Copyright 2001 Sun Microsystems, Inc.  All rights reserved
Ethernet address 10:10:10:10:10:12, Host ID: 80804a6c.



Boot device: /sbus at 3,0/SUNW,fas at 3,8800000/sd at 1,0  File and args: linux
The file just loaded does not appear to be executable.
ok cryptoadm stop
cryptoadm ?
ok pkill dhcpagent
pkill ?
ok pkill powerd
pkill ?
ok svcadm milestone milestone/single-user
svcadm ?

===========IT STOPS HERE FOR A LONG TIME=====================

Here is the sunfire-6500-system.include:

if not defined hostid        {$hostid        = 0x80804a6c}
if not defined freq_mhz      {$freq_mhz      = 168}
if not defined mac_address   {$mac_address   = "10:10:10:10:10:12"}
if not defined disk_size     {$disk_size     = 2128486400}
if not defined rtc_time      {$rtc_time      = "2002-06-02 13:00:00 UTC"}
if not defined num_cpus      {$num_cpus      = 1}
if not defined memory_megs   {$memory_megs   = 256}
if not defined save_slot2    {$save_slot2    = "no"}

###

add-directory "%simics%/targets/sunfire/images/"

import-pci-components
import-std-components
import-sun-components
import-sunfire-components

$system = (create-sunfire-6500-backplane cpu_frequency = $freq_mhz
                                         hostid = $hostid
                                         mac_address = $mac_address
                                         rtc_time = $rtc_time)

$board = 0
$cpus_left = $num_cpus
$megs_left = $memory_megs

while $cpus_left or $megs_left {
    $cpubrd[$board] = (create-sunfire-cpu-board
                           num_cpus = (min $cpus_left 2)
                           memory_megs = (min $megs_left 4096))
    $system.connect ("slot" + $board) $cpubrd[$board]
    if $board == 0 {
        $system.connect central-cpu $cpubrd[$board]
    }
    $cpus_left = (max ($cpus_left - 2) 0)
    $megs_left = (max ($megs_left - 4096) 0)
    $board += 1
    if $board == 1 {$board = 2}
    if $board == 2 and ($save_slot2 == yes) {$board = 3}
}

$sbusbrd = (create-sunfire-sbus-board mac_address = $mac_address)
$scsi_bus = (create-std-scsi-bus)
$scsi_disk = (create-std-scsi-disk scsi_id = 1 size = $disk_size)
$flex_disk = (create-std-scsi-disk scsi_id = 1 size = 4256972800 file =
"flexus-test-app-disk_v9.craff")
$scsi_cdrom = (create-std-scsi-cdrom scsi_id = 6)
$console = (create-std-text-console)

###

$system.connect slot1 $sbusbrd
$sbusbrd.connect $scsi_bus
$scsi_bus.connect $scsi_disk
$scsi_bus.connect $flex_disk
$scsi_bus.connect $scsi_cdrom
$system.connect ttya $console

$machine_defined = 1

-- 
Thanks and Regards
Sparsh Mittal
Graduate Student

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://sos.ece.cmu.edu/pipermail/simflex/attachments/20090616/5c7e0444/attachment.html>

Reply via email to