basic bootloader

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
maestro

basic bootloader

Post by maestro »

does anyone know of a simple bootloader that uses basic DOS partitions and whose only purpose is to make a C program boot from a floppy? thanks!
-maestro
J. Weeks

RE:basic bootloader

Post by J. Weeks »

>On 2001-12-29 11:46:17, maestro wrote:
>does anyone know of a simple bootloader that uses basic DOS partitions and whose only purpose is to make a C program boot from a floppy? thanks!
>-maestro

You can't boot a C program directly... unless its
in some executable format (ie, other than binary),
such as dos's .EXE... but then... why not just
use DOS? :)

Check out GRUB... it might work for you... but, ahh...
floppies don't have partitions, you know :)

Jeff
maestro

RE:basic bootloader

Post by maestro »

>On 2001-12-29 20:08:12, J. Weeks wrote:
>>On 2001-12-29 11:46:17, maestro wrote:
>>does anyone know of a simple bootloader that uses basic DOS partitions and whose only purpose is to make a C program boot from a floppy? thanks!
>>-maestro
>
>You can't boot a C program directly... unless its
>in some executable format (ie, other than binary),
>such as dos's .EXE... but then... why not just
>use DOS? :)
the whole point is for it to be some sort of a joke operating system, and for it to be able to boot from a floppy.

>
>Check out GRUB...
ok, i will

>it might work for you... but, ahh...
>floppies don't have partitions, you know :)
i meant dos file system.

>
>Jeff
J.Weeks

RE:basic bootloader

Post by J.Weeks »

>the whole point is for it to be some sort of a
>joke operating system, and for it to be able to
>boot from a floppy.
>
>i meant dos file system.

Ahh, gotchya. Cool. Have you checked up FreeDOS?
I mean, unless you wanna write it all yourself.
'cuz it might be a big time saver to download the
FreeDOS boot code + kernel, and fiddle with it a
bit.

Cheers! :)
Jeff
Guest

RE:basic bootloader

Post by Guest »

>On 2001-12-30 10:28:26, maestro wrote:
>>On 2001-12-29 20:08:12, J. Weeks wrote:
>>>On 2001-12-29 11:46:17, maestro wrote:
>>>does anyone know of a simple bootloader that uses basic DOS partitions and whose only purpose is to make a C program boot from a floppy? thanks!
>>>-maestro
This is a very frequently asked question, RTFM! (I've always wanted to say that ;). In this sense, EVERY boot loader is "basic," afterall, you can't put much in 512Kbs of space.
>>
>>You can't boot a C program directly... unless its
>>in some executable format (ie, other than binary),
>>such as dos's .EXE... but then... why not just
>>use DOS? :)
>the whole point is for it to be some sort of a joke operating system, and for it to be able to boot from a floppy.
It sounds to me like you barely understand the language and just want an easy way to brag to your friends about your l33t h4x0r1ng skillz. This is all speculative, of course, just judging by the fact that you don't understand basic terminology.
>
>>
>>Check out GRUB...
>ok, i will
>
>>it might work for you... but, ahh...
>>floppies don't have partitions, you know :)
>i meant dos file system.
Well, unfortunately, there's a HUGE difference between partitions and file systems.
>
>>
>>Jeff
maestro

RE:basic bootloader

Post by maestro »

>On 2001-12-30 19:08:28, J.Weeks wrote:
>>the whole point is for it to be some sort of a
>>joke operating system, and for it to be able to
>>boot from a floppy.
>>
>>i meant dos file system.
>
>Ahh, gotchya. Cool. Have you checked up FreeDOS?
>I mean, unless you wanna write it all yourself.
>'cuz it might be a big time saver to download the
>FreeDOS boot code + kernel, and fiddle with it a
>bit.
>
>Cheers! :)
>Jeff

as of, oh, about 30 seconds ago i was tinkering around
Alexei A. Frounze's os and boot code, which looks promising.
thanks for the freeDos suggestion, btw... (if only i can
get it to compile under windoze...)
-maestro
Post Reply