public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Re: building MINIX on LINUX using gcc
@ 2004-06-07  8:36 ckkashyap
  2004-06-07  9:01 ` James Buchanan
  0 siblings, 1 reply; 2+ messages in thread
From: ckkashyap @ 2004-06-07  8:36 UTC (permalink / raw)
  To: linux-kernel


>comp.os.minix is the place to be!
Thanks...I just signed up!

>PS. Get the official MINIX sources, and use a XX-to-YY translator or
Where do I get the official sources from?

>write your own that converts the assembler sources to NASM. It
>shouldn't be that difficult., or do it by hand, since there's not much
>of it. The C code is ANSI and GCC should handle it. Then you can
>rewrite the Makefiles and possibly add linker scripts for LD, and you'll
>have MINIX built on Linux in no time.

What can I do to make it loadable by GRUB or so. I understand that /minix is a concatination of the various a.outs. Can I write a tiny executable 
that will get loaded by GRUB that loaded /minix beyond 1M. Are there many initializations that need to be done before this?

regards,
Kashyap



---- Msg sent via Spymac Mail - http://www.spymac.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Re: building MINIX on LINUX using gcc
  2004-06-07  8:36 Re: building MINIX on LINUX using gcc ckkashyap
@ 2004-06-07  9:01 ` James Buchanan
  0 siblings, 0 replies; 2+ messages in thread
From: James Buchanan @ 2004-06-07  9:01 UTC (permalink / raw)
  To: ckkashyap; +Cc: linux-kernel


> >PS. Get the official MINIX sources, and use a XX-to-YY translator or
> Where do I get the official sources from?

http://www.cs.vu.nl/pub/minix/

> What can I do to make it loadable by GRUB or so. I understand that /minix is a concatination of the various a.outs. Can I write a tiny executable 
> that will get loaded by GRUB that loaded /minix beyond 1M. Are there many initializations that need to be done before this?

You have to modify the startup code to accept the multiboot structure
and do something with it.  You can compile it into an ELF image if you
want to, nothing wrong with that.  Then compile the MM and FS tasks as
a.out executables and specify them as modules on the GRUB command line,
and load them from the kernel to the place you want them (much easier
than the nasty way it's done so far).  You'd need to make extensive
modifications.

I suggest using GRUB to chainload instead.  You put the Minix bootsector
and boot program into the Minix partition and GRUB can chainload from
there.  No modification of sources needed for that.

Minix expects certain areas of its compiled binary to be patched by
boot, so don't make it a multiboot compliant kernel and load the servers
separately without knowing what you're doing.  So chainloading with GRUB
is by far the easiest way to go.

Have fun :)

James



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-07  9:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-07  8:36 Re: building MINIX on LINUX using gcc ckkashyap
2004-06-07  9:01 ` James Buchanan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox