1#!/bin/sh
2#
3#  The optional parameter to this function specifies the name
4#  of a binary file to be in the 'flash2' device. You can
5#  boot this binary by typing:
6#
7#  cfe> boot -elf -rawfs flash2:
8#
9#
10if [ "$1" ]; then
11    sb1250-run \
12        --sim-check-undefined \
13        --add-hw flash2.m4 \
14        --with-boot-flash-file cfe.srec \
15        --with-boot-flash-type ram \
16        --no-file \
17        --with-swarm-devs \
18        --with-sample-pci-devs \
19        --with-swarm-ide \
20        --with-swarm-ide-disk0-file disk0.dsk \
21        --with-swarm-ide-disk0-size 60 \
22        --with-memory-config 2x32 \
23        --with-swarm-rtc-eeprom-file x1240rom.bin \
24        --with-swarm-pcmcia-flash-file $1
25else
26    sb1250-run \
27        --sim-check-undefined \
28        --with-boot-flash-file cfe.srec \
29        --with-boot-flash-type ram \
30        --no-file \
31        --with-swarm-devs \
32        --with-sample-pci-devs \
33        --with-swarm-ide \
34        --with-swarm-ide-disk0-file disk0.dsk \
35        --with-swarm-ide-disk0-size 60 \
36        --with-memory-config 2x32 \
37        --with-swarm-rtc-eeprom-file x1240rom.bin 
38fi
39