summaryrefslogtreecommitdiff
path: root/Mach
diff options
context:
space:
mode:
authorBarry deFreese <bddebian@comcast.net>2003-05-30 00:46:54 +0000
committerBarry deFreese <bddebian@comcast.net>2003-05-30 00:46:54 +0000
commit4857edde7e14ed6335d5826e2cfbf62b1dd77528 (patch)
treeae49a66924e5d31e1f136eee7ec7549a979759a3 /Mach
parent3eb967e25900f80e02b4bcf74c7f27c33da6da67 (diff)
none
Diffstat (limited to 'Mach')
-rw-r--r--Mach/BuildingOskitMach.mdwn14
1 files changed, 13 insertions, 1 deletions
diff --git a/Mach/BuildingOskitMach.mdwn b/Mach/BuildingOskitMach.mdwn
index 39ae7885..555455b6 100644
--- a/Mach/BuildingOskitMach.mdwn
+++ b/Mach/BuildingOskitMach.mdwn
@@ -103,6 +103,10 @@ The attached [[ATTACHURLmodulesx86pc]], or [[ATTACHURLmodules-lightx86pc]], is a
$ make
$ sudo make install
+Comment: Barry deFreese
+
+For you newbies like me, I had problems using modules.x86.pc.full and modules.x86.pc. There seems to be problems with dyntest. Make sure you pull down and use the modules-light.x86.pc.
+
### <a name="Mach_Interface_Generator"> Mach Interface Generator </a>
To build any Mach kernel you need an interface generator, MiG. To be on the safe side, use the CVS version. If you use Debian, you can install package [mig-i386-gnu](http://packages.debian.org/mig-i386-gnu). If you don't use Debian or want to compile MiG by yourself on Linux/\*BSD system, you must first install Mach headers. In Mach directory do:
@@ -132,10 +136,14 @@ Unlike its half sister, the OSKit-Mach kernel does _not_ need a cross compiler.
$ cd build
$ MIG=/usr/local/bin/mig \
CC=gcc-3.2 \
- CFLAGS="-g -O" \
+ CFLAGS="-g -O2" \
OSKIT_LIBDIR=/usr/local/lib/oskit \
../configure --prefix=/gnu
+Comment: Barry deFreese
+
+I updated CFLAGS to CFLAGS="-g -O2". Using just -O I was getting errors in the machine\_init function. For newbies like me, the -g is only if you want to enable debugging. The -O2 is Oh 2, not Zero 2.
+
**_Building:_**
Instead of using `make kernel` to build kernel, in OSKit-Mach you have to use <code>make kernel-<var>DRIVERS</var></code>, where <var>DRIVERS</var> is <code><var>DRIVER</var>+<var>DRIVER</var>+...+<var>DRIVER</var></code> (a list of drivers separated by `+`). <var>DRIVER</var> can be one of:
@@ -153,6 +161,10 @@ Thus, to build a IDE capable kernel with 3Com Vortex Boomerang support you use t
If the `make` command complains about missing dependencies, then you haven't passed correct `OSKIT_LIBDIR` variable to the `configure` script.
+Comment: Barry deFreese
+
+If you receive an error like "No rule to make target Kernel-ide...", there is a patch for an issue with finding the oskit libraries. I will find the URL and post here. Then run configure on gnumach again with the option --with-oskit="path to oskit libraries".
+
If you want to use tftp to download the kernel from Grub and don't care about the symbols I recommend either stripping or removing the `--enable-debug` and `-g` statements.
## <a name="Debugging"> Debugging </a>