RADIUSdesk

logo

Differences

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

Link to this comparison view

Next revision
Previous revision
technical:ppp-openwrt-compile [2023/11/20 11:46]
admin created
technical:ppp-openwrt-compile [2023/12/28 14:18] (current)
admin [Getting the code]
Line 1: Line 1:
 ====== Compile Accel-ppp on OpenWrt ====== ====== Compile Accel-ppp on OpenWrt ======
 ===== Getting the code ===== ===== Getting the code =====
-  * This page contains the instructions to compile Accel-ppp on OpenWrt version 23.05.x +  * This page contains the instructions for compiling Accel-ppp on OpenWrt version 23.05.x 
-  * We assume you have already checked out the SDK. +  * We assume you have already checked out the OpenWrt SDK. 
-  * You can find more detail hon how to accomplish it here: https://www.radiusdesk.com/wiki/technical/openwrt-prep.+  * You can find more details here: https://www.radiusdesk.com/wiki/technical/openwrt-prep. 
 +  * Make sure you include install the packages needed for Accel-ppp. 
 +<code bash> 
 +#Do this under the openwrt directory  
 +cd openwrt 
 +./scripts/feeds install libpcre  
 +./scripts/feeds install libopenssl  
 +./scripts/feeds install libpthread  
 +./scripts/feeds install librt  
 +./scripts/feeds install libatomic  
 +./scripts/feeds install libucontext  
 +./scripts/feeds install kmod-sched-core  
 +./scripts/feeds install kmod-pptp  
 +./scripts/feeds install kmod-pppoe  
 +./scripts/feeds install kmod-ppp 
 +</code>
   * The Accel-ppp package is part of the MESHdesk code:   * The Accel-ppp package is part of the MESHdesk code:
 <code bash> <code bash>
Line 19: Line 34:
   * You can select it and run **make** to build the firmware.   * You can select it and run **make** to build the firmware.
 {{:technical:pppoe:openwrt_select_accel.png?nolink|}} {{:technical:pppoe:openwrt_select_accel.png?nolink|}}
 +
 +===== Ensuring smooth startup =====
 +  * When we include Accel-ppp along with the MESHdesk package we do an initial prep before calling the start-up script.
 +  * See the code below as reference
 +<code lua>
 +function rdAccel.__prepAccel(self)
 +   os.execute('/etc/init.d/accel-ppp disable');
 +   os.execute('mkdir /var/log/accel-ppp');
 +   os.execute('ln -s /usr/lib/accel-ppp/libconnlimit.so /usr/lib');
 +   os.execute('ln -s /usr/lib/accel-ppp/libvlan-mon.so  /usr/lib');
 +   os.execute('ln -s /usr/lib/accel-ppp/libradius.so   /usr/lib');
 +end
 +</code>
 +