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.
chrisa128

Bochs

Post by chrisa128 »

Sorry, I couldn't find this anywhere on the forums.

Is there a way to get BOCHS to read a floppy disk direct instead of making a image all the time.

Thanks in advance...
Whatever5k

Re:Bochs

Post by Whatever5k »

Yes - modifiy your bochsrc to contain those lines:

floppya: 1_44=/dev/fd0, status=inserted
boot: a

Note that is specially for Linux

PS: I can't really believe you couldn't find that anywhere ;)
chrisa128

Re:Bochs

Post by chrisa128 »

I need to be able to do it under windows...

PS: I can't really believe you couldn't find that anywhere
All I could find was questions asking what different errors meant, Though I only went back as far as October....
scientica

Re:Bochs

Post by scientica »

If you download the latest version for windows and look in the bochs folder you'll find an well documented sample file.
From the bochsrc-sample.txt from version 2.0.1:

Code: Select all

#=======================================================================
# FLOPPYA:
# Point this to pathname of floppy image file or device
# This should be of a bootable floppy(image/device) if you're 
# booting from 'a'.
#
# You can set the initial status of the media to 'ejected' or 'inserted'.
#   floppya: 2_88=path, status=ejected             (2.88M 3.5" floppy)
#   floppya: 1_44=path, status=inserted            (1.44M 3.5" floppy)
#   floppya: 1_2=path, status=ejected              (1.2M  5.25" floppy)
#   floppya: 720k=path, status=inserted            (720K  3.5" floppy)
#   floppya: 360k=path, status=inserted            (360K  5.25" floppy)
#
# The path should be the name of a disk image file.  On unix, you can use
# a raw device name such as /dev/fd0 on Linux.  On WinNT and Win2k, use
# drive letters such as a: or b: as the path.  Raw floppy access is not
# supported on Windows 95 and 98.
#=======================================================================
floppya: 1_44=/dev/fd0, status=inserted
#floppya: file=../1.44, status=inserted
#floppya: 1_44=/dev/fd0H1440, status=inserted
#floppya: 1_2=../1_2, status=inserted
#floppya: 1_44=a:, status=inserted
#floppya: 1_44=a.img, status=inserted
note the 2nd line from the bottom:
#floppya: 1_44=a:, status=inserted
whyme_t

Re:Bochs

Post by whyme_t »

chrisa128 wrote: I couldn't find this anywhere on the forums.
http://www.mega-tokyo.com/forum/index.php?board=1;action=display;threadid=2801;start=0
chrisa128

Re:Bochs

Post by chrisa128 »

I using Windows ME and it doesn't work....
whyme_t

Re:Bochs

Post by whyme_t »

chrisa128 wrote: I using Windows ME and it doesn't work....
Oh, what a shame! ::)

Maybe if you told us what happened when you tried it? Error messages, etc.
chrisa128

Re:Bochs

Post by chrisa128 »

Floppy light flashes and then I get...

Boot from Floppy 0 falied
FATAL: Could not read the boot disk

[attachment deleted by admin]
Slasher

Re:Bochs

Post by Slasher »

Hi,
could be a problem with you boot code
suggestions:-
1. start your boot code with a jmp
i.e
[org 0x07c00]
jmp start
db ..........
db........
..........
.......
start:
.............
..........

2. End boot code with signature
i.e
times 510 - ($ - $$) db 0 (or something like that, check NASM docs)
followed by
dw 0xaa55
or
db 0x55
db 0xaa

post your code if you still get errors.
chrisa128

Re:Bochs

Post by chrisa128 »

I am using GRUB as my bootloader, it also boots when I actually make an image but I don't want this extra work.
Whatever5k

Re:Bochs

Post by Whatever5k »

This happens to me in Linux if I am not root. Make sure you are an administrator
chrisa128

Re:Bochs

Post by chrisa128 »

There is no Administrator under Windows ME.

Maybe I will install Windows 2003 Server tonight but that is something I am not looking forward to
Whatever5k

Re:Bochs

Post by Whatever5k »

Change the floppya line in your bochsrc file to this:

floppya: 1_44=1.44, status=inserted

Don't know if this will change something, but never mind ;)
chrisa128

Re:Bochs

Post by chrisa128 »

No effect at all...
K.J.

Re:Bochs

Post by K.J. »

Bochs can only directly read the floppy from Win2k/XP or *nix. Win9x/M-E won't work.

K.J.
Post Reply