On Wed, May 29, 2024 at 9:53 PM Wolf Bergenheim via Freedos-devel <freedos-devel@lists.sourceforge.net> wrote: > [..] > Now a question: > What are your dev setups like? I'm on a linux host computer and I've > been using both DOSBox and QEMU to build and test in. I find though > that it's a bit of a chore, since DOSBox crashes randomly (like when > compiling), or QEMU segfaults when I mount my dog source directory > as a virtual FAT drive. So now I'm looking at setting up Dosemu2 > (I remember using doemu ~20 years ago). > > What do your dev environments look like? How do you make an efficient > edit-build-test cycle? Has anyone tried using watcom as a crosscompiler?
I run Linux on my desktop, and I boot FreeDOS inside that using QEMU. Here's my command line: qemu-system-i386 -enable-kvm -m 32 -audiodev pa,id=snd -machine pcspk-audiodev=snd -device sb16,audiodev=snd -device adlib,audiodev=snd -hda freedos.qcow2 -hdb mystuff.qcow2 -cdrom T2405LIVE.iso -boot menu=on But that has some extra stuff in there just to make the PC speaker work. If you don't care about the PC speaker, but still want SB16 and Adlib, you can just do this: qemu-system-i386 -enable-kvm -m 32 -device sb16 -device adlib -hda freedos.qcow2 -hdb mystuff.qcow2 -cdrom T2405LIVE.iso -boot menu=on And if you don't care about sound at all, then it's a very simple command line: qemu-system-i386 -enable-kvm -m 32 -hda freedos.qcow2 -hdb mystuff.qcow2 -cdrom T2405LIVE.iso -boot menu=on I use '-boot menu=on' because I sometimes need to boot the LiveCD for testing, and the boot menu makes that easy. I can also use the same command line (it's a script) to install the next FreeDOS monthly test release and just use the menu to select the LiveCD to install from. My "C:" drive is freedos.qcow2 and my "D:" drive is mystuff.qcow2. Keeping these separate makes it really easy to reinstall FreeDOS with the monthly test releases. I keep all my stuff on "D:" and just wipe/reinstall the "C:" drive. I don't keep any of my data on "C:". I used to map a virtual drive to a folder on Linux - but like you found, I sometimes had problems with that (not all the time, just sometimes) so I stopped doing that. When I need to get access to my virtual drive, I use guestmount from the libguestfs package to "mount" the virtual disk from Linux: $ mkdir mystuff $ guestmount -a mystuff.qcow2 -m /dev/sda1 mystuff ... $ guestunmount mystuff I write my code directly in FreeDOS. I often use OpenWatcom, but I also like IA-16 GCC. I use FED as my programming editor. _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel