From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Nasrat Subject: Re: elks newbie.....kindly help!! Date: Sat, 27 Jul 2002 10:02:10 +0100 Sender: linux-8086-owner@vger.kernel.org Message-ID: <20020727090209.GA32090@raq465.uk2net.com> References: <20020727072846Z318708-685+18874@vger.kernel.org> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Seemanta Dutta Cc: linux-8086@vger.kernel.org On Sat, Jul 27, 2002 at 02:24:29PM +0530, Seemanta Dutta wrote: > hello to all gurus.... > i am a student and am going to do a seminar on elks ...i have already > downloaded dev86 and elks disk images and their src... > the problem is however that of dev86.. > i wrote a 'hello world' program and compiled it in my redhat 7.2 box..the > compilation was normal and without any errors...but when i try to run my > a.out file with elksemu i get the following error message- > > bash: /usr/bin/elksemu: cannot execute binary file > i have tried searching the net for documentation on this dev86 but there > was none to be found.....even the man page for elksemu is not > complete.... It is a bit obfuscated. > i would be grateful to u if any one could provide me some pointers to > dev86...and some info abt compliing and running programs using dev86 i.e. > bcc and eklskemu...urls will be welcome too.. You need to have the modules binfmt_aout and binfmt_misc loaded in your kernel Then echo ':i86-elks:M::\x01\x03\x20\x00:\xff\xff\xff\x83:/lib/elksemu:' \ > /proc/sys/fs/binfmt_misc/register that'll get it working Paul