From: Jason Stevens <jsteve@superglobalmegacorp.com>
To: "tuhs@minnie.tuhs.org" <tuhs@minnie.tuhs.org>
Subject: Re: [TUHS] CMU Mach sources?
Date: Tue, 25 Jun 2019 01:04:08 +0800 [thread overview]
Message-ID: <abf308e4-0486-4066-a290-9e15379ad06d@PU1APC01FT047.eop-APC01.prod.protection.outlook.com> (raw)
In-Reply-To: <20190623235400.GA1805@mit.edu>
[-- Attachment #1: Type: text/plain, Size: 2645 bytes --]
So with that Mt Xinu Mach/386 thing I thought I’d take another stab at building the source from the CSRG CD-ROM set.
The makefiles from the i386 version are so cut up it’s a seemingly hopeless mess. I took the mach.kernel.mk directory and tried to build of 4.3BSD UWisc, but that went nowhere quick as the tool chain just isn’t right and there is a bunch of VAX stuff missing. It looks more complete for the SUN-3.
So in a fit of rage, I copied the bare needed i386 files into the SUN-3 tree and it actually compiles.
ROUGH notes….
Mach25 is where I put the 386 directory & running from inside the mach.kernel.mk directory.
mv ../mach25/sys/i386 .
mv ../mach25/sys/i386at .
mv ../mach25/sys/mach/i386 mach
mv ../mach25/sys/sysV .
cp ../mach25/sys/conf/*i386* conf
ln -s i386 machine
ln -s mach/i386 mach/machine
cp Makeconf Makeconf-orig
vi Makeconf
------
bash$ diff Makeconf-orig Makeconf
85c85,86
< CONFIG = ${${TARGET_MACHINE}_CONFIG?${${TARGET_MACHINE}_CONFIG}:STD+ANY+EXP}
---
> #CONFIG = ${${TARGET_MACHINE}_CONFIG?${${TARGET_MACHINE}_CONFIG}:STD+ANY+EXP}
> CONFIG = STD+WS-afs-nfs
89a91
> #SOURCEDIR = /usr/src/mach.kernel.mk
91c93,95
< OBJECTDIR = ../../../obj/@sys/kernel/${KERNEL_SERIES}
---
> #OBJECTDIR = ../../../obj/@sys/kernel/${KERNEL_SERIES}
> #OBJECTDIR = /usr/src/mach.kernel.mk/obj
> OBJECTDIR = ./obj
------
vi Makefile
include ../../${MAKETOP}Makefile-common
to
include ${MAKETOP}Makefile-common
vi src/config/Makefile
include ../../${MAKETOP}Makefile-common
to
include ${MAKETOP}Makefile-common
mkdir obj
make
And it actually compiled…
cc -c -O -MD -I. -I../../sys -DCMU -DINET -DMACH -DAT386 -DCMUCS -DKERNEL -fno-function-cse ../../i386at/pic_isa.c; ; ;
cc -c -O -MD -I. -I../../sys -DCMU -DINET -DMACH -DAT386 -DCMUCS -DKERNEL -fno-function-cse ../../i386at/rtc.c; ; ;
cc -c -O -MD -I. -I../../sys -DCMU -DINET -DMACH -DAT386 -DCMUCS -DKERNEL -fno-function-cse ../../i386at/wt.c; ; ;
cc -c -O -MD -I. -I../../sys -DCMU -DINET -DMACH -DAT386 -DCMUCS -DKERNEL -fno-function-cse ../../machine/swapgeneric.c
(null command)
(null command)
(null command)
loading vmunix.sys
rearranging symbols
text data bss dec hex
479200 47980 125520 652700 9f59c
ln vmunix.sys vmunix
md -f -d `ls *.d`
ln -s STD+WS-afs-nfs/vmunix KERNEL.STD+WS-afs-nfs
Naturally the Mt Xinu bootloader won’t run it.
479200+47980+125520[+40968+42516]
That’s all I get out of it. I’ll have to mess with it later on as it’s getting late, but I thought it was worth sharing.
[-- Attachment #2: Type: text/html, Size: 5922 bytes --]
next prev parent reply other threads:[~2019-06-24 17:04 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-23 22:08 Noel Chiappa
2019-06-23 23:54 ` Theodore Ts'o
2019-06-24 17:04 ` Jason Stevens [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-07-01 13:20 Jason Stevens
2019-06-23 4:38 Chris Hanson
2019-06-23 5:15 ` Larry McVoy
2019-06-23 8:52 ` Andrew Warkentin
2019-06-23 13:39 ` Jon Forrest
2019-06-23 13:59 ` arnold
2019-06-23 14:03 ` Jason Stevens
2019-06-23 8:04 ` Jason Stevens
2019-06-23 14:54 ` Henry Bent
2019-06-23 21:52 ` Clem Cole
2019-06-25 0:06 ` Larry McVoy
2019-06-25 0:31 ` Theodore Ts'o
2019-06-25 0:45 ` Larry McVoy
2019-06-25 0:55 ` Kurt H Maier
2019-06-25 4:18 ` Larry McVoy
2019-06-25 1:00 ` Richard Salz
2019-06-25 8:00 ` Kevin Bowling
2019-06-25 12:11 ` Arthur Krewat
2019-06-25 12:17 ` Arthur Krewat
2019-06-26 2:45 ` Kurt H Maier
2019-06-26 2:56 ` Larry McVoy
2019-06-26 15:11 ` Theodore Ts'o
2019-06-26 17:44 ` Larry McVoy
2019-06-26 18:01 ` arnold
2019-06-26 18:18 ` Warner Losh
2019-06-26 19:22 ` Chris Hanson
2019-06-26 19:32 ` Ben Greenfield via TUHS
2019-06-26 20:21 ` Larry McVoy
2019-06-27 0:22 ` Chris Hanson
2019-06-27 1:02 ` Larry McVoy
2019-06-27 1:26 ` Chris Hanson
2019-06-27 4:01 ` Lyndon Nerenberg
2019-06-27 10:34 ` Ben Greenfield via TUHS
2019-06-27 10:59 ` arnold
2019-06-27 11:13 ` Ben Greenfield via TUHS
2019-06-27 11:39 ` arnold
2019-06-27 14:58 ` Warner Losh
2019-06-27 17:25 ` Larry McVoy
2019-06-26 19:30 ` Dennis Boone
2019-06-26 19:25 ` Adam Thornton
2019-06-23 8:27 ` Kevin Bowling
2019-06-25 3:07 ` Gregg Levine
2019-06-25 8:15 ` Kevin Bowling
2019-06-25 18:18 ` Chris Hanson
2019-06-25 20:23 ` Gregg Levine
2019-06-26 1:04 ` Jason Stevens
2019-06-26 0:53 ` Jason Stevens
2019-06-25 7:49 ` Jason Stevens
2019-06-25 7:59 ` Andreas Grapentin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=abf308e4-0486-4066-a290-9e15379ad06d@PU1APC01FT047.eop-APC01.prod.protection.outlook.com \
--to=jsteve@superglobalmegacorp.com \
--cc=tuhs@minnie.tuhs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).