I recently started to read the book "write your own operating system", and I found that the boot disk for the system is a floppy disk! That sweat in my heart!
Today, they are all USB flash drives. So we are considering using a USB flash drive.
Start the following steps:
1. Since the book says that the floppy disk should be used as the boot disk, I will similarly make the USB disk as the boot disk. After finding USboot for half a day on the Internet, I used it to create a boot disk for my USB flash drive.
2. Write the compiled boot. Binfile to the USB flash drive using the absolute sector tool. Similarly, winhex is found on the Internet (there is also ultraiSO, this is useless), but this key step is that you do not know how to use winhex to write binfiles into the USB flash disk. You can try it out...
After two hours, I still failed. So I thought, could I use a virtual floppy disk?
Well, let's start looking for ideas again.
Finally, I found someone in the same predicament as me. His solution was to use a virtual floppy disk to write the bind file to the image file. in img, and then mount the most startup file to a virtual floppy disk, you can achieve your first operating system in name ---- Hello, OS world!
The detailed method is as follows:
1. Write the bind file to the TINIX. Imgfile provided by the author using floppy writer.
2. Create a virtual machine in vmware (virtual pc can also be used). Be sure to select other for both the operating system and version.
3. Edit VM settings in vmware. For details, see:
Note the floppy disk settings:
If you have two virtual systems, you need to change the settings of the virtual optical drive.
Start your system.
The following is the connection between two similar articles, and I have also taken the exam.
Virtual machine vmware: http://wenku.baidu.com/view/48383d1614791711cc79172f.html
Virtualbox: http://student.csdn.net/space.php? Uid = 97077 & do = blog & id = 26069
Writing the operating system by yourself-personal practices