Re: [uClinux-dev] Bad magic/ rev (16843008,need 2) error

From: Kendrick Hamilton (hamilton@SEDSystems.ca)
Date: Tue Sep 17 2002 - 16:43:52 EDT


	I believe you have old versions of binfmt_flat.c, flat.h. You
should get updated
versions of these file. These files are in the uClinux kernel
(uClinux-2.0.x/fs/binfmt_flat.c, uClinux-2.0.x/include/linux/flat.h).

A simple way of getting these files is to download the latest kernel from
uClinux cvs repository. Instructions for downloading are at
http://cvs.uclinux.org/cvs_anon.html
Just a note, the kernel version is 2.0.39.uc2



 On Tue, 17 Sep 2002, Eric Bosch wrote:

> Hi Steve,
>
> Thanks for your answer!
>
> I'am downloaded the m68k-elf-tools (only m68k-elf-tools-20010610.tar.gz)
> from the uClinux.org and unpacked it to usr/local/bin
>
> So I'll build my hello world program with
> m68k-elf-gcc -m68000 -Wl,-elf2flt -o hello hello.c -lc. The output of this
> command was an hello.gdb and hello file.
>
> After that i'd copied this hello (without extension) file to my ../usr/src/
> directory so it could be added to the image.bin. When I download the
> image.bin to my development board and run it I get the same error message as
> described under.
>
> bad magic/rev (4, need 2)
> bad magic/rev (4, need 2)
> bFLT: not found
>
> What do I wrong?
>
> Should I also download the source from the
> http://www.uclinux.org/pub/uClinux/m68k-elf-tools/ and what should I do with
> these source files?
>
> I read somewhere in the mailinglist about the update of the flat.h and
> binfmt_flat.c. Do I need these updates for a correct working of the m68-elf
> tools?
>
>
> Thanks and kind regards,
>
> Eric
>
> ----- Original Message -----
> From: "Steven Merrifield" <Steven.Merrifield@GE-Interlogix.com>
> To: <uclinux-dev@uclinux.org>
> Sent: Tuesday, September 17, 2002 3:51 AM
> Subject: RE: [uClinux-dev] Bad magic/ rev (16843008,need 2) error
>
>
> >
> > -----Original Message-----
> > >From: Eric Bosch [mailto:ebosch@freeler.nl]
> > >Sent: Tuesday, 17 September 2002 6:53
> > >To: uclinux-dev@uclinux.org
> > >Subject: [uClinux-dev] Bad magic/ rev (16843008,need 2) error
> > >
> > >
> > >
> > >Hello all,
> > >
> > >When I try to run my "hello world" program on my uClinux development
> board
> > >(uCgardener with Motorola 68EZ328 processor) I 'll get the following
> error
> > message:
> > >
> > >Bad magic/ rev (16843008, need 2)
> > >...elf...: not found
> > >
> > >This very simple program was compiled with the m68k-pic-coff-gcc
> compiler.
> > >
> > >I'am running uClinux 2.0.38.1Pre5 on my board.
> > >
> >
> > Hi,
> >
> > There has been two major revisions of the uClinux flat file format.
> Version
> > 2 was
> > used by the m68k-coff compilers and version 4 is used with the m68k
> elf2flt
> > tools.
> > It appears as though your kernel is looking for a v2 file, but you have
> > given it
> > an elf file?
> >
> > I suggest you get the latest tools from:
> > http://www.uclinux.org/pub/uClinux/m68k-elf-tools/
> >
> > and build your hello world app using the command:
> > m68k-elf-gcc -m68000 -Wl,-elf2flt -o hello hello.c -lc
> >
> > Most people working on a m68k platform these days use the elf tools rather
> > than
> > the coff tools.
> >
> > steve
> >
> >
> > This message resent by the uclinux-dev@uclinux.org list server
> http://www.uClinux.org/
> >
>
> This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
>

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:21:53 EDT