News for hackers. Stuff that matters.
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by krylon on Saturday January 29, 2022 @01:47PM (#30129133)
I 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.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by VLM on Saturday January 29, 2022 @05:02PM (#30130989)
Interrupt latency.

On dos you own the machine down to bare metal for better or worse, usually worse, but software only slows things down.

I suspect if you stuck a protocol analyzer on it you'll find one of three situations:

Someone did simplistic polling instead of a windowing protocol so increased latency makes the overall system unusably slow. 0.1 ms vs 10 ms per handshake is not noticeable to humans but if your scada sequentially polls 10000 parameters thats the difference between a poll taking 1 second or about two minutes...

The other scenario is keep alive signaling where the computer needs to assure the CNC machine that its still alive and sane every 10 ms or the controller initiates an emergency shutdown. Can't have a giant lathe or printing press running off wild not under active computer control. So windows wants to multitask and do who knows what for 50 ms, and the scada shuts down.

The final situation is they're doing something "weird" at the hardware level like signaling over the control pins instead of over the serial ports. Like toggling the RS-232 DSR pin turns on the milling machine motor for 10 ms instead of sending a serial RX/TX power command every 10 ms. Windows opinion of DSR, IIRC, is DSR means the serial port driver registered in windows and is not available to end users. Been a long time since I've had to deal with that so I might misremember.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by boznz on Sunday January 30, 2022 @12:02AM (#30134193)
DOS and BIOS had some pretty crappy interrupt calls for Serial port access and as DOS was single threaded and you could hang the PC if not careful. In timing critical cases you were safer accessing the serial controller directly.. Of course strictly verboten under any real OS and one of the reasons a lot of older timing critical software was problematic to move to windows or other hardware.
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by deadlyllama on Sunday January 30, 2022 @01:24AM (#30134607)
Not just timing critical stuff. BIOS calls for serial were slow, character at a time. If you wanted to fill a buffer and keep processing you wrote your own interrupt driven serial code or used a good library. No serious software on DOS would use the BIOS serial code.

This sort of thing was just normal. No multitasking so you had full control of the hardware. Third party libraries or custom code for serial, sound, graphics, often keyboard. Drop into assembly for extra speed. DOS was basically a library for filesystem access, process creation and limited memory management!

I still have 1.193180Mhz burned in my brain...

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by ksec on Sunday January 30, 2022 @05:15AM (#30135576)
>This sort of thing was just normal. No multitasking so you had full control of the hardware. Third party libraries or custom code for serial, sound, graphics, often keyboard. Drop into assembly for extra speed. DOS was basically a library for filesystem access, process creation and limited memory management!

I sometimes think if we will one day cycle back to that model. It was at least an era where I thought I had some understand of computer. Now I seriously dont. But it works.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by ahefner on Sunday January 30, 2022 @12:36AM (#30134385)
Is there a reason you believe FreeDOS interrupt latency would be inferior to MS-DOS?

(I can certainly imagine virtual 8086 mode / emm386-style shenanigans, varying with configuration and what's loaded in your config.sys, but this is all very hypothetical, and the most straightforwardly hypothetical position of all is that one bare-bones 16-bit DOS should be exactly the same as another in this regard, not necessarily being in the loop at all.)

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by krylon on Sunday January 30, 2022 @09:02AM (#30137259)
It wouldn't necessarily have to be worse, just different. Might have been better, actually, or less deterministic.

Unfortunately, I did not have the time to investigate the problem further. It was the one aspect of being a helpdesk monkey I seriously disliked.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by krylon on Sunday January 30, 2022 @08:51AM (#30137170)
FWIW, the automation people suspected the problem was timing-related, so you're probably right.

I was just sad that FreeDOS did not work, but installing MS-DOS from floppy disks was fair compensation. 3.5" Floppy disks! We had an USB floppy drive lying around, but actually finding 3 floppy disks was quite the challenge. (-:

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by throwawaylinux on Sunday January 30, 2022 @12:49AM (#30134453)
Does FreeDOS not run in privileged mode like DOS?
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by abrowne on Saturday January 29, 2022 @02:09PM (#30129368)
My understanding is that it's more a way to sell a computer for people who don't want a bundled OS, but without it really having no OS. This way the new computer will at least start up to something instead of an error message that can potentially imply storage failure.

Edit: Especially since some of these purchasers are not technically-minded Linux users, who can handle a blank disk error, but people who want to use their (ahem) specially-aquired Windows licenses.

My current home computer is an HP EliteBook I custom ordered with FreeDOS to install Linux on. (Also got the matte touchscreen!)

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by rgacote on Saturday January 29, 2022 @01:59PM (#30129264)
Worked 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.
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by ginko on Saturday January 29, 2022 @03:03PM (#30129831)
How can this be? How can they charge licensing for a device that doesn't contain any MS software?
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by przemub on Saturday January 29, 2022 @03:16PM (#30129950)
They 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.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by bruce511 on Saturday January 29, 2022 @03:34PM (#30130116)
Microsoft was a big player, and certainly had clout, but the word "force" is inaccurate.

To answer the grand-parent-post, they got a license per CPU because the retailers _agreed_ to that model.

MS would argue that every cpu sold ran an MS operating system (legal or illegal) so licensing the CPU made it cheaper for legit users (ie lower price) and pirate users ultimately paid as well.

This left other OSs out in the cold but the number of actual legit users installing something else was a rounding error.

Shops could _choose_ to just sell dos or windows when the customer wanted it, but they paid a higher price via that model, so few (if any) shops went that way.

MS certainly played lots of dirty tricks but OEM pricing is not really dirty, it's just sensible business when you have that sort of market dominance and your software is pirated so heavily.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by nix23 on Saturday January 29, 2022 @04:32PM (#30130728)
>retailers _agreed_ to that model.

I fix it for you:

Had to agree otherwise not a single Windows license for your company in your lifetime for a reasonable price anymore.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by bruce511 on Saturday January 29, 2022 @11:46PM (#30134117)
That's not an unusual business position. You see it everyday with places that sell coke or Pepsi but not both.

That the choice for retailers is an obvious one is neither here nor there. They had a choice and clearly they wanted to sell Windows, so the choice is obvious.

You might not like their choice, you might not like Windows, but this is bog standard business stuff.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by eesmith on Sunday January 30, 2022 @03:39AM (#30135103)
Companies in a monopoly position are more limited in what they are allowed to do.

Something that might seem like a usual business practice to a small fish like you or me, might be illegal for a monopoly.

Microsoft's lawyers tried using your argument to get partial summary judgement in Caldera v. Microsoft. They lost, and they lost the appeal. Here's Caldera's claim, quoting the summary in the US District Court judgement:

> In addition to its improper vaporware and FUD campaigns, Caldera alleges that Microsoft also forced OEMs away from DR DOS 5.0 by what plaintiff refers to as the "licensing triple-whammy," which refers to (1) per processor licenses, (2) minimum commitments subject to forfeiture, and (3) increased license duration. Per processor licensing agreements required an OEM to pay Microsoft a royalty on every machine the OEM shipped regardless whether the machine contained MS-DOS or a different operating system. This is in contrast to a per system licensing agreement, which required OEMs to pay a royalty on only those computers shipped with MS-DOS installed. The use of per processor agreements is argued by plaintiff to be Microsoft's most effective single weapon against DR DOS. Plaintiff alleges that DRI had no realistic chance to license DR DOS to OEMs under a per processor license with Microsoft. It would make no sense for an OEM to install DR DOS when it had already paid for MS-DOS on every machine. Microsoft contends that OEMs were free to depart from the per processor licensing scheme, and that price differentials between license types were "relatively minor." However, plaintiff points to the depositions of several OEM executives who testified that even slight price differentials between the per processor and per system licenses meant that only the per processor license was financially viable.

This case was specifically about illegal use of monopoly power, which is why you can read:

> By 1988 Microsoft had obtained a monopoly position in the DOS market. For purposes of the present motions, Microsoft does not dispute the contention that it has such a monopoly in the operating systems market.

Without that assumption they could not have gotten summary judgement.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by trulyme on Sunday January 30, 2022 @03:35PM (#30140823)
> This left other OSs out in the cold but the number of actual legit users installing something else was a rounding error.

Isn't that the whole point? They forced the OEMs to drop other OSs by abusing their monopoly position. If this is not dirty I don't know what is. But yes, MS has plenty of other dirty moves in their past. I don't trust them one bit, even with their new clothes on.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by 0xcde4c3db on Saturday January 29, 2022 @04:41PM (#30130813)
Because the reality is that the OEM doesn't want to track OS installations and Microsoft doesn't want to audit that tracking. With per-CPU licensing, the OEM can just say "here's our invoices from Intel".
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by mixmastamyk on Saturday January 29, 2022 @06:08PM (#30131545)
When they already track configurations on their orders page?
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by 0xcde4c3db on Saturday January 29, 2022 @06:58PM (#30131967)
The "per-CPU" policies were primarily at issue ~20-25 years ago. Most of the big OEMs didn't even offer significant customization unless you were buying for a whole office or organization.
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by bitwize on Saturday January 29, 2022 @07:08PM (#30132038)
Because it was either agree to those terms, or don't license Windows -- by an enormous margin the most popular PC OS -- for OEM distribution at all.
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by badsectoracula on Sunday January 30, 2022 @03:18AM (#30135050)
Or MS-DOS.

I was reading a book on Microsoft's history and they did that back in the DOS days: any IBM PC clone that was sold had to pay for the MS-DOS license regardless of if the PC would be running MS-DOS or not. So unless someone explicitly asked for DR-DOS (and was fine to pay for both the MS-DOS and the DR-DOS license since the former would need to be paid anyway), manufacturers just used MS-DOS because it was "cheaper" (and with MS-DOS being the "standard" it isn't like they could afford to not license it).

The book was written in 1993 btw.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by krylon on Saturday January 29, 2022 @04:31PM (#30130725)
Because they can. Or could anyway. I agree it's not fair. But money makes the world go 'round, as they say.
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by grishka on Saturday January 29, 2022 @04:46PM (#30130868)
Why was this legal?
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by burnte on Saturday January 29, 2022 @06:34PM (#30131759)
Eventually it wasn't under the antitrust settlement.
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by bityard on Saturday January 29, 2022 @03:17PM (#30129965)
You could be right, but my likewise fuzzy recollection was that the contract that OEMs had with MS said that every PC that was sold had to have an OS on it. Because the implication was that a PC sold without an OS was likely to have a pirated version of windows installed by an end user. The contract didn't say that it had to have a Microsoft OS because they were a little leery of anti-trust accusations at the time. Very few OEMs used the FreeDOS loophole because they would go out of business if MS decided to pull the OEM contract.
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by grishka on Saturday January 29, 2022 @04:45PM (#30130861)
I've heard an explanation that they sell laptops with FreeDOS because in some places it's illegal to sell a preassembled computer with no OS. The expectation is that, yes, you would wipe it and install Linux, because most of the hardware in the thing doesn't even have DOS drivers.

Some OEMs don't sell laptops with DOS, but instead have a procedure where you can "return" the Windows license that came with it and get a refund.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by Spooky23 on Saturday January 29, 2022 @05:17PM (#30131140)
I think there’s a carve out for alternate DOS environments due to some litigation over DR-DOS and PC-DOS. IIRC, its a Compaq thing that came over when HP bought them. Also, I don’t think DOS can connect to AD.

Otherwise, Microsoft’s terms are basically anything that isn’t an ATM machine, server or IoT needs a windows license. In enterprise agreements, you need to buy Windows licenses for MacOS devices too.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by grishka on Saturday January 29, 2022 @06:41PM (#30131811)
> In enterprise agreements, you need to buy Windows licenses for MacOS devices too.

Why would you tell Microsoft that you've bought some Macs? It's not like they're the IRS, they're just a company. They have no business to know any of this.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by Spooky23 on Saturday January 29, 2022 @06:50PM (#30131893)
When you enter into an EA, you agree to report annually on the census of devices that meet that criteria.

Also, you need CALs to use Windows server based services like AD and file servers (unless you’re using a NAS)

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by grishka on Saturday January 29, 2022 @07:56PM (#30132455)
Well, if those devices use Windows server based services, then it makes more sense. But if they do not, Microsoft would have no way to know about their existence.
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by wolrah on Sunday January 30, 2022 @02:06AM (#30134758)
> Well, if those devices use Windows server based services, then it makes more sense. But if they do not, Microsoft would have no way to know about their existence.

Yes, that's exactly how it works.

Windows Server Client Access Licenses (CALs) are sold either by user or by device. User licenses allow one person to use any Windows Server hosted services in the organization from any device. Device licenses allow any number of people to use any Windows Server hosted services from one specific device.

If you have a bunch of users with their own personal computers and potentially other devices like a normal office the user CAL model usually makes the most sense, but for environments like classrooms or multi-shift businesses where you have significantly more devices than users the device CAL model can sometimes be beneficial. The catch is that almost any use of Windows services requires a CAL and that includes DHCP/DNS. If you host either of those services primarily from Windows the device count suddenly changes significantly.

Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by lloydatkinson on Saturday January 29, 2022 @05:25PM (#30131197)
How is it possible for them to charge them for not having an OS at all?
Re:How FreeDOS Grew Up and Became a Modern DOS (2021) by AdrianB1 on Saturday January 29, 2022 @06:47PM (#30131862)
It's been long since, so I don't remember all the details, but it was a government anti-piracy regulation at that time in some countries that you either ship with another OS or you pay MS because practically all computers sold without an OS were used with some pirated MS OS.

Such laws existed and may still exist, I remember Germany had some tax on CD-RW disc sales because "they were used also for piracy". All it took was "lobby" at the right level of government.