Changes between Version 9 and Version 10 of TBR/UserManual/QemuTutorial


Ignore:
Timestamp:
Aug 14, 2009, 7:18:42 PM (10 years ago)
Author:
Cocanlucian
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TBR/UserManual/QemuTutorial

    v9 v10  
    22
    33
    4 In order to be able to run RTEMS you need an execution environment. The easieast way is to use [http://www.nongnu.org/qemu/index.html QEMU] and [http://www.gnu.org/software/mtools/intro.html mtools] to emulate a PC. This is a tutorial showing how I got RTEMS running on QEMU. This tutorial assumes that you have successfully built RTEMS on your computer.
    5 TODO Add a tutorial on how to start with RTEMS too. It would be great to have all this information in one place.
     4In order to be able to run RTEMS you need an execution environment. The easieast way is to use [http://www.nongnu.org/qemu/index.html QEMU] and [http://www.gnu.org/software/mtools/intro.html mtools] to emulate a PC. This is a tutorial showing how to get RTEMS running on QEMU and also how to make use of the RTEMS FAT filesystem (in order to get the trace file on your host filesystem). This tutorial assumes that you have successfully built RTEMS on your computer.
     5''TODO Add a tutorial on how to start with RTEMS too. It would be great to have all this information in one place.''
    66
    771. Clearly, QEMU needs to be installed on your computer.
     
    4949   mcopy kernel.gz a:
    5050
    51 6. Create a disk image (20 MBytes):
     516. Create a disk image of 20 MBytes and create a MS-DOS FAT16 file system on it:
    5252
    53    dd if=/dev/zero of=hdd.img bs=512 count=20160
     53   dd if=/dev/zero of=hdd.img bs=1024 count=20160
     54   mkdosfs -F 16 hdd.img
    5455
    55 7. Now start QEMU using the following command:
     567. Open your ~/.mtoolsrc file and add the following information:
    5657
    57 Use a disk image as an HDD:
     58   drive c:
     59   file="path_to_hdd.img"
     60
     61You should now be able to access the hard disk image that you have created, using '''mtools'''. For example, typing '''mdir c:''' should list all the files on your hard disk image.
     62
     637. Now start QEMU using the following command (use the disk image created):
    5864
    5965   qemu -serial stdio -boot a -m 128 -fda 'path to floppy.img' -hda 'path to the hdd.img' --no-reboot
    6066
    61 Use a d
     67The list of the QEMU options used in this command it's explained [wiki:QEMU_  here].