Navigation


Changeset 701:8af6b79cf7d7 in freeDiameter


Ignore:
Timestamp:
Jan 24, 2011, 3:11:24 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Updated OpenWRT howto, added workaround for #26

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/OpenWRT/HOWTO

    r700 r701  
    1010behave correctly on this platform.
    1111
    12 Therefore, the OpenWRT port is NOT usable at this moment.
     12Therefore, the OpenWRT port is NOT usable properly at this moment with uClibc.
    1313
    1414A test software is included in test_required for checking if new uClibc distributions
    1515support the required features. You'll have to adapt the Makefile according to your environment.
     16
     17An alternative choice if your hardware allows it is to use glibc in your openwrt image.
    1618
    1719#####################
     
    6668   wpad (*)
    6769   wpad-mini ( )
    68 
    69 4) Build the image and packages, this takes a while
     70   
     71
     724) Set the C library to glibc instead of uClibc (broken support, see #26)
     73
     74- Advanced configuration options (for developers) --->
     75  - Toolchain Options ---->
     76    C Library implementation (Use glibc)
     77
     78
     795) Build the image and packages, this takes a while
    7080$ make world
    7181
    72 5) Export the bin/* directory through a webserver.
     826) Export the bin/* directory through a webserver.
    7383   We assume it is available at http://192.168.1.25/owrt
    7484   
    75 6) Flash the router with your new image -- THIS DESTROYS ALL CONFIG ON THE ROUTER!
     857) Flash the router with your new image -- THIS DESTROYS ALL CONFIG ON THE ROUTER!
    7686$ ssh root@192.168.1.1
    7787# cd /tmp
     
    8595# exit
    8696
    87 7) Update the opkg router's config to get your new packages
     978) Update the opkg router's config to get your new packages
    8898ssh root@192.168.1.1
    8999# echo "src/gz localrepo http://192.168.1.25/owrt/packages" >> /etc/opkg.conf
    90100# opkg update
    91101
    92 8) Install freeDiameter, you're done. Optionnaly, install also certtool on the router before, to
     1029) Install freeDiameter, you're done. Optionnaly, install also certtool on the router before, to
    93103   generate the TLS certificate automatically.
    94104# opkg install freeDiameter
     
    140150to go with a 2.6x kernel, whenever possible.
    141151   
    142 e) Once configured, create the toolchain and default image (this takes a while):
    143 $ make
     152e) As per freeDiameter ticket #26, you also need to change the library to glibc instead of uClibc.
     153Change the option as follow:
     154
     155- Advanced configuration options (for developers) --->
     156  - Toolchain Options ---->
     157    C Library implementation (Use glibc)
     158
     159f) Once configured, create the toolchain and default image (this takes a while):
     160$ make world
    144161
    145162After this command completes successfully, your build environment is ready.
     
    166183
    167184We will now describe how to install these dependencies. At the time this HOWTO is written,
    168 the OpenWRT repositories contain ipv6, gnutls, pthreads and hostapd. Follow these instruction to
    169 build them.
     185the OpenWRT repositories contains packages for sctp, ipv6, gnutls, pthreads and hostapd.
     186Follow these instructions to build them.
    170187
    171188Alternatively, you can find these packages pre-compiled in the OpenWRT packages repository.
    172189
    173 a) GNU TLS packages
     190a) Add the packages
    174191$ scripts/feeds install libgnutls
     192$ scripts/feeds install sctp
    175193
    176194b) Select the following components in the menu:
     
    180198   
    181199- Network --->
     200   sctp (M)
    182201   hostapd (M)
    183202   wpad-mini ( )
     
    197216Since we are removing the wpad-mini daemon from the base image, this image (trx or bin file) is also recompiled.
    198217
    199 Note that if you are setting your device as WPA supplicant also (wireless client), you can select wpad instead of hostapd.
     218Note that if you are setting your device as WPA supplicant also (wireless client), you must select wpad instead of hostapd.
    200219(in any case, the -mini version is not suitable since we will use the RADIUS authentication).
    201220
     
    218237
    219238Install the newly compiled packages with:
    220  root@OpenWrt:~# opkg install kmod-ipv6 hostapd libpthread
     239 root@OpenWrt:~# opkg install kmod-ipv6 hostapd libpthread sctp
    221240
    222241==============================================
     
    274293- Network --->
    275294   freeDiameter (M)
     295   freeDiameter-test (M)
    276296   
    277297Quit and save the new config, then:
Note: See TracChangeset for help on using the changeset viewer.