- Timestamp:
-
04/07/10 06:13:30 (14 years ago)
- Author:
-
Gedare
- Comment:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v35
|
v36
|
|
140 | 140 | |
141 | 141 | to load and run your image. |
| 142 | = Using the gcc-testing Module = |
| 143 | |
| 144 | |
| 145 | The automated testing infrastructure provided by the gcc-testing module from CVS can be used to run applications in QEMU. |
| 146 | |
| 147 | The 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 | |
| 149 | Create two directories, ~/qemu and ~/qemu/hd. |
| 150 | mkdir ~/qemu |
| 151 | mkdir ~/qemu/hd |
| 152 | |
| 153 | There 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 | |
| 156 | Unzip (bunzip or bzip2) pc386_fda.bz2. |
| 157 | bunzip ~/qemu/pc386_fda* |
| 158 | |
| 159 | Run make at the root of the gcc-testing module. This should create a pc386 script in ./sim-scripts. |
| 160 | To 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. |
| 161 | For 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 | |
| 174 | If you run |
| 175 | ./bin/pc386 -i PATH_TO_MY_EXE |
| 176 | The 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. |
142 | 177 | = Running RTEMS TCP/IP Applications = |
143 | 178 | |