How to build Enhanced DR-DOS from ecm repo
2023 by C. Masloch. Public Domain.
This document has been compiled on 2024-01-14.
-
Set up dosemu2
-
Make sure to use FreeCOM as the shell
-
When redirecting a host directory to a DOS drive using
-K
, then the DOS drive I: still must be unused
-
A recent FreeCOM build can be obtained from the build at https://pushbx.org/ecm/download/freecom.zip
-
There is a blog post on how to set up dosemu2: https://pushbx.org/ecm/dokuwiki/blog:pushbx:setupdosemu2
-
Set up WarpLink
-
Build WarpLink (requires NASM, dosemu2, and
warplink.exe
itself) or obtain a build
-
Place resulting executable in DOS PATH as
warplink.exe
-
A build can be obtained from https://pushbx.org/ecm/download/warplink.zip (rename
wl.exe
to use it as warplink.exe
)
-
Set up x2b2
-
Build x2b2 (requires NASM and lmacros) and place in DOS PATH
-
A build can be obtained from https://pushbx.org/ecm/download/x2b2.zip
-
Set up JWasm
-
Build DJGPP executable of JWasm and place as
C:\BIN\JWASM.EXE
-
A build can likely be obtained from https://github.com/Baron-von-Riedesel/JWasm/releases/
-
Set up OpenWatcom
-
Insure to have no files in DOS named
C:\C0NFIG.SYS
or C:\AUTOEXEC.BAT
-
Download OpenWatcom 1.9 DOS installer from http://openwatcom.org/ftp/install/open-watcom-c-dos-1.9.exe
-
Run installer in dosemu2
-
Install to
C:\WATCOM
-
Choose the full installation
-
Choose for the installer to ‘Make all the modifications for you’
-
Rename the created file
C:\AUTOEXEC.BAT
to C:\AUTOWAT.BAT
after the installer is done
-
The created file
C:\CONFIG.SYS
should have just the line FILES=20
so make sure to configure at least that many SFT entries in FDCONFIG.SYS
-
Set up IA16 gcc
-
Use https://gitlab.com/tkchia/build-ia16
-
Make
ia16-elf-gcc
available in the Linux path
-
Set up the following repos as sister directories of the edrdos repo: (accesible as
../REPO/
from edrdos repo)
-
lmacros
-
ldosboot
-
inicomp
-
scanptab
-
Make
lzip
available in the Linux path, from https://www.nongnu.org/lzip/
-
Make NASM available in Linux path
-
Run mak script from edrdos repo (repo root as host cwd), as
./mak.sh
-
Alternatively, set up DOS drive I: to point to the repo's
drdos/
subdirectory, call the C:\AUTOWAT.BAT
file (only needed for building command.com), then run one of the make.bat
scripts from one of the subdirectories (drbio/
, drdos/
, or command/
subdirectory as DOS cwd).
-
Find files
edrdos.sys
, edrpack.sys
, edrdos.com
, or edrpack.com
in repo root, and command.com
in the subdirectory command/bin/
-
To build this document, you need the Halibut document preparation system
-
Grab sources from https://www.chiark.greenend.org.uk/~sgtatham/halibut/
-
You may want to get a patch from https://github.com/ecm-pushbx/halibut/commit/1ccc3ac
The pack100 / pack101 EDR-DOS kernel packing using UPX is no longer supported in the lDOS EDR-DOS fork starting 2023 December. Use the build files edrpack.sys
or edrpack.com
instead.
Source Control Revision ID #
hg 33c6976eaa60+, from commit on at 2024-01-14 21:25:46 +0100
If this is in ecm's repository, you can find it at https://hg.pushbx.org/ecm/edrdos/rev/33c6976eaa60