Minix3 under linux

46 views
Skip to first unread message

Ladislav Klenovic

unread,
Mar 29, 2009, 7:00:12 AM3/29/09
to minix3
Hi all,
I have "ported" minix-3.1.2a to linux. I would like to use minix3
as starting the point for my micro-kernel called nucleos.

Port includes following components:
- boot monitor
- kernel + servers
- installboot utility (some modification performed)
- most of the libraries except ACK, related sources and most of
16-bit code (only string routines).

What is new:
- build under linux by using gnu toolchain (gcc, ld,...)
- source code reorganization
- linux like build-system + kconfig utility (so you use
cool make {menuconfig, xconfig,...} now :-) )
- ack asembly rewritten to gnu as.
- useful tools:
* creating minix3 filesystem on images (via loop device)
* converting elf32 to minix's aout (needed until turn to elf
format)
* script to install bootblock, boot, kernel and servers on image
- everything what was needed to make the port :)

I have tested it under qemu and vmware so far and looks quite stable.
These days I am upgrading to trunk and hope will provide with some
results soon.

Regards,
Ladislav

Guanqun Lu

unread,
Mar 29, 2009, 7:41:15 AM3/29/09
to min...@googlegroups.com
Thanks for your effort and sharing, I'm looking forward to it!

>
> Regards,
> Ladislav
>
> >
>



--
Guanqun

kashyap

unread,
Mar 30, 2009, 9:21:54 AM3/30/09
to minix3
Hi Ladislav,
That is really good news!!! ... I've been working on this myself and
had got to the point of having the core tasks up and running. I had
made changes for minix to be loaded by GRUB. I could not work on it
beyond that (still in my todo list). http://github.com/ckkashyap/newminix/tree/master

Is there some place I can download your port?

Regards,
Kashyap

On Mar 29, 4:00 pm, Ladislav Klenovic <kleno...@nucleonsoft.com>
wrote:

Ladislav Klenovic

unread,
Mar 30, 2009, 1:19:48 PM3/30/09
to minix3
Hi,
On Mar 30, 3:21 pm, kashyap <ckkash...@gmail.com> wrote:
> Hi Ladislav,
> That is really good news!!! ... I've been working on this myself and
> had got to the point of having the core tasks up and running. I had
> made changes for minix to be loaded by GRUB. I could not work on it
> beyond that (still in my todo list).http://github.com/ckkashyap/newminix/tree/master
>
> Is there some place I can download your port?

I will place it on my site and make an announcement here. I am
planning to do
so on Sunday.

Regards,
Ladislav

kashyap

unread,
Apr 3, 2009, 1:27:42 AM4/3/09
to minix3
Thanks Ladislav!!! .. Looking forward to your not on Sunday!!!!
Regards,
Kashyap

On Mar 30, 10:19 pm, Ladislav Klenovic <kleno...@nucleonsoft.com>
wrote:

xieyubo

unread,
Apr 3, 2009, 7:53:50 AM4/3/09
to min...@googlegroups.com
GREAT JOB!! Expect to build minux on linux! Where can I get the source? I can't wait it! :)

On Sun, Mar 29, 2009 at 7:00 PM, Ladislav Klenovic <klen...@nucleonsoft.com> wrote:

Ladislav Klenovic

unread,
Apr 5, 2009, 5:20:54 AM4/5/09
to minix3
You can download the first aproach from the following URL:
http://nucleonsoft.com/project/nucleos

The port includes following components:
- boot monitor
- kernel + servers (except `is' server)
- installboot utility (some modification performed)
- most of the libraries except ACK, related sources and most of
16-bit code (only string routines).
- drivers which are needed for ramdisk hovewer you must create the
ramdisk manualy and then compile it into memory driver :(

What is new:
- build under linux by using gnu toolchain (gcc, ld,...)
- source code reorganization
- linux like build-system + kconfig utility (so you use
cool make {menuconfig, xconfig,...} now :-) )
- ack asembly rewritten to gnu as.
- routines for 64-bit size manipulation need gcc's library
`libgcc.a'
(should be found by build system automatically)
- useful tools:
* creating minix3 filesystem on images (via loop device)
* converting elf32 to minix's aout (needed until turn to elf
format)
* script to install bootblock, boot, kernel and servers on image
- everything what was needed to make the port :)

Read the instructions on site (or doc/getting-started.txt) about how
to configure, build etc. the kernel.

Regards,
Ladislav

On Apr 3, 1:53 pm, xieyubo <xiey...@gmail.com> wrote:
> GREAT JOB!! Expect to build minux on linux! Where can I get the source? I
> can't wait it! :)
>
> On Sun, Mar 29, 2009 at 7:00 PM, Ladislav Klenovic <kleno...@nucleonsoft.com

Himanshu

unread,
Apr 11, 2009, 1:26:38 AM4/11/09
to minix3
Hi! This is a very impressive list! I believe you are using linux's
kbuild system for menuconfig. Can you please point me to its sources?

Thanks
Chauhan

Ladislav Klenovic

unread,
Apr 11, 2009, 5:10:01 AM4/11/09
to minix3
Hi,
yes you are right I use linux's kconfig however only a few
config. option are used for now.

Sources are available on: http://nucleonsoft.com/project/nucleos

Regards,
Ladislav

Juvenal Silva

unread,
Apr 15, 2009, 9:15:09 PM4/15/09
to min...@googlegroups.com
Ladislav,
 
Really cool accomplishment! I got your code and tried to compile it on my Fedora 7 VM. It ran smootly until reach the init/ash step on the build. There it blew up complaining about the non existence of init.c. I looked around and this file with the functions defined in it's init.h doesn't exist. My questions are: the mktools mkinit should create the init.c on the fly? If no, how it's created? Can you give me directions to solve this? Any other tips to this issue?
Thanks a lot for your time and keep the good work!
 
Regards,
 
Juvenal A. Silva Jr.

Ladislav Klenovic

unread,
Apr 16, 2009, 4:07:33 AM4/16/09
to minix3
Hi,
yes you are correct the `init.c' should be created on fly by `mkinit'.
I have to admit
that I have compiled sources only under openSUSE. What comes to my
mind
regarding this is:
* Were the `init/ash/mktools/mkinit' binary built successfully?
* Is the version of `make' utility 3.81 (I guess yes)?
* Could you paste the error message here (lines between the last
successfully
build target and where the build process stoped)?

Besides that if you are not planning to change the `sh' inside image
you can simply
avoid to build `init' directory. So move to `init' directory and
remove `ash/' and
`simple/' from Makefile (from `obj-y')

Please do not forget to read `Getting started' and follow the steps
there.
Thank you for reporting this maybe some patch will be necessary.

Regards,
Ladislav

On Apr 16, 3:15 am, Juvenal Silva <juvenal.silva...@gmail.com> wrote:
> Ladislav,
>
> Really cool accomplishment! I got your code and tried to compile it on my
> Fedora 7 VM. It ran smootly until reach the init/ash step on the build.
> There it blew up complaining about the non existence of init.c. I looked
> around and this file with the functions defined in it's init.h doesn't
> exist. My questions are: the mktools mkinit should create the init.c on the
> fly? If no, how it's created? Can you give me directions to solve this? Any
> other tips to this issue?
> Thanks a lot for your time and keep the good work!
>
> Regards,
>
> Juvenal A. Silva Jr.
>
> On Sun, Apr 5, 2009 at 6:20 AM, Ladislav Klenovic
> <kleno...@nucleonsoft.com>wrote:
Reply all
Reply to author
Forward
0 new messages