News for hackers. Stuff that matters.
Re:The new FreeDOS 1.3 is now available for download by qwerty456127 on Monday February 21, 2022 @06:39AM (#30414636)
> improved install process, especially with the MBR

Do they mean it's a DOS for which MBR is not the only option, i.e. it supports GPT&UEFI?

Re:The new FreeDOS 1.3 is now available for download by alophawen on Monday February 21, 2022 @07:09AM (#30414910)
They mean the installation process was improved, particularly with regards to the MBR.

GPT and UEFI is not supported.

GPT: http://wiki.freedos.org/wiki/index.php/(Free)DOS_development...

UEFI: http://wiki.freedos.org/wiki/index.php/UEFI

Re:The new FreeDOS 1.3 is now available for download by ale42 on Monday February 21, 2022 @07:20AM (#30415032)
This is expected, given how hard it would be to DOS in a UEFI-based environment. Is anyone aware of a BIOS emulation layer (or an actual BIOS...) that can be loaded into UEFI to start BIOS-aware OS/programs?
Re:The new FreeDOS 1.3 is now available for download by fredoralive on Monday February 21, 2022 @07:48AM (#30415306)
As far as I know it would be hard to do it outside of the boot firmware's own compatibility options (which most systems currently have AFAIK, but is probably on the way out). Whilst the old BIOS starts external code in Real Mode, with UEFI it sets the CPU into the operating mode. This means with most systems you'll be in 64 bit / Long Mode, and you can't leave that once entered.

You could have fun with hypervisors etc., but I guess we're thinking bare metal here?

Re:The new FreeDOS 1.3 is now available for download by leeter on Monday February 21, 2022 @08:03AM (#30415439)
You can absolutely leave long mode once entered; it's just annoying and silly. In fact one of the plausible options for running a DOS on UEFI would be downgrading the mode to 'unreal' mode. But you'd still have to put BIOS replacement code in memory to manage that part.

However the better option IMO is to allow the DOS kernel to just virtualize the applications using the virtualization extensions on almost all modern CPUs. Then you could do something like adding an emu.ini file next to the exe/com that sets things like memory and emulated hardware settings.

Furthermore virtual machine BIOS code already exists for things like qemu etc. so there is a place to start on that too.

Re:The new FreeDOS 1.3 is now available for download by anthk on Monday February 21, 2022 @08:12AM (#30415513)
Just boot BiEFIrcate from UEFI and chainload FreeDOS from there.

https://github.com/tkchia/biefircate

Re:The new FreeDOS 1.3 is now available for download by ale42 on Monday February 21, 2022 @10:30AM (#30416908)
Looks like very early stage, but this is wonderful news if it works or will eventually work!
Re:The new FreeDOS 1.3 is now available for download by leeter on Monday February 21, 2022 @08:22AM (#30415590)
Nice didn't know this existed!
Re:The new FreeDOS 1.3 is now available for download by zozbot234 on Monday February 21, 2022 @08:10AM (#30415499)
> Then you could do something like adding an emu.ini file next to the exe/com that sets things like memory and emulated hardware settings.

The standard DOS-extender feature for setting these modes is a Program Information File (.PIF extension).

Re:The new FreeDOS 1.3 is now available for download by leeter on Monday February 21, 2022 @08:21AM (#30415586)
Honestly I was thinking similar but not exactly the same. More something with a VT-d memory map/port map so that the DOS application could potentially directly interface with legacy hardware without interfering or making the PIF incompatible. This has applications particularly in factories where they still use ISA interface cards with tooling etc. At the same time it would allow setting things like EGA/CGA compatibility requirements. Could you do it in the PIF? Probably, but I'd rather not risk breaking compatibility if possible. It's an idea only and would require research anyway assuming I actually had the time and energy to implement.
Re:The new FreeDOS 1.3 is now available for download by WesolyKubeczek on Monday February 21, 2022 @07:23AM (#30415071)
Do you mean CSM?
Re:The new FreeDOS 1.3 is now available for download by ale42 on Monday February 21, 2022 @07:49AM (#30415317)
Something like that, but rather on the form of a .EFI executable (for example), to load it on UEFI firmwares that don't provide a CSM: there are many of them...
Re:The new FreeDOS 1.3 is now available for download by jaclaz on Monday February 21, 2022 @08:17AM (#30415552)
Yes, what would be needed would be a "reversed Clover", but, though there is some work in this space, I don't think that there is anything actually working (besides the much simpler int10h provider for EFI, needed for Windows 7 and 2008 on motherboards without CSM), here a few projects are listed:

http://reboot.pro/index.php?showtopic=22488

but, even if something will come out, it will likely need to be adapted/targeted to specific hardware, unless somehow it is possible to translate transparently UEFI functions to and from BIOS interrupts.

I believe that bare-metal DOS is going to become extinct and be relegated inside emulators or virtual machines.

In itself it would not be that bad if we had actually working/useful native EFI programs/shells, or grub (or grub4dos, now also in a grub4efi version) related ones but AFAIK - and for whatever reasons - these are very rare.

Re:The new FreeDOS 1.3 is now available for download by BirAdam on Monday February 21, 2022 @10:52AM (#30417203)
You cannot have an MSDOS/PCDOS compatible DOS with GPT/UEFI. DOS relies on the PC BIOS explicitly, and beyond the BIOS calls required not being compatible with UEFI, the MBR is called by BIOS directly as well. On some machines, CSM is enough to emulate the BIOS and get DOS running, but this is not universal at all. More importantly, if you want sound and proper video support you will require an ISA machine or a full PC emulator. If you get into games that are clock speed sensitive, even that won't always be enough.
Re:The new FreeDOS 1.3 is now available for download by LeFantome on Monday February 21, 2022 @11:50AM (#30417861)
Too bad the ArcaOS guys are not going to share. I read recently that they are adding UEFI support by booting first into a BIOS emulation layer and then starting the still BIOS dependent OS/2 kernel from there.

That would work for DOS as well I imagine.