Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rice!uupsi!cmcl2!lab!jai From: jai@lab.ultra.nyu.edu (Benchiao Jai) Newsgroups: comp.os.minix Subject: NYUMINIX -- MINIX under MS-DOS Message-ID: <1991Feb24.065938.6078@cmcl2.nyu.edu> Date: 24 Feb 91 06:59:38 GMT Sender: notes@cmcl2.nyu.edu (Notes Person) Organization: New York University Ultracomputer Research Lab Lines: 94 Nntp-Posting-Host: lab.ultra.nyu.edu O.K. Here it is. You'll need about 3MB on your HD for the initial steps. It runs on any kind of harddisk I've ever seen. (MFM, RLL, SCSI, ESDI) 1. Make a directory in MS-DOS, say MINIX. Build the following subdirectories: MINIX\H MINIX\LIB MINIX\KERNEL MINIX\MM MINIX\FS MINIX\INIT MINIX\TOOLS 2. Transfer all (and only) .h and .c files in h, kernel, mm, and fs (from your original MINIX 1.3 diskette) into corresponding MS-DOS directories. You have to run your MINIX first and use doswrite. Maybe via floppy if your HD doesn't work at this point. Transfer tools/init.c into MINIX\INIT. NO OTHER FILES FROM THE ORIGINAL SOURCE IS NEEDED. Throw away wini.c, we have a new one. 3. Perform the modifications indicated in the next posting (NYUMINIX:MODIFY). It's not a diff list. I try to explain everything in it, the advantage will be: you may be able to do this on 1.5 by your own before I have the time. 4. Get the following BINARY files from posting. They are uuencoded. KERNEL\TCCONFIG.TC MM\TCCONFIG.TC FS\TCCONFIG.TC INIT\TCCONFIG.TC TOOLS\MINIXDSK.0 I assume TURBO-C is placed in C:\TC. If not, please change the TCCONFIG.TC files. And if you want 286 code generation, turn it on. MINIXDSK.0 is the root file system image. The /bin directory contains the necessary binaries for subsequent transfering, like cp, mv, mkdir, etc. 5. Get the following TEXT files from posting. LIB\HEAD.ASM LIB\END.ASM LIB\UTIL.ASM KERNEL\MSDISK.C KERNEL\LIB.C KERNEL\KLIB88.ASM KERNEL\MPX88.ASM KERNEL\KERNEL.PRJ KERNEL\MAKE MM\LIB.C MM\MM.PRJ MM\MAKE FS\LIB.C FS\FS.PRJ FS\MAKE INIT\LIB.C INIT\UTIL.ASM INIT\INIT.PRJ INIT\MAKE MAKE.BAT Change line 75 of KERNEL\MPX88.ASM for your keyboard. Please refer to CONSOLE.C for proper value. (In original MINIX, this value was given by hitting '=', 'u', or 'd' key.) It's set to standard US keyboard now. 6. Now execute MAKE.BAT. Make sure your PATH can find TC, LINK, MASM, and EXE2BIN. If you use TLINK and TASM, change the lines in MAKE.BAT. There will be a lot of warnings given by TURBO-C, just ignore them. (Or fix them if you like!) 7. Change directory to MINIX\TOOLS (you are here after MAKE), type LOAD and you will see NYUMINIX running. ctrl-alt-del brings you back to where you type the LOAD command in MS-DOS. Make sure you are in software scrolling mode before this, otherwise your screen will look weird. You can do this by pressing F3, or change the default value of soft_scroll in CONSOLE.C (?). 8. There is only one file system now, but you can build your own by the following procedure: a. Create files named MINIXDSK.1 through MINIXDSK.7 (only those you want) using anything, even text editor. The size must be multiple of 1024. Suggested values: 1423K will fit in 1.44M diskette when you want to move the file, 1185K is good for 1.2M diskette, 713K for 720K, 354K for 360K. b. In NYUMINIX, use mkfs to make file systems on them. The corresponding devices are /dev/msd1 through /dev/msd7. c. Mount them on whereever you want. My configuration is 1423K for /usr+/usr/bin+/usr/lib, 1423K for /usr/src, and 1423K for /usr/work. d. You may also want to rebuild the root file system after you put everything in. Do it on another filesystem first, because you cannot change the size of an MS-DOS file inside NYUMINIX. For example: create a 384K file MINIXDSK.4 from MS-DOS enter NYUMINIX mkfs /dev/msd4 proto384 leave NYUMINIX copy MINIXDSK.4 to MINIXDSK.0 9. Tell me if you encounter any problem. Benchiao Jai jai@cs.nyu.edu Brought to you by Super Global Mega Corp .com