Author forlinux huh, I bought this "operating system: design and realization" yesterday, because the book is all source code, although it takes an optical disk, it is estimated that there will be downloads online, I only bought the book.
:) This book is explained as an example with minix, so it is necessary to install a minix. Oh. The installation process is as follows: I am installed with analog program, because the primary partition is really reluctant (huh, I have to Leave FreeBSD, etc.), and use the real hard drive is really dangerous. Oh, everyone may think of using VMware, but there is an analog software designed for minix, called Bochs, this software runs in Linux X Environment. I use RedHat 7.3 to download online. Minix's official website is: http://www.cs.vu.nl/~ast/minix.html However, you can visit www.minix.org to have links to official The address of the website, this is a good memory, but don't remember MINUX, huh. Http://www.cs.vu.nl/cgi-bin/RAW/Pub/minix/cd-rom-2.0/ Here is one Zhang Minix2.0 disc. I downloaded the content: http://www.cs.vu.nl/cgi-bin/RAW/Pub/minix/cd-rom-2.0/bochs.tgz bochs simulation http: / / www.cs.vu.nl/cgi-bin/RAW/Pub/minix/cd-rom-2.0/minix/i386/root.tgz boot disk http://www.cs.vu.nl/cgi-bin/ RAW / PUB / MiniX / CD-ROM-2.0 / minix / i386 / usr.tgz Boot Disk 2 http://www.cs.vu.nl/cgi-bin/RAW/Pub/minix/CD-ROM-2.0/ MiniX / i386 / usr.taz system main software http://www.cs.vu.nl/cgi-bin/RAW/Pub/minix/cd-rom-2.0/minix/sys.taz system source code and operation manual. Basic There is almost the same. Suppose these are saved in / root / minix startX, open a terminal. Tar -Xzvf root.tgz gets the root file. Tar -Xzvf usr.tgz gets the USR file. Tar -Xzvf Bochs.tgz decompressed Bochs folder CD BOCHS can see readme.txt, there is another b30m.z file I have never used. Tar -Xzvf Bochs.taz Get Bochs-960913 folder CD Bochs-960 913 / Take a look at Install.minix386 This is introduced to install the whole process, it is best to open a terminal again, do not see the virtual terminal in X Window, because on the window generated by Bochs, click on the mouse. Exit (I really don't get used to, huh, huh), and turn a few times in accordance with Alt-Tabs a few times. ./Configure --enable-80386 --enable-memory = 8 - Enable-DMA-Floppy-IO Make should be successful. You can change the configuration, but you don't have to change it. Next to install the Hercules font. Information in install file CP font / Hercules.bdf / USR / LIB / X11 / FONTS / MISC MKFONTDIR / USR / LIB / X11 / FONTS / MISC XSET FP REHASH is the method of install file introduction. I also modified / etc / x11 / xf86config-4 during operation, in FontPath "UNIX /: 7100 "Plus font path before this line fontpath" / usr / lib / x11 / fonts / misc "exits X WINDOW, and then the service XFS Restart will re-startx, the font should be installed. CD / root / minix / bochs dd if = / dev / zero of = 30m BS = 512 count = 62730 Generates a 30M content of all files, which is our hard disk CD .. Cat Root USR>
Bochs / 1.44 huh, 1.44 This file is our floppy disk. This step puts the root, usr disk into the floppy disk. These two files are installed on the disc. Cd Bochs / Bochs-960913 / ./bochs -boota run analog programs And start from the floppy disk. A window will appear. Note that the whole process is not on this window, otherwise the Bochs will exit. The above will display = start minix Press ESC key, enter fd0> hd = bios fd0> Boot then appears below. Enter the fd0c, become the following: Finish the name of the device to mount as / usr: / dev / fd0c Enter a login prompt, enter the root noname login: ROOT can enter the command . Enter: setup Press a carriage return, start installing, then press second, select the default keyboard. Then start partitioning. Enter R to enter the partition interface, the first line has a / dev / hd0, press R, read Partition table, there will be four lines below, which are HD1, HD2, HD3, HD4. Press the down direction to move to the HD1, then press the right direction to move to the 00 of the Type, enter 81, this is minix The partition type, then press the right direction button to move to the column, that is, the last column, press the m key, let it turn to 31314. Next, press W, save the partition table, press Y confirmation. Press Q to exit. Subregion If there is any error operation, you can press the DELETE button to exit the installer, return to the command line. Now the hard disk is divided into the area, then ask you to install MINIX which hard disk, enter HD1 as follows: "please finish the name of the Primary Partition You Have Created: (Just Type Return if you want to reference "part") / dev / hd1 then Minix will start the inner partition, divide / and / usr, press the carriage return to use the default value. If smooth, it Just detect the hard disk, then copy some files. However, I have been wrong, saying that the space is insufficient, so I found that HD1 didn't have 31314, while HD3 was divided into 31314. Save the partition table, it will be normal. Next, you will ask the system memory size, enter 8192, as follows: What is the memory size of this system in kilobytes? [Plenty] 8192 Now the first step is basically Ideated. Enter the Halt shutdown. Add the mouse to exit Bochs now. Now you can back up 30M this file, huh, it is hard to get this hard drive. Now start the second step, for the MINIX installation system software and source code and Man Document. CD / root / minix split -b 1440k usr.taz generates three files XAA, XAB, XAC this is our three system software installation floppy disk. CD Bochs / Bochs-960913 / ./bochs runs analog programs, this The second default is started from the hard disk. Press ESC, HD = BIOS boot, you must do this next time. [all] 1440 Press Enter to use FLOPPY0, which is the default floppy drive. appears: please insert volume 1 and hit return Oh, you want you to put the first floppy disk, so you ctrl-alt-f2, cd / root / minix / cat XAA > BOCHS / 1.44 get it, the floppy disk is inserted, Ctrl-alt-f7, press it, so it starts to install it, after a while it comes to the second disk, CTRL-ALT-F2, CAT XAB> Bochs / 1.44 Three plates are CAT Xac>