Skip to contentSkip to conversation

Starting with bcc and ELKS

DISCUSSION silvercreekvalley 4 participants 5 messages Mar 10, 2009 – Mar 11, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I've just started looking at the ELKS software and have made a start with the bcc development environment.

I can compile and wondered if there is an easy way of generating executables that run on regular linux.

eg.

bcc -Ml -z input.c

and then use objcopy? Not sure what the command sequence is though for say a Fedora distribution?

Thanks

#1 lore raw

On Tue, 10 Mar 2009 15:26:23 -0700 (PDT) silvercreekvalley <[email protected]> wrote:
[...]

Quoted 5 lines

I've just started looking at the ELKS software and have made a start with the bcc development environment.

I can compile and wondered if there is an easy way of generating executables that run on regular linux.

Somewhere --- possibly shipped with your bcc --- there should be a command called elksemu that will let you run ELKS binaries built with bcc. But this stuff is all pretty archaic so I don't know if it still works.

The binaries themselves are 16 bit code and won't run on a normal Linux system without help.

Signature · 2 lines
David Given
[email protected]
#2 lore raw
Quoted 12 lines

silvercreekvalley <[email protected]> wrote:
[...]

Quoted 2 lines

I've just started looking at the ELKS software and have made a start with the bcc development

environment.

Quoted 3 lines

I can compile and wondered if there is an easy way of generating executables that run on regular linux.

Quoted 12 lines

Somewhere --- possibly shipped with your bcc --- there should be a command called elksemu that will let you run ELKS binaries built with bcc. But this stuff is all pretty archaic so I don't know if it still works.

The binaries themselves are 16 bit code and won't run on a normal Linux system without help.

Signature · 3 lines
David Given
[email protected]
--

(Sorry, David- This was supposed to go to the list, not only to you)

I've never tried this, but don't you have to have BINFMT_AOUT or BIMFMT_MISC enabled in your kernel?

#3 lore raw
Quoted 5 lines
Quoted 3 lines

ELKS binaries built with bcc. But this stuff is all

pretty

Quoted 1 line

archaic so I don't know if it still works.

I couldnt get the various flags to work, and objcopy didnt seem to do the trick. It just makes emulation a bit easier.

Quoted 5 lines

I've never tried this, but don't you have to have BINFMT_AOUT or BIMFMT_MISC enabled in your kernel?

The documentation mentions Linux 2.0 / 2.1 so I'm thinking of installing an older Linux to see if I can patch the kernel as discussed in the docs.

Tracking down an actual 8086 XT is quite tricky these days to run the code, so its useful to be able to emulate. I think there are some actual IBM XT emulators out there which I might try.

Thanks

#4 lore raw

----- Original Message ----- From: "silvercreekvalley" <[email protected]>
To: <[email protected]>
Sent: Wednesday, March 11, 2009 9:18 PM
Subject: Re: Starting with bcc and ELKS

Quoted 17 lines
Quoted 5 lines
Quoted 3 lines

ELKS binaries built with bcc. But this stuff is all

pretty

Quoted 1 line

archaic so I don't know if it still works.

I couldnt get the various flags to work, and objcopy didnt seem to do the trick. It just makes emulation a bit easier.

Quoted 5 lines

I've never tried this, but don't you have to have BINFMT_AOUT or BIMFMT_MISC enabled in your kernel?

Quoted 7 lines

The documentation mentions Linux 2.0 / 2.1 so I'm thinking of installing an older Linux to see if I can patch the kernel as discussed in the docs.

Tracking down an actual 8086 XT is quite tricky
these days to run the code, so its useful to
be able to emulate. I think there are some actual
IBM XT emulators out there which I might try.

A few to check out (there are more):

http://dioscuri.sourceforge.net/ (comes with ELKS diskimage)
http://www.hampa.ch/pce/index.html
http://www.xs4all.nl/~rjoris/retro/
http://www.shinelife.co.uk/legacy-ibm-pc-emulator/

However, IA-32 emulators like Bochs/Qemu etc also work fine.

Hans
www.ht-lab.com

Quoted 11 lines

Thanks

--
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