Sunday, 11 March 2012

Rebooting Operating System

Eva Os Reboot                                  How To ReBooT?? Keyboard - reboot via the keyboard controller. The original IBM PC had the CPU reset line tied to the keyboard controller. Writing the appropriate magic value pulses the line and the machine resets. This is all very straightforward, except for the fact that modern machines don't have keyboard controllers (they're actually part of the embedded controller) and even more modern machines don't even pretend to have a keyboard controller. Now, embedded controllers run software. But i am using...

Wednesday, 7 March 2012

Debug Your Operating System(Eva Os)

tty2 screenshot //tty1 qemu -s -S -kernel /home/vishal/evaos/working/22/kernel -gdb tcp::50022 -vnc :0 //tty2 gdb (gdb) target remote 127.0.0.1:50022 Remote debugging using 127.0.0.1:50022 0x0000fff0 in ?? () (gdb) file /home/vishal/evaos/working/22/kernel A program is being debugged already. Are you sure you want to change the file? (y or n) y Reading symbols from /home/vishal/evaos/working/22/kernel...(no debugging symbols found)...done. (gdb) break eva Note: breakpoint 1 also set at pc 0x100032. Breakpoint 2 at 0x100032 //tty3 vncviewer 127.0.0.1 So that's how you can debug your own operating system .I known it gets really...

Thursday, 1 March 2012

How to make a Operating System ..The SCreeN(TEXT_MODE+VGA)

Well hello guys ones again!!.Well last time we learned how to make a hello-bootloader, but i'll be using from now on grub as my bootloader so that we can focus more on our kernel.Its also very safe to use grub because we dont have to worry about machine architecture before loading our kernel.  So let start make our very first module of kernel ...  The SCREEN Module: Memory Layout So we are here interested in 0xB8000-0xBFFFF which constitutes our video memory.Well its just a basic video area which have few  colors only. For VGA(vesa) we have to use A0000 but right now i dont want to discuss these things.The area of memory...