<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Compiling_with_Optware</title><link>https://sourceforge.net/p/linknx/wiki/Compiling_with_Optware/</link><description>Recent changes to Compiling_with_Optware</description><atom:link href="https://sourceforge.net/p/linknx/wiki/Compiling_with_Optware/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 20 Jun 2014 06:26:41 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/linknx/wiki/Compiling_with_Optware/feed" rel="self" type="application/rss+xml"/><item><title>Compiling_with_Optware modified by jef2000</title><link>https://sourceforge.net/p/linknx/wiki/Compiling_with_Optware/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -20,9 +20,9 @@
 Note: For some platforms like FSG3v4, the "make toolchain" command doesn't do all the job. You'll have to download and install the toolchain manually using the information in the platform makefile (for fsg3v4: platforms/toolchain-fsg3v4.mk )

 Now we'll have to create a makefile for each new package to build explaining how to build it. These makefiles are named &amp;lt;package_name&amp;gt;.mk and placed in the "optware/make" directory.  
-The makefiles I use can be found in http://ouaye.net/linknx/optware-DS101/build/ 

-To create the linknx package makefile from scratch, go to optware directory and execute 
+
+The makefiles I use can be found in http://ouaye.net/linknx/optware-makefiles/ But if you want to create the linknx package makefile from scratch, go to optware directory and execute 

     make make/linknx.mk

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jef2000</dc:creator><pubDate>Fri, 20 Jun 2014 06:26:41 -0000</pubDate><guid>https://sourceforge.net240b7fe8eb135d02e51f5da837e61da4b111b987</guid></item><item><title>Compiling_with_Optware modified by jef2000</title><link>https://sourceforge.net/p/linknx/wiki/Compiling_with_Optware/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;For basic information on how to compile Linknx, please refer to &lt;a class="alink" href="/p/linknx/wiki/Compiling_Linknx/"&gt;[Compiling_Linknx]&lt;/a&gt;&lt;br /&gt;
Here I'll briefly introduce the method to cross-compile Linknx for Optware. &lt;/p&gt;
&lt;p&gt;The OptWare package system was originally created to accompany the Unslung firmware for the NSLU2 (originally the packages were also called Unslung packages). It has since been expanded to cover a variety of other platforms, including Linksys NSLU2, Synology DS101, Freecom FSG3, ... More info on &lt;a href="http://www.nslu2-linux.org/wiki/Optware/" rel="nofollow"&gt;http://www.nslu2-linux.org/wiki/Optware/&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;In this example, I'll explain how to create the linknx package for Synology DS101 platform.&lt;br /&gt;
First get a copy of optware &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;svn&lt;/span&gt; &lt;span class="n"&gt;co&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//svn.nslu2-linux.org/svnroot/optware/trunk optware&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="n"&gt;optware&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Then prepare the toolchain for DS101 &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;ds101&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;
&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="n"&gt;ds101&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;directories&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;ipkg&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;utils&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;toolchain&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Note: For some platforms like FSG3v4, the "make toolchain" command doesn't do all the job. You'll have to download and install the toolchain manually using the information in the platform makefile (for fsg3v4: platforms/toolchain-fsg3v4.mk ) &lt;/p&gt;
&lt;p&gt;Now we'll have to create a makefile for each new package to build explaining how to build it. These makefiles are named &amp;lt;package_name&amp;gt;.mk and placed in the "optware/make" directory.&lt;br /&gt;
The makefiles I use can be found in &lt;a href="http://ouaye.net/linknx/optware-DS101/build/" rel="nofollow"&gt;http://ouaye.net/linknx/optware-DS101/build/&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;To create the linknx package makefile from scratch, go to optware directory and execute &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;make&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;linknx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mk&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;It will create a template linknx.mk file in optware/make that you can customize to your needs&lt;br /&gt;
More details at &lt;a href="http://www.nslu2-linux.org/wiki/Optware/AddAPackageToOptware" rel="nofollow"&gt;http://www.nslu2-linux.org/wiki/Optware/AddAPackageToOptware&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Once you have the makefiles, go to optware/ds101 directory and build the packages like this: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;pthsem&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;ipk&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;eibd&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;ipk&lt;/span&gt;
&lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;linknx&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;ipk&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;After a successfull build, the ".ipk" files are located in optware/ds101/builds &lt;/p&gt;
&lt;p&gt;For the QNAP TS109 hardware, the optware toolchain causes a segmentation fault (for linknx and eibd) during initialization of libpth. For these platforms, it's possible to install debian instead of the original firmware and compile eibd and linknx directly on the device.&lt;br /&gt;
Here's the &lt;a class="" href="../Compile_and_install_linknx_on_QNAP"&gt;list of commands I used to do it&lt;/a&gt;. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jef2000</dc:creator><pubDate>Fri, 20 Jun 2014 06:26:41 -0000</pubDate><guid>https://sourceforge.net71c1f8e353ca1a3afae6d50c25c262263c74958b</guid></item></channel></rss>