Page 1 of 1
need EXE file bootloader
Posted: Sun May 29, 2005 3:54 pm
by kerim
If some has already made or know where I could find one - a bootloader that is able to load .EXE format kernel (not .COM) ?
Thanx
Re:need EXE file bootloader
Posted: Sun May 29, 2005 4:05 pm
by Kemp
You'll find virtually all bootloaders will be designed to load basic binary images or some simple variation thereof. EXEs and such-like require the loader to fix up the addresses in the code according to where it is loaded, and as the kernel will (usually) always be loaded at a known location this functionality isn't really needed. Saying that, if you're doing a two-stage loader you should have enough space to carry out this fixing, so you might be able to find one.
Re:need EXE file bootloader
Posted: Sun May 29, 2005 9:15 pm
by mystran
Grub will load ELF kernels, and (AFAIK) with some extra support from the kernel almost any kind of other kernel, assuming ofcourse that you do not rely on dynamic linking of libraries.
Re:need EXE file bootloader
Posted: Mon May 30, 2005 3:27 am
by Pype.Clicker
there are bootloader that load .EXE files (cannot google for them atm.)
Now, you need to know that there are several realities behind the ".exe" thing (e.g. ms-dos 'MZ' executables, 'PE' executables, etc.)
Re:need EXE file bootloader
Posted: Mon May 30, 2005 5:39 am
by bubach
<dex4u bot> Try bootprog, it can load both .COM and .EXE kernels. You can get it from:
http://alexfru.chat.ru/epm.html#bootprog </bot>
Re:need EXE file bootloader
Posted: Mon May 30, 2005 6:33 am
by Kemp
And thus I stand corrected
Re:need EXE file bootloader
Posted: Mon May 30, 2005 7:57 am
by oswizard
I don't know how good this is, but the attached is what I used to use in my kernel's second-stage loader (in 32-bit pmode). Now I have a page-granular rebase utility to set the base address prior to boot time.
Re:need EXE file bootloader
Posted: Mon May 30, 2005 3:51 pm
by kerim
Thanks guys, I downloaded bootprog and plan to use it for my small tutorial on Pascal operating system development.
Thanx again
Re:need EXE file bootloader
Posted: Tue May 31, 2005 7:14 am
by Dex4u
May be you should try "OS Loader" by the same person, as with this you can load test programs not only from the floppy, but also Hdd too, you can also cd, cls ,dir, time, date.
http://alexfru.chat.ru/epm.html#los4d
Re:need EXE file bootloader
Posted: Tue May 31, 2005 5:21 pm
by oswizard
Oops! Just realized my attachment didn't come through ::)
Anyways, this should be it, if it is still needed.
Re:need EXE file bootloader
Posted: Wed Jun 01, 2005 3:27 pm
by kerim
thanx d00d