ãã®ãããæåã«è¡ãã¹ãããšã¯ãOpenWrt Webãµã€ãã«ã¢ã¯ã»ã¹ããŠããµããŒããããŠããããã€ã¹ã®ãªã¹ãã確èªããããšã§ãïŒ wiki.openwrt.org/toh/start
éçãèŠã€ãããªãã£ãå Žåãèœèããªãã§ãã ããã
OpenWrt , : kamikaze.openwrt.org/docs/openwrt.html#x1-540002.3
OpenWrt , : kamikaze.openwrt.org/docs/openwrt.html#x1-540002.3
ãã ããæåã«è£œé å ããã®ã«ãŒãã«ãœãŒã¹ãäœããã®æ¹æ³ã§æ¡åŒµããå¿ èŠããããŸãã
ä»å°ãçè«ã OpenWrtã¯ãrootfsãä¿åããããã«SquashFSãšJJFS2ã®2ã€ã®ãã¡ã€ã«ã·ã¹ãã ã䜿çšããŸãã ä»ã®äººãæ¥ç¶ããããšãå¯èœã§ãããããã«ã€ããŠã¯åŸã§è©³ãã説æããŸãã
SquashFSã¯ãå§çž®ãããéçãã¡ã€ã«ã·ã¹ãã ã§ãã 圌女ã¯å®éã«ã¹ããããããŠãããã®ã§ãã éçãªæ§è³ªã®ãããå§çž®ãåªããŠããŸãã
JJFS2ã¯ããã¡ã€ã«ã®å€æŽãæžã蟌ãŸããå§çž®ãããåçãã¡ã€ã«ã·ã¹ãã ã§ãã Linux Overlayfsã«ãŒãã«æ©èœã䜿çšããŠãSquashFSã®äžã«ããŠã³ããããŸãã ã«ãŒãã«ããŒãžã§ã³3.11以éã«ç»å ŽããŸããã
OpenWRTãã«ãç°å¢ã¯ã4ã€ã®ããŒãžã§ã³ã§ããŠã³ããŒãã§ããŸãã
- OpenWrt Buildrootã¯ãmakeã§æžããããã©ã³ã±ã³ã·ã¥ã¿ã€ã³ã®ã¢ã³ã¹ã¿ãŒã®äžçš®ã§ãå¿
èŠãªãã¹ãŠã®ãœãŒã¹ãããŠã³ããŒãããèªåã§ããããåœãŠãã¯ãã¹ã³ã³ãã€ã©ãåéãããã¡ãŒã ãŠã§ã¢ã®ããã±ãŒãžãšã€ã¡ãŒãžãåéããŸãã Fork Buildrootãããã®makefile ã®åœ¢åŒã«é¢ã㊠ã ããã«ããã¥ã¡ã³ããåŒçšããã ãã§ååã§ã ïŒ
ãã©ã®ããã±ãŒãžãããMakefileãèŠããšããã®äžã®éåžžã®Makefileãèªèããå¯èœæ§ã¯äœãã§ãã ããã¯ãåŸæ¥ã®make圢åŒã®é²éªšãªç¡èŠãšä¹±çšãšããŠèª¬æã§ããŸãããMakefileããã±ãŒãžã®ãªããžã§ã¯ãæåãã³ãã¬ãŒããžã®å€æã«ãããã¢ããªã±ãŒã·ã§ã³ã®ç§»æ€ããã»ã¹å šäœãç°¡çŽ åãããŸããã - OpenWrt Image Builderãåãã§ãããæ¢ã«ã³ã³ãã€ã«ãããããã±ãŒãžãããŒãããããããã€ã¡ãŒãžãåéããŸãã
- OpenWrt SDKã¯åãã§ãããã¯ãã¹ã³ã³ãã€ã«çšã®ããã°ã©ã ã»ããã¯æ¢ã«ã³ã³ãã€ã«ãããŠãããç»åãåéã§ããªããªããŸããã åã ã®ããã±ãŒãžããã«ãããããã«èšèšãããŠããŸãã
- OpenWrtããŒã¹ã®ããŒã«ãã§ãŒã³ã¯ãOpenwrt BuildrootããåŒãè£ãããããã§ã«ã³ã³ãã€ã«ãããã¯ãã¹ã³ã³ãã€ã«ããã°ã©ã ã®ã»ããã§ãã
æåŸã®3ã€ã¯ãOpenWrt Buildrootããã³ã³ãã€ã«ã§ããŸãã
åè¿°ã®ããã«ãå§çž®ã¯SquashFSã®æ¹ãåªããŠãããããå®æããã€ã¡ãŒãžãããŠã³ããŒãããŠç®çã®ããã±ãŒãžãé ä¿¡ãããããããã¡ãŒã ãŠã§ã¢ãèªåã§ã³ã³ãã€ã«ããããšã§ãå¿ èŠãªãã®ãã¹ãŠã«é©åããå¯èœæ§ãé«ããªããŸãã æ¢è£œã®æå°éã®ãã¡ãŒã ãŠã§ã¢ãã€ã³ã¹ããŒã«ãã人ã®ããã«ãéçºè ããã®ãã«ãã以äžã«ç€ºããŸãã ãããã¯ãã¢ãŒããã¯ãã£ïŒãµããŒããããŠããããŒããŠã§ã¢ã®ãªã¹ãã®ã¿ãŒã²ããåïŒããã³ã¡ã¢ãªã¿ã€ãïŒnandããã³ãã®ä»ãã¹ãŠïŒã§ãœãŒãããããã¡ã€ã«åã«ã¯ã«ãŒã¿ãŒã®ååãå«ãŸããŸãã ãsysupgradeããšããååãå«ããã¡ãŒã ãŠã§ã¢ã¯ãOpenWrtããã§ã«ã€ã³ã¹ããŒã«ãããŠããããŒã«ããã©ãã·ã¥ããããã®ãã®ã§ãã ãå·¥å Žããå«ããŠã§ããã¡ã¯ããªãŒãã¡ãŒã ãŠã§ã¢ãäŸçµŠããããšãã§ããŸãã æ··åããªãã§ãã ããã
ã¢ã»ã³ããªãéå§ããŸãããã
泚æïŒ ãã«ã㯠ãrootãŸãã¯fakerootã§å®è¡ããªãã§ãã ããã
éå§ããã«ã¯ãbuildrootãããŠã³ããŒãããŠãã ããã 以äžã¯ããã©ã³ããšããããããŠã³ããŒãããããã®ã³ãã³ãã®ãªã¹ãã§ãã 姿å¢èª¿æŽå®å®ãåéããŸãã
git clone git://git.openwrt.org/12.09/openwrt.git
ã©ããããããŒã¿ãããŒã¿2ãrc1ãrc2ã®ãªããžããªã¯ãããŸããããæ®å¿µãªããšã«ãããŒã¿äžã§å®å®ããããã«ã³ã³ãã€ã«ãããããã±ãŒãžãã§ããªãã£ããããã«ãŒãã«ã®gitã³ãããIDãå¿ èŠãªãã®ã§ã¯ãªãããšãåªãããŸããïŒããŒãžã§ã³ã¯åãã§ãããïŒã
ããã«ã æ瀺ã«åŸã£ãŠ ãcjdnsãå«ãããªããžããªãã®ãœãŒã¹ã³ãŒããããŒããããå Žæã®ãªã¹ãã«è¿œå ããŸãã
cd ./openwrt cp feeds.conf.default feeds.conf
feeds.confãã¡ã€ã«ã«è¡ãè¿œå ããŸã
src-git cjdns git://github.com/cjdelisle/cjdns-openwrt.git
次ã«ããã¹ãŠã®ããã±ãŒãžã®ãœãŒã¹ã³ãŒããããŒãããŸãã
./scripts/feeds update -a ./scripts/feeds install -a
ä»ããå®è¡
make menuconfig
å¿ èŠãªãã®ããã¹ãŠã«ã¹ã¿ãã€ãºããŸãã
ãã¿ãŒã²ããã·ã¹ãã ãïŒã«ãŒã¿ãŒã®ååã®è¿ãã§ãµããŒããããŠããããã€ã¹ã®ãªã¹ãã«ãªã¹ããããŠãããã®ïŒããµãã¿ãŒã²ããïŒã«ãŒã¿ãŒã«éNANDã®æ°žç¶ã¡ã¢ãªãããå Žåã¯ããæ°è»œã«ãžã§ããªãã¯ãéžæããŠãã ããïŒããã¿ãŒã²ãããããã¡ã€ã«ãïŒåéããã«ãŒã¿ãŒã®ååãæ¢ããŸãïŒãéžæããŸã ãã¿ãŒã²ããç»åãã§ã¯ãéåžžãäœãå€æŽããå¿ èŠã¯ãããŸããã ã¹ããŒã¹ãéžæããŠãã ããã
ãã®æ®µéã§ãå¿ èŠãªãã¹ãŠã®ãã©ã€ããŒãæ¢ã«ããŒã¯ãããŠããŸãïŒãã¿ãŒã²ãããããã¡ã€ã«ãã®ãããïŒã 次ã«ãæ®ãã®ãã©ã³ãã«æ²¿ã£ãŠé²ã¿ãå¿ èŠãªãã±ãããéžæããŸãïŒç§ãã¡ã«ãšã£ãŠãçè«çã«ã¯ãããã¯æ©èœããŸãïŒã ããã§ã¯æ€çŽ¢ã¯æäŸãããªãããã次ã®ããã«ãªããŸãã
find ./feeds/ -name nano
幞ããªããšã«ãã»ãšãã©ã®ããã±ãŒãžã¯ã»ã¯ã·ã§ã³ã«åé¡ãããŠããŸãã ãããã¯./packageã«ãããŸããããã®æ¹æ³ã§ã¯èŠã€ãããŸããã åºåã«ã¯./feeds/packages/utils/nanoã衚瀺ãããŸããã€ãŸããããŠãŒãã£ãªãã£ãã»ã¯ã·ã§ã³ã§nanoãæ¢ãå¿ èŠããããŸãã 確ãã«ãmakefile pactãèªãããšãã§ããŸãã nanoã®å Žåãããã¯./feeds/packages/utils/nano/Makefileã§ãã ãã®äžã«ã¯ã次ã®ãã©ã°ã¡ã³ãããããŸãã
define Package/nano SUBMENU:=Editors SECTION:=utils CATEGORY:=Utilities TITLE:=An enhanced clone of the Pico text editor URL:=http://www.nano-editor.org/ MAINTAINER:=Bernhard Loos <bernhardloos@googlemail.com> DEPENDS:=+libncurses endef
ãCATEGORYã-ã»ã¯ã·ã§ã³ã®ååããSUBMENUã-ãµãã»ã¯ã·ã§ã³ã®ååã ã¡ãªã¿ã«ããã®ãããªã¬ã³ãŒãã¯1ã€ã§ã¯ãªãå ŽåããããŸãã å®éã«ã¯ãããã€ãã®ç°ãªãããã±ãŒãžã1ã€ã®ãœãŒã¹ã»ããããçµã¿ç«ãŠãããšãã§ããŸãã
UPDïŒãŠãŒã¶ãŒklirichekã¯ããŸã æ€çŽ¢ãããããšãææ¡ããŸããã å ¥åããã«ã¯ãmenuconfigã§ã/ããæŒãå¿ èŠããããŸãã
å ¥åãããã¯ãšãªãå«ãååã®ãªã¹ããšãã¡ãã¥ãŒå ã®å®å šãªèª¬æãšå ŽæãååŸããŸãã
ãããã£ãŠãå¿ èŠãªããã±ãŒãžã
- nano-èšå®ãviãcat / echoã§ç·šéããå¿ èŠããªãããã«
- htop-ããã»ã¹ãã¥ãŒã¢ãŒ
- iftop-ãããã¯ãŒã¯ã¢ã¯ãã£ããã£ãç£èŠããããã°ã©ã ïŒèª°ã誰ãšãã©ã®ããŒãã§ãã©ã®é床ã§ïŒ
- tcpdump-ãŸãã圌ãªãã§ã¯ã©ãã«ïŒ
- kmod-usb-storage-USBçµç±ã§å€éšã¹ãã¬ãŒãžã¡ãã£ã¢ãæ¥ç¶ããããã®ã«ãŒãã«ã¢ãžã¥ãŒã«
- kmod-usb-storage-extras-ãšããŸããã¯ãªå€éšusbã¹ãã¬ãŒãžã¡ãã£ã¢ïŒã«ãŒããªãŒããŒãªã©ïŒãæ¥ç¶ããããã®ã«ãŒãã«ã¢ãžã¥ãŒã«
- block-mount-/ etc / fstabã«èªåçã«ããŠã³ãããããã®ã¹ã¯ãªããã®ã»ããã busyboxããã®ããŠã³ãã¯ãuci configã䜿çšããŠãã¡ã€ã«ã·ã¹ãã ãèªåããŠã³ãããã®ã«ååã§ããïŒè©³çŽ°ã¯åŸã»ã©èª¬æããŸãïŒãswapãªãã§ã¯ã¹ã¯ããã¯èªåçã«ããŠã³ããããŸããã
- swap-utils-ã¹ã¯ããã®ããŠã³ãã«å¿ èŠ
- ããããçš®é¡ã®ãã¡ã€ã«ã·ã¹ãã ãã©ã€ããŒã ãã«ãŒãã«ã¢ãžã¥ãŒã«ã->ããã¡ã€ã«ã·ã¹ãã ãã§èŠã€ããããšãã§ããŸã
- shadow-groopaddãshadow-groupdelãshadow-groupmodãshadow-groupsãshadow-passwdãshadow-suãshadow-useraddãshadow-userdelãshadow-usermod-ãŠãŒã¶ãŒãšã°ã«ãŒãã管çããããã®äžé£ã®ãŠãŒãã£ãªãã£ã éåžžãããããªãã§å®è¡ã§ããŸãã
- ipãiwãiptablesãip6tables-ãããã¯ãŒã¯ã®æåã»ããã¢ããçš
- bind-dig-DNS ã¯ã©ã€ã¢ã³ã
ãã¹ãŠãé©åããªãå Žåãããããšã«æ³šæããŠãã ããã ãã®å Žåãã«ãŒã¿ãŒã®ã€ã¡ãŒãžã¯åéãããŸãããããã±ããã¯åéãããŸãã ããã±ãŒãžã¯ãçµã¿ç«ãŠãããããã«æ³šæããããšãã§ããŸãããã€ã¡ãŒãžã«ã¯å«ãŸããŠããŸããã ãããè¡ãã«ã¯ãmããŒãæŒããŸãã
次ã«ãcjdnã®ã€ã³ã¹ããŒã«ã劚ãã1ã€ã®ãã°ã«ã€ããŠèª¬æããŸãã cjdnsäŸåé¢ä¿ã«ã¯ãnaclãšãããã°ãããååã®ããã±ãŒãžããããŸãã ä»ã®ããã±ãŒãžããã«ããããšãã«äœ¿çšãããŸããããã€ããªããã±ãŒãžã¯ããããåéãããŸããã åæã«ãcjdnsãã€ããªããã±ãŒãžã®äŸåé¢ä¿ã«è¡šç€ºãããŸãã ãã®çµæãcjdnsã§æ¢ã«ã³ã³ãã€ã«ãããããã±ãŒãžãã€ã³ã¹ããŒã«ããã«ã¯ãæåã«ãã¢ã»ã³ãã«ããããã©ãŒã ã«ååšããªãnaclããã±ãŒãžãã€ã³ã¹ããŒã«ããå¿ èŠããããŸãã
ä»ããããåé¿ããæ¹æ³ã ./openwrt/feeds/cjdns/cjdns/Makefileãããã¹ããšãã£ã¿ãŒã§éããŸãã次ã®ãã©ã°ã¡ã³ããèŠã€ãããŸãã
define Package/cjdns SECTION:=net CATEGORY:=Network SUBMENU:=Routing and Redirection TITLE:=Experimental self configuring routing protocol. DEPENDS:=+kmod-tun +kmod-ipv6 +libnl +nacl +libpthread MAINTAINER:=cjd -- #cjdns on irc.efnet.org endef
ãDEPENDSãã+ naclãããåé€ããŸãã 次ã®ããã«ãªããŸãã
define Package/cjdns SECTION:=net CATEGORY:=Network SUBMENU:=Routing and Redirection TITLE:=Experimental self configuring routing protocol. DEPENDS:=+kmod-tun +kmod-ipv6 +libnl +libpthread MAINTAINER:=cjd -- #cjdns on irc.efnet.org endef
menuconfigã§naclïŒãã©ã€ãã©ãªãã»ã¯ã·ã§ã³ïŒãèŠã€ããŠã€ã³ã¹ããŒã«ããŸã
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
-
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrtUCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
-
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrtUCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
-
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrtUCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrtUCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
-
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrtUCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
-
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrtUCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
-
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrtUCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
-
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrtUCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
-
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrtUCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
-
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrtUCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
-
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrtUCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
-
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrtUCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - Ñ .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .