Page 1 of 1

about bochs floppy setting !

Posted: Sat Mar 12, 2011 9:22 am
by mubiaofofo
hello ! i from china!

i had install bochs ! but the floppy setting drive me crazy!

my system is ubuntu! in the bochsrc !

romimage: file=/usr/share/bochs/BIOS-bochs-latest
#vgaromimage: file=/usr/share/vgabios/vgabios/vagbios.bin
-------------------------------------------------------
i had changed mang times! when i start bochs with : bochs -f bochsrc , it get wrong with the
message: no bootable device !
--------------------
thanks for your help!

Re: about bochs floppy setting !

Posted: Sat Mar 12, 2011 9:42 am
by Combuster
Not nearly enough information. What configuration options did you add to bochsrc in regard to the floppy? Did you add the boot signature?

Re: about bochs floppy setting !

Posted: Sat Mar 12, 2011 9:49 am
by Tosi
You didn't specify a bootable floppy device. Bochs doesn't magically know where your floppy image or device is located.
Use the floppya command to specify the floppy image, make sure to put "status=inserted".

Then tell bochs to boot from the floppy using the "boot" command.
For more information, look in the manual for whichever bochs version you're using.

Re: about bochs floppy setting !

Posted: Sun Mar 13, 2011 2:29 am
by mubiaofofo
Thanks for help!
I get it !
-------------------------
should use the commad : bochs -f /home...../ (my file direction )/ bochsrc;

I suppose bochs will search bochsrc automatically!

Re: about bochs floppy setting !

Posted: Sun Mar 13, 2011 7:54 am
by Tosi
I prefer to tell Bochs where the configuration is on the command line. This also helps if you have multiple operating systems you want to boot, or if you want to enable or disable certain debugging features.

Re: about bochs floppy setting !

Posted: Tue Mar 22, 2011 11:23 pm
by Jvac
"This line tells Bochs where to place the BIOS in its memory (Virtual RAM).

Remember that BIOS sizes may differ? Also remember that the BIOS must end at the end of the first megabyte (0xFFFFF) in memory?

Because of this, you may need to change this line to reposition the Bios.

This can be done by getting the size of the Bios image (It should be named BIOS-bochs-latest in your Bochs directory). Get the size in bytes.
After this, simply subtract 0xFFFFF - size of bochs file (in bytes). This will be the new Bios address, so update the address on this line to
move the Bios to its new location.


You may or may not need to do this step. If you get an error from Bochs telling you that the Bios must end at 0xFFFFF, then you do need to complete
this step and it should work."

- BrokenThorn Entertainment

Code: Select all

# ROM and VGA BIOS images ---------------------------------------------
 
romimage: file=$BXSHARE/BIOS-bochs-latest
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
 
# boot from floppy using our disk image -------------------------------
 
floppya: 1_44=a:, status=inserted  # Boot from drive A
also check out this tutorial by BrokenThorn Entertainment: Operating Systems Development - Bootloaders scroll to bottom of the page.

See the full tutorial here : Home Page and the OSDev wiki.