Gateway booting problem

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.
mr. xsism

Gateway booting problem

Post 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
jrfritz

Re:Gateway booting problem

Post by jrfritz »

Maybe it's a bug in your OS.

Could we se the code so maybe we could help?
Mr. Xsism

Re:Gateway booting problem - Code

Post 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 :P

Regards,
Mr. Xsism
jrfritz

Re:Gateway booting problem

Post 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!
mr. xsism

Re:Gateway booting problem

Post by mr. xsism »

[attachment deleted by admin]
jrfritz

Re:Gateway booting problem

Post by jrfritz »

mr. xsism wrote: i'm officially a mega-tokian :D
Hahaha...interesting name!

I'm looking at your code now.
jrfritz

Re:Gateway booting problem

Post 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!
Telletubby

Re:Gateway booting problem

Post by Telletubby »

Wow, Tom. You sure do advertise your OS a lot...
mr. xsism

Re:Gateway booting problem

Post 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
mr. xsism

Re:Gateway booting problem

Post 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
jrfritz

Re:Gateway booting problem

Post 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.
mr. xsism

Re:Gateway booting problem

Post 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! :o

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 :)]
mr. xsism

Re:Gateway booting problem

Post 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
jrfritz

Re:Gateway booting problem

Post by jrfritz »

Ty...but now i'm moving to GRUB. Warmaster199 and abless and df convinced me! ( I emailed warmaster...i'm helping him )
mr. xsism

Re:Gateway booting problem

Post 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??
Post Reply