[mc1322x] compiling webserver-ipv6 in contiki/examples folder
Chol Su Kang
cholsukang at gmail.com
Wed Apr 28 20:46:12 EDT 2010
For those who are interested in having builds for Freescale Network
Controller board, I created a patch to support the board,
freescale-ncb. Please see attached.
The patch contains the changes off WIP-2.4, but be aware that I am
still learning how to use 'git' commands.
I have compiled this change in contiki-mc1322x/cpu/mc1322x/tests using
$ make BOARD=freescale-ncb
and tested blink bin files, printf bin file, and rftest-tx bin file.
In order to download bin files, I used 'Test Tool' in Freescale 1322x
DSK-DBG CD.
I have not figured out how to use mc1322x-load.pl to load freescale board yet.
I also got clean build in contiki-mc1322x/examples/webserver-ipv6.
But the size of .elf and .bin are hugh.
Regards,
Charles Kang
On Tue, Apr 27, 2010 at 5:07 PM, Chol Su Kang <cholsukang at gmail.com> wrote:
> 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.
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-freescale-ncb-board-added.patch
Type: text/x-patch
Size: 15941 bytes
Desc: not available
URL: <http://devl.org/pipermail/mc1322x/attachments/20100428/93374977/attachment-0001.bin>
More information about the mc1322x
mailing list