From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 68ce4920 for ; Mon, 24 Jun 2019 17:04:36 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id DE5329BC57; Tue, 25 Jun 2019 03:04:34 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id D00329BC44; Tue, 25 Jun 2019 03:04:19 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=outdoorexpressionslimited.onmicrosoft.com header.i=@outdoorexpressionslimited.onmicrosoft.com header.b="txtjxJn+"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 819399BC44; Tue, 25 Jun 2019 03:04:17 +1000 (AEST) Received: from APC01-PU1-obe.outbound.protection.outlook.com (mail-eopbgr1320082.outbound.protection.outlook.com [40.107.132.82]) by minnie.tuhs.org (Postfix) with ESMTPS id CDB3A9BC43 for ; Tue, 25 Jun 2019 03:04:15 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outdoorexpressionslimited.onmicrosoft.com; s=selector1-outdoorexpressionslimited-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uomOO/1bJw8g3BXOtg2YOqfjFEBUftti2vrPijX/RHQ=; b=txtjxJn+XilBQBiOAzw5/8bl4GQaAYvgx/x6CKtRZIVEW9y3QMW3XEASpZPGfX3b35d1VRn74f5oZ4Zz3tG2Me6oERmmIeLvZETZJYWGoWalbw3RSz2RLk6r23XLAMl4a1MBrYLhDKaNzUOrEbYcSWqBtO/Z3//ZjEOgjY5/LoM= Received: from SG2PR02CA0104.apcprd02.prod.outlook.com (2603:1096:4:92::20) by KL1PR0201MB2069.apcprd02.prod.outlook.com (2603:1096:802:a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2008.16; Mon, 24 Jun 2019 17:04:12 +0000 Received: from PU1APC01FT047.eop-APC01.prod.protection.outlook.com (2a01:111:f400:7ebd::204) by SG2PR02CA0104.outlook.office365.com (2603:1096:4:92::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2008.16 via Frontend Transport; Mon, 24 Jun 2019 17:04:12 +0000 Authentication-Results: spf=fail (sender IP is 59.148.14.54) smtp.mailfrom=superglobalmegacorp.com; minnie.tuhs.org; dkim=none (message not signed) header.d=none;minnie.tuhs.org; dmarc=none action=none header.from=superglobalmegacorp.com; Received-SPF: Fail (protection.outlook.com: domain of superglobalmegacorp.com does not designate 59.148.14.54 as permitted sender) receiver=protection.outlook.com; client-ip=59.148.14.54; helo=exchange.superglobalmegacorp.local; Received: from exchange.superglobalmegacorp.local (59.148.14.54) by PU1APC01FT047.mail.protection.outlook.com (10.152.253.23) with Microsoft SMTP Server id 15.20.2008.13 via Frontend Transport; Mon, 24 Jun 2019 17:04:11 +0000 Received: from [IPv6:::ffff:192.168.8.10] (joes-20dollar-tunnel [10.5.11.1]) by exchange.superglobalmegacorp.local with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id NPGTF1L4; Tue, 25 Jun 2019 01:04:09 +0800 MIME-Version: 1.0 To: "tuhs@minnie.tuhs.org" From: Jason Stevens Date: Tue, 25 Jun 2019 01:04:08 +0800 Importance: normal X-Priority: 3 In-Reply-To: <20190623235400.GA1805@mit.edu> References: <20190623220856.AADD018C0CF@mercury.lcs.mit.edu> <20190623235400.GA1805@mit.edu> Content-Type: multipart/alternative; boundary="_2A7E4006-10C9-4F9A-8BFD-0EF538B2AAE0_" Message-ID: X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:59.148.14.54; IPV:NLI; CTRY:HK; EFV:NLI; SFV:NSPM; SFS:(10009020)(376002)(346002)(39830400003)(396003)(136003)(2980300002)(1110001)(339900001)(199004)(189003)(81686011)(33964004)(2501003)(6916009)(70586007)(70206006)(356004)(71190400001)(2906002)(31696002)(105606002)(2351001)(74316002)(81166006)(186003)(76176011)(77096007)(31686004)(26005)(8936002)(16586007)(316002)(86362001)(5660300002)(336012)(36906005)(508600001)(6306002)(6246003)(81156014)(54896002)(229853002)(1730700003)(5640700003)(486006)(126002)(9686003)(8676002)(446003)(11346002)(476003); DIR:OUT; SFP:1101; SCL:1; SRVR:KL1PR0201MB2069; H:exchange.superglobalmegacorp.local; FPR:; SPF:Fail; LANG:en; PTR:059148014054.ctinets.com; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a6275257-78f4-4aee-6e77-08d6f8c5fa71 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600148)(711020)(4605104)(1401327)(2017052603328); SRVR:KL1PR0201MB2069; X-MS-TrafficTypeDiagnostic: KL1PR0201MB2069: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:644; X-Forefront-PRVS: 007814487B X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: AvtQiU3oozhXpsMajv2hKrLdwLGzMnfhSV+1A2Qth52T7+TGzul/ueX5scJkNTp4EAUb+H+W2FLh02Y+ymAQuKNgbFpmJVaAjlOIlJINwNwQOn9tiRH2pR0vCSLFKQLsxZMI1JRtg9DRLg28RPZa9B3X3yh1J+yt7oSwss05MjE55bYQ9H7gMKLJRUuy9lmvB0nyX3IdZ/W7Z4qnQH0vJerC2aA2pEPEcnThg68qSESu0Nn9Aoymb8Rs90V/MEXS+arcNYWu5RSkpTE1v1vD0eiCjyiGvs0VVqb47oeCVRP48p6XxyI09gAJYxPNOkGgQqlTmpxRrGHgyw8y/CpWy514NwMFc82OJhRPkajFd87ua5VDY+b0k8EF1RbNiqQqoq453RuvSc8/vGg/1DHxvzk/EWjrx71JWgqPWuFTdnQ= X-OriginatorOrg: superglobalmegacorp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2019 17:04:11.1258 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a6275257-78f4-4aee-6e77-08d6f8c5fa71 X-MS-Exchange-CrossTenant-Id: 870ed452-0577-4b7b-90ed-9cac080031b9 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=870ed452-0577-4b7b-90ed-9cac080031b9; Ip=[59.148.14.54]; Helo=[exchange.superglobalmegacorp.local] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0201MB2069 Subject: Re: [TUHS] CMU Mach sources? X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --_2A7E4006-10C9-4F9A-8BFD-0EF538B2AAE0_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" So with that Mt Xinu Mach/386 thing I thought I=E2=80=99d take another stab= at building the source from the CSRG CD-ROM set. The makefiles from the i386 version are so cut up it=E2=80=99s 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=E2=80= =99t right and there is a bunch of VAX stuff missing. It looks more comple= te for the SUN-3. So in a fit of rage, I copied the bare needed i386 files into the SUN-3 tre= e and it actually compiles. ROUGH notes=E2=80=A6. Mach25 is where I put the 386 directory & running from inside the mach.kern= el.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 =3D ${${TARGET_MACHINE}_CONFIG?${${TARGET_MACHINE}_CONFIG}:= STD+ANY+EXP} --- > #CONFIG =3D ${${TARGET_MACHINE}_CONFIG?${${TARGET_MACHINE}_CONFIG}:= STD+ANY+EXP} > CONFIG =3D STD+WS-afs-nfs 89a91 > #SOURCEDIR =3D /usr/src/mach.kernel.mk 91c93,95 < OBJECTDIR =3D ../../../obj/@sys/kernel/${KERNEL_SERIES} --- > #OBJECTDIR =3D ../../../obj/@sys/kernel/${KERNEL_SERIES} > #OBJECTDIR =3D /usr/src/mach.kernel.mk/obj > OBJECTDIR =3D ./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=E2=80=A6 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=E2=80=99t run it. 479200+47980+125520[+40968+42516] That=E2=80=99s all I get out of it. I=E2=80=99ll have to mess with it late= r on as it=E2=80=99s getting late, but I thought it was worth sharing. --_2A7E4006-10C9-4F9A-8BFD-0EF538B2AAE0_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

 

So with that Mt Xinu Mach/386 thing I thought I=E2=80=99d take anothe= r stab at building the source from the CSRG CD-ROM set.

 

The makefiles from the i386 = version are so cut up it=E2=80=99s a seemingly hopeless mess.=C2=A0 I took = the mach.kernel.mk directory and tried to build of 4.3BSD UWisc, but that w= ent nowhere quick as the tool chain just isn=E2=80=99t right and there is a= bunch of VAX stuff missing.=C2=A0 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 ac= tually compiles.

 

ROUGH notes=E2=80=A6.

 

=

Mach25 is where I put the 386 directory & running = from inside the mach.kernel.mk directory.

&nbs= p;

mv ../mach25/sys/i386 .

mv ../mach25/sys/i386at .

mv ../mach25/sys/ma= ch/i386 mach

mv ../mach25/sys/sysV .

cp ../mach25/sys/conf/*i386* conf

ln -s i= 386 machine

ln -s mach/i386 mach/machine

 

cp Makeconf Makecon= f-orig

vi Makeconf

&nb= sp;

------

bash$ diff= =C2=A0 Makeconf-orig Makeconf

85c85,86

< CONFIG=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D ${${= TARGET_MACHINE}_CONFIG?${${TARGET_MACHINE}_CONFIG}:STD+ANY+EXP}

---

> #CONFIG=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 =3D ${${TARGET_MACHINE}_CONFIG?${${TARGET_MACHINE}_CONFIG}:= STD+ANY+EXP}

> CONFIG=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 =3D STD+WS-afs-nfs

89a91

> #SOURCEDIR=C2=A0=C2=A0=C2=A0 =3D /usr/src/mach.kernel.mk=

91c93,95

< OBJECTDIR=C2= =A0=C2=A0=C2=A0=C2=A0 =3D ../../../obj/@sys/kernel/${KERNEL_SERIES}

---

> #OBJECTDIR=C2=A0=C2=A0=C2= =A0 =3D ../../../obj/@sys/kernel/${KERNEL_SERIES}

&= gt; #OBJECTDIR=C2=A0=C2=A0=C2=A0 =3D /usr/src/mach.kernel.mk/obj

> OBJECTDIR=C2=A0=C2=A0=C2=A0=C2=A0 =3D ./obj

------

 

 

vi Makefile

include ../../${MAKETOP}Makefile-common

to

include ${MAKETOP}Makefile-common

 

 <= /p>

vi src/config/Makefile

 

include ../../${MAKETOP}Makefile-comm= on

to

include ${MAKETOP}Mak= efile-common

 

 

mkdir obj

make

 

 

And it actually compiled=E2=80= =A6

 

cc -c= -O -MD -I. -I../../sys -DCMU -DINET -DMACH -DAT386 -DCMUCS -DKERNEL -fno-f= unction-cse ../../i386at/pic_isa.c;=C2=A0 ;=C2=A0 ;

cc -c -O -MD -I. -I../../sys -DCMU -DINET -DMACH -DAT386 -DCMUCS -DKERNEL = -fno-function-cse ../../i386at/rtc.c;=C2=A0 ;=C2=A0 ;

cc -c -O -MD -I. -I../../sys -DCMU -DINET -DMACH -DAT386 -DCMUCS -DKERNE= L -fno-function-cse ../../i386at/wt.c;=C2=A0 ;=C2=A0 ;

cc -c -O -MD -I. -I../../sys -DCMU -DINET -DMACH -DAT386 -DCMUCS -DKERN= EL -fno-function-cse ../../machine/swapgeneric.c

(n= ull command)

(null command)

(null command)

loading vmunix.sys

rearranging symbols

text=C2=A0=C2=A0=C2=A0 = data=C2=A0=C2=A0=C2=A0 bss=C2=A0=C2=A0=C2=A0=C2=A0 dec=C2=A0=C2=A0=C2=A0=C2= =A0 hex

479200=C2=A0 47980=C2=A0=C2=A0 125520=C2=A0= 652700=C2=A0 9f59c

ln vmunix.sys vmunix

md -f -d `ls *.d`

ln -s STD+WS-afs-nf= s/vmunix KERNEL.STD+WS-afs-nfs

 

Naturally the Mt Xinu bootloader won=E2=80=99t run it= .

 

479200+= 47980+125520[+40968+42516]

 

That=E2=80=99s all I get out of it.=C2=A0 I=E2=80=99ll ha= ve to mess with it later on as it=E2=80=99s getting late, but I thought it = was worth sharing.

= --_2A7E4006-10C9-4F9A-8BFD-0EF538B2AAE0_--