flat assembler
Message board for the users of flat assembler.

Index > OS Construction > problem with bootloader

Author
Thread Post new topic Reply to topic
DC740



Joined: 01 Oct 2004
Posts: 74
Location: Argentina
DC740
I've been trying to find a bootloader that reads the kernel from the fat12 filesystem in the diskette, but i can't find any that work with an 286 machine

for example, i tryied GRUB and it just hangs... i tryed the same diskette on my amd and it works fine... but in my 286 it says "GRUB" and then it hangs... after that i tryied about 4 or maybe 5 different bootloaders and none of then work... they all hangs the computer without error message... and of course I've been tryin with the attached examples of each bootloader, not my own code... and i also tried mixing the kernel examples (cause there were VESA examples and 32 bit examples that wouldn't boot on my 286)

the bootloaders were not able to load anything... not even the simplest kernel that showed a text on the screen only...

and the problem is not on the machine cause i'm running win 3.1 without problems and also i tried Metro Operative system(posted in this forum) and it booted ok...

so can anyone tell me about a simple bootloader that WORKS Crying or Very sad

thanks for your time
Post 08 Jan 2006, 18:37
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
Have you tryed "bootprog" it will load a com or mz exe or bin file from a fat12 formated floppy.
You can get it here: http://alexfru.chat.ru/epm.html#bootprog

PS: I have a 286 laptop, most things will not work as the video seg=B000h, may be this is your problem

Try this, just as a test:
Code:
;************************************; \\|//; (@ @); ASHLEY4.; Put vesatest.bin on boot sector; with rawrite.; Assemble with fasm; c:\fasm test.asm test.bin;;************************************org 0x7C00use16;****************************; Realmode startup code.;****************************start:        xor   ax,ax        mov   ds,ax        mov   es,ax        mov   ss,ax        mov   sp,0x7C00        mov   ax,0xB000        mov   es,ax        lea   si,[msg0]                           mov   di,(80 * 1 + 2) * 2        mov   cx,52        cld        rep   movsb        jmp   $  ;*************************************; Data.;*************************************color       dd 0 msg0        db "  V E S A   M O D E   N O T   S U P P O R T E D !   " ;*************************************; Make program 510 byte's + 0xaa55;*************************************times 510- ($-start)  db 0  dw 0xaa55    


NOTE: The spacers in the letters are needed.
Post 08 Jan 2006, 19:18
View user's profile Send private message Reply with quote
DC740



Joined: 01 Oct 2004
Posts: 74
Location: Argentina
DC740
nop, it doesn't work, but thank you for your link, this bootloader works!! Smile i was losing my hopes on the 286 hehehe

thanx a lot!
Post 08 Jan 2006, 23:10
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
Your welcome, One out of two ain't bad, that all most a meatloaf song Laughing .
Post 09 Jan 2006, 02:04
View user's profile Send private message Reply with quote
RedGhost



Joined: 18 May 2005
Posts: 443
Location: BC, Canada
RedGhost
Dex4u wrote:
Your welcome, One out of two ain't bad, that all most a meatloaf song Laughing .


haha i happen to be listening to the album "bat out of hell" Very Happy

_________________
redghost.ca
Post 09 Jan 2006, 02:20
View user's profile Send private message AIM Address MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.