Linux HOWTOs

About | Home | Search


HOWTO: dev86
Description: Linux 8086 development environment
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# Dev86
# =====
# If you only need as86 and ld86, you may want to install bin86 instead.  dev86
# includes quite a bit more.  There are two versions below, 0.16.17 is the
# latest, and if you need the most stable, go with 0.16.0 at the bottom.

# This used to be required for building kernels (2.2.x).  lilo uses this for
# it's diagnostic floppy.  I'm sure lots of other things use it too.  It's
# an assembler, so it's not application specific or anything.

# If you ever want to uninstall it, skip down to the bottom for
# instructions.


# Dev86 0.16.17
# =============
cd
test -f installed/Dev86src-0.16.17.tar.gz &&
 mv installed/Dev86src-0.16.17.tar.gz .
test ! -f Dev86src-0.16.17.tar.gz &&
 wget http://www.cix.co.uk/~mayday/dev86/Dev86src-0.16.17.tar.gz

# Verify tarball w/ md5sum:
# (this came from my tarball, so all it does is verify that yours is the
# same as mine (mine could be tampered with), but it's better than nothing)
echo "e7bbfdbe61c2fb964994a087e29b0087  Dev86src-0.16.17.tar.gz" | md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "bin86-*" -exec rm -r {} \;
find -maxdepth 1 -type d -name "dev86-*" -exec rm -r {} \;
tar xzvf ~/Dev86src-0.16.17.tar.gz
cd dev86-0.16.17
test $UID = 0 && chown -R root:root .
make
# Here it'll give you a menu of build options
su -c "removepkg bin86 ; make PREFIX=/usr install"
cd
mkdir -p -m 0700 installed
rm -f installed/Dev86src-*.tar.* installed/bin86-*.tar.*
mv Dev86src-0.16.17.tar.gz installed/


# Dev86 0.16.0
# ============
cd
test -f installed/Dev86src-0.16.0.tar.gz &&
 mv installed/Dev86src-0.16.0.tar.gz .
test ! -f Dev86src-0.16.0.tar.gz &&
 wget http://www.cix.co.uk/~mayday/dev86/Dev86src-0.16.0.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "bin86-*" -exec rm -r {} \;
find -maxdepth 1 -type d -name "dev86-*" -exec rm -r {} \;
tar xzvf ~/Dev86src-0.16.0.tar.gz
cd dev86-0.16.0
test $UID = 0 && chown -R root:root .
make
# Here it'll give you a menu of build options
su -c "removepkg bin86 ; make PREFIX=/usr install"
cd
mkdir -p -m 0700 installed
rm -f installed/Dev86src-*.tar.* installed/bin86-*.tar.*
mv Dev86src-0.16.0.tar.gz installed/


# If you ever need to uninstall Dev86, this should do it:
# (but due to the menu of build options and such, it might not...)
su
removepkg bin86
for pfx in /usr /usr/local; do
  ( cd /usr/bin ; rm -f ar86 as86 bcc elksemu ld86 nm86 objdump86 size86 )
  test -d /usr/lib/bcc && rm -r /usr/lib/bcc
  ( cd /usr/man/man1 ; rm -f as86.1 bcc.1 elks.1 elksemu.1 ld86.1 )
done
exit
cd
find src -maxdepth 1 -type d -name "dev86-*" -exec rm -r {} \;
rm -f installed/Dev86src-*.tar.*

Back to the list


Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>