Skip to content

Instantly share code, notes, and snippets.

@dferg
Last active December 30, 2021 07:57
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dferg/2278196d736d5b367682 to your computer and use it in GitHub Desktop.
Save dferg/2278196d736d5b367682 to your computer and use it in GitHub Desktop.
HOWTO: Install extra kernel modules on Shibby TomatoUSB

Introduction

This howto describes installing the extra kernel modules for the Tomato open-source router firmware. We will install them in the /opt/extras area.

Requirements

  • Router running Shibby's fork of TomatoUSB
  • entware installed to a USB stick mounted at /opt

This Howto Was Tested With

  • Shibby's fork of TomatoUSB version 1.28 build 121
  • ASUS RT-N66U

Install the extra kernel modules

Get the URL to the extras file from Shibby's website

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.

Download and extract the extras file

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

Setup entware to load the modules at init

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.

Verify that modules are loaded at boot

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.

@dulemis
Copy link

dulemis commented Jan 19, 2017

@TheOverwatcher yes I am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment