How to build Enhanced DR-DOS from ecm repo
2023 by C. Masloch. Public Domain.
This document has been compiled on 2023-08-29.
-
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
-
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
drbio.sys
, drdos.sys
, and command.com
in the subdirectories drbio/bin/
, drdos/bin/
, and command/bin/
-
To use Enhanced DR-DOS kernel packing:
-
Unpack
upx.exe
from pack100.zip
-
Unpack all files from
pack101.zip
-
The archives can be found at https://pushbx.org/ecm/download/edrdos/
-
Place
drbio.sys
and drdos.sys
in same directory
-
Make sure that the files are fresh and not yet compressed by this packer
-
Make sure that the command
debug
resolves to a debugger with at least a basic expression evaluator (lDebug will do, DR-DOS Debug too)
-
Run
PACKBIO.BAT
and PACKDOS.BAT
in DOS
-
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
Source Control Revision ID #
hg e1dbcad5136e, from commit on at 2023-08-29 17:44:39 +0200
If this is in ecm's repository, you can find it at https://hg.pushbx.org/ecm/edrdos/rev/e1dbcad5136e