Strange error in bochs

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.
Post Reply
blade2k_seph

Strange error in bochs

Post by blade2k_seph »

I was into osdeving a while ago. Nothing serious... but then the other day I found an old floppy disk and decided to get bochs to run it.
It all went well until it was time to load the kernel (this is after loading the second stage of the boot loader).
All I got was an error message.

This is from the log.
01223980400p[BIOS ] >>PANIC<< int13_diskette:f02: ctrl not ready

I know this has worked in bochs before, and I made no changes since.
Any ideas of what it could be?

Note: I did try to search for something like this, but found nothing.
JoeKayzA

Re:Strange error in bochs

Post by JoeKayzA »

I found some pages in google about this, they refer to source code. It says that this error message gets printed when the floppy controller isn't ready (checking the ready bit).

You say it worked before, and now, it magically doesn't....could it be that the floppy disk is just broken or corrupted? That wouldn't surprise me at least, try an in-depth scan.

cheers Joe
blade2k_seph

Re:Strange error in bochs

Post by blade2k_seph »

It works on a real computer...
JoeKayzA

Re:Strange error in bochs

Post by JoeKayzA »

blade2k_seph wrote: It works on a real computer...
:o OK - you didn't mention this before. Sorry ::)
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Strange error in bochs

Post by Pype.Clicker »

it looks like that message is something from the BIOS code (e.g. it matches bios/rombios.c, in diskette function) ...

and unlike what i was expecting, the 'f02' doesn't mean you're adressing floppy "B:" or something else like that ...

it looks like it happens just after motor is turned on ... maybe some bug in bochs' code for using real disks.

You might wish just to capture the floppy's content on an image file and work on that. That'd be the easiest way to bypass the problem.
blade2k_seph

Re:Strange error in bochs

Post by blade2k_seph »

Thansk. I'll try that as soon as I get home.

I actually thought f02 might have to do with function 02.
That is AH=02h, the read sector function, which is what I'm trying to do when it happens.

Any suggestions for a good image capturing program?
Cjmovie_Guest

Re:Strange error in bochs

Post by Cjmovie_Guest »

I'd recommend VMware. It will take out having to make images constantly from a floppy, which is HORRIBLY slow.
Post Reply