[okl4-developer] Is there an small "how to use OKL4 images on Qemu"?
Geoffrey Lee
glee at ok-labs.com
Tue May 6 14:35:24 EST 2008
On Tue, May 06, 2008 at 04:31:17AM +1000, Geoffrey Lee wrote:
> On Mon, May 05, 2008 at 12:15:03PM +0200, Antonin SUBTIL wrote:
> > I apologize but.. I made it wrong.
>
Hi Antonin
The problem is in the VGA configuration and FB configuration you need
to pass the -serial stdio flag to QEMU. VGA and FB only makes
sense for OK Linux, OKL4 itself only supports serial I/O.
Hence, I think the system actually booted fine, but the console output
was lost leading to the image of a "hung" system.
Let us know if that works.
-gl
> Hi Antonin
>
> The vga and fb targets only make sense when compiling with OK Linux,
> it adds vga and fb support to OK Linux. The build system does, however,
> switch grub to a non-serial configuration when compiled with vga or
> fb.
>
> I'll have a look at this when I get into the office later on, in the
> meantime you can use the serial configuration if you are not building
> with OK Linux as it doesn't actually do anything unless you use
> OK Linux.
>
> -gl
>
>
> >
> > SIMULATE >
> > ./tools/build.py project=iguana machine=ia32_pc99 test_libs=all
> > toolprefix=/users/asubtil/opt/nicta/gcc-3.3.4-glibc-2.3.3/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-
> > simulate (OK, cannot launch qemu)
> > QEMU 0.9.0> (an fedora rpm unpacked in home space)
> > qemu -hda /users/asubtil/okl4_2.1/build/images/c.img -L
> > /users/asubtil/usr/share/qemu -nographic -serial stdio (OK)
> >
> > these 2 lines works properly, all tests passed.
> >
> > SIMULATE >
> > ./tools/build.py project=iguana machine=ia32_pc99_vga test_libs=all
> > toolprefix=/users/asubtil/opt/nicta/gcc-3.3.4-glibc-2.3.3/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-
> > simulate (OK, cannot launch qemu)
> > QEMU >
> > qemu -hda /users/asubtil/okl4_2.1/build/images/c.img -L
> > /users/n348894/usr/share/qemu (ERROR GRUB)
> >
> > Not working ("GRUB Loading") (Well, this might not be the "good" case, but I
> > just wanted to try :p )
> >
> > Last one : _fb (same as _vga) : same result as vga
> >
> > (I must admit I made it dirty : always same directory without cleaning
> > myself... but it doesn't matter, it seems, as everything is compiling again
> > each time, maybe due to the machine changed)
> >
> > 2008/5/5 Geoffrey Lee <glee at ok-labs.com>:
> >
> > > On Mon, May 05, 2008 at 11:33:42AM +0200, Antonin SUBTIL wrote:
> > > > Thanks.
> > > >
> > > > Simulate works in generating c.img, and then I can use it with "qemu
> > > [path
> > > > to c.img] -L [path to share/qemu]". (because I have Qemu-rpm unpacked in
> > > > home folder, not root access)
> > > > BUT then it says "GRUB loading" for 5 minutes now... :$
> > >
> > > Hi Antonin
> > >
> > > Thanks for getting back to us. I have some further questions about
> > > your problem.
> > >
> > > Can you let us know which QEMU version you are using and how you installed
> > > it?
> > > Also, just to confirm, this error is present when you invoke QEMU
> > > from the simulate target? Finally, which machine target did you build
> > > for, ia32_pc99, ia32_pc99_vga or ia32_pc99_fb?
> > >
> > > -gl
> > >
> > > >
> > > >
> > > >
> > > > 2008/5/5 Geoffrey Lee <glee at ok-labs.com>:
> > > >
> > > > > On Mon, May 05, 2008 at 10:24:12AM +0200, Antonin SUBTIL wrote:
> > > > >
> > > > > Hi Antonin
> > > > >
> > > > > > Is there an small "how to use OKL4 images on Qemu"? I mean, it's not
> > > > > obvious
> > > > > > how to use the compiled images... (without root access, if possible
> > > )
> > > > > >
> > > > > > I guess we should make an Qemu raw image, format it (but ext2?
> > > ...?),
> > > > > put
> > > > > > the OKL4 compiled files (grub and so on), and run it in Qemu... Yet
> > > this
> > > > > > would requiere root acces :(
> > > > >
> > > > > Since you mention grub I will assume this is for IA-32.
> > > > >
> > > > > You can use the "simulate" target in Scons to run QEMU. What actually
> > > > > happens in the build for IA-32 is, it builds a FAT image which
> > > > > contains the necessary grub installation and OKL4 image to boot. When
> > > > > you run the simulate target, it will run the QEMU program using
> > > > > that FAT image at the end.
> > > > >
> > > > > You can also run QEMU manually. As an example, for the ia32_pc99
> > > target,
> > > > > I typically save time and invoke it directly by typing:
> > > > >
> > > > > qemu -hda build/images/c.img -nograhic -serial stdio
> > > > >
> > > > > Let us know if this works for you.
> > > > >
> > > > > >
> > > > > > Thanks
> > > > >
> > > > > -gl
> > > > >
> > > > > >
> > > > > > --
> > > > > > Antonin Subtil,
> > > > > > 35 rue Donissan
> > > > > > FR-33000 Bordeaux
> > > > > > +33 (0)6.77.40.17.69
> > > > > >
> > > > > > Economisez du papier, limitez votre production de déchets :
> > > n'imprimez
> > > > > ce
> > > > > > message que si nécessaire (et... en recto-verso) !
> > > > >
> > > > > > _______________________________________________
> > > > > > Developer mailing list
> > > > > > Developer at okl4.org
> > > > > > https://lists.okl4.org/mailman/listinfo/developer
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Antonin Subtil,
> > > > 35 rue Donissan
> > > > FR-33000 Bordeaux
> > > > +33 (0)6.77.40.17.69
> > > >
> > > > Economisez du papier, limitez votre production de déchets : n'imprimez
> > > ce
> > > > message que si nécessaire (et... en recto-verso) !
> > >
> > > --
> > >
> > >
> >
> >
> > --
> > Antonin Subtil,
> > 35 rue Donissan
> > FR-33000 Bordeaux
> > +33 (0)6.77.40.17.69
> >
> > Economisez du papier, limitez votre production de déchets : n'imprimez ce
> > message que si nécessaire (et... en recto-verso) !
>
> --
>
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
>
--
More information about the Developer
mailing list