fdisk image for pistachio

cheeky <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.l4ka.general
Organization CREST
Message-ID <1180869541.11276.16.camel@localhost>
Aeeeee!

I jumped into the kernel debugger. Yes, my problem was about GRUB
settings, but the getting started with L4Ka::pistachio on ia32 document
has a little deprecated information. It's still quite good, but I think
so.


First, I hope to mention to download source from CVS repository. Of
course, I'm such a fool because I only tried to download tarball source.
Some newbies like me need more detail information.

Secondly, I post the following script to create floppy disk image which
sets GRUB settings correctly.

---------------------------
#!/bin/bash

rm -rf fdsource
mkdir fdsource
mkdir -p fdsource/boot/grub
cp /boot/grub/stage1 fdsource/boot/grub/
cp /boot/grub/stage2 fdsource/boot/grub/
cp ia32-kernel-build/ia32-kernel fdsource/
cp ia32-user-build/libexec/l4/* fdsource/

cat > fdsource/boot/grub/menu.lst << EOT
default     0
timeout     3
#serial --port=0x3f8 --speed=115200
#terminal --timeout=0 serial
title       L4Ka::Pistachio
root        (fd0)
kernel      /kickstart
module      /ia32-kernel
module      /sigma0
module      /pingpong
EOT

dd if=/dev/zero of=fd.img bs=512 count=2880
losetup /dev/loop/0 fd.img
mke2fs /dev/loop/0
mount -t ext2 -o loop /dev/loop/0 /mnt/fda
chmod 777 /mnt/fda
cp -aR fdsource/* /mnt/fda
umount /mnt/fda

/sbin/grub --batch --device-map=/dev/null << EOT
device  (fd0) /dev/loop/0
root    (fd0)
setup   (fd0)
quit
EOT

losetup -d /dev/loop/0
---------------------------


I tested in Ubuntu Dapper, gcc 4.0.3, GRUB 0.97.

As you know, I had to revise something provided in the Getting started
document. It could be very small, but I'm now happy to solve my problem
with GRUB manual. :)






Lastly, I had to modify the file, "pistachio/user/Mk/l4.lib.mk" as
follows :

-$(INSTALL) lib$(LIBRARY).a $(DESTDIR)$(libdir)/lib$(LIBRARY).a

I put '-' prior to $(INSTALL) to ignore error message. It says when
installing user-code :

/usr/bin/install: `libl4.a' and
`/home/cheeky/pistachio/ia32-user-build/../ia32-user-build/lib/l4/libl4.a' are the same file


Even though I fixed it, when installing user-code it gives a lot of
warning messages that they can't be copied. and Finally, it terminates.
Fortunately, I had no problem building user-applications themselves, and
obtaining the programs "ia32-user-build/libexec/*". Therefore, I could
see the boot-screen.


However, it's bothering to see lots of warning and/or error messages
when installing user-code applications. Thnak you.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.