Go to osdev and there is tutorials on ata there but, if you want the specifacations then go to t13
Oh, and by the way look at the mkiso cmd it can be VERY useful for booting from a cd
Search found 14 matches
- Wed Feb 15, 2012 1:23 am
- Forum: Beginning OS Development
- Topic: Using a Hard Disk (or image) instead of floppy?
- Replies: 2
- Views: 46979
- Sun Nov 27, 2011 4:10 pm
- Forum: Beginning OS Development
- Topic: Keyboard Handler
- Replies: 1
- Views: 40027
Re: Keyboard Handler
Never mind I got the keyboard handler to work in C.
- Thu Nov 24, 2011 1:06 am
- Forum: Beginning OS Development
- Topic: USB/HDD/CD/DVD Booting
- Replies: 3
- Views: 50804
Re: USB/HDD/CD/DVD Booting
To boot on a cd/dvd/usb you don't necessarily have to make a separate bootloader for it, you can use the mkisofs command. For building your os I'd recommend looking at the MikeOS operating system builder files. For a hard drive you should be able to study other people's code for that but don't copy ...
- Wed Nov 23, 2011 9:08 pm
- Forum: Beginning OS Development
- Topic: Keyboard Handler
- Replies: 1
- Views: 40027
Keyboard Handler
Hello, I'm building an operating system from scratch on Linux. So far I've made a bootloader, gone into 32 bit mode, made c libraries (but I'm still making an nasm based kernel), setup software and hardware interrupts, made a standard library, made a simple keyboard driver, and more. My question is ...
- Sun Aug 28, 2011 8:27 pm
- Forum: Beginning OS Development
- Topic: Stage2
- Replies: 1
- Views: 41162
Stage2
What's the problem with my code Heres Stage2.asm ;Stage2.asm bits 16 org 0x500 jmp Main %include "GDT.inc" bits 16 Print16: pusha .Loop1: lodsb or al, al jz Puts16Done mov ah, 0eh int 10h jmp .Loop1 Puts16Done: popa ret bits 32 %define VIDMEM 0xB8000 %define COLS 80 %define LINES 25 %define CHAR_ATT...
- Wed Aug 24, 2011 1:23 am
- Forum: Beginning OS Development
- Topic: GDT
- Replies: 4
- Views: 55899
Re: GDT
Thanks,
The problem was that when I compiled them I copied the build file from the INC file on my shell script.
The problem was that when I compiled them I copied the build file from the INC file on my shell script.
- Tue Aug 23, 2011 12:51 am
- Forum: Beginning OS Development
- Topic: GDT
- Replies: 4
- Views: 55899
Re: GDT
I've double checked them and it still won't include I've tried %ifndef __GDT_INC_67343546FDCC56AAB872_INCLUDED__ %define __GDT_INC_67343546FDCC56AAB872_INCLUDED__ ;code %endif and %ifndef __GDT_MAC %define __GDT_MAC ;code %endif also the file name was GDT.inc and I also tried GDT.mac and when I incl...
- Sun Aug 21, 2011 9:54 pm
- Forum: Beginning OS Development
- Topic: GDT
- Replies: 4
- Views: 55899
GDT
Hello I've finished the first stage bootloader and working in the second stage but the second stage compile because it can't include the files and if I put all the code in one file it messes up the gdt. Do the inc files have to be compiled? Why can't I include the files?
- Sun Aug 14, 2011 5:06 pm
- Forum: Beginning OS Development
- Topic: MyOS Problem
- Replies: 6
- Views: 67988
Re: MyOS Problem
This is the .sh build file I use but when I type sudo bash ./MyOS/build.sh It says Compiling Files... Copying bootloader to floppy... 1+0 records in 1+0 records out Copying Kernel and files to floppy... cp: cannot create regular file `tmp-loop/KRNLDR.SYS': No space left on device Unmounting loopback...
- Sun Aug 14, 2011 2:31 pm
- Forum: Beginning OS Development
- Topic: MyOS Problem
- Replies: 6
- Views: 67988
Re: MyOS Problem
So it would look like this right?
dd if=Stage1.bin bs512 count=2880 of OS.img
losetup /dev/loop0 OS.img
mkdosfs /dev/loop0
mount -t msdos /dev/loop0 /mnt/MyOS
cp OS.img Stage1.bin
dd if=Stage1.bin bs512 count=2880 of OS.img
losetup /dev/loop0 OS.img
mkdosfs /dev/loop0
mount -t msdos /dev/loop0 /mnt/MyOS
cp OS.img Stage1.bin
- Sun Aug 14, 2011 2:22 pm
- Forum: Beginners
- Topic: My Questions About Tutorial 6
- Replies: 2
- Views: 47220
Re: My Questions About Tutorial 6
Thanks you. Now I understand.
- Sun Aug 14, 2011 1:43 am
- Forum: Beginning OS Development
- Topic: MyOS Problem
- Replies: 6
- Views: 67988
Re: MyOS Problem
Thanks but how do you put stage2 on it. I've tried to use loopback but it won't work
- Sat Aug 13, 2011 5:49 pm
- Forum: Beginning OS Development
- Topic: MyOS Problem
- Replies: 6
- Views: 67988
MyOS Problem
Hi my name is Jackson and I'm a following the tuturial series and building a bootloader. I'm using Linux Mint 10 for all of the compiling and coding. I'm wondering how to put both of them on a floppy. I like linux and mac but not windows. It would be great if somebody could explain.
- Sat Aug 06, 2011 8:15 pm
- Forum: Beginners
- Topic: My Questions About Tutorial 6
- Replies: 2
- Views: 47220
My Questions About Tutorial 6
Hello I'm Jackson and I have a few questions about tut 6. First is, Convert CHS to LBA. the formula is: LBA = (cluster - 2) * sectors per cluster ClusterLBA: sub ax, 0x0002 ;ax = cluster. xor cx, cx ;clear cx mov cl, BYTE [bpbSectorsPerCluster] ;cl = the current byte of sectors per cluster mul cx ;W...