flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Bootloader Goto page 1, 2, 3, 4 Next |
Author |
|
joachim_neu 09 Aug 2005, 09:59
THEWizardGenius wrote: I need an FAT12 bootloader, but I am too lazy to make one. I want to get started on the kernel. Well, that's nice, I need an OS. It has to have a nice GUI with all the pictures and icons and it has to support FAT12, FAT16, FAT32, NTFS, ext/2, ext/3, ReiserFS and anything else you know, too. MultiTasking and Paging are required, multiuserability would be nice. It has to be written in FASM. Fact: You'll have to code on your own. There's no "but I am too lazy". OS-Dev isn't putting some parts together and make something nice out of it. |
|||
09 Aug 2005, 09:59 |
|
Night Rider 09 Aug 2005, 10:51
Yeah, O/S developement is not for lazy people!
|
|||
09 Aug 2005, 10:51 |
|
smiddy 09 Aug 2005, 11:47
Night Rider wrote: Yeah, O/S developement is not for lazy people! I would imagine bogdan would argue this one...his tagline says something to the effect: "Ambition is just a lame excuse for the ones not brave enough to be lazy." But alas, he does code it just takes him longer than others... |
|||
09 Aug 2005, 11:47 |
|
Dex4u 09 Aug 2005, 12:36
I am called lazy by my family, you go to work, come home and sit at your PC all night, so making a OS is for lazy people .
PS: You can use "Dex4u" for a boot loader as it does all those things and much much more, if theres enough interest i may make a special version . May be something like this http://www.dex4u.com/cdpod.PNG With boot options etc. |
|||
09 Aug 2005, 12:36 |
|
smiddy 09 Aug 2005, 14:03
Well, isn't that special!
Sorry, had to do it, seemed appropriate. Seriously, you could certainly use Dex4u as a boot loader. It get's you into 32-bit protected mode. You'd have to compile in Dex4u format unless Dex intends on making a special version for strict flat file OS... |
|||
09 Aug 2005, 14:03 |
|
THEWizardGenius 09 Aug 2005, 17:22
What I mean is, since the bootloader isn't the most important part, and since many people have already written the exact thing I need, why should I reinvent the wheel? I am sure there are 10,000,000,000,000,000,000,000,000,000 FAT12 bootloaders on the net, probably half of which do protected mode, and an eighth of which print a loading message. So why should I write my own? I didn't mean I'm lazy (Lazy People Shouldn't Write Kernel's ) I just said I don't want to write something so trifling that many people have already written it! Thanks to bubach at the Mega-Tokyo forum, I have what I want
_________________ FASM Rules! OS Dev is fun! Pepsi tastes nasty! Some ants toot! It's over! |
|||
09 Aug 2005, 17:22 |
|
joachim_neu 09 Aug 2005, 21:12
Well, writing an own bootloader is one step for the OS. I bet there are 10,000,000,000,000,000,000,000,000,000 kernels on the net. Why don't you take one? The bootloader is one step. And you'll never find exactly what you want to. I bet in the end you rewrite it, too.
|
|||
09 Aug 2005, 21:12 |
|
THEWizardGenius 09 Aug 2005, 22:29
Because bootloaders are complex and difficult to make. Reinventing the wheel is useless, and I'd probably end up with lousy code, if it even worked. Besides, read this: http://my.execpc.com/CE/AC/geezer/osd/boot/index.htm
Quote:
He goes on to recommend GRUB, which I DON'T want to use because it seems too complex for me to understand or figure out how to use. I don't want to re-invent the wheel, and (having unsuccessfully tried writing a bootloader before I read this) I know how difficult writing something that complex is to write. Sure, the kernel will be difficult, but it will be worth it, and I won't be reinventing the wheel as it will be my own, and I won't have a limit of 510 bytes! Anyways, I have exactly what I needed, without writing my own, so I don't have to reinvent the wheel. And I shouldn't have to! I may modify it slightly, but rewriting it completely would be stupid. |
|||
09 Aug 2005, 22:29 |
|
coconut 10 Aug 2005, 00:31
look at examples page for fat12 bootloader..
|
|||
10 Aug 2005, 00:31 |
|
THEWizardGenius 10 Aug 2005, 02:14
I know about that one, but I want protected mode. Once again, I have one now so this thread can be locked or whatever...
If it's helpful, here it is (displays loading message and error message if an error occurs, loads KERNEL.SYS and enters protected mode) Bubach said it's public domain (you'll want to modify the loading and error messages, etc., but other than that it's pretty good).
_________________ FASM Rules! OS Dev is fun! Pepsi tastes nasty! Some ants toot! It's over! |
|||||||||||
10 Aug 2005, 02:14 |
|
Octavio 10 Aug 2005, 07:44
THEWizardGenius wrote: Because bootloaders are complex and difficult to make. do you think that writing a OS is simple and easy? i have been programing a OS for many years, and some boot loaders for this OS, i just need a day of work to make a new boot loader. But none of my boot loaders enters PMODE. Quote:
completely false. Quote:
The guy who whants to write a OS must have all this arcane knowledge. Quote:
Perhaps is true for C programmers ,but not a problem at all for assembly programmers. Dex4u wrote:
That is not lazy ,it is insane, is very important to sleep some hours I´m a temporally worker, i work some months, and program the rest of the year. |
|||
10 Aug 2005, 07:44 |
|
shoorick 10 Aug 2005, 09:08
hi!
i just tried to simply compile attached BOS_boot.asm with fasm 1.64 and got error here: Code: ;----------------------------------------; ; start of 32-bit area. ; ; flush segments and jump to kernel ; ;----------------------------------------; use32 flush: mov eax, 0x10 [b]mov ds, eax[/b] mov es, eax mov fs, eax Code: flat assembler version 1.64 C:\projects\BOS_boot\BOS_boot.asm [341]: mov ds, eax error: invalid size of operand. |
|||
10 Aug 2005, 09:08 |
|
smiddy 10 Aug 2005, 11:33
Change the eax's to ax's and you should be happy as a lark.
|
|||
10 Aug 2005, 11:33 |
|
shoorick 10 Aug 2005, 12:34
yes, now ok (i just thought it is a tested code ) but happy not so much: qemu is crashing on it
|
|||
10 Aug 2005, 12:34 |
|
THEWizardGenius 10 Aug 2005, 17:22
Quote:
Sorry, I forgot to mention that. I had the same problem It works fine in Bochs, I don't know about QEmu, and it also works on a physical PC (you may have to reboot a couple times on an older PC) |
|||
10 Aug 2005, 17:22 |
|
shoorick 10 Aug 2005, 17:50
do not worry about me - you possible put this sector to disk with fat and kernel, but i,ve just padded it with zeroes to valid 1.44 size. i'll tell you a secret: i made a converter of sources to projects, and now to test it i'm converting everything i see, even do not look inside well
regards! |
|||
10 Aug 2005, 17:50 |
|
THEWizardGenius 10 Aug 2005, 17:52
Can I have your converter? It might be useful...
|
|||
10 Aug 2005, 17:52 |
|
shoorick 10 Aug 2005, 18:25
it will be usefull if you will use winasm studio. this converter to winasm projects: i compile and run QEMU (you can BOSH etc) with just couple key pressing i will not advertise it here more: look there http://www.winasm.net/forum/, look there for wafasm and inp2
regards! |
|||
10 Aug 2005, 18:25 |
|
Night Rider 10 Aug 2005, 19:30
"What I mean is, since the bootloader isn't the most important part"
What??? Sorry, but that is not truth! You can not make anything without it!. When you have done bootloader, it becames not-important, but when you don't have it, don't say it. Don't say about you haven't done yet. |
|||
10 Aug 2005, 19:30 |
|
Goto page 1, 2, 3, 4 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.