Self-made operating system-the simplest system helloWorld
Follow the steps of the self-made operating system. First, you must use the binary editor to edit an. imgfile. After editing, you can run the file in either of the following ways:
1: You can burn this imgfile into a floppy file and restart the computer.
2: run with the qume virtual machine.
We use the second method. First, we need to obtain the. imgfile in the file, and in the "30-day self-made operating system CD \ OS \ projects \ 01_day \ helloos0 \
Helloos. img. We implement the following methods:
1: copy the tolset folder under the OS folder to a desired place.
2: Create the helloos0 directory in the tolset folder.
3: Place helloos. img in the "30-day self-made OS cd \ OS \ projects \ 01_day \ helloos0" on the CD ,! Cons_9x.bat ,! Copy cons_nt.bat to the self-created helloos0 directory.
4: Create a New run.batfile, that is, modify the run.txt of the hosts file to run. bat. The requirements in the book are as follows:
But there is a problem with this writing. It should be like this:
Another batch file install. bat is used to write the image file helloos. img to a floppy disk, which is no longer used here.
However, you need to note that the requirements in the book are as follows:
It should be written in this way to run successfully: <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KCjxwPjxpbWcgc3JjPQ = "http://www.2cto.com/uploadfile/Collfiles/20150509/201505090956205.jpg" alt = "here write picture description" title = "\">
5. Run
Double-click! Cons_nt.bat: run the batch processing file and enter the command "run". The following is the result of my operation:
If you encounter the following problems after entering the run command:
Although it can run successfully, but it will report some problems, these problems occur because "../z_tools/qemu/fdimage0.bin" needs to be written
".. \ Z_tools \ qemu \ fdimage0.bin.
Note: QEMU is a simulator that can simulate a PC. If you are interested, take a look.