You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在ASUS rt-ac66u的dd-wrt系统中运行opkg失败求助

Troubleshooting Opkg Installation on DD-WRT (ASUS RT-AC66U) /jffs

Hey there, let's break down why your opkg install isn't working on your DD-WRT router's built-in /jffs storage. The core issue is almost certainly compatibility gaps between OpenWRT's opkg package and DD-WRT's underlying system environment—let's walk through fixes step by step.

First, Validate Your /jffs Setup

Before diving into opkg specifics, make sure your /jffs partition is properly configured:

  • Check if it's mounted as read-write:
    mount | grep jffs
    
    You should see output like /dev/mtdblockx on /jffs type jffs2 (rw,noatime)—if it says ro (read-only), remount it with mount -o remount,rw /jffs.
  • Verify you have enough free space:
    df -h /jffs
    
    Opkg needs at least 20-30MB of free space to install and store packages.
  • Check directory permissions:
    ls -ld /jffs
    
    Output should show permissions like drwxr-xr-x (755) to ensure the system can read/write to the partition.

Fix Environment Variables

When you installed opkg to /jffs, your system might not know where to find the executable or its dependencies. Set these variables to point to the right paths:

export IPKG_ROOT=/jffs
export PATH=$PATH:$IPKG_ROOT/usr/bin:$IPKG_ROOT/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$IPKG_ROOT/usr/lib:$IPKG_ROOT/lib

You can add these to your /jffs/.profile or DD-WRT's startup script to make them persistent across reboots.

Ditch the OpenWRT Opkg Package

The biggest mistake here is using an OpenWRT-built opkg package on DD-WRT. DD-WRT uses a different userland and library set than OpenWRT, so their packages are often incompatible. Instead:

  1. Check if your DD-WRT build already includes opkg/ipkg by running which opkg or which ipkg. Many recent builds have it pre-installed.
  2. If not, find a DD-WRT-compatible opkg package for the brcm47xx architecture (your RT-AC66U's chipset) from trusted community resources or DD-WRT's official channels.

Diagnose Missing Dependencies

If you still get errors when running opkg, check for missing libraries using ldd:

ldd /jffs/usr/bin/opkg

Look for lines that say not found—these are the libraries opkg needs but can't locate. You can either:

  • Copy the missing library from your router's main filesystem (usually /lib or /usr/lib) to /jffs/lib
  • Install the corresponding library package via ipkg/opkg (using a DD-WRT-compatible source)

Final Notes

Always use packages built specifically for your DD-WRT version and architecture. OpenWRT and DD-WRT share some roots, but their binary environments diverge enough that cross-installing packages will almost always cause issues.

内容的提问来源于stack exchange,提问作者mmohaveri

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 11:24:49