VOGONS


Run Linux in DOS

Topic actions

First post, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

http://sourceforge.net/forum/forum.php?forum_id=873405

Download: ftp://ftp.wolfmountaingroup.org/pub/linuxware

Jeff Merkey wrote to tell me about a neat project called Linuxware. From the announcement: "I am pleased to announce the release […]
Show full quote

Jeff Merkey wrote to tell me about a neat project called Linuxware. From the announcement: "I am pleased to announce the release of Merkey's LinuxWare, an DOS loader that allows you to compile a Linux kernel as an MS-DOS Executable, boot and load Linux from MS-DOS (while DOS stays resident). This in essence is exactly the same as old Legacy Netware, and in fact, I wrote a linker that does what the old NetWare custom linker did when it compiled the NetWare kernel and linked it as a DOS Application. Linux works just like it does normally, except you can quit Linux and exit back to DOS." (http://lkml.org/lkml/2008/9/14/56) And: "I am porting it to FreeDOS as I speak and Linux 2.6.27 and will keep the patches current." Code is at ftp://ftp.wolfmountaingroup.org/pub/linuxware

In response to another thread, Jeff says:

> But how much memory does it need? Raw Linux wants at least 5 MB.
>

This is a good question. At present, It only reserves 0-1MB for DOS and
the rest of the memory is available for Linux. It's whatever Linux
wants to use. One thing it does allow is Linux to call DOS interrupts
from protected mode and return.

I am in process of cleaning up the patch series and prepping it for
2.6.27. Give me a couple of weeks and I'll post a cleaner version of the
code with the loader debugger, and I'll submit it to Andrew's MM tree as
patches.

--

Jeff adds:

Now who in the hell would want this? Well, it's damn convenient to have
(or was at one time) a DOS loadable program.

One cool thing inside LinuxWare is the loader debugger which is able to
initialize the kallsyms tables BEFORE LINUX IS LOADED and allow you to
walk through early loader init of Linux (like where it loads the GDT for
the first time).

So there is a lot of cool, innovative (not boring) and powerful code
within, that can be used to make it easier to debug and develop linux.
This tool was designed by me (and used by me) to take Linux apart and
study it thoroughly, and to shore up a sagging (and now deceased) DR-DOS
market.

I stopped using it after 2.6 so its only up to 2.4.18, and there is an
early MDB integrated with KDB.

BORLAND compiler was used to build the DOS side, but DJGPP would probably
still work. As part of a lawsuit settlement, this code and IP reverted
back to my ownsership, and since its dead as a doornail DOS, might as well
see if there's stuff in here folks might could salvage -- one man's trash,
another man's treasure ...

ftp://ftp.wolfmountaingroup.org/pub/linuxware … 09072008.tar.gz
ftp://ftp.wolfmountaingroup.org/pub/linuxware
http://www.wolfmountaingroup.org/

Jeff

Doesn't work in DOSBox so no DOSBox running in X in Linux under DOSBox posts yet....

How To Ask Questions The Smart Way
Make your games work offline