Changeset 701:8af6b79cf7d7 in freeDiameter
- Timestamp:
- Jan 24, 2011, 3:11:24 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/OpenWRT/HOWTO
r700 r701 10 10 behave correctly on this platform. 11 11 12 Therefore, the OpenWRT port is NOT usable at this moment.12 Therefore, the OpenWRT port is NOT usable properly at this moment with uClibc. 13 13 14 14 A test software is included in test_required for checking if new uClibc distributions 15 15 support the required features. You'll have to adapt the Makefile according to your environment. 16 17 An alternative choice if your hardware allows it is to use glibc in your openwrt image. 16 18 17 19 ##################### … … 66 68 wpad (*) 67 69 wpad-mini ( ) 68 69 4) Build the image and packages, this takes a while 70 71 72 4) 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 79 5) Build the image and packages, this takes a while 70 80 $ make world 71 81 72 5) Export the bin/* directory through a webserver.82 6) Export the bin/* directory through a webserver. 73 83 We assume it is available at http://192.168.1.25/owrt 74 84 75 6) Flash the router with your new image -- THIS DESTROYS ALL CONFIG ON THE ROUTER!85 7) Flash the router with your new image -- THIS DESTROYS ALL CONFIG ON THE ROUTER! 76 86 $ ssh root@192.168.1.1 77 87 # cd /tmp … … 85 95 # exit 86 96 87 7) Update the opkg router's config to get your new packages97 8) Update the opkg router's config to get your new packages 88 98 ssh root@192.168.1.1 89 99 # echo "src/gz localrepo http://192.168.1.25/owrt/packages" >> /etc/opkg.conf 90 100 # opkg update 91 101 92 8) Install freeDiameter, you're done. Optionnaly, install also certtool on the router before, to102 9) Install freeDiameter, you're done. Optionnaly, install also certtool on the router before, to 93 103 generate the TLS certificate automatically. 94 104 # opkg install freeDiameter … … 140 150 to go with a 2.6x kernel, whenever possible. 141 151 142 e) Once configured, create the toolchain and default image (this takes a while): 143 $ make 152 e) As per freeDiameter ticket #26, you also need to change the library to glibc instead of uClibc. 153 Change the option as follow: 154 155 - Advanced configuration options (for developers) ---> 156 - Toolchain Options ----> 157 C Library implementation (Use glibc) 158 159 f) Once configured, create the toolchain and default image (this takes a while): 160 $ make world 144 161 145 162 After this command completes successfully, your build environment is ready. … … 166 183 167 184 We 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 to169 build them.185 the OpenWRT repositories contains packages for sctp, ipv6, gnutls, pthreads and hostapd. 186 Follow these instructions to build them. 170 187 171 188 Alternatively, you can find these packages pre-compiled in the OpenWRT packages repository. 172 189 173 a) GNU TLSpackages190 a) Add the packages 174 191 $ scripts/feeds install libgnutls 192 $ scripts/feeds install sctp 175 193 176 194 b) Select the following components in the menu: … … 180 198 181 199 - Network ---> 200 sctp (M) 182 201 hostapd (M) 183 202 wpad-mini ( ) … … 197 216 Since we are removing the wpad-mini daemon from the base image, this image (trx or bin file) is also recompiled. 198 217 199 Note that if you are setting your device as WPA supplicant also (wireless client), you canselect wpad instead of hostapd.218 Note that if you are setting your device as WPA supplicant also (wireless client), you must select wpad instead of hostapd. 200 219 (in any case, the -mini version is not suitable since we will use the RADIUS authentication). 201 220 … … 218 237 219 238 Install the newly compiled packages with: 220 root@OpenWrt:~# opkg install kmod-ipv6 hostapd libpthread 239 root@OpenWrt:~# opkg install kmod-ipv6 hostapd libpthread sctp 221 240 222 241 ============================================== … … 274 293 - Network ---> 275 294 freeDiameter (M) 295 freeDiameter-test (M) 276 296 277 297 Quit and save the new config, then:
Note: See TracChangeset
for help on using the changeset viewer.