drops-demo from hard disk

Shakthi Kannan shakthimaan at yahoo.com
Tue Oct 4 18:02:49 CEST 2005


--- Adam Lackorzynski <adam at os.inf.tu-dresden.de>
> Umm, why not install GRUB properly in hdb4? Goes
> like this:
> mkfs.ext2 /dev/hdb4
> mkdir /tmp/x
> mount /dev/hdb4 /tmp/x
> grub-install --root-directory=/tmp/x /dev/hdb4

Worked like a charm! Thanks Adam.

Here is a brief HOWTO:

fiasco-DROPS with grub on hard disk

I first had to compile grub with the os1 patch
exclusively for fiasco-DROPS. So, I downloaded
grub-0.97.tar.gz (onto the testbed computer on the
GNU/Linux partition) from:


I downloaded the grub-0.97-os.1.diff.gz patch from:


Extracted grub-0.97 and gunzipped the diff patch.
Entered into the grub-0.97 sources and applied the
patch using:

 $cd grub-0.97/
 $patch -p0 < /path/to/patch

Created a build directory, did configure, make and
make install

 $mkdir build
 $./configure --prefix=/path/to/build
 $make install

I created a primary partition on my testbed computer
for fiasco-DROPS, made an ext2 filesystem on that,
setup a mount point and installed grub to it.

 #mkfs.ext2 /dev/hdb4
 #mkdir /mnt/fiasco
 #mount /dev/hdb4 /mnt/fiasco
 #grub-install --root-directory=/mnt/fiasco /dev/hdb4

I copied all the compiled modules into

I added an entry in the grub in the MBR for this new
fiasco-DROPS partition as:

 title Fiasco-DROPS
 root (hd0,3)
 chainloader +1

In the boot/grub installed to /dev/hdb4, I have a
menu.lst file that contains the following:

 set P             := (hd0,3)/l4/v2
 set GRUB          := (hd0,3)/boot/grub
 title The "hello" program
 kernel $(P)/bootstrap
 modaddr 0x01500000
 module $(P)/fiasco $(FIASCOARGS)
 module $(P)/sigma0
 module $(P)/roottask
 module $(P)/hello

The hello thread iterates on bootup!


Shakthi Kannan, MS
Software Engineer, Specsoft (Hexaware Technologies)
[E]: shakthimaan at yahoo.com           [M]: (91) 98407-87007
[W]: http://www.shakthimaan.com      [L]: Chennai, India

Yahoo! Mail - PC Magazine Editors' Choice 2005 

More information about the l4-hackers mailing list