Hi,

> I want to compile a C program for fonera2n. The source of this program is in
> the version of openwrt 12.09. 

Unfortunately there is no extensive documentation on compiling custom
packages or programs. However, I'll try to give you some useful info.

 - As a first step, you should build the complete firmware. In addition
   to building the firmware, this also compiles the toolchain (compilers
   and libraries) in exactly the right version. See
   http://trac.fonosfera.org/fon-ng/wiki/build for instructions (and
   don't forget to select the 2.0n target, the default is 2.0g).
 - Then, you could try copying the package directory (that's a directory
   in the package/ directory inside openwrt repository or the OpenWRT
   packages repository. It should contain at least a "Makefile") into
   the "fon/" directory in your fonosfera checkout.
 - After that, in the "openwrt/" directory of your fonosfera checkout,
   run "./script/feeds install -p fon name_of_your_package" (or
   "./script/feeds install -a" should also work, since all other
   packages in the "fon" feed are already installed).
 - Then, enable your package in "make menuconfig" and build a new
   firmware which should now either include the package already, or (if
   you selected "M" in menuconfig), the ipk is available in
   "openwrt/bin/packages".
 - To install the ipk, you copy it to your fonera and use "opkg
   -force-depends install package.ipk". The force-depends is needed
   because the Fonera base firmware doesn't know about the packages that
   are already present (things like libc, luci, etc.). This does mean
   that you might need to install extra packages manually.

I hope this gets you going. If you have further questions, don't
hesitate to ask.

Regards,

Matthijs Kooijman

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Development mailing list
[email protected]
http://fonosfera.org/mailman/listinfo/development

Reply via email to