Skip to contentSkip to conversation

DOS .exe file support

DISCUSSION Michael Kallas 7 participants 12 messages May 3, 2002 – May 6, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

Harry Kalogirou <[email protected]> schrieb am 29.04.02:

Quoted 7 lines

Hi,
I wonder from the first time I let my eyes on this project, what the
EXE file support in the kernel configuration means? I simply don't see any way of running a DOS .EXE executable in ELKS. Maybe if it was a COM file but even then we should emulate all the DOS _system_ calls. Am I missing something bigger here, or we should just remove it from the tree?

If this should be considered for being implemented any time, I suggest having a look at http://www.freedos.org because FreeDOS is in beta stage now already for quite a while and is quite advanced.
They even have FAT32 support now (but no LFN yet) and they also support swapping.
Maybe ELKS could be something like a multitasking environment able to execute linux/elks and DOS programs?

Best regards
Michael

Signature · 11 lines
All thoughts are free, Who can ever guess them?
Die Gedanken sind frei, Wer kann sie erraten?

______________________________________________________________________________
All inclusive! 100 MB Speicher, werbefrei, SMS günstiger, Wunschrufnummer, Events, 
Preisvorteile und mehr unter http://club.web.de/?mc=021104

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 5 lines
Quoted 3 lines

file but even then we should emulate all the DOS _system_ calls. Am I missing something bigger here, or we should just remove it from the tree?

If this should be considered for being implemented any time, I suggest having a look at http://www.freedos.org because FreeDOS is in beta stag=

I think it ought to go in the bitbucket.

Quoted 5 lines

now already for quite a while and is quite advanced.
They even have FAT32 support now (but no LFN yet) and they also support swapping.
Maybe ELKS could be something like a multitasking environment able to execute linux/elks and DOS programs?

On such a small memory machine you'd use a lot of resources to do that and make a nasty mess in other bits of the kernel. Seems better to let FreeDOS do its job well

#2 lore raw

Hard drive problems?

Last night I hooked up my IBM and tried downloading the latest ELKS. I think I ended up with 1.0 pre 4 as I got an access denied message tring to get the latest version. I boot up and get the following:

Loading Init
hd: error: AX=0x0
BIOS HD:I/O error
dev 380, sector 260
init panic

ELKS..

login:

I login as root and get everything between "loading init" and "ELKS" above, then "no shell!" Here's the catch, I have no hard drive, and the boot process correctly detects my drives. Here's what I do have, should it be of any help:

IBM PCXT 640K RAM
NEC V20
VGA video
1.44M floppy with "comb" image
no other boards aside from FDC and VGA

I booted .83 which was on the disk before my latest download, and it worked fine.

Dan

#3 lore raw

Re: Hard drive problems?

Quoted 9 lines · Dan Olson

Last night I hooked up my IBM and tried downloading the latest ELKS. I think I ended up with 1.0 pre 4 as I got an access denied message tring to get the latest version. I boot up and get the following:

Loading Init
hd: error: AX=0x0
BIOS HD:I/O error
dev 380, sector 260
init panic

OK - this may be the bioshd stuff. Try turning it off in your kernel.

System has no hard drive (CONFIG_HW_NO_HARD_DRIVE) [Y/n/?] y

I had problems with stalling with a dodgy HD, sometimes detected.

Then just do make boot from elkscmd and use the packaged root floppy.

I'm unsure how well elkscmd is making comb image at the moment

Paul

#11 lore raw
In reply to Michael Kallas

Την Παρ, 03-05-2002 στις 09:37, ο/η Michael Kallas έγραψε:

Quoted 11 lines

Hi,

Harry Kalogirou <[email protected]> schrieb am 29.04.02:

Quoted 7 lines

Hi,
I wonder from the first time I let my eyes on this project, what the
EXE file support in the kernel configuration means? I simply don't see any way of running a DOS .EXE executable in ELKS. Maybe if it was a COM file but even then we should emulate all the DOS _system_ calls. Am I missing something bigger here, or we should just remove it from the tree?

Quoted 8 lines

If this should be considered for being implemented any time, I suggest having a look at http://www.freedos.org because FreeDOS is in beta stage now already for quite a while and is quite advanced.
They even have FAT32 support now (but no LFN yet) and they also support swapping.
Maybe ELKS could be something like a multitasking environment able to execute linux/elks and DOS programs?

ELKS will never be able to run .EXE files. Even if we emulate all the DOS system calls, the memory model is different. To that add that most of DOS programs - if not all - use directly the hardware and that is imposible to multitask on an 8086. DOS programs do all sorts of _wild_ things with the machine (from hooking to interupts, to reprogramming timers chips, etc) , that require the program be the only thing running.

About the swap thing you say, I don't see how they can swap out. Maybe they implement it in a _might work, might crash_ way.

Harry

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

Re: Hard drive problems?

In reply to [email protected]

Την Παρ, 03-05-2002 στις 18:54, ο/η [email protected] έγραψε:

Quoted 11 lines · Dan Olson
Quoted 9 lines

Last night I hooked up my IBM and tried downloading the latest ELKS. I think I ended up with 1.0 pre 4 as I got an access denied message tring to get the latest version. I boot up and get the following:

Loading Init
hd: error: AX=0x0
BIOS HD:I/O error
dev 380, sector 260
init panic

Quoted 8 lines

OK - this may be the bioshd stuff. Try turning it off in your kernel.

System has no hard drive (CONFIG_HW_NO_HARD_DRIVE) [Y/n/?] y

I had problems with stalling with a dodgy HD, sometimes detected.

Then just do make boot from elkscmd and use the packaged root floppy.

No this has nothing to do with the hard drive. The floppy disk is just one of the _good_ ones...

dev 380 is /dev/fd0

Get a good floppy disk and try again...

Harry

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

Re: Hard drive problems?

Quoted 6 lines
Quoted 5 lines
Quoted 5 lines

Loading Init
hd: error: AX=0x0
BIOS HD:I/O error
dev 380, sector 260
init panic

Quoted 6 lines

No this has nothing to do with the hard drive. The floppy disk is just one of the _good_ ones...

dev 380 is /dev/fd0

Get a good floppy disk and try again...

Okay, that's good to know. I just assumed that the "hd" in the error message refered to hard drive. The disk was okay when .83 was on it, but I'll definetly try it again. Thanks!

Dan

#10 lore raw

Re: Hard drive problems?

In reply to Harry Kalogirou
Quoted 5 lines · Harry Kalogirou

No this has nothing to do with the hard drive. The floppy disk is just one of the _good_ ones...

dev 380 is /dev/fd0

doh - serve me write for posting an answer without thinking :)

Need to remember the device numbers for elks...

Paul

#6 lore raw

Re: Hard drive problems?

In reply to Dan Olson

Την Παρ, 03-05-2002 στις 20:49, ο/η Dan Olson έγραψε:

Quoted 7 lines

Okay, that's good to know. I just assumed that the "hd" in the error message refered to hard drive. The disk was okay when .83 was on it, but I'll definetly try it again. Thanks!

Dan

They don't make floppies like they used too! :). Most of floppies today are for one use...

Harry

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw

Re: Hard drive problems?

Quoted 2 lines

They don't make floppies like they used too! :). Most of floppies today are for one use...

Yes indeed :) It's funny though, 3.5" floppies (with higher density than 5.25" ones) always get corrupted much faster - i have tons of 5.25" floppies here and vast majority of them works fine after all these years of collecting dust.

Blaz Antonic

#8 lore raw

Re: Hard drive problems?

In reply to Harry Kalogirou

Hi Harry.

Quoted 2 lines

They don't make floppies like they used too! :). Most of floppies today are for one use...

More often than not, that "use" consists of opening the wrapping on the box they're in, at which point the floppies become irretrevably damaged...

Best wishes from Riley.

#9 lore raw

Re: Hard drive problems?

In reply to Harry Kalogirou
Quoted 4 lines

They don't make floppies like they used too! :). Most of floppies today are for one use...

Harry

Guess I was pushing my luck with two uses :) I'll try to put a fresh format on the disk and try again, or just dig up another disk. I guess I have plenty of 360k disks around too, wouldn't hurt to use the origional IBM full height drive!

Dan