Replies: 11 comments 2 replies
-
Bochs should be configured in the same way as for building
I used my main PC with Windows 7. Another problem is that rombios32 build fails for me. But these errors can be avoided by using
This is how compilers works.
It should be possible without perfect binary match. |
Beta Was this translation helpful? Give feedback.
-
Wow!
somewhere ? I was seeking for a way to build Bochs BIOS outside Linux for very long time. |
Beta Was this translation helpful? Give feedback.
-
Will you please upload somewhere your BCC build so that I (and Stanislav) can simply download the already built binaries?
Of course. When I say it nowhere near matches, i mean it didn't work. The resulting binary doesn't boot at all. Thanks, |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
(Sorry for the delay. Over here in the States, we had a major holiday, and I was away from my desk) Vort, I use WinXP to (try to) build the BIOS, because DJGPP is 32-bit only, requiring a DPMI. It does not run on 64-bit machines. Okay, so here is what I have found out so far. When using the MAKE from DJGPP, it does not display the errors that The problem is that the When
it creates the following lines:
However, the next command in
I am guessing that this problem is inherent to all platforms, not just Windows/DOS. By changing the parameter name from With this fix, I can now produce a valid Stanislav, for your information, I used the following batch file on Windows XP, MAKE and DJGPP from the link I provided before, BCC version 0.16.10a, I don't remember where I got sed, and perl is Strawberry Perl:
Notice that I had to rename some of the files to use valid 8.3 file names so that BCC would recognize them. This is BCC version 0.16.10a. Also note that if I run this version of BCC via the MAKE file, it freezes, never ending the compilation. If I run it via this batch file, it works as expected. It also does not update the bios version using the I can create the legacy bios just fine using a WindowsXP machine, the MAKE and GCC from DJGPP. However, DJGPP does not produce Vort, for your information, your BCC files you linked to do not run on WinXP, however, the x64 versions do run on Win10 just fine. I believe if I wanted to take the time, I could get One other thing I have noticed, when the Legacy BIOS is used (not just the one I can now produce, but the
This happens in FreeDOS and Windows 98, and possibly others. I have not tried...Yep, others as well. Hope this helps. [1] Added footnote: (30 Nov 2023)
Which is valid C source (in the sense of this example). However,
when it is not. It is actually:
Which
where Therefore, |
Beta Was this translation helpful? Give feedback.
-
Sed line looks like this:
Installing GCC with the help of MSYS2 should be easy enough.
I don't know how exactly your problem looks like, but I see this, may be related:
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately, the version I have (GNU sed version 3.02.80) does not follow that assumption. If this is the case, looks like I need to find a newer version. |
Beta Was this translation helpful? Give feedback.
-
ya, duh! Why didn't I remember that. My mind isn't what it use to be. I think I have found the bug I was looking for, I just now need to figure out how to fix it. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
After a bit of investigation, I found that it was not a bug in the BIOS, but an error with the previous floppy disk emulation. Now that the new floppy disk emulation is working, the bug is gone. I found this out by unintentionally modifying the BIOS to trick Win98 into re-detecting the FDC controller, and it then worked as expected. In a previous discussion Volker stated that in Win98, the second floppy drive did not have the After a little investigation, Win98 still thought the FDC driver (the Floppy Controller driver, not the Disk Driver) was the old controller. If you remove the FDC driver using the 'Device Manager', and then restart the emulation allowing Win98 to detect the new FDC controller, the second floppy disk is now assigned the Volker, start up your Win98 emulation, then via the 'Device Manage', remove the FDC controller entry. This will remove the FDD entries as well. Then restart Win98. The floppy drives now should be |
Beta Was this translation helpful? Give feedback.
-
As a follow-up, Vort mentioned in the other discussion that installing Win98 on a clean hard drive still has the I was going to be done with it, but just couldn't put it down :-) I grabbed SEABIOS and using it, installed Win98 on a clean hard drive. Win98 successfully placed the Unfortunately, this just confirms that there is an error in the current Bochs BIOS. Maybe if I get a chance, I will have a look. |
Beta Was this translation helpful? Give feedback.
-
@fysnet, @stlintel: I suggest you to try https://github.com/lordmilko/i686-elf-tools To use i686-elf-tools, I unpacked them into
|
Beta Was this translation helpful? Give feedback.
-
I am having issues trying to build the BIOS files.
I am using a WinXP machine.
BCC doesn't like filenames longer than the DOS 8.3, so after making a few modifications, I got it to build the legacy bios. However, even though it is 65,536 bytes in size, it is nowhere near the same as the
BIOS-bochs-legacy
file.BCC = version v0.16.10a
freezes on the build. It is invoked, but never finishes. Never returns to DOS for the next command.My thoughts are that I haven't given any parameters to:
etc., due to that fact that I need to run some kind of script to configure the
@CDFLAGS@
etc. portion.However, I don't see any script or other documentation stating what these should be.
Whoever has the ability to build the BIOS files, will you please explain the process? The platform you are using? etc.
Maybe even just share the
makefile
that is the result of running said script.Anyway, if anyone has more information on building the BIOS files, any help would be grateful.
Thank you,
Ben
P.S. My reason: I am tracking down a bug that I think might be in the BIOS, so I need to modify the BIOS to help find this error.
Beta Was this translation helpful? Give feedback.
All reactions