Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Changes between Version 35 and Version 36 of Developer/Simulators/QEMU


Ignore:
Timestamp:
04/07/10 06:13:30 (14 years ago)
Author:
Gedare
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Simulators/QEMU

    v35 v36  
    140140
    141141to load and run your image.
     142= Using the gcc-testing Module =
     143
     144
     145The automated testing infrastructure provided by the gcc-testing module from CVS can be used to run applications in QEMU.
     146
     147The first step is to check out gcc-testing from CVS.  Instructions can be found on the [wiki:TBR/Delete/RTEMS_CVS_Repository RTEMS CVS Repository] page.
     148
     149Create two directories, ~/qemu and ~/qemu/hd.
     150  mkdir ~/qemu
     151  mkdir ~/qemu/hd
     152
     153There is a qemu-support directory in gcc-testing with a boot floppy image. Copy gcc-testing/qemu-support/pc386_fda.bz2 to ~/qemu. 
     154  cp ./qemu-support/pc386_fda.bz2 ~/qemu
     155
     156Unzip (bunzip or bzip2) pc386_fda.bz2.
     157  bunzip ~/qemu/pc386_fda*
     158
     159Run make at the root of the gcc-testing module.  This should create a pc386 script in ./sim-scripts. 
     160To use these scripts for pc386, you have to build RTEMS with USE_COM1_AS_CONSOLE=1 and BSP_PRESS_KEY_FOR_RESET=0 on the configure command line.
     161For example
     162{{{
     163../rtems/configure --target=i386-rtems4.10 \
     164   --prefix=$INSTALL --disable-multiprocessing \
     165   --disable-cxx --disable-rdbg \
     166   --enable-maintainer-mode --enable-tests \
     167   --enable-networking --enable-posix \
     168   --disable-itron --disable-deprecated \
     169   --disable-ada --disable-expada \
     170   --enable-rtemsbsp=pc386 \
     171   USE_COM1_AS_CONSOLE=1 BSP_PRESS_KEY_FOR_RESET=0
     172}}}
     173
     174If you run
     175  ./bin/pc386 -i PATH_TO_MY_EXE
     176The pc386 script will copy your executable to ~/qemu/hd/test.exe, which is what pc386_fda boots. You should see the result in your console.  Scripts to run other simulators are in the sim-scripts directory.
    142177= Running RTEMS TCP/IP Applications =
    143178