[mc1322x] compiling webserver-ipv6 in contiki/examples folder
Chol Su Kang
cholsukang at gmail.com
Tue Apr 27 19:12:52 EDT 2010
On Tue, Apr 27, 2010 at 1:40 PM, Mariano Alvira <mar at devl.org> wrote:
> On Tue, Apr 27, 2010 at 01:16:38PM -0700, Chol Su Kang wrote:
>> I have compiled webserver-ipv6 using:
>> $ make TARGET=mc1322x
You are right. I actually used
$ make TARGET=mc1322x-ncb
I created mc1322x-ncb for Freescale Network Controller Board - came
with 1322XDSK-DBG from Freescale.
Not that I like this board, but I got this one before I found out
about redbee boards.
For anyone who is interested, I will upload a patch to create
mc1322x-ncb board under mc1322x platform.
>> 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.
Thanks. I noticed that webserver modules in apps/webserver use
'sprintf' and 'snprint' also, which are not available in printf.c in
cpu/mc1322x/lib.
>
> 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.
>
I did not try WIP-2.4 yet, but I thought that I tried mc1322x-2.4.
I got a clean build. But the size of the webserver6.mc1322x-ncb.elf
file is 871K and the size of .bin file is 490K.
> -Mar.
>
>
>
>
More information about the mc1322x
mailing list