LEDE/OpenWRT — Setting Up A USB Video Device
This guide will help you get your LEDE/OpenWRT device supporting USB video. Which can be used for motion detecting webcams and other cool applications.
SSH to your LEDE/OpenWRT device
If you are using Windows then start PuTTY and click Session on the left side, select SSH from the options, and then enter in the IP Address of your LEDE/OpenWRT box into the Host Name field.
Once you’ve done this just click on Open to start up the SSH connection.
If you are connecting via terminal, then just SSH to your LEDE/OpenWRT device using the following command, where 192.168.1.1 is your LEDE/OpenWRT device’s IP address.
Prerequisites — USB Support
First we need to ensure that your LEDE/OpenWRT device has basic support for USBs. Some builds come with this as standard, but if yours does not then just follow these steps:
USB 1.1 Support
This will either have a UHCI or OHCI interface. Pick one of the bellow to start off with, and if it is incorrect it will let you know which one you need to install.
Run the following commands for UHCI:
opkg install kmod-usb-uhci
Run the following commands for OHCI:
opkg install kmod-usb-ohci
USB 2.0 Support
You will need to install the needed packages by running the following:
opkg install kmod-usb2
USB Video Support
Next, connect your USB Video device into your LEDE/OpenWRT device and then we just need to install the required packages.
To do this, run the following commands:
opkg install kmod-video-uvc
This will install the needed packages and their dependencies.
Once this is complete, your LEDE/OpenWRT device should now have USB Video support. You can now make use of this through a number of different applications such as these listed in the LEDE/OpenWRT Wiki.