source: rtems-testing/sim-scripts/qemu-gumstix.in @ 0b15e02

4.11
Last change on this file since 0b15e02 was 0b15e02, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 11, 2010 at 3:58:38 PM

2010-03-11 Joel Sherrill <joel.sherrilL@…>

  • pc386.in, qemu-gumstix.in, qemu-leon2.in, qemuppc.in: Use qemu on path.
  • 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"
10runBSP=NOT_OVERRIDDEN
11if [ ! -r ${runBSP} ] ; then
12  runBSP=qemu-system-arm
13fi
14bspNeedsDos2Unix="yes"
15bspGeneratesDeviceTree="yes"
16bspInputDevice=qemu-gumstix.cmds
17bspTreeFile=qemu-gumstix.cmds
18bspRedirectInput=yes
19
20runARGS()
21{
22# qemu-system-arm -M connex -m 289 -nographic -monitor null -pflash connex-flash.img <cmds >log
23
24  UBOOT=${HOME}/qemu/u-boot-connex-400-r1604.bin
25  FLASH=connex-flash.img
26  ( dd of=${FLASH} bs=128k count=128 if=/dev/zero ;
27    dd of=${FLASH} bs=128k conv=notrunc if=${UBOOT} ;
28    dd of=${FLASH} bs=1k conv=notrunc seek=4096 if=${1} ) >/dev/null 2>&1
29
30  if [ ${coverage} = yes ] ; then
31     rm -f trace ${1}.tra
32     COVERAGE_ARG="-trace ${1}.tra"
33  fi
34
35  echo "-M connex -m 289 -nographic -monitor null \
36         -pflash ${FLASH} ${COVERAGE_ARG}"
37}
38
39checkBSPFaults()
40{
41  return 0
42}
43
44bspLimit()
45{
46  testname=$1
47  case ${testname} in
48    *stackchk*)limit=5 ;;
49    *fatal*)   limit=1 ;;
50    *minimum*) limit=1 ;;
51    *psxtime*) limit=180 ;;
52    *)         limit=60 ;;
53  esac
54  echo ${limit}
55}
56
57### Generate the commands we boot with
58bspGenerateDeviceTree()
59{
60cat >qemu-gumstix.cmds <<EOF
61
62bootelf 0x400000
63
64EOF
65}
Note: See TracBrowser for help on using the repository browser.