[mc1322x] compiling webserver-ipv6 in contiki/examples folder
Mariano Alvira
mar at devl.org
Tue Apr 27 16:40:19 EDT 2010
On Tue, Apr 27, 2010 at 01:16:38PM -0700, Chol Su Kang wrote:
> I have compiled webserver-ipv6 using:
> $ make TARGET=mc1322x
> in contiki-2.4/examples folder.
TARGET=mc1322x is not a valid platform anymore --- you must be using a
old checkout. The TARGETs that use the mc13224v are: redbee-dev,
redbee-econotag, and redbee-usb. If you are using different hardware
then I suggest first adding that as a board to libmc1322x and then it
will be easy for me to pull that as a platform into Contiki.
> The output are hugh due to some of modules it included from gnu library:
> Module name size (in hex)
> ============= ===========
> malloc 0x533c
> printf 0x27a0
> vfprintf 0x44a8
> vfwprintf 0x516c
> vfscanf 0x51f8
> gconv_simple 0x5db8
>
>
> I saw printf from cpu/mc1322x/lib as well as from glib. I am not sure
> why printf is doubly included in link.
> Has someone looked at this issue before?
> I saw a few discussion in email archive, but I did not get the clear
> idea how to prevent linker from including unnecessary modules.
The printf in cpu/mc1322x/lib/ should be used instead of the printf in
glibc; it is meant to be a lighter-weight replacement.
I am currently working on the master branch and I've noticed that it
has this problem and will be fixed.
WIP-2.4 and mc1322x-2.4 does not have this problem. Something in the
Makefile from those branches needs to be pulled into master... But
again, I wouldn't expect master to be usable for another week or two.
-Mar.
More information about the mc1322x
mailing list