[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Linux 5.1 And rtems 4.0 on i386-elf
- Date: Thu, 12 Aug 1999 17:52:31 +0000
- From: charles.gauthier at iit.nrc.ca (Charles-Antoine Gauthier)
- Subject: Linux 5.1 And rtems 4.0 on i386-elf
Andrew Harris wrote:
>
> Craig Blome wrote:
>
> > AARGH! The dreaded Happy99 virus. Well, at least we inadvertently
> > found out a list of Motorolans interested in RTEMS...so what are y'all
> > using it for?
> >
> > Craig B.
> >
> > Mahesh wrote:
> > >
> > > Name: Happy99.exe
> > > Happy99.exe Type: unspecified type (application/octet-stream)
> > > Encoding: x-uuencode
>
> Oh no! I've been discovered! :)
>
> I'm poking around with the MVME 147 and RTEMS... Nothing production.
> I've got a couple questions, now that I'm posting.
>
> 1) Can I make relocatable objects for the m68k with gcc? I saw in the info
> files that for ppc you could use -mrelocatable, but I'm not really sure how
> to do it. Basically, I'd like to place the s-records onto an eprom and use
> "go" from 147-bug. It seems, for example, that the hello_world demo
> contains absolute addresses in the s-records.
I am not sure what you are trying to do. Do you want to put your
executable in the EPROM but run it from RAM? If so, ld scripts can be
used to link the image at a physical address that is different from its
load address. At runtime, just copy the image from EPROM to RAM, and run
it. No need for location-independent code. The ld manual contains the
details. Look for the AT command in the optional section attributes.
Obviously, you need to change the entry point code to do the copy.
If by relocatable objects, you mean location-independent, it is possible
that the PIC support that was added in gcc 2.95 is what you are looking
for. I never had a need for it, so I never looked at it. It may even be
possible to get gcc to use relative branching on the mc68020 and above,
and to access all globals relative to A5. Someone else who knows more
than I do can help you here.
> 2) Is it true that I can't use the TCP/IP stack with the 147 bsp? I saw
> that it was set to "no" in one of the makefiles with a comment that 147
> doesn't support TCP/IP networking.
Don't know about the MVME147. Perhaps all that is missing is a driver
for the LANC provided on the MVME147, assuming that there is one. What
is your LANC?
> thanks,
> -andrew
>
> --
> +-------------------------------------+------------------------------+
> | Andrew Harris | |
> | Software Engineer | Tel: +1 847 538 7966 |
> | Wireless Data Solutions Engineering | Fax: +1 847 576 7737 |
> | CGISS | Email: cah033 at email.mot.com |
> | Motorola | |
> +-------------------------------------+------------------------------+
--
Charles-Antoine Gauthier
Research Officer
Software Engineering Group
Institute for Information Technology
National Research Council of Canada
Ottawa, ON, Canada
K1A 0R6