Development Kits required to build to Ace OS
| Tool / Website |
Description |
| |
Mingw
www.mingw.org
|
It is required to compile the C/C++ files.
|
| |
NASM
http://nasm.sourceforge.net/
|
Netwide Assembler. It is compiler of Intel Syntax Asssembly language files. It supports wide variety of output file formats.
|
| |
BOCHS
http://bochs.sourceforge.net
|
A X86 emulator for windows. It can programmed to be emulate as 486/Pentium.
Recenly it supports CD Drive accessing also.
|
| |
SciTe Editor
http://www.scintilla.org
|
A very good editor. Supports syntax highlighting for various languages. It also has many customizable nice features such as word completion, line numbers etc.
|
| |
Build Instructions
- Download Ace OS Source Code. Click here to go to Download page
- Extract the downloaded zip file into a directory with Folder Names
- Go to MS-DOS Command Prompt. Do not restart windows, you should run Command.com in windows box.
- Change to AceOS directory
. It depends on where you extracted the downloaded zip file.
- Make sure the path variable contains all the Development kit directories
- Type mingw32-make and press enter
- Now all source will be compiled to produce lot of object files.
Then it link all the object files into Kernel.bin.
After successfull compilation, you will get a message like the following
ld -Ttext 0x19000 -Tdata 0x258c0 --image 0x19000 --shared -entry _KernelEntry -nostartupfiles -o Kernel.exe
Kernel.o Processor.o Timer.o CTimer.o CKernel.o MemMan.o Heap.o DeviceDriver.o IO.o TMan.o TaskMan.o MemMove.o
VGAText.o VGACursor.o Keyboard.o CKeyboard.o PIC.o PCI.o RTC.o GSH.o Harddisk.o HMess.o Printf.o Partition.o
FAT.o String.o Beep.o -LC:\MinGW\lib\gcc-lib\mingw32\3.2 -LC:\MinGW\lib -lmingwex -lgcc
- Now you have to create boot images. Change to Boot directory. Type make and press enter.
Be carefull about your letter cases.
- Thats all. you build the system successfully.
Boot Disk Creation
- Change to directory Boot
- Type make and press enter.
- Insert a DOS formatted empty good floppy disk into drive A:
- Type mboot.bat
and press enter. Follow on screen instruction.
Emulation with Bochs
This is a little bit harder than the above two tasks.
This task is only usefull to developers. You can also debug your codes through Bochs.
- You need BOCHS and WinImage to complete this task sucessfully. Download it.
- Install WinImage and run it
- Create a new Image File and insert the following files using the Insert Menu or press INS, OSLoader.bin and Kernel.exe
- Select Boot Sector Properties... from Image menu.
- Now click the Open button select the Boot.bin in the Ace OS Directory
- Save the file
- Add BOCHS directory to your path
- Change to AceOS Directory
- Type bochs press enter
- Now bochs will show 5 options, select 1. Read options from...
- When it asks for Configuration file name press enter or type bochsrc.txt
- Now bochs will again show first 5 options, select 2. Edit options
- In the next screen select 6. Disk options
- Select 1. Floppy Disk 0: and enter the path and file name of the image file previosuly created.
- Return to previous menu and Select Memory options(4)
- Type the correct location of the files VGABIOS-elpin-2.40 and BIOS-BOCHS-LATEST.
These files are located in your bochs directory.
- Return to main menu by pressing Zeros. Save the cofiguration file by pressing 3
- Now choose option 4. Begin Simulation
- The above settings are only once needed. Thereafter you have to Begin Simulation straigt away.
- If you want to debug the code run bochsdbg instead of bochs
|