Changes between Version 23 and Version 24 of Developer/Simulators/QEMU


Ignore:
Timestamp:
Aug 25, 2007, 1:13:19 AM (12 years ago)
Author:
ChrisJohns
Comment:

Updated the links.

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Simulators/QEMU

    v23 v24  
    33
    44You can run RTEMS in the open source processor emulator [http://fabrice.bellard.free.fr/qemu/ QEMU]. The QEMU emulator runs on a number of hosts including Linux and Windows. It also supports a number of [http://fabrice.bellard.free.fr/qemu/status.html processors].
     5
    56= QEMU On Windows =
    67
    78
    8 Install the RTEMS [wiki:TBR/UserManual/MinGW_Tools_for_Windows MinGW Tools for Windows]. Download the processor emulator you wish to use and install. For example we will install the i368 emulator to '''c:\rtems\i386\qemu-0.8.2-windows'''. Download the boot floppy image ftp://ftp.rtems.org/pub/rtems/qemu/i386-pc/rtems-boot.img to '''c:\rtems\i386'''. To run QEMU create the batch file '''c:\rtems\i386\qemu.bat''' with:
     9Install the RTEMS [wiki:TBR/UserManual/MinGW_Tools_for_Windows MinGW Tools for Windows]. Download the processor emulator you wish to use and install. For example we will install the i368 emulator to '''c:\rtems\i386\qemu-0.8.2-windows'''. Download the boot floppy image http://www.rtems.org/ftp/pub/rtems/qemu/i386-pc/rtems-boot.img to '''c:\rtems\i386'''. To run QEMU create the batch file '''c:\rtems\i386\qemu.bat''' with:
    910
    1011 rem @echo off
     
    1213 %QEMU%\qemu -L %QEMU% -m 128 -boot a -fda c:\rtems\i386\rtems-boot.img -hda fat:%1
    1314
    14 The boot floppy will look in the root directory the QEMU C: drive for a file called '''rtems-grub.cfg'''. The QEMU C: is a directory on your hard disk passed to QEMU on its command line and can be seen in the '''qemu.bat''' file we created as the '''-hda fat:%1''' option. The command line option we pass to '''qemu.bat''' is a directory that is the root directory the QEMU C: drive. For example download and build RTEMS for the i386 target as described on the [wiki:TBR/UserManual/MinGW_Tools_for_Windows MinGW Tools for Windows] page. Then install ftp://ftp.rtems.org/pub/rtems/qemu/i386-pc/rtems-grub.cfg into the '''c:\rtems\src\i386\i386-rtems4.7\c\pc586\testsuites\samples''' directory. Open the '''RTEMS (i386)''' command window by running '''c:\rtems\i386\rtems-cmd.bat''' then enter:
     15You can download this batch file from http://www.rtems.org/ftp/pub/rtems/qemu/i386-pc/qemu.bat.
     16
     17The boot floppy will look in the root directory the QEMU C: drive for a file called '''rtems-grub.cfg'''. The QEMU C: is a directory on your hard disk passed to QEMU on its command line and can be seen in the '''qemu.bat''' file we created as the '''-hda fat:%1''' option. The command line option we pass to '''qemu.bat''' is a directory that is the root directory the QEMU C: drive. For example download and build RTEMS for the i386 target as described on the [wiki:TBR/UserManual/MinGW_Tools_for_Windows MinGW Tools for Windows] page. Then install http://www.rtems.org/ftp/pub/rtems/qemu/i386-pc/rtems-grub.cfg into the '''c:\rtems\src\i386\i386-rtems4.7\c\pc586\testsuites\samples''' directory. Open the '''RTEMS (i386)''' command window by running '''c:\rtems\i386\rtems-cmd.bat''' then enter:
    1518
    1619 RTEMS(i386) C:\rtems\i386>qemu c:\rtems\src\i386\i386-rtems4.7\c\pc586\testsuites\samples
     
    2629We run RTEMS in QEMU by first booting from a floppy disk image containing the GRUB boot loader. You can use the image we have made by downloading it from the RTEMS ftp server. The following instructions built the image and were run on a Fedora Core 5 Linux host.
    2730
    28 Download the latest release of version 2 the [http://grub.enbug.org/FrontPage Grub boot loader] from [ftp://alpha.gnu.org/gnu/grub/]. Build the package with the following configure command:
     31Download the latest release of version 2 the [http://grub.enbug.org/FrontPage Grub boot loader] from ftp://alpha.gnu.org/gnu/grub/. Build the package with the following configure command:
    2932
    3033  $ ../grub-1.94/configure --prefix=/tmp/g2/build
     
    5659 umount $mnt
    5760
    58 The default '''grub.cfg''' file will attempt to read a GRUB configuration file called '''rtems-grub.cfg''' from the root directory of the harddisk. This lets you create a specific GRUB configuration for you testing without needing to rebuild the floppy image. An example configuration that lets you run the RTEMS Samples is:
     61The default '''grub.cfg''' file will attempt to read a GRUB configuration file called '''[http://www.rtems.org/ftp/pub/rtems/qemu/i386-pc/rtems-grub.cfg rtems-grub.cfg]''' from the root directory of the harddisk. This lets you create a specific GRUB configuration for you testing without needing to rebuild the floppy image. An example configuration that lets you run the RTEMS Samples is:
    5962
    6063 # RTEMS Grub configuration for the Samples