11 ms·
How FreeDOS Grew Up and Became a Modern DOS (2021)
- phendrenad2 5y agoI wonder about the future of FreeDOS. How long will 64-bit x86 CPUs support 32-bit code? They'll probably drop support within 10 or so years (just to free up dead silicon to compete with ARM). And then the FreeDOS kernel will have to be rewritten for 64-bit, and contain a (hopefully) accurate 32-bit VM.
- Koshkin 5y agoFrom Wikipedia: FreeDOS is able to run Microsoft Windows 1.0 and 2.0 releases. Windows 3.x releases, which had support for i386 processors, cannot fully be run in 386 Enhanced Mode I wonder why that is. Well, too bad! Windows 3.11 was a fine, usable OS.
- retrac 5y agoIt's the virtual 8086 mode that virtualizes multiple DOS instances. Windows 3.x gets very intimate with DOS to implement this feature (maintaining multiple parallel DOS states) and FreeDOS doesn't mirror DOS precisely enough for this to work. But a clever hacker just just patched it a few months ago. So now it works, kinda: https://sourceforge.net/p/freedos/mailman/message/37326256/ https://sourceforge.net/p/freedos/mailman/message/37326256/
- jaclaz 5y agoThanks these are good news.
- jaclaz 5y ago>I wonder why that is. There are I believe issues with the memory manager and there is a sort of protection mechanism that actually prevents running Windows 3.1/3.11 also on newer MS DOS (aka the DOS 7.1/8.0 of Windows 98/Me, whilst the 7.0 from Windows95 should be able to run without patches), there are dedicated patches/programs for some of these (original MS) DOS versions, probably something similar is needed for freedos. EDIT: for some reasons this post ended up after retrac's one that actually provides a solution
- rnd0 5y agoIt's because of the undocumented and weird calls MS put into windows in part to thwart DR-DOS back in the day. (see also https://en.wikipedia.org/wiki/AARD_code https://en.wikipedia.org/wiki/AARD_code ) That said, work's happened to make FreeDOS boot windows 3 at least under special circumstances (I'm not sure if this kernel made it into the current FreeDOS or not): https://virtuallyfun.com/wordpress/2021/07/27/freedos-running-windows-3-1/ https://virtuallyfun.com/wordpress/2021/07/27/freedos-runnin...
- jmspring 5y agoI’ll need to play with this. I need to also revive my vm that was running OS/2 Warp so I could play the original version of Galactic Civilizations. I know archive.org has running classic games in the browser, but I wonder how many will run under FreeDoS.
- paulryanrogers 5y agoIIRC Archive.org uses a DOSBox port that leverages WASM.
- mandis 5y agoIs there a blog or resource page I can refer to learn more about this?
- rzzzt 5y agoJason Scott's post from around the introduction: http://ascii.textfiles.com/archives/4471 http://ascii.textfiles.com/archives/4471 The framework IA uses for embedding emulators: https://github.com/db48x/emularity https://github.com/db48x/emularity Emscripten DOSBox: https://github.com/dreamlayers/em-dosbox/ https://github.com/dreamlayers/em-dosbox/
- AtlasBarfed 5y agoIt has been a long time since I looked at FreeDOS. When in it's nascent days I tried to get it running for some old DOS Games and couldn't get it to work. It may be a lot better now. FreeDOS's main problem is that DOSBox can run almost everything in a modern OS backdrop. DOSBox CAN run windows 3.1 as well, and I believe Windows 95. And you can drop out of it to a modern networked OS whenever you need to. Sure it's less efficient, but there's now 100x (maybe 1000x) more power in the CPU. For FreeDOS to really achieve its goals it likely needs several things: 1) works in a VM (which it appears to do) 2) runs almost all DOS software in a VM, this involves drivers that would enable long term VM compatibility. Do VMs have a "general networking driver" and "general video driver". 3) provide utilities for networking 4) ... this is the hard one: FreeDOS would need to curate, collect, and provide collections of old DOS software with modern-friendly installers. The challenge here is legality and copyright. Collections of WordPerfect / etc Collections of the compilers / interpreters (Turbo Pascal, Turbo C++) There are ongoing significant work in preserving Games with eXoDOS, but it's noteworthy that eXoDOS and eXoWIN (the 3.X windows preservation project) don't seem to use freedos at all. As stated, DOSBox handles most DOS software. But one of the biggest emulation/preservation blind spots right now is the Windows 3.1 --> Windows 98 non-NT kernel software that was semi-DOS and semi-not. The programs could run roughshod on the memory space and APIs, but bridged to the gigahertz era of x86 CPUs. And x86 CPUs are a bear to emulate between all the modes and ISA extensions over the years.
- yjftsjthsd-h 5y ago> 2) runs almost all DOS software in a VM, this involves drivers that would enable long term VM compatibility. Do VMs have a "general networking driver" and "general video driver". For network, you probably want VirtIO. For video, just VESA? Although honestly I don't know that that's needed; VMs can just provide emulated devices for which drivers already exist.
- zamadatix 5y agoFor 2) hypervisors usually have compatibility with select older devices such as the E1000 network adapter (and other older ones even) enabling older systems to interface without needing anything special for virtualization on older guests. There is also of course nothing preventing folks from continuing to add drivers for newer/more efficient virtual adapters, after all they already wrote the OS and the virtual adapters have open source implementations to base off of. Between the two of these methods drivers are pretty well covered as is. 3) is already part of the FreeDOS installer. 4) Is best left to some other project(s) both from a scope perspective as well as the legal perspective you mention. Particularly for modernizing the installers. DOS software collections are quite easy to come by, particularly with organizations like Internet Archive.
- deleted 5y ago[deleted]
- rubyist5eva 5y agoDoes anyone do gamedev using FreeDOS? I'd wager a low power machine running FreeDOS and running "dos-like" games would be pretty niche, kinda like a demoscene thing but building games on FreeDOS always kinda was something I wondered about.
- skissane 5y agoPeople write games for DOS emulators (especially DOSBox). Mostly mods of existing DOS games (our son loves Commander Keen mods), but more rarely new from scratch games as well. However, the problem with developing games/mods for an emulator such as DOSBox, is you may find they run fine in the emulator but don't work in real DOS. Some years ago, I had MS-DOS 6.22 running under VirtualBox and our son was using that to play DOS games. He wanted to play this Command Keen mod he saw on YouTube, but it kept on crashing with an "out of memory" error. Eventually we tried it on DOSBox instead, there it worked. I tried to free up memory by tinkering with CONFIG.SYS/etc, but it appears to be impossible to get that much free conventional memory with real MS-DOS, even when making fullest possible use of UMBs and the HMA. I never tried FreeDOS, but it might have the same issue.
- klyrs 5y agoCommander Keen mods??? I know what I'm doing with the rest of my weekend...
- 7thaccount 5y agoThere's a vibrant C64, ZXSpectrum, and Amiga demoscene with even commercial games shipping with physical editions complete with the little knickknacks that games had in the 80s (they usually make the games free to download as well of course). I've had fun playing some of these games too. I know there are some free pascal folks making games that target DOS, but I'm not sure how many.
- badsectoracula 5y agoI didn't use FreeDOS to make, but there was an MS-DOS game jam a couple of years ago for which i made a 3D platformer/adventure game[0] (it might sound a bit too big for a jam since most are like 2-6 days but that jam lasted for about two months, i made the game in about five weeks spread within those months). Later ported to other platforms too (and made a few minor improvements in terms of fixing bugs and improving performance - though the game itself is basically the same as it was when the jam ended). But it does run in FreeDOS, in fact there is a video Jim Hall (the author of the article and the FreeDOS maintainer) made where he plays a bit of the game[1]. Note that since that version both performance and some bugs have been improved/fixed (also i'm working on a new update that improves the performance even further (i've actually made a full playthrough on a 133MHz P1 laptop i have here). The development itself was done on Windows though and i recently ported the editor to Linux[2]. I haven't done anything else since then but the engine was written to be separate from the game and i want to separate it from the source too at some point. I did consider making a game for the dungeon crawler jam last year but i wasn't very motivated as 7 days felt too little for making something interesting (IMO) and only made a small prototype for walking around [3] (that was done before the jam to ensure the engine was usable for making a game like that, but i lost interest before the jam even began :-P). Also it wasn't specifically for DOS or retro machines in general, i just thought of reusing the engine since i had it lying around and was usable enough. [0] https://bad-sector.itch.io/post-apocalyptic-petra https://bad-sector.itch.io/post-apocalyptic-petra [1] https://www.youtube.com/watch?v=JGxn0Bl9U4A https://www.youtube.com/watch?v=JGxn0Bl9U4A [2] https://i.imgur.com/xpEjHJE.png https://i.imgur.com/xpEjHJE.png [3] https://www.youtube.com/watch?v=L6uij0lFLQw https://www.youtube.com/watch?v=L6uij0lFLQw
- FpUser 5y agoFew years ago a customer brought me some tiny PC board for embedding that had some clone of 486 for a project. I hooked up monitor and keyboard to it, installed used Free DOS and my old Borland Pascal to write software for that board. It was nostalgic fun.
- Arkanosis 5y agoMajor French computer store LDLC (and its subsidiary materiel.net) sells modern laptops with FreeDOS preinstalled (so you don't have to buy Windows). I wonder if that's something others do as well.
- unnouinceput 5y agoRetailers do that to have the big, red font, price cheaper than their competition. Per law they have to include everything in that price, Windows license too. No Windows license, price is cheaper. That's the sole reason retailers include FreeDOS or Linux, not because they are somehow evangelists of Windows alternatives.
- AnssiH 5y agoYes, some laptop OEMs have (or have had) FreeDOS as an OS option. Though with a quick glance at current local computer retailer catalogs I found only HP 290 G3, which is not a laptop (https://www8.hp.com/h20195/v2/GetPDF.aspx/c06636833.pdf https://www8.hp.com/h20195/v2/GetPDF.aspx/c06636833.pdf). Found plenty of discontinued laptops (e.g. HP ProBook 430 G6: https://support.hp.com/lv-en/document/c06179691 https://support.hp.com/lv-en/document/c06179691), though, so maybe it is just not as common anymore. I vaguely remember seeing FreeDOS laptops much more often 5-10 years ago.
- oldetimer 5y agoFreeDOS is impressive. Had the occasion to use it after I ran DBAN on an old computer before sending it to a recycling shop. FreeDOS was even able to run the driver needed for the non-standard CDROM. It also is small enough to boot from a 3.5" floppy. It was a real trip down memory lane when software was a lot simpler - yet felt more substantial.
- unixhero 5y agoWhy do IT people need to editorialize and inform the reader that the author experienced completely unrelated and older computer systems in the 80s.
- incanus77 5y agoWhat systems are completely unrelated? DOS led to Windows, Linux led to Linux-like commands in FreeDOS. I appreciate the context and, from my point of view, credibility of the author to bring some history into the development of modern tools.
- unnouinceput 5y agoLinux-like commands are in Windows since like over 2 decades now. It's called CygWin, and I'm still using it everyday. https://en.wikipedia.org/wiki/Cygwin https://en.wikipedia.org/wiki/Cygwin
- accrual 5y agoProbably because the author is the founder of the FreeDOS project and wanted to provide some context for his motivation.
- Koshkin 5y agoMaybe it's just me, but I like the idea of loadlin. You are given a choice between two OS, running on bare metal, without the dual-boot. You can instantly boot up into DOS to do some quick experiment or something, and then you could load Linux when/if you need it.
- progman32 5y agoFor a while I had a grub entry with 'init=/bin/bash' for this purpose. Not a great idea for several reasons, but it was handy if my computer was off and I just needed to quickly copy a file onto USB or whatever.
- slim 5y agodos is your grub
- mastax 5y agoThere were a couple years (maybe 2008-2012) where retail PC motherboards came with embedded "instant boot" OS environments that nobody actually used.
- incanus77 5y agoI’m using FreeDOS on a ~1999 Pentium II as a boot alternative to FreeBSD, and on a 1989 386SX luggable as a general purpose tool.
- hakfoo 5y agoWhat's interesting is that it seems to still be much less performant on very small systems than "commercial DOS". I have a kit-built machine with an 8MHz 8088-class CPU, and FreeDOS is much slower to boot than PC DOS 2000 (the final mainstream MS/PC DOS release). When I used it years ago on 486-class machines (distraction0-free laptops) the gap didn't seem so wide. Pity DR-DOS seems to have disappeared into the ether. It was a competent choice to, and I know there was a point where you could get a source distribution for embedded purposes, so you'd expect that the next logical step would have been crowdfunding a source buyout.
- HeckFeck 5y ago> I have a kit-built machine with an 8MHz 8088-class CPU Would you mind sharing details? I am curious. Is this a modern kit made from mostly new parts that is available to purchase?
- randombits0 5y agoBreak out the soldering iron, Johnson, we have a clone to build! http://www.mtmscientific.com/pc-retro.html http://www.mtmscientific.com/pc-retro.html
- hakfoo 5y agoIt's the EMM Computers board (www.homebrew8088.com). It's a little nicer than the PC-Retro because it has some concessions to modernity (PS/2 compatible keyboard port, ATX power connector and mounting design, uses a USB flash drive as boot medium) but there are some "work in progress" aspects (In the last few months, it's gone through a few hardware changes to make the speaker work and to support DMA) so there may be some compatibility holes.
- marcodiego 5y agoBoot time is not a good measure of performance.
- queuebert 5y agoNot for a data center server, no, but for an appliance it could be.
- krylon 5y agoI am a bit fuzzy on the details, but I think I recall Microsoft charging OEMs for selling devices without an OS installed. So some vendors have gotten into the habit of selling devices with FreeDOS preinstalled. One of my laptops came with FreeDOS preinstalled, and it was about € 50,- cheaper than the version with Windows. Being a Linux person, I gladly took the discount. I did run into a use case where FreeDOS was insufficient, though - in my last job, our automation people were maintaining an industrial plant whose SCADA software ran on DOS. I have no clue what they did, but apparently it would only run well on MS-DOS. One of our engineers suspected that timing issues regarding the serial port played a role, but in the end, we never found out. I installed MS-DOS 6.22 on two machines, and that was the end of it. I got a kick out of it, though. Imagine installing an early 1990s OS on late 1990s hardware in ~2016.
- rgacote 5y agoWorked at an OEM and Microsoft charged a license fee for every processor out the door regardless of whether the system had DOS, Novell, or nothing at all installed.
- grishka 5y agoWhy was this legal?
- burnte 5y agoEventually it wasn't under the antitrust settlement.
- ginko 5y agoHow can this be? How can they charge licensing for a device that doesn't contain any MS software?
- przemub 5y agoThey would force such a licence agreement on every OEM, small or large. There was a lot more dirty tricks involved to monopolize the market. Look up BeOS history, for example. The OEMs installed BeOS on a second partition, and they could not show it in the bootloader, because of these agreements. Microsoft and Bill Gates built their position on pure evil.
- taubek 5y agoI also remember PC-DOS and Dr-DOS if I'm not mistaken. I wonder what has happened with them.
- einr 5y agoPC DOS diverged from MS-DOS from version 6, went to version 7, and then around the turn of the millennium had a final commercial release called PC DOS 2000 which was essentially PC DOS 7 with some y2k fixes and other little modernizations. IBM used it embedded in other products until about 2003 after which it's been dead and buried. DR-DOS was bought by Novell when Digital Research went under and became Novell DOS, then it was sold again to Caldera (and later its spun-off Lineo division) where it was called Caldera OpenDOS for a while. It was sold off one last time to DRDOS, Inc. which sold it as a commercial product until at least 2011. I think the current status of the ownership and codebase is unclear.
- lproven 5y agoIn case you missed my earlier comment, where I answered these questions: https://news.ycombinator.com/item?id=30138570 https://news.ycombinator.com/item?id=30138570
- Animats 5y agoSite has too many popups to be readable.
- teddyh 5y agoThe article mentions FreeDOS 1.3 RC4, but the article was written in July 2021, and 1.3 RC5 was released a few months later, in December: https://freedos.org/download/ https://freedos.org/download/ Bullet points, quoted from the above page: • New FreeCOM 0.85a • New Kernel 2043 and an 8086 version with FAT32 support • Floppy Edition now uses compression and requires about half as many diskettes • The return of networking • Some new programs and games • Many many many package updates • Some updates and improvements to NLS • Improved install process, especially with the MBR • Some support to automatically set the COUNTRY.SYS information • Improved CD initialization for the boot media and installed system • … and much, much more!
- WalterBright 5y agoThe Digital Mars C/C++ compiler still supports DOS in all memory models, including 32 bit DOS extender, and it's free: https://www.digitalmars.com https://www.digitalmars.com
- mwcampbell 5y agoI followed the link for the X32VM DOS extender, and landed at one of those generic domain squatter pages. Anyway, the Digital Mars C/C++ compiler looks impressive.
- ithkuil 5y agoGenuinely curious: why would I choose the digital mars C/C++ compiler over GCC/clang?
- WalterBright 5y agoThe DMC++ compiler is far and away the best C++ compiler on DOS.
- oso2k 5y agoDeming said...“In God we trust; all others must bring data”. Sagan said..."extraordinary claims require extraordinary evidence".
- jdmoreira 5y agoIt must be though to be Walter Bright on HN. He wrote the compiler himself. he wrote dlang. He has been in this game for a lifetime. He would know, right? I don't think he is the boasting type, even though he has enough reasons to boast… being the only person that ever wrote a C++ compiler by himself and all.
- mhh__ 5y agoAlso remember that he says for DOS not any target. Digital Mars is incredibly old but that makes it perfect for DOS.
- WalterBright 5y agoI still use an older machine to test the Digital Mars C/C++ compiler, as current Windows will no longer run DOS executables. So this is pretty annoying. But as far as I can tell, FreeDOS does too much, it creates a dos environment in a separate window. What I'd like is: dosbox app arguments... where dosbox emulates DOS just enough to run console apps. This would enable me to test the compiler conventionally. So, what's needed is an 8086 emulator and a minimal DOS emulator. Is there a way to use FreeDOS like that?
- rnd0 5y agoI prefer DOSBox-X to DOSBox because it's easier to run; but it sounds like neither one is what you want. Have you heard of or tried "MS-DOS Player"? It seems to convert binaries into a format that Windows can understand. I think you have to do it on a per-file basis so it might be more of a headache than it's worth; but it's out there! http://takeda-toshiya.my.coocan.jp/msdos/index.html http://takeda-toshiya.my.coocan.jp/msdos/index.html (original site) https://virtuallyfun.com/wordpress/2011/02/11/ms-dos-player-2/ https://virtuallyfun.com/wordpress/2011/02/11/ms-dos-player-... [edit]There's also winevdm which can run 16 bit windows binaries on 64 bit windows. It has DOS support but it's incomplete and it points back to MS-DOS player in it's readme... https://github.com/otya128/winevdm https://github.com/otya128/winevdm
- WalterBright 5y agoThe seem to do far more than can work for my case :-( I wonder how long it would take to write an 8086 emulator and just intercept the file I/O DOS calls. Would anyone else be interested in such a program?
- andrewf 5y agoI've used emu2 to run ancient MASM out of a Makefile. It should work under WSL. (Edit: it doesn't propagate exit codes afaict) https://github.com/dmsc/emu2 https://github.com/dmsc/emu2
- WalterBright 5y ago
- hgs3 5y agoThe first screenshot is from Star Wars: Dark Forces. I played a lot of this game as a kid. I remember the Mac version being superior to the DOS version because it ran at double the resolution. I tried running the Mac version on SheepShaver (a MacOS emulator), but it ran too slow. The DOS version runs well and is available on Steam [1]. It uses DOSBox. [1] https://store.steampowered.com/app/32400/STAR_WARS__Dark_Forces/ https://store.steampowered.com/app/32400/STAR_WARS__Dark_For...
- amelius 5y agoDoes it run on Apple hardware?
- analog31 5y agoI'm about to find out. I have a 10+ year old Macbook that was given to me, and is a brick if you try to run Snow Leopard that came in the box. So I've been playing with a variety of weird OS distro's on it.