This howto describes installing the extra kernel modules for the Tomato open-source router firmware. We will install them in the /opt/extras area.
- Router running Shibby's fork of TomatoUSB
- entware installed to a USB stick mounted at /opt
- Shibby's fork of TomatoUSB version 1.28 build 121
- ASUS RT-N66U
You must download the extras file that matches the build you installed. Shibby's download site is here: http://tomato.groov.pl/download. Start there, pick the architecture that matches your router and go into the directory corresponding with the build that you installed. You should see a file called extras-*.tar.gz. Copy the URL to the extras file to your clipboard. For instance, for my K26RT-N router using build 121, the URL is http://tomato.groov.pl/download/K26RT-N/build5x-121-EN/extras-mips2.tar.gz.
ssh to the router and enter:
cd /opt
mkdir extras
cd extras
wget <URL_to_extras_file.tar.gz>
tar xzvf extras*.tar.gz
rm extras*.tar.gz
With your favorite text editor, create a file called /opt/etc/init.d/S01extras:
#!/bin/sh
# Load the ipsec modules
modprobe /opt/extras/ipsec/aes
modprobe /opt/extras/ipsec/af_key
modprobe /opt/extras/ipsec/xfrm_user
The above is just an example. Just put the path to each module that you want to load on startup.
Reboot the router with the "Reboot..." menu in the GUI. Once it has restarted, ssh to the router and run "lsmod". You should see all the modules that you put in the S01extras file.
I followed the guide and I get:
modprobe /opt/extras/ipsec/af_key
modprobe: module /opt/extras/ipsec/af_key not found in modules.dep
I have this build of shibby: http://tomato.groov.pl/download/K26ARM7/138-MultiWAN/tomato-R8000-ARM--138-AIO-64K.zip and the extras here: http://tomato.groov.pl/download/K26ARM7/138-MultiWAN/arm-extras.tar.gz
I also followed your guide to install entware.