[mc1322x] compiling webserver-ipv6 in contiki/examples folder

Chol Su Kang cholsukang at gmail.com
Tue Apr 27 20:07:17 EDT 2010


On Tue, Apr 27, 2010 at 4:26 PM, Mariano Alvira <mar at devl.org> wrote:
> On Tue, Apr 27, 2010 at 04:12:52PM -0700, Chol Su Kang wrote:
>> 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.
>
> That would be great. The name should probably be freescale-ncb
> though...
I agree that freescale-ncb is better name for the board.

>
>> > 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.
>
> Ok. That's the reason then... so you have three options: replace
> sprintf/snprintf with your own; try newlib; or try uClib...
I will uncomment the sprintf in cpu/mc1322x/lib/printf.c module and
try to fix the logic to support sprintf and snprintf in the same
module.
>
>>
>> >
>> > 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.
>
> ...hrmm well my mc1322x-2.4 branch doesn't build this example. It
> builds in WIP-2.4 and is an acceptable size. That's the branch that
> will work anyway; it includes a lot of changes from Jon to fix the
> alignment issues in the core Contiki code. The mc1322x-2.4 branch
> isn't suppose to have any changes to the core code --- it just adds
> the mc1322x to Contiki 2.4.
This may be due to my unfamilarity using git.
I did not clone the repository, but I downloaded the snapshot of
contiki-mc1322x using 2.4 head tag.
I will clone the repository and try it again.
>
> The current development plan is to bring master in sync with CVS head
> (only pending item is to update the radio interface) and then
> determine, with Joakim and Niclas's help, what changes have to be made
> to the core code. And finish all this around June...
>
> -Mar.
>



More information about the mc1322x mailing list