📜 ⬆️ ⬇️

Making Hyperboria hotspot. Allowance for picking the router

In this article I will try to tell you how to flash on an OpenWrt router and install cjdns there. In truth, the study of the intricacies of this business took me a lot of time and nerves. Mainly because a lot of things in OpenWrt are underdocumented, and I had to search a lot in forums and think things through. I think this is the case when the best documentation is the source. So I will try to write this article as I would like to read at the very beginning of this journey.


So the first thing to do is go to the OpenWrt website and see the list of supported devices: wiki.openwrt.org/toh/start
If you did not find your piece of iron, do not be upset. OpenWrt , : kamikaze.openwrt.org/docs/openwrt.html#x1-540002.3 OpenWrt , : kamikaze.openwrt.org/docs/openwrt.html#x1-540002.3 Although, you first need to somehow pull the kernel sources from the manufacturer.

Now a little theory. OpenWrt uses two file systems to store rootfs: SquashFS and JJFS2. It is also possible to connect others, but more on that later.
SquashFS is a compressed static file system. It is what is actually sewn. Due to its static nature, compression is better in it.
JJFS2 is a compressed dynamic file system in which file changes are written. It is mounted as if on top of SquashFS using the Linux Overlayfs kernel feature. It appeared since kernel version 3.11.
')
Environment for the assembly of OpenWRT can be downloaded in 4 versions.

The last three can be compiled from the OpenWrt Buildroot.

As mentioned above, in SquashFS, compression is better, so we have more chances to fit all that we need by assembling the firmware ourselves than by downloading the finished image and delivering the right package. For those who are going to put the finished minimum firmware, here are the builds from the developers. They are sorted by architecture (target column in the list of supported equipment) and by memory type (nand and all the others), the file names include the name of the router. Firmware containing the name "sysupgrade" designed for flashing means already installed OpenWrt. Containing the "factory" can feed the web form factory firmware. Do not confuse.

We proceed to the assembly.



Attention! The build should not be from the superuser or fakeroot.

To get started, download buildroot. There is a list of branches and commands for downloading them. We will build Attitude Adjust stable:
 git clone git://git.openwrt.org/12.09/openwrt.git 

Repositories with beta, beta2, rc1 and rc2, apparently, no, but sorry, because the package compiled for stable on the beta did not, just cursed that the kernel git commit id was not the one needed (although the versions were the same).

Next, following the instructions , we add to the list of places from which the source code "repository" with cjdns will be loaded.
 cd ./openwrt cp feeds.conf.default feeds.conf 

Add a line to the feeds.conf file
 src-git cjdns git://github.com/cjdelisle/cjdns-openwrt.git 

Next, load the source of all packages:
 ./scripts/feeds update -a ./scripts/feeds install -a 

Now run
 make menuconfig 

and customize everything you need.


Select "Target System" (the one listed in the list of supported devices next to the name of your router), Subtarget (if the router does not have NAND permanent memory, feel free to choose Generic), "Target Profile" (look for the name of the router we will build under). In Target Images, you usually don’t need to change anything. Select the space.

At this stage, all the necessary drivers have already been noted (thanks to the "Target Profile"). Then we go through the rest of the branches and choose the packages we need (It’s for us. In theory, it will work this way). Search here is not provided, so we will look like this:
 find ./feeds/ -name nano 

Fortunately, most packages are sorted into sections. Although they may be located in ./package and then you will not find them in this way. In the output, we see ./feeds/packages/utils/nano, which means that we need to look for the nano in the "Utilities" section. For complete confidence, you can read the makefile pact. For nano, this is ./feeds/packages/utils/nano/Makefile. In it we see the following fragment:
 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” is the name of the section, “SUBMENU” is the name of the subsection. By the way, this record may not be one. The fact is that several different packages can be assembled from one source set.

UPD: Habrapamer klirichek suggested that there is a search here. To enter it, you need to press "/" in menuconfig.



We get a list of objects whose name includes the entered query, with a full description and location in the menu.

So, the packages that we may need.

It should be noted that everything may not fit. In this case, the image for the router will not be assembled, but the packages will be assembled. The package can be noted so that it is assembled, but is not included in the image. To do this, press the m key.

And now I will talk about one bug that prevents the installation of cjdns. In cjdns dependencies, there is a package with the wonderful name nacl. It is used when building other packages, but it does not build a binary package from it. At the same time, it appears in the dependencies of the binary package cjdns. As a result, in order to install an already assembled package with cjdns, you first need to install the nacl package that does not exist in the assembled form.

Now how to get around it. Open ./openwrt/feeds/cjdns/cjdns/Makefile in a text editor, find this snippet:
 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 

and remove from "DEPENDS" "+ nacl". It should work like this:
 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 

In menuconfig we find nacl (in the “Libraries” section) and set it to
 . 

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 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 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 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 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
, .
  1. .

    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
    , .
  2. .

    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
    , .
  3. .

    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
    , .
  4. .

    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
, .

Source: https://habr.com/ru/post/202536/


All Articles