[Prev][Next][Index][Thread]

Re: examples



Cesare Zavattari has been quoted as saying:
> I've compiled oskit-20000505.tar.gz on a Linux RedHat 6.2 with the
> egcs-1.1.2-30 compiler. Now I'd like to try the examples. I've done
> 
> dd if=multiboot of=/dev/fd0
> 
> and I restarted the system, but at the start-up nothing happens. I've
> tried also with others examples with the same results.
> Can you help me?

     Unlike linux kernels, Oskit kernels aren't directly bootable.
That's because linux kernels include boot code in them, whereas an
oskit kernel is just an a.out or ELF executable.

     However, I've just recently hacked the oskit linuxboot code to do
exactly this (or rather incorporated the linux floppy boot code into
linuxboot).  If you want to try it out, you'll need to get the new
linuxboot.bin image from our ftp site:

	ftp://fast.cs.utah.edu/flux/oskit/boot/linux/linuxboot.bin

     There's also a new perl script to generate images in the same
directory (mklinux2).  To use it you'll just need to replace a couple
variables at the top, or set the BOOTDIR, CC and LD environment
variables: 

$bootdir = $ENV{"BOOTDIR"};
$cc = $ENV{"CC"};
$ld = $ENV{"LD"};
if (!$cc) { $cc = "@CC@"; }
if (!$ld) { $ld = "@LD@"; }
if (!$bootdir) { $bootdir = "@prefix@/lib/boot"; }
$bb="$bootdir/linuxboot.bin";

     CC and LD should be the same as what you used to build the
oskit.  BOOTDIR is wherever you put the new linuxboot.bin.


     Once you've done that, you can run the script as so:

	  mklinux2 <oskit kernel>

     You'll end up with a zImage file that you can then dd to a floppy
and boot.


steve

-- 
// stephen clawson				sclawson@cs.utah.edu
// university of utah			        


References: