Что может USB ?

Wive-NG-MT на устройствах с USB поддерживает следующие возможности.

usbРабота с накопителями:
1) Поддержка установки внешних приложений из репозитория Entware 3.x
2) Поддержка swap (актуально при использовании приложений из Entware, которым мало встроенной RAM)
3) Файловые серверы (SAMBA/FTP)
4) DLNA сервер (XUPNPD)

Поддерживаемые FS:
1) ext2/3/4 (рекомендуется ext4, как нативная для Linux и актуальная для всех современных Linux дистрибутивов FS)
2) FAT32 (нативно, но не умеет *nix расширений и имеет ограничения на длину файла)
3) NTFS (через NTFS 3G, в разы медленней выше приведённых)
4) ExFAT — файловая система от MS для flash накопителей, однако вполне подойдёт и для HDD, поддержка нативная — значит быстрая, не имеет ограничений на длину файлов (в отличии от FAT32) поддерживается современными Windows.

Автомонтирование осуществляется по меткам:
1) swap раздел с меткой swap
2) optware метка на разделе EXT* заставит смонтировать его в /opt для использования Entware
3) media метка говорит системе использовать этот раздел как файловое хранилище для FTP/SAMBA/DLNA
4) если метка не совпадает ни с одной из вышеперечисленных, то раздел будет смонтирован в /media/sd*

Другие возможности:
1) Сервер печати (p910nd)
2) Поддержка USB модемов 3G/LTE

Установка и использование Entware:

Для работы потребуется маршрутизатор SNR-CPE-ME1 (версия ПО не ниже 6.7.3 отсюда https://sourceforge.net/projects/wive-ng/files/wive-ng-mt/), флэш или USB HDD в роли накопителя.

Подготовка накопителя сводиться к созданию на нём раздела ext4 с меткой optware. Это можно сделать любыми доступными средствами, например используя gparted под Linux.

После подключения накопителя к маршрутизатору, следует подключиться к нему по ssh. Проверяем что раздел optware корректно смонтировался введя mount | grep opt. Если видим соответствующую строку — всё Ок. Продолжаем.

Admin@Wive-NG-MT:~# mount | grep opt
/dev/sda1 on /opt type ext4 (rw,noatime,data=ordered)		

Командуем entware_install.sh и ожидаем окончания процедуры:

		[Wive-NG-MT@/]# entware_install.sh                                                                                                                                          
		Connecting to entware-3x.zyxmon.org (81.4.123.217:80)                                                                                                                       
		-                    100% |***************************************************************************************************************************|  2285   0:00:00 ETA
		Info: Checking for prerequisites and creating folders...                                                                                                                    
		Warning: Folder /opt exists!                                                                                                                                                
		Info: Opkg package manager deployment...                                                                                                                                    
		Connecting to entware-3x.zyxmon.org (81.4.123.217:80)                                                                                                                       
		opkg                 100% |***************************************************************************************************************************|   135k  0:00:00 ETA
		Connecting to entware-3x.zyxmon.org (81.4.123.217:80)                                                                                                                       
		opkg.conf            100% |***************************************************************************************************************************|   149   0:00:00 ETA
		Connecting to entware-3x.zyxmon.org (81.4.123.217:80)                                                                                                                       
		ld-2.25.so           100% |***************************************************************************************************************************|   146k  0:00:00 ETA
		Connecting to entware-3x.zyxmon.org (81.4.123.217:80)                                                                                                                       
		libc-2.25.so         100% |***************************************************************************************************************************|  1578k  0:00:00 ETA
		Connecting to entware-3x.zyxmon.org (81.4.123.217:80)                                                                                                                       
		libgcc_s.so.1        100% |***************************************************************************************************************************| 93848   0:00:00 ETA
		Connecting to entware-3x.zyxmon.org (81.4.123.217:80)                                                                                                                       
		libpthread-2.25.so   100% |***************************************************************************************************************************|   119k  0:00:00 ETA
		Info: Basic packages installation...                                                                                                                                        
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/Packages.gz  
		Updated list of available packages in /opt/var/opkg-lists/packages                                                                                                          
		Package dvb-center version 0.1-1 has no valid architecture, ignoring.                                                                                                       
		Package ext-ui-lighttpd-7 version 0.2-2a has no valid architecture, ignoring.                                                                                               
		Package ext-ui-nginx-7 version 0.2-2 has no valid architecture, ignoring.                                                                                                   
		Package libndm version 1.1.0-1a has no valid architecture, ignoring.                                                                                                        
		Package music-center version 0.1-2c has no valid architecture, ignoring.                                                                                                    
		Package ndmq version 1.0.2-1a has no valid architecture, ignoring.                                                                                                          
		Package opt-ndmsv2 version 1.0-8a has no valid architecture, ignoring.                                                                                                      
		Installing entware-opt (1.0-4) to root...                                                                                                                                   
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/entware-opt_1.0-4_mipsel-3x.ipk  
		Installing libc (2.25-8) to root...                                                                                                                                         
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libc_2.25-8_mipsel-3x.ipk  
		Installing libgcc (6.3.0-8) to root...                                                                                                                                      
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libgcc_6.3.0-8_mipsel-3x.ipk  
		Installing libssp (6.3.0-8) to root...                                                                                                                                      
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libssp_6.3.0-8_mipsel-3x.ipk  
		Installing librt (2.25-8) to root...                                                                                                                                        
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/librt_2.25-8_mipsel-3x.ipk  
		Installing libpthread (2.25-8) to root...                                                                                                                                   
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libpthread_2.25-8_mipsel-3x.ipk  
		Installing libstdcpp (6.3.0-8) to root...                                                                                                                                   
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libstdcpp_6.3.0-8_mipsel-3x.ipk  
		Installing busybox (1.27.2-1) to root...                                                                                                                                    
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/busybox_1.27.2-1_mipsel-3x.ipk  
		Installing zoneinfo-asia (2017b-1) to root...                                                                                                                               
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/zoneinfo-asia_2017b-1_mipsel-3x.ipk  
		Installing zoneinfo-europe (2017b-1) to root...                                                                                                                             
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/zoneinfo-europe_2017b-1_mipsel-3x.ipk  
		Installing findutils (4.6.0-1) to root...                                                                                                                                   
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/findutils_4.6.0-1_mipsel-3x.ipk  
		Installing terminfo (6.0-1c) to root...                                                                                                                                     
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/terminfo_6.0-1c_mipsel-3x.ipk
		Installing locales (2.25-8) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/locales_2.25-8_mipsel-3x.ipk
		Configuring libgcc.
		Configuring libc.
		Configuring libssp.
		Configuring libpthread.
		Configuring librt.
		Configuring terminfo.
		Configuring locales.
		Entware uses separate locale-archive file independent from main system
		Creating locale archive - /opt/usr/lib/locale/locale-archive
		Adding en_EN.UTF-8
		Adding ru_RU.UTF-8
		You can download locale sources from http://pkg.entware.net/sources/i18n_glib225.tar.gz
		You can add new locales to Entware using /opt/bin/localedef.new
		Configuring zoneinfo-europe.
		Configuring busybox.
		Warning: '/opt/bin/find' is already exists, skipping.
		Warning: '/opt/bin/xargs' is already exists, skipping.
		Configuring zoneinfo-asia.
		Configuring libstdcpp.
		Configuring findutils.
		Configuring entware-opt.
		Package dvb-center version 0.1-1 has no valid architecture, ignoring.
		Package ext-ui-lighttpd-7 version 0.2-2a has no valid architecture, ignoring.
		Package ext-ui-nginx-7 version 0.2-2 has no valid architecture, ignoring.
		Package libndm version 1.1.0-1a has no valid architecture, ignoring.
		Package music-center version 0.1-2c has no valid architecture, ignoring.
		Package ndmq version 1.0.2-1a has no valid architecture, ignoring.
		Package opt-ndmsv2 version 1.0-8a has no valid architecture, ignoring.
		Installing opkg (2011-04-08-9c97d5ec-17a) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/opkg_2011-04-08-9c97d5ec-17a_mipsel-3x.ipk
		Configuring opkg.
		Info: Congratulations!
		Info: If there are no errors above then Entware-3x was successfully initialized.
		Info: Add /opt/bin & /opt/sbin to your PATH variable
		Info: Add '/opt/etc/init.d/rc.unslung start' to startup script for Entware-3x services to start
		Info: Found a Bug? Please report at https://github.com/Entware-for-kernel-3x/Entware-ng-3x/issues
		!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
		!!!NEED REBOOT DEVICE BEFORE USE!!!
		!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

По окончанию операции командуем fs save && reboot:

[Wive-NG-MT@/]# fs save && reboot
		Save curent date and current time to rwfs
		Compress config files
		tar: removing leading '/' from member names
		Write RW-FS to flash (160kB of 1024kB)
		Unlocking RW-FS ...
		Writing from /tmp/tgzfs to RW-FS ...  [w]
		Config saved. OK.

После перезагрузки снова подключаемся по ssh и проверяем что получилось. Пробуем установить например MC (midnigth commander), командуем opkg install mc:

[Wive-NG-MT@/]# opkg install mc                                                                                                                                             
		Package dvb-center version 0.1-1 has no valid architecture, ignoring.                                                                                                       
		Package ext-ui-lighttpd-7 version 0.2-2a has no valid architecture, ignoring.                                                                                               
		Package ext-ui-nginx-7 version 0.2-2 has no valid architecture, ignoring.                                                                                                   
		Package libndm version 1.1.0-1a has no valid architecture, ignoring.                                                                                                        
		Package music-center version 0.1-2c has no valid architecture, ignoring.
		Package ndmq version 1.0.2-1a has no valid architecture, ignoring.
		Package opt-ndmsv2 version 1.0-8a has no valid architecture, ignoring.
		Installing mc (4.8.19-1a) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/mc_4.8.19-1a_mipsel-3x.ipk
		Installing glib2 (2.53.7-1) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/glib2_2.53.7-1_mipsel-3x.ipk
		Installing libiconv-full (1.11.1-3) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libiconv-full_1.11.1-3_mipsel-3x.ipk
		Installing libintl-full (0.19.8.1-1) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libintl-full_0.19.8.1-1_mipsel-3x.ipk
		Installing zlib (1.2.11-1) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/zlib_1.2.11-1_mipsel-3x.ipk
		Installing libffi (3.2.1-3) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libffi_3.2.1-3_mipsel-3x.ipk
		Installing libattr (20160302-1) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libattr_20160302-1_mipsel-3x.ipk
		Installing libslang2 (2.3.1a-1) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libslang2_2.3.1a-1_mipsel-3x.ipk
		Installing libmount (2.30.1-2) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libmount_2.30.1-2_mipsel-3x.ipk
		Installing libblkid (2.30.1-2) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libblkid_2.30.1-2_mipsel-3x.ipk
		Installing libuuid (2.30.1-2) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libuuid_2.30.1-2_mipsel-3x.ipk
		Installing libssh2 (1.7.0-1) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libssh2_1.7.0-1_mipsel-3x.ipk
		Installing libopenssl (1.0.2l-1) to root...
		Downloading http://entware-3x.zyxmon.org/binaries/mipsel/libopenssl_1.0.2l-1_mipsel-3x.ipk
		Configuring libiconv-full.
		Configuring libintl-full.
		Configuring zlib.
		Configuring libffi.
		Configuring libattr.
		Configuring glib2.
		Configuring libopenssl.
		Configuring libssh2.
		Configuring libslang2.
		Configuring libuuid.
		Configuring libblkid.
		Configuring libmount.
		Configuring mc.

Если всё прошло без ошибок можем запустить его командой mc.

Полный список пакетов можно увидеть по ссылке.

Стоит оговориться, что мы не контролируем этот репозиторий, и не все пакеты могут работать на SNR-CPE-ME1. Все контакты относительно Entware 3.x тут.

 

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •