Changeset 498:753c9ed8f19a in freeDiameter for contrib/OpenWRT/HOWTO
- Timestamp:
- Aug 17, 2010, 3:04:50 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/OpenWRT/HOWTO
r491 r498 6 6 7 7 Table of contents: 8 0) Quick HOWTO: optimistic step-by-step instructions. 8 9 1) Prerequisites: get the OpenWRT development environment ready. 9 10 2) Supplied packages: use the existing packages when possible (gnutls, ...) … … 16 17 17 18 19 ============================================== 20 0) Quick HOWTO 21 ============================================== 22 The following instructions should allow you to put freeDiameter on your OpenWRT-compatible router. 23 In case something goes wrong, you should follow the detailed instructions in the remaining of 24 this file. 25 26 Be warned: playing with the software in your router may brick it, i.e. make it unusable forever. 27 Do it at your own risk. 28 29 1) Get the OpenWRT environment: 30 $ git clone git://nbd.name/openwrt.git 31 $ cd openwrt 32 33 2) Get the feeds 34 $ cp feeds.conf.default feeds.conf 35 $ echo "src-hg freediameter http://www.freediameter.net/hg/fD-OWRT-packages" >> feeds.conf 36 $ scripts/feeds update 37 $ scripts/feeds install freeDiameter 38 39 3) Configure your image 40 $ make menuconfig 41 (set Target System and Target Profile as needed for your equipment) 42 43 - Network ---> 44 freeDiameter (M) 45 46 4) Build the image and packages, this takes a while 47 $ make world 48 49 5) Export the bin/* directory through a webserver. 50 We assume it is available at http://192.168.1.25/owrt 51 52 6) Flash the router with your new image -- THIS DESTROYS ALL CONFIG ON THE ROUTER! 53 $ ssh root@192.168.1.1 54 # cd /tmp 55 # wget http://192.168.1.25/owrt/openwrt-brcm47xx-squashfs.trx 56 ;; change the file name with yours 57 # mtd -r write openwrt-brcm47xx-squashfs.trx linux 58 ;; wait for reboot 59 $ telnet 192.168.1.1 60 # passwd 61 # sync 62 63 7) Update the opkg router's config to get your new packages 64 ssh root@192.168.1.1 65 # echo "src/gz chavroux http://192.168.1.25/owrt/packages" >> /etc/opkg.conf 66 # opkg update 67 68 8) Install freeDiameter, you're done. Optionnaly, install also certtool and libgnutls-extra on the router before, to 69 generate the TLS certificate. 70 # opkg install freeDiameter 18 71 19 72 ============================================== … … 184 237 185 238 Now, your environment should be ready to compile the freeDiameter ipkg package. 186 $ ./scripts/feeds install freediameter187 188 Note that in order to build this package, you need to have cmake on your compilation machine.239 $ scripts/feeds install freeDiameter 240 241 Note that in order to build this package, you need to have cmake & flex on your compilation machine. 189 242 190 243 $ make menuconfig
Note: See TracChangeset
for help on using the changeset viewer.