| | 1 | {{{#!html |
| | 2 | <div id="wikipage" class="trac-content"><p> |
| | 3 | </p><div class="wiki-toc"> |
| | 4 | <ol> |
| | 5 | <li> |
| | 6 | <a href="#GeneratingCompilingIPK">Generating / Compiling IPK</a> |
| | 7 | </li> |
| | 8 | <li> |
| | 9 | <a href="#InstallIPKFile">Install IPK File</a> |
| | 10 | <ol> |
| | 11 | <li> |
| | 12 | <ol> |
| | 13 | <li> |
| | 14 | <a href="#ViaWebgui">Via Webgui</a> |
| | 15 | </li> |
| | 16 | <li> |
| | 17 | <a href="#Viacommandline">Via command line</a> |
| | 18 | </li> |
| | 19 | </ol> |
| | 20 | </li> |
| | 21 | </ol> |
| | 22 | </li> |
| | 23 | <li> |
| | 24 | <a href="#OtherNotes">Other Notes</a> |
| | 25 | </li> |
| | 26 | </ol> |
| | 27 | </div><p> |
| | 28 | </p> |
| | 29 | <h1 id="GeneratingCompilingIPK">Generating / Compiling IPK</h1> |
| | 30 | <p> |
| | 31 | To add additional features, one can generate a package file that can then be added to an already running openwrt system. |
| | 32 | </p> |
| | 33 | <p> |
| | 34 | There are two ways to do this: |
| | 35 | </p> |
| | 36 | <ol><li>Compile IPK file manually |
| | 37 | </li><li>Turn on functions in make menuconfig and have them built automatically. (See this link <a class="wiki" href="/wiki/OpenWrt/Configuration">here</a>) |
| | 38 | </li></ol><p> |
| | 39 | Option 1 is listed below: |
| | 40 | </p> |
| | 41 | <p> |
| | 42 | To generate IPK Files, an example is listed here: |
| | 43 | </p> |
| | 44 | <ol><li>Checkout the gateworks source code as explained on the wiki <a class="wiki" href="/wiki/OpenWrt/building">OpenWrt/building</a>. Build the software. |
| | 45 | </li><li>cd into the trunk directory. |
| | 46 | </li><li>Type the following command, adjusting it depending on the needed package: |
| | 47 | </li></ol><pre class="wiki">make package/feeds/packages/lighttpd/install -j8 V=99 && make package/index |
| | 48 | </pre><p> |
| | 49 | Example output below: |
| | 50 | </p> |
| | 51 | <pre class="wiki">rerbstoesser@softdev:/usr/src/rerbstoesser/builds/gateworks-openwrt-12-10/trunk$ make package/feeds/packages/lighttpd/install -j8 V=99 && make package/index |
| | 52 | make[1] package/feeds/packages/lighttpd/compile |
| | 53 | make[2] -C package/e2fsprogs compile |
| | 54 | make[2] -C feeds/packages/libs/gettext compile |
| | 55 | make[2] -C feeds/packages/libs/libiconv compile |
| | 56 | make[2] -C package/libtool compile |
| | 57 | make[2] -C package/zlib compile |
| | 58 | make[2] -C feeds/packages/libs/libxml2 compile |
| | 59 | make[2] -C feeds/packages/libs/pcre compile |
| | 60 | make[2] -C package/libreadline compile |
| | 61 | make[2] -C package/ncurses compile |
| | 62 | make[2] -C package/ncurses compile |
| | 63 | make[2] -C feeds/packages/libs/sqlite3 compile |
| | 64 | make[2] -C package/ocf-crypto-headers compile |
| | 65 | make[2] -C package/openssl compile |
| | 66 | make[2] -C feeds/packages/net/lighttpd compile |
| | 67 | |
| | 68 | </pre><ol start="4"><li>Find the ipk file located at a location such as: |
| | 69 | </li></ol><pre class="wiki">rerbstoesser@softdev:/usr/src/rerbstoesser/builds/gateworks-openwrt-12-10/trunk$ ls bin/cns3xxx/packages/lighttpd_1.4.28-1_cns3xxx.ipk |
| | 70 | |
| | 71 | </pre><h1 id="InstallIPKFile">Install IPK File</h1> |
| | 72 | <h3 id="ViaWebgui">Via Webgui</h3> |
| | 73 | <p> |
| | 74 | Once the ipk file is acquired: |
| | 75 | </p> |
| | 76 | <ol><li>Place it on an accessible location on the same network as the Gateworks board |
| | 77 | </li><li>Simply upload it via the OpenWRT webgui as pictured below (typically found at 192.168.1.1): |
| | 78 | </li></ol><p> |
| | 79 | <a style="padding:0; border:none" href="/attachment/wiki/ipkupload/uploadipk.png"><img width="800px" src="/raw-attachment/wiki/ipkupload/uploadipk.png" /></a> |
| | 80 | </p> |
| | 81 | <h3 id="Viacommandline">Via command line</h3> |
| | 82 | <ol><li>Transfer ipk file to Gateworks board via utility such as wget |
| | 83 | </li><li>Run command: |
| | 84 | <pre class="wiki">opkg install example.ipk |
| | 85 | </pre></li></ol><p> |
| | 86 | where example.ipk is the ipk to be installed. |
| | 87 | </p> |
| | 88 | <h1 id="OtherNotes">Other Notes</h1> |
| | 89 | <p> |
| | 90 | Please also reference the OpenWRT link: <a class="ext-link" href="http://wiki.openwrt.org/doc/howtobuild/single.package"><span class="icon"></span>http://wiki.openwrt.org/doc/howtobuild/single.package</a> |
| | 91 | </p> |
| | 92 | }}} |