mount -t tmpfs -o size=50M tmpfs /opt/
说明:50M是挂载的大小,/opt/挂载的是目录,这里opkg需要opt目录所以挂载到opt目录下
mkdir -p /opt/bin
mkdir -p /opt/etc
mkdir -p /opt/var/lock
mkdir -p /opt/tmp
下载opkg和配置
#下载opkg
wget http://pkg.entware.net/binaries/mipsel/installer/opkg -O /opt/bin/opkg
#修改可执行权限
chmod 755 /opt/bin/opkg
#默认配置
wget http://bin.entware.net/mipselsf-k3.4/installer/opkg.conf -O /opt/etc/opkg.conf
#更新【必须】
opkg update
#查看版本
opkg -v
opkg version 0.1.8
安装软件git案例
opkg install git
如遇到下面问题
/home/root # opkg install git
Unknown package 'git'.
请先执行 opkg update
命令更新软件源
如需永久保留opkg相关模块,则需要外接一个存储设备,如U盘/SD卡/硬盘(根据实际情况来)
http://blog.xqlee.com/article/2501140923351828.html