http://wiki.dd-wrt.com/wiki/index.php?title=Optware-ByHand&limit=20&action=history&feed=atom Optware-ByHand - Revision history 2024-03-28T09:39:07Z Revision history for this page on the wiki MediaWiki 1.10.1 http://wiki.dd-wrt.com/wiki/index.php?title=Optware-ByHand&diff=35925&oldid=prev Sittinduck: /* Preparing /jffs for /opt */ 2010-09-16T00:53:51Z <p><span class="autocomment">Preparing /jffs for /opt</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 00:53, 16 September 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 29:</strong></td> <td colspan="2" align="left"><strong>Line 29:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> ~ # /bin/ipkg -d root install ipkg-opt</td><td> </td><td style="background: #eee; font-size: smaller;"> ~ # /bin/ipkg -d root install ipkg-opt</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> </td><td> </td><td style="background: #eee; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">For some reason, uclibc-opt was installed, but it kept saying it was a dependent package. The following worked for me:</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # /bin/ipkg -force-depends install ipkg-opt</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk ...</td><td> </td><td style="background: #eee; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk ...</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80</td><td> </td><td style="background: #eee; font-size: smaller;"> Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80</td></tr> </table> Sittinduck http://wiki.dd-wrt.com/wiki/index.php?title=Optware-ByHand&diff=31719&oldid=prev Glenn: catspec Category:Optware 2010-04-30T15:26:52Z <p>catspec <a href="/wiki/index.php/Category:Optware" title="Category:Optware">Category:Optware</a></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 15:26, 30 April 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 103:</strong></td> <td colspan="2" align="left"><strong>Line 103:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Exporting IPKG_CONF_DIR is not neeeded any more.</td><td> </td><td style="background: #eee; font-size: smaller;">Exporting IPKG_CONF_DIR is not neeeded any more.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">[[Category:<del style="color: red; font-weight: bold; text-decoration: none;">Categories</del>]]</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:<ins style="color: red; font-weight: bold; text-decoration: none;">Optware</ins>]]</td></tr> </table> Glenn http://wiki.dd-wrt.com/wiki/index.php?title=Optware-ByHand&diff=31445&oldid=prev Glenn: +Category:Categories 2010-04-30T09:18:59Z <p>+<a href="/wiki/index.php/Category:Categories" title="Category:Categories">Category:Categories</a></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 09:18, 30 April 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 102:</strong></td> <td colspan="2" align="left"><strong>Line 102:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> # rm -rf /jffs/jffs /jffs/usr</td><td> </td><td style="background: #eee; font-size: smaller;"> # rm -rf /jffs/jffs /jffs/usr</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Exporting IPKG_CONF_DIR is not neeeded any more.</td><td> </td><td style="background: #eee; font-size: smaller;">Exporting IPKG_CONF_DIR is not neeeded any more.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:Categories]]</td></tr> </table> Glenn http://wiki.dd-wrt.com/wiki/index.php?title=Optware-ByHand&diff=31097&oldid=prev Phuzi0n: Undo revision 31072 by Vigar (Talk) 2010-04-19T09:35:28Z <p>Undo revision 31072 by <a href="/wiki/index.php/Special:Contributions/Vigar" title="Special:Contributions/Vigar">Vigar</a> (<a href="/wiki/index.php?title=User_talk:Vigar&amp;action=edit" class="new" title="User talk:Vigar">Talk</a>)</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 09:35, 19 April 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 23:</strong></td> <td colspan="2" align="left"><strong>Line 23:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">proper name server address like:</td><td> </td><td style="background: #eee; font-size: smaller;">proper name server address like:</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> search local.lan</td><td> </td><td style="background: #eee; font-size: smaller;"> search local.lan</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> nameserver 192.168.1.1<del style="color: red; font-weight: bold; text-decoration: none;">[http://hotturism.ru]</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"> nameserver 192.168.1.1</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> </table> Phuzi0n http://wiki.dd-wrt.com/wiki/index.php?title=Optware-ByHand&diff=31072&oldid=prev Vigar: /* Preparing /jffs for /opt */ 2010-04-18T12:57:01Z <p><span class="autocomment">Preparing /jffs for /opt</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 12:57, 18 April 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 23:</strong></td> <td colspan="2" align="left"><strong>Line 23:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">proper name server address like:</td><td> </td><td style="background: #eee; font-size: smaller;">proper name server address like:</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> search local.lan</td><td> </td><td style="background: #eee; font-size: smaller;"> search local.lan</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> nameserver 192.168.1.1</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nameserver 192.168.1.1<ins style="color: red; font-weight: bold; text-decoration: none;">[http://hotturism.ru]</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> </table> Vigar http://wiki.dd-wrt.com/wiki/index.php?title=Optware-ByHand&diff=25707&oldid=prev Markus: Undo revision 25504 by Ausimus1 (Talk) 2009-06-05T08:50:11Z <p>Undo revision 25504 by <a href="/wiki/index.php/Special:Contributions/Ausimus1" title="Special:Contributions/Ausimus1">Ausimus1</a> (<a href="/wiki/index.php?title=User_talk:Ausimus1&amp;action=edit" class="new" title="User talk:Ausimus1">Talk</a>)</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 08:50, 5 June 2009</td> </tr> <tr><td colspan="2" align="left"><strong>Line 1:</strong></td> <td colspan="2" align="left"><strong>Line 1:</strong></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">=== Preparing /jffs for /opt ===</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">First step is to prepare /opt mount point for Optware and create ipkg.conf file for packages download</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # mkdir /jffs/opt</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # mkdir /jffs/tmp</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # mkdir /jffs/tmp/ipkg</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # mount -o bind /jffs/opt /opt </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # mkdir /opt/etc</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # vi /opt/etc/ipkg.conf</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Edit and insert the following content</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> src optware http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> dest root /jffs</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Now we will point /bin/ipkg script to this config with setting environment variable</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # export IPKG_CONF_DIR=/opt/etc</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">This is enough to retrieve list of available packages with</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # ipkg update </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages ...</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80 </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Packages 100% |**********************************************| 259 KB 00:00:00 ETA</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Done.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Updated list of available packages in //jffs/usr/lib/ipkg/lists/optware</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">If nothing is reported after /bin/ipkg update then probably /etc/resolv.conf does not contain</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">proper name server address like:</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> search local.lan</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nameserver 192.168.1.1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Manual installing package ipkg-opt will automatically install also uclibc-opt package. </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # /bin/ipkg -d root install ipkg-opt</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk ...</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> uclibc-opt_0.9.28-12 100% |******************************************| 832 KB 00:00:00 ETA</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Done.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Unpacking uclibc-opt...Done.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Configuring uclibc-opt...Updating /opt/etc/ld.so.cache</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Done.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-opt_0.99.163-9_</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> mipsel.ipk ...</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ipkg-opt_0.99.163-9_ 100% |******************************************| 75896 00:00:00 ETA</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Done.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Unpacking ipkg-opt...Done.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Configuring ipkg-opt...Configuration file `/opt/etc/ipkg.conf'</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ==&gt; File on system created by you or by a script.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ==&gt; File also in package provided by package maintainer.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> What would you like to do about it ? Your options are:</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Y or I : install the package maintainer's version</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> N or O : keep your currently-installed version</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> D : show the differences between the versions (if diff is installed)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> The default action is to keep your current version.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> *** ipkg.conf (Y/I/N/O/D) [default=N] ? y</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Done.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Note that we answered 'y' to install maintainer /opt/etc/ipkg.conf with the following contents:</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> #Uncomment the following line for native packages feed (if any)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> #src/gz native http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/native/stable</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> src/gz optware http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> dest /opt/ /</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">If anything goes wrong when installing ipkg-opt then I recommend erasing /jffs/jffs and /jffs/usr directories</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">with</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> rm -rf /jffs/jffs</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> rm -rf /jffs/usr</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">and repeat /bin/ipkg update and /bin/ipkg install ipkg-opt</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Installing ipkg-opt package will maintain all packages installed in /opt directory along with its /opt/lib/ipkg</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">directory where /opt/bin/ipkg maintains its status files. There is also /opt/bin/ipkg-opt to save us from confusion. To update list of available packages issue</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # /opt/bin/ipkg-opt update</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Updated list of available packages in /opt/lib/ipkg/lists/optware</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Successfully terminated.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">List of available packages is provided with</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # /opt/bin/ipkg-opt list</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">List of installed packages </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # /opt/bin/ipkg-opt list_installed</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Successfully terminated.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">will not show ipkg-opt and uclibc-opt as status file is now located in /opt/lib/ipkg/status and not /jffs/jffs/usr/lib/ipkg/status . To correct this issue we will reinstall the package itself with </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # /opt/bin/ipkg-opt install ipkg-opt</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Installing ipkg-opt (0.99.163-9) to /opt/...</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> package uclibc-opt suggests installing ipkg-opt</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Installing uclibc-opt (0.9.28-12) to /opt/...</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Configuring ipkg-opt</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Configuring uclibc-opt</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Updating /opt/etc/ld.so.cache</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Successfully terminated.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">With clean Optware install two packages should be listed</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # /opt/bin/ipkg list_installed</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ipkg-opt - 0.99.163-9 - The Itsy Package Manager</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> uclibc-opt - 0.9.28-12 - micro C library for embedded Linux systems</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Successfully terminated.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">From now on no files outside /opt tree will be required for maintaining Optware packages. I even recommend erasing</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">spurious files with</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> # rm -rf /jffs/jffs /jffs/usr</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Exporting IPKG_CONF_DIR is not neeeded any more.</td></tr> </table> Markus http://wiki.dd-wrt.com/wiki/index.php?title=Optware-ByHand&diff=25504&oldid=prev Ausimus1: Removing all content from page 2009-06-05T07:00:59Z <p>Removing all content from page</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 07:00, 5 June 2009</td> </tr> <tr><td colspan="2" align="left"><strong>Line 1:</strong></td> <td colspan="2" align="left"><strong>Line 1:</strong></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">=== Preparing /jffs for /opt ===</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">First step is to prepare /opt mount point for Optware and create ipkg.conf file for packages download</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # mkdir /jffs/opt</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # mkdir /jffs/tmp</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # mkdir /jffs/tmp/ipkg</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # mount -o bind /jffs/opt /opt </td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # mkdir /opt/etc</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # vi /opt/etc/ipkg.conf</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Edit and insert the following content</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> src optware http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> dest root /jffs</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Now we will point /bin/ipkg script to this config with setting environment variable</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # export IPKG_CONF_DIR=/opt/etc</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">This is enough to retrieve list of available packages with</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # ipkg update </td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages ...</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80 </td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Packages 100% |**********************************************| 259 KB 00:00:00 ETA</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Done.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Updated list of available packages in //jffs/usr/lib/ipkg/lists/optware</td><td colspan="2">&nbsp;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">If nothing is reported after /bin/ipkg update then probably /etc/resolv.conf does not contain</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">proper name server address like:</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> search local.lan</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> nameserver 192.168.1.1</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Manual installing package ipkg-opt will automatically install also uclibc-opt package. </td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # /bin/ipkg -d root install ipkg-opt</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> </td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk ...</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> uclibc-opt_0.9.28-12 100% |******************************************| 832 KB 00:00:00 ETA</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Done.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Unpacking uclibc-opt...Done.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Configuring uclibc-opt...Updating /opt/etc/ld.so.cache</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Done.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> </td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-opt_0.99.163-9_</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> mipsel.ipk ...</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ipkg-opt_0.99.163-9_ 100% |******************************************| 75896 00:00:00 ETA</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Done.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Unpacking ipkg-opt...Done.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Configuring ipkg-opt...Configuration file `/opt/etc/ipkg.conf'</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ==&gt; File on system created by you or by a script.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ==&gt; File also in package provided by package maintainer.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> What would you like to do about it ? Your options are:</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Y or I : install the package maintainer's version</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> N or O : keep your currently-installed version</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> D : show the differences between the versions (if diff is installed)</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> The default action is to keep your current version.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> *** ipkg.conf (Y/I/N/O/D) [default=N] ? y</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Done.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Note that we answered 'y' to install maintainer /opt/etc/ipkg.conf with the following contents:</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> #Uncomment the following line for native packages feed (if any)</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> #src/gz native http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/native/stable</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> src/gz optware http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> dest /opt/ /</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">If anything goes wrong when installing ipkg-opt then I recommend erasing /jffs/jffs and /jffs/usr directories</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">with</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> rm -rf /jffs/jffs</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> rm -rf /jffs/usr</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">and repeat /bin/ipkg update and /bin/ipkg install ipkg-opt</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Installing ipkg-opt package will maintain all packages installed in /opt directory along with its /opt/lib/ipkg</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">directory where /opt/bin/ipkg maintains its status files. There is also /opt/bin/ipkg-opt to save us from confusion. To update list of available packages issue</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # /opt/bin/ipkg-opt update</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Updated list of available packages in /opt/lib/ipkg/lists/optware</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Successfully terminated.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">List of available packages is provided with</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # /opt/bin/ipkg-opt list</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">List of installed packages </td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # /opt/bin/ipkg-opt list_installed</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Successfully terminated.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">will not show ipkg-opt and uclibc-opt as status file is now located in /opt/lib/ipkg/status and not /jffs/jffs/usr/lib/ipkg/status . To correct this issue we will reinstall the package itself with </td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # /opt/bin/ipkg-opt install ipkg-opt</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Installing ipkg-opt (0.99.163-9) to /opt/...</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> package uclibc-opt suggests installing ipkg-opt</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Installing uclibc-opt (0.9.28-12) to /opt/...</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Configuring ipkg-opt</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Configuring uclibc-opt</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Updating /opt/etc/ld.so.cache</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Successfully terminated.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">With clean Optware install two packages should be listed</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # /opt/bin/ipkg list_installed</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ipkg-opt - 0.99.163-9 - The Itsy Package Manager</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> uclibc-opt - 0.9.28-12 - micro C library for embedded Linux systems</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> Successfully terminated.</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">From now on no files outside /opt tree will be required for maintaining Optware packages. I even recommend erasing</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">spurious files with</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> # rm -rf /jffs/jffs /jffs/usr</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Exporting IPKG_CONF_DIR is not neeeded any more.</td><td colspan="2">&nbsp;</td></tr> </table> Ausimus1 http://wiki.dd-wrt.com/wiki/index.php?title=Optware-ByHand&diff=24509&oldid=prev Pppppppp: /* Preparing /jffs for /opt */ /bin/ipkg install ipkg-opt -> /bin/ipkg -d root install ipkg-opt 2009-02-19T14:00:27Z <p><span class="autocomment">Preparing /jffs for /opt -</span> /bin/ipkg install ipkg-opt -&gt; /bin/ipkg -d root install ipkg-opt</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:00, 19 February 2009</td> </tr> <tr><td colspan="2" align="left"><strong>Line 27:</strong></td> <td colspan="2" align="left"><strong>Line 27:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Manual installing package ipkg-opt will automatically install also uclibc-opt package. </td><td> </td><td style="background: #eee; font-size: smaller;">Manual installing package ipkg-opt will automatically install also uclibc-opt package. </td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ~ # /bin/ipkg install ipkg-opt</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # /bin/ipkg <ins style="color: red; font-weight: bold; text-decoration: none;">-d root </ins>install ipkg-opt</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> </td><td> </td><td style="background: #eee; font-size: smaller;"> </td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk ...</td><td> </td><td style="background: #eee; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk ...</td></tr> </table> Pppppppp http://wiki.dd-wrt.com/wiki/index.php?title=Optware-ByHand&diff=15499&oldid=prev Oleo: move here deprecated info 2007-01-25T15:25:53Z <p>move here deprecated info</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 15:25, 25 January 2007</td> </tr> <tr><td colspan="2" align="left"><strong>Line 1:</strong></td> <td colspan="2" align="left"><strong>Line 1:</strong></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">=== Preparing /jffs for /opt ===</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">First step is to prepare /opt mount point for Optware and create ipkg.conf file for packages download</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # mkdir /jffs/opt</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # mkdir /jffs/tmp</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # mkdir /jffs/tmp/ipkg</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # mount -o bind /jffs/opt /opt </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # mkdir /opt/etc</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # vi /opt/etc/ipkg.conf</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Edit and insert the following content</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> src optware http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> dest root /jffs</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Now we will point /bin/ipkg script to this config with setting environment variable</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # export IPKG_CONF_DIR=/opt/etc</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">This is enough to retrieve list of available packages with</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ~ # ipkg update </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages ...</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80 </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Packages 100% |**********************************************| 259 KB 00:00:00 ETA</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Done.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Updated list of available packages in //jffs/usr/lib/ipkg/lists/optware</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">If nothing is reported after /bin/ipkg update then probably /etc/resolv.conf does not contain</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">proper name server address like:</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> search local.lan</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nameserver 192.168.1.1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Manual installing package ipkg-opt will automatically install also uclibc-opt package. </td><td> </td><td style="background: #eee; font-size: smaller;">Manual installing package ipkg-opt will automatically install also uclibc-opt package. </td></tr> </table> Oleo http://wiki.dd-wrt.com/wiki/index.php?title=Optware-ByHand&diff=9948&oldid=prev Oleo: moved as deprecated 2007-01-25T15:24:09Z <p>moved as deprecated</p> <p><b>New page</b></p><div><br /> Manual installing package ipkg-opt will automatically install also uclibc-opt package. <br /> ~ # /bin/ipkg install ipkg-opt<br /> <br /> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk ...<br /> Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80<br /> uclibc-opt_0.9.28-12 100% |******************************************| 832 KB 00:00:00 ETA<br /> Done.<br /> Unpacking uclibc-opt...Done.<br /> Configuring uclibc-opt...Updating /opt/etc/ld.so.cache<br /> Done.<br /> <br /> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-opt_0.99.163-9_<br /> mipsel.ipk ...<br /> Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80<br /> ipkg-opt_0.99.163-9_ 100% |******************************************| 75896 00:00:00 ETA<br /> Done.<br /> Unpacking ipkg-opt...Done.<br /> Configuring ipkg-opt...Configuration file `/opt/etc/ipkg.conf'<br /> ==&gt; File on system created by you or by a script.<br /> ==&gt; File also in package provided by package maintainer.<br /> What would you like to do about it ? Your options are:<br /> Y or I : install the package maintainer's version<br /> N or O : keep your currently-installed version<br /> D : show the differences between the versions (if diff is installed)<br /> The default action is to keep your current version.<br /> *** ipkg.conf (Y/I/N/O/D) [default=N] ? y<br /> Done.<br /> <br /> Note that we answered 'y' to install maintainer /opt/etc/ipkg.conf with the following contents:<br /> #Uncomment the following line for native packages feed (if any)<br /> #src/gz native http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/native/stable<br /> src/gz optware http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable<br /> dest /opt/ /<br /> <br /> If anything goes wrong when installing ipkg-opt then I recommend erasing /jffs/jffs and /jffs/usr directories<br /> with<br /> rm -rf /jffs/jffs<br /> rm -rf /jffs/usr<br /> and repeat /bin/ipkg update and /bin/ipkg install ipkg-opt<br /> <br /> Installing ipkg-opt package will maintain all packages installed in /opt directory along with its /opt/lib/ipkg<br /> directory where /opt/bin/ipkg maintains its status files. There is also /opt/bin/ipkg-opt to save us from confusion. To update list of available packages issue<br /> ~ # /opt/bin/ipkg-opt update<br /> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz<br /> Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz<br /> Updated list of available packages in /opt/lib/ipkg/lists/optware<br /> Successfully terminated.<br /> <br /> List of available packages is provided with<br /> ~ # /opt/bin/ipkg-opt list<br /> <br /> List of installed packages <br /> ~ # /opt/bin/ipkg-opt list_installed<br /> Successfully terminated.<br /> will not show ipkg-opt and uclibc-opt as status file is now located in /opt/lib/ipkg/status and not /jffs/jffs/usr/lib/ipkg/status . To correct this issue we will reinstall the package itself with <br /> ~ # /opt/bin/ipkg-opt install ipkg-opt<br /> Installing ipkg-opt (0.99.163-9) to /opt/...<br /> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk<br /> package uclibc-opt suggests installing ipkg-opt<br /> Installing uclibc-opt (0.9.28-12) to /opt/...<br /> Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk<br /> Configuring ipkg-opt<br /> Configuring uclibc-opt<br /> Updating /opt/etc/ld.so.cache<br /> Successfully terminated.<br /> <br /> With clean Optware install two packages should be listed<br /> ~ # /opt/bin/ipkg list_installed<br /> ipkg-opt - 0.99.163-9 - The Itsy Package Manager<br /> uclibc-opt - 0.9.28-12 - micro C library for embedded Linux systems<br /> Successfully terminated.<br /> <br /> From now on no files outside /opt tree will be required for maintaining Optware packages. I even recommend erasing<br /> spurious files with<br /> # rm -rf /jffs/jffs /jffs/usr<br /> Exporting IPKG_CONF_DIR is not neeeded any more.</div> Oleo