From 4857edde7e14ed6335d5826e2cfbf62b1dd77528 Mon Sep 17 00:00:00 2001 From: Barry deFreese Date: Fri, 30 May 2003 00:46:54 +0000 Subject: none --- Mach/BuildingOskitMach.mdwn | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Mach') 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. + ### Mach Interface Generator 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 make kernel-DRIVERS, where DRIVERS is DRIVER+DRIVER+...+DRIVER (a list of drivers separated by `+`). DRIVER 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. ## Debugging -- cgit v1.2.3