Changes between Version 7 and Version 8 of TBR/BSP/Niagara


Ignore:
Timestamp:
May 12, 2010, 11:22:32 PM (9 years ago)
Author:
Gedare
Comment:

/* Downloading and Executing */

Legend:

Unmodified
Added
Removed
Modified
  • TBR/BSP/Niagara

    v7 v8  
    4949
    5050Describe the download procedure.
     51= Simics =
     52
     53Simics is a commercially licensed simulator.  These instructions assume you can set up and run Simics independently and have the proper licenses.  For a free simulator, try M5 as described below.
     54
     55TODO
     56= M5 =
     57
     58Follow the instructions on the [http://www.m5sim.org/wiki/index.php/Main_Page M5 wiki] for getting started.  The examples given are for the Alpha targets.  You will also want to compile and install the m5term application.
     59
     60To build the sparc full system targets, use:
     61
     62    $ scons build/SPARC_FS/m5.debug
     63    $ scons build/SPARC_FS/m5.opt
     64    $ scons build/SPARC_FS/m5.prof
     65    $ scons build/SPARC_FS/m5.fast
     66
     67Download and extract the [http://www.opensparc.net/offers/OpenSPARCT1_Arch.1.5.tar.bz2 OpenSparc architecture and performance modeling tools]. Copy *.bin and nvram1 from OpenSPARCT1_Arch.1.5/S10image/ to the /dist/m5/system/binaries/ directory.  Also copy disk.s10hw2 from the S10image/ directory to the /dist/m5/system/disks/ directory.  Rename reset.bin, q.bin, and openboot.bin to reset_new.bin, q_new.bin, and openboot_new.bin, which are the binaries expected by the m5 SPARC_FS scripts.
     68
     69In a terminal window, start the simulator with:
     70
     71    $ build/SPARC_FS/m5.debug -d /tmp/output configs/example/fs.py
     72
     73In another terminal, connect to the simulator with:
     74
     75    $ m5term localhost 3457
     76
     77 You should eventually see this in your m5term window:
     78
     79    ==== m5 slave terminal: Terminal 0 ====
     80
     81    Sun Fire T2000, No Keyboard
     82    Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
     83    OpenBoot 4.20.0, 256 MB memory available, Serial #1122867.
     84    [mo23723 obp4.20.0 #0]
     85    Ethernet address 0:80:3:de:ad:3, Host ID: 80112233.
     86
     87
     88
     89    ok
     90
     91 The "ok" prompt is the OpenBoot prompt.  Just type boot and press enter, and the OpenSparc Solaris image will start to boot.
     92
     93The sparc64 sun4v BSP will boot on the SPARC_FS full system simulator of M5.  The first step is to bundle RTEMS executables and SILO on to a bootable ISO9660 filesystem.  [http://code.google.com/p/rtemssparc64/ rtemssparc64] has some scripts to help create the bootable disk, which uses the same approach for booting RTEMS on Simics Niagara.  Next change the ${m5}/configs/common/FSConfig.py file and replace disk('disk.s10hw2') with disk('image.iso'), where image.iso is the ISO9660 filesystem image built for booting RTEMS.  M5 will look in /dist/m5/system/disks for the image.iso file, so link image.iso to the /dist/m5/system/disks/image.iso location.  For more details on using RTEMS with M5 see [http://gedare-csphd.blogspot.com/2010/05/week-in-m5.html this blog].
    5194= Debugging =
    5295