數位天堂

Nokia:科技始終來自於人性; 拜耳:如果文明不能使我們更相愛,那科技便失去意義!
歡迎您的加入,讓我們一起討論科技與環保的整合應用...

您尚未登入。

#1 2010-10-30 22:31:37

hippo
天使
註冊日期: 2008-10-07
文章數: 1562
目前積分 :   20 

[IB-NAS4220-B] 安裝 Optware(vt4), BusyBox

機型: RaidSonic ICY BOX IB-NAS4220-B
韌體: v2.6.3-20091218S
磁碟陣列: Raid 0

1. 至nas-4220.org下載. 有四種壓縮檔. 參閱說明, 依需要選擇. 我選用optware-vc-0.1.tgz
2. 由FileZilla上傳至IB-NAS4220-B
3. 啟用SSH server
https://digiland.tw/uploads/614_ib-nas4220-b_ssh.gif
4. PieTTY root登入.
5. 解壓縮, 安裝.

cp /mnt/md1/admin/nas-4220.org/optware-vc-0.1.tgz /mnt/md1/public/applications/ cd /mnt/md1/public/applications/ tar -xzvf optware-vc-0.1.tgz


5-1) 參閱info.txt, 可直接執行init安裝.
5-2) 我選擇手動安裝.

tar -xzvf optware/optware.tgz rm optware/info.txt rm optware/init rm optware/optware.tgz rm optware-vc-0.1.tgz


ll optware/ drwxrwxrwx 2 root root 4096 Oct 30 07:04 info drwxrwxrwx 2 root root 4096 Oct 30 07:04 libexec drwxrwxrwx 2 root root 4096 Oct 30 07:04 sbin drwxrwxrwx 6 root root 4096 Oct 30 07:04 include drwxrwxrwx 4 root root 4096 Oct 30 07:04 man drwxrwxrwx 17 root root 4096 Oct 30 07:04 share drwxrwxrwx 2 root root 8192 Oct 30 07:04 bin drwxrwxrwx 7 root root 4096 Oct 30 07:04 lib drwxrwxrwx 2 root root 4096 Dec 14 2008 tmp drwxrwxrwx 5 root root 4096 Oct 30 07:04 var drwxrwxrwx 5 root root 4096 Oct 30 07:04 etc drwxrwxrwx 4 root root 4096 Oct 30 07:07 .. drwxrwxrwx 13 root root 4096 Oct 30 07:06 .


6. 連結, 路徑

cd ~ ln -s /mnt/md1/public/applications/optware /opt


vi .profile PATH="$PATH:/opt/bin:/opt/sbin" export PATH


7. 重新登入.
8. 查閱來源, 已安裝套件.

cat /opt/etc/ipkg.conf # Uncomment one of the following package feeds or resolve your arch # by visiting http://ipkg.nslu2-linux.org/feeds/optware/ # src nslu2 http://ipkg.nslu2-linux.org/feeds/optware/nslu2/cross/stable # src fsg3 http://ipkg.nslu2-linux.org/feeds/optware/fsg3/cross/stable # src ddwrt http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable # src xwrt http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable # src whiterussian http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable # src oleg http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable # src ts72xx http://ipkg.nslu2-linux.org/feeds/optware/ts72xx/cross/stable # src/gz openwrt-brcm24 http://ipkg.nslu2-linux.org/feeds/optware/openwrt-brcm24/cross/unstable # src/gz openwrt-ixp4xx http://ipkg.nslu2-linux.org/feeds/optware/openwrt-ixp4xx/cross/unstable/ dest root / #option verbose-wget # # Proxy support: # #option http_proxy http://localhost:5865 #option ftp_proxy http://proxy.tld:3128 #option proxy_username #option proxy_password src/gz cross http://ipkg.nslu2-linux.org/feeds/optware/ts72xx/cross/stable


ipkg-opt list_installed busybox - 1.10.3-1 - A userland replacement for embedded systems. busybox-base - 1.10.3-1 - A userland replacement for embedded systems. busybox-links - 1.10.3-1 - A userland replacement for embedded systems. coreutils - 6.12-2 - Bunch of heavyweight *nix core utilities diffutils - 2.8.1-6 - contains gnu diff, cmp, sdiff and diff3 to display differences between and among text files e2fslibs - 1.41.2-1 - Ext2 Filesystem Libraries e2fsprogs - 1.41.2-1 - Ext2 Filesystem Utilities glib - 2.16.6-1 - The GLib library of C routines. libcurl - 7.19.2-1 - Curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FI libsigc++ - 2.0.18-1 - libsigc++ implements a typesafe callback system for standard C++. libstdc++ - 5.0.6-6 - Standard C++ library, needed for dynamically linked C++ programs libtorrent - 0.12.4-1 - libtorrent is a BitTorrent library with a focus on high performance and good code. libxml2 - 2.7.2-1 - Libxml2 is the XML C parser and toolkit developed for the Gnome project. mc - 4.6.1-3 - Midnight Commander File Manager ncurses - 5.7-1 - NCurses libraries ncursesw - 5.7-1 - NCurses libraries with wide char support. openssh - 5.1p1-1 - a FREE version of the SSH protocol suite of network connectivity tools. openssl - 0.9.7m-5 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari rtorrent - 0.8.4-1 - rtorrent is a BitTorrent client for ncurses, using the libtorrent library. screen - 4.0.3-2 - A screen manager that supports multiple logins on single terminal slang - 2.1.4-1 - S-Lang is a multi-platform library designed to allow a developer to create robust multi-platform software. termcap - 1.3.1-2 - Terminal emulation library wget - 1.11.4-1 - A network utility to retrieve files from the Web xmlrpc-c - 1.11.00-3 - A library providing modular implementation of XML-RPC for C and C++. zlib - 1.2.3-3 - zlib is a library implementing the 'deflate' compression system. Successfully terminated.


使用ts72xx. 參閱wikiOptware Platforms, 個人改用vt4.
9. 移除與vt4重複的套件

ipkg-opt -force-depends remove busybox busybox-base busybox-links coreutils diffutils e2fslibs e2fsprogs glib libcurl libxml2 mc ncurses ncursesw openssh openssl screen slang termcap wget zlib


10. 更改來源為vt4

vi /opt/etc/ipkg.conf dest /opt/ / src/gz vt4 ftp://ftp.osuosl.org/pub/nslu2/feeds/optware/vt4/cross/stable


11. 代換BusyBox
11-1) 可至SourceForge gemini-board下載v1.17.1或BusyBox binaries下載v1.17.2
11-2) 我選用以前自己編譯的BusyBox v1.17.2. 編譯方法參閱BusyBox v1.17.2 編譯測試. 目前最新版本v1.17.3再找時間編譯.

cd /bin/ mv busybox busybox.v1.00-rc3 ./busybox.v1.00-rc3 ln -s /mnt/md1/public/applications/busybox/v1.17.2/busybox busybox


cd /usr/bin/ ln -s /bin/busybox wget ln -s /bin/busybox head cd ~


需要用到的命令, 可自行添加連結. 參閱這篇.
12. 更新來源

ipkg-opt update Downloading ftp://ftp.osuosl.org/pub/nslu2/feeds/optware/vt4/cross/stable/Packages.gz Inflating ftp://ftp.osuosl.org/pub/nslu2/feeds/optware/vt4/cross/stable/Packages.gz Updated list of available packages in /opt/lib/ipkg/lists/vt4 Successfully terminated.


13. 安裝ipkg-opt

ipkg-opt list | grep ipkg ipkg-opt - 0.99.163-10 - The Itsy Package Manager ipkg-web - 7-7 - A web frontend for ipkg


ipkg-opt install ipkg-opt Installing ipkg-opt (0.99.163-10) to /opt/... Downloading ftp://ftp.osuosl.org/pub/nslu2/feeds/optware/vt4/cross/stable/ipkg-opt_0.99.163-10_arm.ipk Configuration file '/opt/etc/ipkg.conf' ==> File on system created by you or by a script. ==> File also in package provided by package maintainer. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions (if diff is installed) The default action is to keep your current version. *** ipkg.conf (Y/I/N/O/D) [default=N] ? Configuring ipkg-opt Successfully terminated.


至此, 可打包壓縮. 參閱[DD-WRT] 華碩Router改機的作法.
14. 依需要, 後續安裝相關套件

ipkg-opt install coreutils util-linux-ng ... Configuring coreutils Configuring e2fslibs Configuring getopt Configuring ncurses Configuring ncursesw Configuring util-linux-ng Configuring zlib


ipkg-opt list_installed coreutils - 8.4-1 - Bunch of heavyweight *nix core utilities e2fslibs - 1.41.1-1 - Ext2 Filesystem Libraries getopt - 2.15-2 - The getopt utility from the util-linux-ng package. ipkg-opt - 0.99.163-10 - The Itsy Package Manager libsigc++ - 2.0.18-1 - libstdc++ - 5.0.6-6 - libtorrent - 0.12.4-1 - ncurses - 5.7-1 - NCurses libraries ncursesw - 5.7-1 - NCurses libraries with wide char support. rtorrent - 0.8.4-1 - util-linux-ng - 2.15-2 - A suite of essential utilities for any Linux system, this version is a fork of util-linux. xmlrpc-c - 1.11.00-3 - zlib - 1.2.5-1 - zlib is a library implementing the 'deflate' compression system. Successfully terminated.


其中未顯示敘述者, 為ts72xx
15. 個人需要, 修改.profile

#PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin" #export PATH #TERM=${TERM:-cons25} #export TERM #PS1="`hostname -s`> " export PS1='[\u@\h \W]\$ ' export PATH=$PATH:/opt/bin:/opt/sbin export TERM=xterm


16. 登出, 重新登入

[root@IB-NAS4220-B /root]#


其他:
1. PCi MZK-NAS01SG也是類似作法.
2. IB-NAS4220-B可直接掛載iso, MZK-NAS01SG要另外處理.
3. IB-NAS4220-B可用vt4核心模組, MZK-NAS01SG不行.
4. IB-NAS4220-B與MZK-NAS01SG不支援Jumbo Frame, 可能是核心v2.6.15的關係. 參閱NAS-4220.org Feature Requests
5. 可能是Abertek代工.
6. 原廠網站提供下載的韌體都比較舊.
7. 若NAS容量夠大, 可玩玩AoE. 參閱這篇.
8. 安裝Debian, 參閱這篇.




離線

 

#2 2010-11-01 08:52:53

Aven
天使
來自: 數位天堂
註冊日期: 2007-07-15
文章數: 2266
網站

Re: [IB-NAS4220-B] 安裝 Optware(vt4), BusyBox

這一台上次有試過安裝 optware,印象中使用舊版韌體(20090424版)可以透過上載更新套件到 /public/applications/new_software
重新開機後即可自動安裝完成,新版韌體反而不行 orz




技術問題請於論壇上集眾人之力公開討論,感恩 thankgod

離線

 

#3 2010-11-01 09:00:33

hippo
天使
註冊日期: 2008-10-07
文章數: 1562
目前積分 :   20 

Re: [IB-NAS4220-B] 安裝 Optware(vt4), BusyBox

因為解壓縮後的init是個script, 內含建立SSH key等. 新版韌體v2.6.3-20091218S已有SSH, 感覺上init內容有點多餘. 所以參考init, 自己修改步驟, 提供參考.


離線

 

相關討論主題

主題 回覆 點閱 最後發表
21 108286 2019-07-19 21:40:01 作者 hemmis
0 7204 2016-05-18 12:08:38 作者 kuolung
2 11257 2016-05-08 17:51:07 作者 kuolung
Optware 套件搜尋 作者 hippo
1 10542 2015-11-18 11:42:23 作者 rv2231
在 RT-N18U 的 JEFFS 安裝 optware 作者 kuolung  [ 1 2 ]
13 40789 2015-06-19 14:57:17 作者 kuochihchun

友情連結

論壇頁尾

Powered by PunBB
© Copyright 2018 Rickard Andersson
RSS Feed