about bochs floppy setting !

Programming, for all ages and all languages.
Post Reply
mubiaofofo
Posts: 2
Joined: Sat Mar 12, 2011 9:13 am

about bochs floppy setting !

Post 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!
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: about bochs floppy setting !

Post 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?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Tosi
Member
Member
Posts: 255
Joined: Tue Jun 15, 2010 9:27 am
Location: Flyover State, United States
Contact:

Re: about bochs floppy setting !

Post 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.
mubiaofofo
Posts: 2
Joined: Sat Mar 12, 2011 9:13 am

Re: about bochs floppy setting !

Post 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!
Tosi
Member
Member
Posts: 255
Joined: Tue Jun 15, 2010 9:27 am
Location: Flyover State, United States
Contact:

Re: about bochs floppy setting !

Post 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.
User avatar
Jvac
Member
Member
Posts: 58
Joined: Fri Mar 11, 2011 9:51 pm
Location: Bronx, NY

Re: about bochs floppy setting !

Post 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.
"The best way to prepare for programming is to write programs, and
to study great programs that other people have written." - Bill Gates


Think beyond Windows ReactOS®
Post Reply