Page 1 of 2
Gateway booting problem
Posted: Tue Dec 31, 2002 5:19 pm
by mr. xsism
hi,
has anyone ever had any problems with booting their OS to a Gateway brand PC???? For some reason my kernel bootdisk will not work on them, but works ine in bochs+my home brew PCs:o. Any help would be great
I am also on #osdev @ irc.wyldryde.net
Regards,
Mr. Xsism ;D
Re:Gateway booting problem
Posted: Tue Dec 31, 2002 5:44 pm
by jrfritz
Maybe it's a bug in your OS.
Could we se the code so maybe we could help?
Re:Gateway booting problem - Code
Posted: Tue Dec 31, 2002 6:18 pm
by Mr. Xsism
how exactly would u like to c my code? email me so i can email it to u. I have my latest backup zip i can send u. Thx
i'll have a server up soon for the web-site, sry
Regards,
Mr. Xsism
Re:Gateway booting problem
Posted: Tue Dec 31, 2002 6:28 pm
by jrfritz
If you register here...it lets you post a .zip attachement when you are posting...so everyone here can help and see your code!
Re:Gateway booting problem
Posted: Wed Jan 01, 2003 1:29 pm
by mr. xsism
[attachment deleted by admin]
Re:Gateway booting problem
Posted: Wed Jan 01, 2003 5:29 pm
by jrfritz
mr. xsism wrote:
i'm officially a mega-tokian

Hahaha...interesting name!
I'm looking at your code now.
Re:Gateway booting problem
Posted: Wed Jan 01, 2003 5:40 pm
by jrfritz
Wow...seems you have been programming that alot!
Also...I read perica in there somewhere...does that mean the Perica Senjak that's here?
I saw somewhere that a simple function can stop your code from working on other PCs. In that case, it was their mem...() function(s).
Or it could be how you set up your OS and stuff.
I recommend you download BOCHS 2.0 and test your OS on there...but you need my BOCHS script in FritzOS to make BOCHS work, most likely. BOCHS comes with a debugger...so maybe it'll tell you what's wrong!
Re:Gateway booting problem
Posted: Thu Jan 02, 2003 5:58 pm
by Telletubby
Wow, Tom. You sure do advertise your OS a lot...
Re:Gateway booting problem
Posted: Thu Jan 02, 2003 7:17 pm
by mr. xsism
well, i have bochs 2.0, 1.5, etc and it works there just fine. I really have no mm yet so i dont't c how it could be that. perica's name is in there cuz i made that readme file 4 him(i never gave my source to anyone then). he is the same same one from here

Also, what memory stuff is volatile on certain machines? i may be able to fix it if i know what not to do
thx
Regards,
mr. xsism
Re:Gateway booting problem
Posted: Thu Jan 02, 2003 10:31 pm
by mr. xsism
to everyone reading these posts i believe i found the problem. I have managedto find it hrough outputting characters as debug messages and found that when it tries to read from the floppy disk using BIOS in 0x13 it nevers returns, why? I have no clue. It may be because it needs the floppy drive to be reset or something like that. I am trying to solve the riddle now and will let everyone know when i figure it out. Bye.
regards,
mr. xsism
Re:Gateway booting problem
Posted: Thu Jan 02, 2003 10:48 pm
by jrfritz
Here is my Floppy reset function(need it inorder to read the floppy):
ResetFloppy:
mov ax, 0x00 ; Select Floppy Reset BIOS Function
mov dl, [ drive ] ; Select the floppy FritzOS booted from
int 13h ; Reset the floppy drive
jc ResetFloppy ; If there was a error, try again.
Re:Gateway booting problem
Posted: Fri Jan 03, 2003 8:58 pm
by mr. xsism
well, i gotta say thx, but this sux! That floppy reset thing loops and never comes out. I tried my own version and the same thing happened. I also noticed that my a20 code resets the machine which happens to the gateway and my PC. Why does this happen? i'm getting so close to fixing it too! please help me!
Regards,
Mr. xsism (my a20 code is with the above posted zip file)
edit[ok, well, now urs works, but not mine. so i'm gonna use urs,k?]
[i don't understand why mine doesn't! i xor ax,ax + mov dl,[bootdrive] + int 0x13 + jc resetfloppy]
[alwell, thx tom

]
Re:Gateway booting problem
Posted: Fri Jan 03, 2003 10:32 pm
by mr. xsism
yes!! i got it working! although it wasn't the reset deal i thank u tom

I wuill answer the problem as promised:
it was the ES segment reg
do this, when u set the DS to CS
mov ax,cs
mov ds,ax
mov es,ax
that will fix any int 13h problems u will have on a gateway!
Yahoooooo! ;D
regards,
mr. xsism
Re:Gateway booting problem
Posted: Sat Jan 04, 2003 7:48 pm
by jrfritz
Ty...but now i'm moving to GRUB. Warmaster199 and abless and df convinced me! ( I emailed warmaster...i'm helping him )
Re:Gateway booting problem
Posted: Sat Jan 04, 2003 10:16 pm
by mr. xsism
sigh, sorry guys but i found another problem with int 13h. I access more than 18 sectors at a time so it doesn't work. But that es thing was one problem. Sorry :/ Check out my new post about it

thx
regards,mr. xsims ps:tom, why grub??