Differences

This shows you the differences between two versions of the page.

doc:howto:obtain.firmware.sdk [2012/12/18 18:10]
uvray313
doc:howto:obtain.firmware.sdk [2014/07/08 06:19] (current)
theoradicus dont link to a RC5 SDK
Line 8: Line 8:
===== Obtain SDK ===== ===== Obtain SDK =====
 +You can either download an already compiled SDK, or compile it yourself by using the "make menuconfig" command.
 +
==== Download ==== ==== Download ====
You should find bz2-archives ready for download in the corresponding download directory: You should find bz2-archives ready for download in the corresponding download directory:
-  * e.g. [[http://downloads.openwrt.org/backfire/10.03.1-rc5/ar71xx/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1.tar.bz2|OpenWrt 'Backfire' 10.03.1-RC5 • ar71xx]]+ 
 +  * trunk SDK [[http://downloads.openwrt.org/snapshots/trunk/ar71xx/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2|OpenWrt trunk x86-64 • ar71xx]] 
 +  * stable SDK [[http://downloads.openwrt.org/attitude_adjustment/12.09/brcm47xx/generic/OpenWrt-SDK-brcm47xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2| OpenWrt 'Attitude Adjustment i686 • brcm47xx]] 
 +  * Legacy SDKs e.g. [[http://downloads.openwrt.org/backfire/10.03.1/ar71xx/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3%2bcs_uClibc-0.9.30.1.tar.bz2|OpenWrt 'Backfire' 10.03.1 • ar71xx]] 
==== Create one ==== ==== Create one ====
Line 51: Line 57:
  * ''make package///example///clean'' - clean the sourcecode   * ''make package///example///clean'' - clean the sourcecode
  * ''make package/index'' - build a repository index to make the output directory usable as local //opkg// source   * ''make package/index'' - build a repository index to make the output directory usable as local //opkg// source
 +
 +Some packages are built on host:
 +
 +| ''$ make package///example///host/{clean,compile} V=99'' |
The common command to recompile a package //example// and enable verbose output is: The common command to recompile a package //example// and enable verbose output is:
Line 57: Line 67:
After the compilation is finished, the generated .ipk files are placed in the bin directory. After the compilation is finished, the generated .ipk files are placed in the bin directory.
 +
 +The output of make might contain ''WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!''. That warning is misleading and wrong in the SDK case. Since everything is precompiled you cannot run oldconfig (see [[https://forum.openwrt.org/viewtopic.php?id=43055|Why is the SDK configuration out of sync?]]).
==== Example: existing package ==== ==== Example: existing package ====
Line 67: Line 79:
$ grep DEPENDS package/nano/Makefile $ grep DEPENDS package/nano/Makefile
  DEPENDS:=+libncurses   DEPENDS:=+libncurses
-$ svn export svn://svn.openwrt.org/openwrt/trunk/package/ncurses package/ncurses+$ svn export svn://svn.openwrt.org/openwrt/trunk/package/libs/ncurses package/ncurses
A    package/ncurses A    package/ncurses
A    package/ncurses/patches A    package/ncurses/patches
Line 91: Line 103:
==== Build your own packages ==== ==== Build your own packages ====
See [[doc/devel/packages|Creating packages]] See [[doc/devel/packages|Creating packages]]
 +
 +==== Problems ====
 +Compiler not found, due to ccache problem.
 +https://dev.openwrt.org/ticket/13949
 +
===== from Oldwiki ===== ===== from Oldwiki =====
Line 112: Line 129:
Let's start with porting and packaging the well known "Hello world" program as an example. Let's start with porting and packaging the well known "Hello world" program as an example.
 +
 +You can download an existing example here: https://forum.openwrt.org/viewtopic.php?pid=198460. Another useful resource is http://fleshandmachines.wordpress.com/2011/08/22/openwrt-cc-programing/.
===== Obtaining and installing the SDK ===== ===== Obtaining and installing the SDK =====
Line 443: Line 462:
===== Compile the package ===== ===== Compile the package =====
-The <code>make</code> +The make command below compiles every package that you have created in the package directory.
- command below compiles every package that you have created in the <code>package</code> +
- directory.+
<code> <code>

Back to top

doc/howto/obtain.firmware.sdk.1355850631.txt.bz2 · Last modified: 2012/12/18 18:10 by uvray313