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

Changes between Version 2 and Version 3 of Developer/Simulators/QEMU


Ignore:
Timestamp:
09/24/06 11:36:43 (18 years ago)
Author:
ChrisJohns
Comment:

Add the floppy instruction.

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Simulators/QEMU

    v2 v3  
    1010
    1111
    12 ftp://alpha.gnu.org/gnu/grub/
     12We RTEMS in QEMU by first booting from a floppy disk image. 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.
    1313
    14 http://grub.enbug.org/TestingOnX86
     14Download 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:
     15
     16  $ ../grub-1.94/configure --prefix=/tmp/g2/build
     17  $ make all install
     18
     19where the prefix can be anything suitable for your machine. If configure fails with a missing LZO library check you have the lzo-devel package installed.
     20
     21To make the floppy image follow the instructions in the Grub Wiki at http://grub.enbug.org/TestingOnX86. This script is adapted from the instructions:
     22
     23 #! /bin/sh -x
     24 grub=/tmp/g2/build
     25 workspace=/tmp/g2
     26 mnt=$workspace/mnt/loop
     27 file=$workspace/rtems-boot.img
     28 export PATH=$grub/bin:$grub/sbin:$PATH
     29 mkdir -p $workspace
     30 cd $workspace
     31 grub-mkimage -o core.img _chain fat
     32 dd if=/dev/zero of=$file bs=512 count=2880
     33 /sbin/mkdosfs $file
     34 mkdir -p $mnt
     35 mount -o loop -t vfat $file $mnt
     36 mkdir -p $mnt/boot/grub
     37 cp $grub/lib/grub/i386-pc/boot.img core.img $grub/lib/grub/i386-pc/*.mod $mnt/boot/grub
     38 test -f grub.cfg && cp -f grub.cfg $mnt/boot/grub
     39 echo '(fd0)' $file > tmp_device.map
     40 grub-setup -d $mnt/boot/grub -r '(fd0)' -m tmp_device.map '(fd0)'
     41 rm -f tmp_device.map
     42 umount $mnt