找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3636|回复: 4

求助一:关于AdvancedTomato安装Entware-ng遇到的问题

[复制链接]
发表于 2018-2-10 14:37 | 显示全部楼层 |阅读模式
本帖最后由 ayachen 于 2018-2-10 14:37 编辑

路由器型号:Asus rt-n16
AdvancedTomato版本:1.28.0000 MIPSR2-140 K26 USB AIO
参考了这个教程:https://github.com/Entware-ng/En ... ll-on-the-TomatoUSB,安装的时候稍作修改。
因为之前已经插入U盘并且已经做了samba、FTP等的测试,也用了BitTorrent下载了一些文件和NGINX Web挂了网页,不想重新格式化U盘。
所以在U盘(卷标EXTRA)新建文件夹ENTWARE然后
  1. mount /opt /tem/mnt/EXTRA/ENTWARA
复制代码

用来安装entware-ng,用迅雷下载
http://pkg.entware.net/binaries/mipsel/installer/installer.sh,再用WinSCP上传至U盘,然后在putty中运行安装,具体如下:

  1. Tomato v1.28.0000 MIPSR2-140 K26 USB AIO
  2. ========================================================
  3. Welcome to the Asus RT-N16 [TomatoUSB]
  4. Uptime:  13:32:00 up  2:13
  5. Load average: 0.12, 0.17, 0.16
  6. Mem usage: 31.2% (used 38.65 of 123.78 MB)
  7. WAN : 192.168.110.103/24 [url=home.php?mod=space&uid=162986]@[/url] BC:AE:C5:E7:AF:81
  8. LAN1 : 192.168.120.1/24 @ DHCP: 192.168.120.100 - 192.168.120.149
  9. WL0 : 2,4GHz @ TomatoAsus @ channel: 6 @ BC:AE:C5:E7:AF:82
  10. ========================================================

  11. root@TomatoAsus:/tmp/home/root# cd /tmp/mnt/Extra
  12. root@TomatoAsus:/tmp/mnt/Extra# sh installer.sh
  13. Info: Creating folders...
  14. mkdir: can't create directory '/opt/bin': Read-only file system
  15. mkdir: can't create directory '/opt/etc/': Read-only file system
  16. mkdir: can't create directory '/opt/lib/': Read-only file system
  17. mkdir: can't create directory '/opt/sbin': Read-only file system
  18. mkdir: can't create directory '/opt/share': Read-only file system
  19. mkdir: can't create directory '/opt/tmp': Read-only file system
  20. mkdir: can't create directory '/opt/usr': Read-only file system
  21. mkdir: can't create directory '/opt/var/': Read-only file system
  22. mkdir: can't create directory '/opt/var/': Read-only file system
  23. mkdir: can't create directory '/opt/var/': Read-only file system
  24. Info: Deploying opkg package manager...
  25. Downloading /opt/bin/opkg... wget: can't open '/opt/bin/opkg': No such file or d                                                                                                             irectory
  26. failed!
  27. root@TomatoAsus:/tmp/mnt/Extra#
复制代码
意思应该/opt文件夹只有只读属性,不能写入。
用notepad++打开installer.sh,内容如下:
  1. #!/bin/sh

  2. export PATH=/opt/sbin:/opt/bin:$PATH
  3. unset LD_LIBRARY_PATH
  4. unset LD_PRELOAD

  5. URL=http://pkg.entware.net/binaries/mipsel/installer

  6. echo 'Info: Creating folders...'
  7. for folder in bin etc/init.d lib/opkg sbin share tmp usr var/log var/lock var/run
  8. do
  9.   if [ -d "/opt/$folder" ]
  10.   then
  11.     echo "Warning: Folder /opt/$folder exists! If something goes wrong please clean /opt folder and try again."
  12.   else
  13.     mkdir -p /opt/$folder
  14.   fi
  15. done

  16. dl () {
  17.   # $1 - URL to download
  18.   # $2 - place to store
  19.   # $3 - 'x' if should be executable
  20.   echo -n "Downloading $2... "
  21.   wget -q $1 -O $2
  22.   if [ $? -eq 0 ] ; then
  23.     echo 'success!'
  24.   else
  25.     echo 'failed!'
  26.     exit 1
  27.   fi
  28.   [ -z "$3" ] || chmod +x $2
  29. }

  30. echo 'Info: Deploying opkg package manager...'
  31. dl $URL/opkg /opt/bin/opkg x
  32. dl $URL/opkg.conf /opt/etc/opkg.conf
  33. dl $URL/profile /opt/etc/profile x
  34. dl $URL/rc.func /opt/etc/init.d/rc.func
  35. dl $URL/rc.unslung /opt/etc/init.d/rc.unslung x

  36. echo 'Info: Basic packages installation...'
  37. opkg update
  38. opkg install ldconfig findutils
  39. ldconfig > /dev/null 2>&1
  40. [ -f /etc/TZ ] && ln -sf /etc/TZ /opt/etc/TZ

  41. cat << EOF

  42. Congratulations! If there are no errors above then Entware-ng is successfully initialized.

  43. Found a Bug? Please report at https://github.com/Entware-ng/Entware-ng/issues

  44. Type 'opkg install <pkg_name>' to install necessary package.

  45. EOF
复制代码
应该是安装路径是直接安装到/opt文件夹上。
操作过程中有什么不对的地方吗?刚自学Linux,很多命令和原理还不是很熟悉,请大家帮忙分析一下。


我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-2-10 18:43 | 显示全部楼层
断电重启一下,
把优盘挂载到/opt上
实在不行777
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-2-11 08:39 | 显示全部楼层
userdhf 发表于 2018-2-10 18:43
断电重启一下,
把优盘挂载到/opt上
实在不行777

entware一定要安装到“/opt”吗?我手工改个路径可不可以?

点评

静态编译的应该可以。可是entware不是静态的。  详情 回复 发表于 2018-2-20 23:32
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-12 00:24 | 显示全部楼层
想问下,tomato有没有单ip的连接数数限制,我只找到了总连接数的数量设定
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-20 23:32 | 显示全部楼层
ayachen 发表于 2018-2-11 08:39
entware一定要安装到“/opt”吗?我手工改个路径可不可以?

静态编译的应该可以。可是entware不是静态的。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-19 11:20

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表