Jennic JN-5148 linux toolchain
Hi ZigBee developers!
Jennic finally gave me access to their 5148 toolchain build sources and scripts (based on Beyond Semi BA12 toolchain).
After some hacking i got the toolchain built on my Ubuntu host.
I tested with a custom application for custom hardware project based on JN-5148 (it uses only API libraries but not ZBPro stack): the toolchain produces full working binaries!
Installation
- Download and install last Jennic JN-5148 SDK toolchain (on native windows or on linux using Wine);
- Download and install last Jennic JN-5148 SDK libraries (on native windows or on linux using Wine);
- Download my already built toolchain for JN-5148;
- Replace Tools/ba-elf-ba2 folder with the one into ba-elf-ba2.tgz package you just downloaded;
- Add Tools/ba-elf-ba2/bin folder to your path.
Notes
- Jennic SDK toolchain contains some win32 utilities (on Tools folder) used to generate JeOS and ZB-Pro libraries-related sources from eclipse-generated JeOS and ZB-Pro configuration files.They're run on linux using Wine (Windows emulator);
- Since their original toolchain uses Cygwin, you may need to replace every cygpath occurrence with winepath on your Makefiles to convert unix-like paths to windows-like paths;
- If you're using Jennic applications (like these on their Application Notes) you may need to check every included makefile filename (unix/linux is case-sensitive!);
- To upload your binaries to your board (using serial port) you need to use a modified version of Jenprog (original version was posted on original Jennic support forum thread; patch here).
Known problems
ZPSConfig: Unable to locate XXX section in library file YYY
When trying to build Jennic applications (like JJN-AN-1122-ZBPro-Home-Sensor-Demo), the build gives this error:
Configuring the Zigbee Protocol Stack ...
/home/paolo/Projects/jennic/Tools/ZPSConfig/bin/ZPSConfig.exe -n SensorNode -t JN5148 -l "H:\Projects\jennic\Components\Library\libZPSNWK_JN514x.a" -a "H:\Projects\jennic\Components\Library\libZPSAPL_JN514x.a" -f "H:\Projects\jennic\Application\JN-AN-1122-ZBPro-Home-Sensor-Demo\Common\Source\ZBProHomeSensorDemo.zpscfg" -o "H:\Projects\jennic\Application\JN-AN-1122-ZBPro-Home-Sensor-Demo\SensorNode\Source"
ZPSConfig - Zigbee Protocol Stack Configuration Tool v1.0.0 Build 15295ERROR: Unable to locate '.zps_apl_ZdoDefaultServerContextSize' section in library file 'H:\Projects\giano\Components\Library\libZPSAPL_JN514x.a'
But the library path is correct and it does contains an object file with the .zps_apl_ZdoDefaultServerContextSize section that is not found by ZPSConfig.
Jennic replies me that ZPSConfig is calls ba-elf-objdump.exe, and that's why of the previous error: i replaced with linux native version (loosing the .exe extension). Then, i created a symbolic link from ba-elf-objdump.exe and ba-elf-objdump. And next error appeared...
Windows pipes are not emulated by Wine
[todo: ZPSConfig cannot run ba-elf-objdump.exe and retrieve/process its output]
Hardware debugging
[todo: no jtag proxy server released for linux]
Conclusions
Anyway, it sems that ZPSConfig.exe (and others Jennic utilities) are all written using Python & WxPython, and then converted to exe using py2exe.
Why not releasing these utilities for linux, too, instead of making us crazy with that? Dont understand...
We all know that Jennic does not supports Linux but building a complete JN-5148 application on linux is only a few steps away...
Please ask Jennic support about that into the support forums or using online support tickets!
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=7ee0c0c5-2e38-4157-a053-c0e7a57856c8)
novembre 10th, 2009 - 00:46
Great news! Just in time for my modules to arrive. However, I wonder where you found the source because I can’t see it on Jennic’s site, nor in the thread where you posted this news. Can you please provide the source including any modifications you may have made to the build scripts?
novembre 10th, 2009 - 14:39
Jennic gave me after many requests. You may ask you, too.
I dont want to release them by myself. But i can point you in the right direction about the changes i done (little tweaks). I could provide you a diff between their packages and mine i built.
novembre 11th, 2009 - 01:18
Well, as I assumed you knew, you are required to release the source code. Otherwise you are violating the GNU GPL just as much as Jennic is.
novembre 11th, 2009 - 10:19
I think not. I didn’t modified anything on them. Only some patch on Jennic custom scripts used to configure and compile them all. They gave me everything already configured for a different linux host (and without file permissions). So i had to install pre-requisites on my Ubuntu, change configure parameters and other little things (but that made me crazy for some hour).
marzo 16th, 2010 - 11:53
Thanks for supplying the tools! Unforetunately, you used GLIBC_2.8 for building the compiler, which seems not be available for our Debian
Could you supply the source code of the toolchain, so that we can build it ourselves, or build the toolchain with static linking, so that it includes already all libs?