Linksys E8450刷OPENWRT 安装UVC驱动

刷固件比较简单,参考链接:https://openwrt.org/toh/linksys/e8450 刷完固件后,利用上面的串口线,连接PC,然后用secureCRT等串口工具, 可以登录,并安装相关工具。 安装libusb: opkg update opkg install usbutils 查看USB已经安装的包: opkg list-installed | grep usb opkg update出现如下错误,重新设置为最新时间可解决:date -s 2023-12-16 opkg update Downloading https://downloads.openwrt.org/releases/22.03.3/targets/mediatek/mt7622/packages/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/targets/mediatek/mt7622/packages/Packages.gz Downloading https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/base/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/base/Packages.gz Downloading https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/luci/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/luci/Packages.gz Downloading https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/packages/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/packages/Packages.gz Downloading https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/routing/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/routing/Packages.gz Downloading https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/telephony/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/telephony/Packages.gz Collected errors: * opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/targets/mediatek/mt7622/packages/Packages.gz, wget returned 5. * opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/base/Packages.gz, wget returned 5. * opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/luci/Packages.gz, wget returned 5. * opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/packages/Packages.gz, wget returned 5. * opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/routing/Packages.gz, wget returned 5. * opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/aarch64_cortex-a53/telephony/Packages.gz, wget returned 5. UVC驱动默认是没有打包到固件中的,需要利用opkg下载包安装。 注意应用包与内核驱动包在不同的位置, kmod内核驱动包: https://downloads.openwrt.org/releases/22.03.3/targets/mediatek/mt7622/kmods/5.10.161-1-d78c2c2d176f211691088dca5d5407af/ 应用包: https://downloads.openwrt.org/releases/22.03.3/targets/mediatek/mt7622/packages/ 其它芯片的openwrt大同小异。 安装uvc驱动,需要手动wget下载对应的ipk,然后用opkg install从上到下依次安装(不能乱序否则会出错)。 kmod-i2c-core kmod-dma-buf kmod-video-core kmod-video-videobuf2 kmod-input-core kmod-video-uvc 全部安装后,插上uvc设备,执行 dmesg | grep video 如果出行下面信息说明安装成功 [ 2484.343389] videodev: Linux video capture interface: v2.00 [ 2584.669193] uvcvideo: Found UVC 1.00 device Display capture-UVC05 (1de1:f105) [ 2584.689857] usbcore: registered new interface driver uvcvideo