MRB questions
Bill Butler
billb at tnex.com
Thu Mar 28 15:16:32 UTC 2002
Joel,
Yes Chris did.. he rocks :)..
He said:
>> what am I missing
>
>Nothing. You need to build RTEMS with something like:
>
>
>configure --target=m68k-rtems --prefix=/opt/rtems/rtems-4.5.0
>--enable-cxx --disable-tests --enable-posix --disable-itron
>--enable-networking --enable-bare-cpu-cflags=-m5200
>--enable-bare-cpu-model=m5200 --enable-rtemsbsp=bare
>
>You will end up with a directory called bare that you move to
bare-5200.
>
>I assume you are using rtems-4.5.0. For later versions MRB has some
>changes that I have not released.
But this was not my intial problem, instead the build is was failing
during the building of the dependency -- the following command fails.
(Segmentation fault)
@echo \# auto-depends file > .tmpdepend
$(TOOLS_PATH)/$(MKDEP_ENGINE) $(CARD_HPATH) \
`find $(TOPDIR) -follow -name \*.h -print` > .hdepend
The problem seems to be that the cygwin command interpreter does not
like the quotes around find.?. I'm guessing it's a problem with newer
cygwins since we a recent version.
If you place a backslash in front of the "'"'s it works find.. I tried
this in linux too and it takes it without a problem.
I changed my makefile to the following:
@echo \# auto-depends file > .tmpdepend
$(TOOLS_PATH)/$(MKDEP_ENGINE) $(CARD_HPATH) \
\`find $(TOPDIR) -follow -name \*.h -print\` > .hdepend
Chris, you might consider changing it.
Thank you to Joel, Chris and Bill K for your help.
Bill Butler
AIPCom Inc
972-644-2328 x16
bbill at tnex.com
-----Original Message-----
From: Joel Sherrill [mailto:joel.sherrill at OARcorp.com]
Sent: Thursday, March 28, 2002 7:48 AM
To: Bill Butler
Subject: Re: MRB questions
Did Chris answer this?
bare bsp is a special build option for RTEMS that lets the BSP live
outside the RTEMS source tree. You use two configure options that
have "bare" in the name. I don't remember them offhand. But one
specifies the CPU model, the other the bare bsp build mode.
Bill Butler wrote:
>
> Morning,
>
> I am trying to compile the MRB code on a PC that is running cygwin..
>
> I have RTEMS built for a SBC5307 bsp. While I have reviewed the docs
on
> Chris Johns site, I guess im missing something.
>
> I have un-tared the 6-2001 Snapshot of MRB and tried to do a
> Make (as the docs suggest - to build the default target - just to see
if
> I can ) fails
>
> Do a
> ./build (fails)
>
> ./build.sh -c sfp -v boot (fails)
>
> ./build.sh -c sfp -v rtems -l /opt/m68k-rtems -r /opt/m68k-rtems
>
> I get something similar to this
>
> $ ./build.sh -c sfp -v rtems -l /opt/m68k-rtems -r /opt/m68k-rtems
> cygwin-intel
> gmake CARD=sfp VARIANT=rtems LIBC_TOP=/opt/m68k-rtems
> RTEMS_LIB_TOP=/opt/m68k-rtems SYSTEMTYPE=cygwin-intel
> gmake -C /cygdrive/c/coldfire/my-right-boot-20010610/tools
> gmake[1]: Entering directory
> `/cygdrive/c/coldfire/my-right-boot-20010610/tools'
> if [ ! -d
> "/cygdrive/c/coldfire/my-right-boot-20010610/tools/cygwin-intel" ];
then
> \
> mkdir -p
> /cygdrive/c/coldfire/my-right-boot-20010610/tools/cygwin-intel; fi
> gmake[1]: Leaving directory
> `/cygdrive/c/coldfire/my-right-boot-20010610/tools'
> rm -f .depend .hdepend
> stripping is there a bug here?
> /cygdrive/c/coldfire/my-right-boot-20010610/tools/cygwin-intel/mkdep
> -I/opt/m68k-rtems/bare-5200/lib/include
> -I/cygdrive/c/coldfire/my-right-boot-2001
> 0610/include -I/opt/m68k-rtems/m68k-rtems/include \
> `find /cygdrive/c/coldfire/my-right-boot-20010610 -follow -name \*.h
> -print` > .hdepend
> Signal 11
> gmake: *** [dep-files] Error 139
> error: Failed to complete the build.
>
> I see that it is looking in rtems for a "bare-5200".. I don't have
this
> built and see no reference to it in Rtems (I see a bare but not a
> bare5200) and I don't see where you suggest how to build Rtems to make
> MRB build.
>
> What am I missing?
>
> Thanks for you time
>
> Bill Butler
> AIPCom Inc
> 972-644-2328 x16
> bbill at tnex.com
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list