Conversation
|
P.S. Other defaults may need to be set. I tried to catch all of them, but I may have missed something. |
|
Little bit of offtopic here: |
|
I think we need a tool to create an empty cmos image for the use with BIOS images designed for real hardware. For the Bochs BIOS we don't it, since all CMOS settings are set up based on the configuration. At runtime it is possible to save the CMOS RAM to an image file for the use in subsequent Bochs sessions (TODO: document this). If you change the floppy, disk or boot settings in bochsrc, you should not use the cmosimage option. |
|
The problem with an "empty" file, whether it was intended or not, Bochs overrides the boot order using the Put So at least registers Second, since Bochs uses the I do agree that if the BIOS finds a bad crc in the cmos, it should use default values. |
I expect for user to set
So that was my idea - it is enough for Bochs to create CMOS file with invalid checksum, BIOS will handle everything else by itself. |
876938f to
238b32e
Compare
This adds a considerable amount of documentation to the
make_cmos_image.ccfile.It also sets defaults, for example, the boot sequence is defaulted to floppy, cdrom, disk.
It will fill the date and time fields with the current time and date.
You can set compile-time flags to use a 64- or 128-byte image file, use BCD or Binary values, and use 12- or 24-hour modes.
Everything is compile based. You can't modify anything from a command line. Maybe a future version would allow a few items to be set via the command line.
This was mainly done to document the values within the file.