source: rtems-testing/sim-scripts/qemu-rtems.in @ b89f143

4.11
Last change on this file since b89f143 was 96c31138, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 20, 2009 at 8:17:05 PM

2009-01-20 Joel Sherrill <joel.sherrill@…>

  • .cvsignore, Makefile, gdb-sim-run.in, gdb-sim.in, skyeye-support: Add qemu-rtems script.
  • qemu-rtems.in: New file.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1#
2#  i386/qemu Support
3#
4#  $Id$
5#
6
7bspUsesGDBSimulator="no"
8runBSP=qemu
9bspNeedsDos2Unix="yes"
10
11# Set the defaults based upon arguments given and do some error checking
12if [ X${QEMUDIR} == X ] ; then
13  QEMUDIR=${HOME}/qemu
14fi
15if [ ! -d ${QEMUDIR} ] ; then
16  fatal Base directory ${QEMUDIR} does not exist or is not a directory
17fi
18
19if [ X${hd0Dir} == X ] ; then
20  hd0Dir=${QEMUDIR}/hd
21fi
22if [ ! -d ${hd0Dir} ] ; then
23  fatal VFAT directory ${hd0Dir} does not exist or is not a directory
24fi
25
26if [ X${fd0Image} == X ] ; then
27  fd0Image=${QEMUDIR}/pc386_fda
28fi
29if [ ! -e ${fd0Image} ] ; then
30  fatal Boot floppy ${fd0Image} does not exist or is not a file
31fi
32
33if [ ${verbose} == "yes" ] ; then
34  echo "QEMU Working Directory: " ${qemudir}
35  echo "QEMU VFAT HD Directory: " ${hd0Dir}
36  echo "QEMU Boot Floppy File : " ${fd0Image}
37fi
38
39runARGS()
40{
41  file ${1} | grep "Netboot image" >/dev/null 2>&1
42  if [ $? -eq 0 ] ; then
43    echo "INCORRECT FORMAT -- ${1}"
44    echo "MUST BE ELF -- look at using the .exe"
45    exit 1
46  fi
47  cp ${1} ${hd0Dir}/test.exe
48
49  echo "-m 8 -boot a -fda ${fd0Image} -hda fat:${hd0Dir} \
50         -monitor null -nographic -serial stdio --no-reboot"
51}
52
53checkBSPFaults()
54{
55  return 0
56}
57
58bspLimit()
59{
60  testname=$1
61  case ${tname} in
62    *stackchk*)limit=5 ;;
63    *fatal*)   limit=1 ;;
64    *psxtime*) limit=180 ;;
65    *)         limit=60 ;;
66  esac
67  return ${limit}
68}
69
70bspGeneratesDeviceTree="yes"
71bspTreeFile=edb7312.conf
72
73### Generate the PSIM device tree based upon the type of application being run
74bspGenerateDeviceTree()
75{
76cat <<EOF
77cpu: arm720t
78mach: ep7312
79mem_bank: map=I,type=RW, addr=0x80000000, size=0x00100000
80mem_bank: map=M, type=RW, addr=0x00000000, size=0x1000000
81uart: mod=pipe, desc_in=/dev/null, desc_out=/dev/stdout
82EOF
83}
Note: See TracBrowser for help on using the repository browser.