source: rtems-testing/sim-scripts/qemu-gumstix.in @ 4af9ee0

4.11
Last change on this file since 4af9ee0 was 4af9ee0, checked in by Glenn Humphrey <glenn.humphrey@…>, on Jan 13, 2010 at 10:21:02 PM

2010-01-13 Glenn Humphrey <glenn.humphrey@…>

  • gdb-sim-run.in, pc386.in, qemu-gumstix.in, qemuppc.in, uC5282.in: Removed explicit conversion from a trace. It is now being read as a trace from covmerge.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1#
2#  ARM/GumStix Connex Qemu Support
3#
4#  $Id$
5#
6
7bspUsesGDBSimulator="no"
8# bspGeneratesGDBCommands="yes"
9# bspSupportsGDBServerMode="yes"
10if [ -r ${HOME}/qemu-coverage/install/bin/qemu-system-arm ] ; then
11  runBSP=${HOME}/qemu-coverage/install/bin/qemu-system-arm
12else
13  runBSP=qemu-system-arm
14fi
15bspNeedsDos2Unix="yes"
16bspGeneratesDeviceTree="yes"
17bspInputDevice=qemu-gumstix.cmds
18bspTreeFile=qemu-gumstix.cmds
19bspRedirectInput=yes
20
21runARGS()
22{
23# qemu-system-arm -M connex -m 289 -nographic -monitor null -pflash connex-flash.img <cmds >log
24
25  UBOOT=${HOME}/qemu/u-boot-connex-400-r1604.bin
26  FLASH=connex-flash.img
27  ( dd of=${FLASH} bs=128k count=128 if=/dev/zero ;
28    dd of=${FLASH} bs=128k conv=notrunc if=${UBOOT} ;
29    dd of=${FLASH} bs=1k conv=notrunc seek=4096 if=${1} ) >/dev/null 2>&1
30
31  if [ ${coverage} = yes ] ; then
32     rm -f trace ${1}.tra
33     COVERAGE_ARG="-trace ${1}.tra"
34  fi
35
36  echo "-M connex -m 289 -nographic -monitor null \
37         -pflash ${FLASH} ${COVERAGE_ARG}"
38}
39
40checkBSPFaults()
41{
42  return 0
43}
44
45bspLimit()
46{
47  testname=$1
48  case ${testname} in
49    *stackchk*)limit=5 ;;
50    *fatal*)   limit=1 ;;
51    *minimum*) limit=1 ;;
52    *psxtime*) limit=180 ;;
53    *)         limit=60 ;;
54  esac
55  echo ${limit}
56}
57
58### Generate the commands we boot with
59bspGenerateDeviceTree()
60{
61cat >qemu-gumstix.cmds <<EOF
62
63bootelf 0x400000
64
65EOF
66}
Note: See TracBrowser for help on using the repository browser.