Page 1 of 1

where to start

Posted: Tue Jan 27, 2004 12:00 am
by osdever101
I have obtained a bootloader and small kernel ($murfOS), and I am trying to build on it just for experience... but I am lacking the knowledge of how to do so, I was wondering If I need to some how map some memory to be able to load a small binary program into memory and execute it from the kernel and if so, how?  

please If I am way off let me know, and please correct me, thx

RE:where to start

Posted: Tue Jan 27, 2004 12:00 am
by Gnome
I'm not familiar with $murfOS, so you'll have to do a bit of legwork to fill in the gaps here.

First, check if they already have a floppy disc image to test it out with.

Next, check if there's documentation for this process. Chances are, they'll make it easy for you with a script or a list of commands to run, or something.

If not, then you can try fudging it. The bootloader will go in the first sector of the floppy disc. Then, I would guess, the kernel would start. If you're running Linux, or another Unix variant, then the commands would be as follows:

dd if=bootsector.bin of=/dev/fd0 bs=512 count=1
dd if=kernel.bin of=/dev/fd0 bs=512 seek=1

(Presuming bootsector.bin holds the bootloader image, and kernel.bin holds the kernel image)

There's a similar routine to follow in Windows, but I don't know it off-hand. I do all my code in Linux.

RE:where to start

Posted: Wed Jan 28, 2004 12:00 am
by EyeScream
In Windows, use PARTCOPY.

PS. I use Linux, too =)