From: caschrei@rockwellcollins.com
Date: Thu Aug 16 2001 - 17:35:33 EDT
Dear LEOX team:
Where did you download this "Greg Ungerer" uClinux release from?
I am running uClinux 2.0.38 (as you specified) release 1pre7, with Sparc
patches taken from the 'dec3' patch file from www.uClinux.org ports/Sparc
directory. Someone on the uClinux mailing group suggested updating the
files dealing with loading flatfile binaries (fs/binfmt_flat.c and related
headers) and replacing them with certain versions off the uClinux CVS
archive. These versions (to my knowledge) have not been released yet. I
am currently working on making this change.
Cheers to you for your willing work,
-- Christian Schreiner
caschrei@rockwellcollins.nospam.com (minus the .nospam)
The LEOX team <lpm@leox.org>@free.fr on 08/16/2001 03:26:45 PM
Please respond to leon_sparc@yahoogroups.com
Sent by: paugaml@free.fr
To: caschrei@rockwellcollins.com
cc: leon_sparc@yahoogroups.com
Subject: Re: [leon_sparc] binary file compatibility
caschrei@rockwellcollins.com wrote:
>
> Hello.
>
> I am trying to compile the famous "hello, world" program to under tsim
and
> uClinux. (Though eventually I will want it to run on a Xess board.) The
> executable I get is in version "4" flat file format, and uClinux wants
> version "2" and refuses to load the program. Has anyone else run into
this
> kind of problem? Am I using the wrong toolchain, or what? Are the
> differences between version 2 and version 4 small enough that I could
> manually tweak the version number back to 2?
You have not the up to date version of uClinux.
This week, I have updated the LEON uClinux port sources to the "up to
date" uClinux sources (taken from the very good distribution of Greg
Ungerer). From
now, i use the uClinux kernel 2.0.38.
I try also to write, as you mentioned, a ROM file system including the
"Hello World" init program. Over tsim, i get no characters on the
console.
Need again more debug!!!
If you are interested i can post my prelimary diff sources.
> The versions of everything I am using are:
>
> sparc-rtems-gcc compiler from LECC
> elf2flt program from LEOX 1.0.4
Beware, into the CDK i included 2 tools genromfs and elf2flt.
genromfs is working quite well and is really up to date.
However my elf2flt is not completely off the shelf: relocation does not
work!
> uClinux 2.0.38.1pre7 with the dec3 sparc patches.
>
> I can load "hello, world" (compiled into elf format) just fine if it is a
> standalone program (with no operating system). It is only when I
> convert it to flatfile format with elf2flt, stick it onto the root
> filesystem, and try to run it under linux that I have this problem. I
> should note that I am using "hello, world" as the init process, because I
> can't get any other executables to run under linux, either. So I don't
> have a shell prompt available to see what is going on with linux.
>
> Thanks in advance for your input,
>
> -- Christian Schreiner
> caschrei@rockwellcollins.nospam.com (minus the .nospam)
>
Keep in touch.
--
Best Regards
The LEOX team
http://www.leox.org : Free Hardware and Software Resources for
System-on-Chip
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:20:04 EDT