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.
Strange error in bochs
Re:Strange error in bochs
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
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
Re:Strange error in bochs
OK - you didn't mention this before. Sorry ::)blade2k_seph wrote: It works on a real computer...
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Strange error in bochs
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.
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.
Re:Strange error in bochs
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?
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?
Re:Strange error in bochs
I'd recommend VMware. It will take out having to make images constantly from a floppy, which is HORRIBLY slow.