Skip to content
 
 

Repository files navigation

Minix

Forked from a9db0e of Stichting-MINIX-Research-Foundation/minix.

Added run.sh and modified x86_hdimage.sh to make cross-build easier and faster.

Dependencies

On Debian, run

apt-get install build-essential curl git zlibc zlib1g zlib1g-dev m4 qemu

Also, make a alias for make:

sudo ln -s /usr/bin/make /usr/bin/gmake

To get all needed dependencies.

Cross-Build

  1. CD into repo root: cd minix
  2. Run sudo ./releasetools/x86_hdimage.sh FULL
  3. Run run.sh to boot Minix in QEMU.
  4. Inside Minix, run netconf to config network if needed.

Speed-Up

After first building, you can run x86_hdimage.sh without FULL argument:

sudo ./releasetools/x86_hdimage.sh

This will enable "Expert" mode in NetBSD's build.sh. And it will set MKUPDATE, NOCLEANDIR to yes to avoid repeated compile. Also -T option is set to use the toolchians that are previously built.

Tuning

In x86_hdimage.sh, the variable $JOBS is set to 1, indicating the maximum number of parallel task is 1, this is for the first time you run this script. You can change this value to further speed-up building process. Normally, it shoule be the number of your logical processors.

Copy file to target vm

In <REPO_ROOT>/../obj.i386/destdir.i386/home, all files (not folders) will be copied to target's system's /root

Notes

Since the toolchian contains gcc-4, which are compiled based on outdated C98. Using newer version of gcc to build gcc-4 would have several issues. Related fixs are in commit f66913.

About

Official MINIX sources - Automatically replicated from gerrit.minix3.org

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages