Version 1 (modified by 7 years ago) ( diff ) | ,
---|
Generating / Compiling IPK
To add additional features, one can generate a package file that can then be added to an already running openwrt system.
There are two ways to do this:
- Compile IPK file manually
- Turn on functions in make menuconfig and have them built automatically. (See this link here)
Option 1 is listed below:
To generate IPK Files, an example is listed here:
- Checkout the gateworks source code as explained on the wiki OpenWrt/building. Build the software.
- cd into the trunk directory.
- Type the following command, adjusting it depending on the needed package:
make package/feeds/packages/lighttpd/install -j8 V=99 && make package/index
Example output below:
rerbstoesser@softdev:/usr/src/rerbstoesser/builds/gateworks-openwrt-12-10/trunk$ make package/feeds/packages/lighttpd/install -j8 V=99 && make package/index make[1] package/feeds/packages/lighttpd/compile make[2] -C package/e2fsprogs compile make[2] -C feeds/packages/libs/gettext compile make[2] -C feeds/packages/libs/libiconv compile make[2] -C package/libtool compile make[2] -C package/zlib compile make[2] -C feeds/packages/libs/libxml2 compile make[2] -C feeds/packages/libs/pcre compile make[2] -C package/libreadline compile make[2] -C package/ncurses compile make[2] -C package/ncurses compile make[2] -C feeds/packages/libs/sqlite3 compile make[2] -C package/ocf-crypto-headers compile make[2] -C package/openssl compile make[2] -C feeds/packages/net/lighttpd compile
- Find the ipk file located at a location such as:
rerbstoesser@softdev:/usr/src/rerbstoesser/builds/gateworks-openwrt-12-10/trunk$ ls bin/cns3xxx/packages/lighttpd_1.4.28-1_cns3xxx.ipk
Install IPK File
Via Webgui
Once the ipk file is acquired:
- Place it on an accessible location on the same network as the Gateworks board
- Simply upload it via the OpenWRT webgui as pictured below (typically found at 192.168.1.1):
Via command line
- Transfer ipk file to Gateworks board via utility such as wget
- Run command:
opkg install example.ipk
where example.ipk is the ipk to be installed.
Other Notes
Please also reference the OpenWRT link: http://wiki.openwrt.org/doc/howtobuild/single.package
Attachments (1)
- uploadipk.png (48.6 KB ) - added by 7 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.