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


Ignore:
Timestamp:
09/25/06 03:28:34 (18 years ago)
Author:
ChrisJohns
Comment:

Update the floppy script and add the rtems-grub.cfg example.

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Simulators/QEMU

    v3 v4  
    2929 mkdir -p $workspace
    3030 cd $workspace
    31  grub-mkimage -o core.img _chain fat
     31 grub-mkimage -o core.img _chain ls pc multiboot gpt fat boot reboot configfile cat help
    3232 dd if=/dev/zero of=$file bs=512 count=2880
    3333 /sbin/mkdosfs $file
     
    3636 mkdir -p $mnt/boot/grub
    3737 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
     38 cat "configfile (hd0,0)/rtems-grub.cfg" > $mnt/boot/grub/grub.cfg
    3939 echo '(fd0)' $file > tmp_device.map
    4040 grub-setup -d $mnt/boot/grub -r '(fd0)' -m tmp_device.map '(fd0)'
    4141 rm -f tmp_device.map
    4242 umount $mnt
     43
     44The 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:
     45
     46 # RTEMS Grub configuration for the Samples
     47 
     48 set default=0
     49 
     50 menuentry "RTEMS - Hello" {
     51  set root=(hd0,0)
     52  multiboot (hd0,0)/hello/hello.exe
     53 }
     54 
     55 menuentry "RTEMS - Ticker" {
     56  set root=(hd0,0)
     57  multiboot (hd0,0)/ticker/ticker.exe
     58 }
     59 
     60 menuentry "RTEMS - Minimum" {
     61  set root=(hd0,0)
     62  multiboot (hd0,0)/minimum/minimum.exe
     63 }
     64 
     65 menuentry "RTEMS - Paranoia" {
     66  set root=(hd0,0)
     67  multiboot (hd0,0)/paranoia/paranoia.exe
     68 }
     69 
     70 menuentry "RTEMS - File IO" {
     71  set root=(hd0,0)
     72  multiboot (hd0,0)/fileio/fileio.exe
     73 }
     74 
     75 menuentry "RTEMS - Unlimited" {
     76  set root=(hd0,0)
     77  multiboot (hd0,0)/unlimited/unlimited.exe
     78 }
     79 
     80 menuentry "RTEMS - Loopback" {
     81  set root=(hd0,0)
     82  multiboot (hd0,0)/loopback/loopback.exe
     83 }
     84 
     85 menuentry "RTEMS - PPPD" {
     86  set root=(hd0,0)
     87  multiboot (hd0,0)/pppd/pppd.exe
     88 }
     89 
     90 menuentry "RTEMS - Base Mulitprocessor" {
     91  set root=(hd0,0)
     92  multiboot (hd0,0)/base_mp/base_mp.exe
     93 }
     94 
     95 menuentry "RTEMS - Base Single Processor" {
     96  set root=(hd0,0)
     97  multiboot (hd0,0)/base_sp/base_sp.exe
     98 }
     99 
     100 menuentry "RTEMS - C++ Static Constructors" {
     101  set root=(hd0,0)
     102  multiboot (hd0,0)/cdtest/cdtest.exe
     103 }
     104 
     105 menuentry "RTEMS - C++ IO Streams" {
     106  set root=(hd0,0)
     107  multiboot (hd0,0)/iostream/iostream.exe
     108 }