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. git clone git://git.openwrt.org/12.09/openwrt.git
cd ./openwrt cp feeds.conf.default feeds.conf
src-git cjdns git://github.com/cjdelisle/cjdns-openwrt.git
./scripts/feeds update -a ./scripts/feeds install -a
make menuconfig
find ./feeds/ -name nano
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
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
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
.
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
, .
.
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
, .
Source: https://habr.com/ru/post/202536/
All Articles