From d59cd1b581109300ff144c1818354604055a4b55 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 14 May 2002 10:33:00 +0000 Subject: none --- Mach/BuildingOskitMach.mdwn | 79 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Mach/BuildingOskitMach.mdwn diff --git a/Mach/BuildingOskitMach.mdwn b/Mach/BuildingOskitMach.mdwn new file mode 100644 index 00000000..a6893fc4 --- /dev/null +++ b/Mach/BuildingOskitMach.mdwn @@ -0,0 +1,79 @@ +%TOC% + +This is a brief Building OSKit Mach HowTO. It covers evrything from getting the latest sources of both the \[[http://www.cs.utah.edu/flux/oskit/]\[OSKit] and the OSKit branch of the GNUmach kernel. Down to building and debugging them. + +## Getting your hands on the source + +First you need to checkout the relevant sources. + +### Accessing the FLUX groups CVS, or FTP + +You can use either the bleeding edge OSKit from CVS, or the latest public release. The latter is preferrable! + +CVS: + + CVSROOT=":pserver:anoncvs@leak.cs.utah.edu:/cvs" + CVS_RSH=ssh + cvs -z3 co oskit + +St. Patricks day 2002 release: + +Valentine's day 2001 release: + +### Accessing GNU CVS + +Setup your environment with the CVSROOT variable and checkout the oskit-branch of the gnumach kernel. + + CVSROOT=":pserver:anoncvs@anoncvs.gnu.org:/cvsroot/hurd" + cvs -z3 co -r oskit-branch -d oskit-mach gnumach + +## Building + +### OSKit + +The attached [[ATTACHURLmodulesx86pc]] file is my personal setup, it works for me. Now, how to configure and build the OSKit. + +Configuring: + + # cd oskit-20020317/ + # mkdir build + # cd build + # ../configure --prefix=/usr/local --enable-debug + +Building: + + # make + # sudo make install + +### OSKit Mach + +To build any Mach kernel you need an interface generator, a mig. If your host system is Debian based you can get the "Cheap cross-compuler for GNU/Hurd" with a simple: + + $ apt-get gcc-i386-gnu + +This will install the i386-gnu-mig in /usr/bin for you. + +Configuring: + + # cd oskit-mach + # mkdir build + # cd build + # CFLAGS="-g" MIG=i386-gnu-mig OSKIT_LIBDIR=/usr/local/lib/oskit ../configure --prefix=/gnu --enable-debug + +Building: + + # make + # sudo make install + # sudo gzip /gnu/boot/oskit-mach + +## Debugging + +For now, see the [[RemoteDebugOskitMach]] page. + +# Attachments + +* [[ATTACHURLmodulesx86pc]]: Modules to build in OSKit + +---- + +-- [[Main/JoachimNilsson]] - 14 May 2002 -- cgit v1.2.3