рд╣рдо рд╣рд╛рдЗрдкрд░рдмреЛрд░рд┐рдпрд╛ рд╣реЙрдЯрд╕реНрдкреЙрдЯ рдмрдирд╛рддреЗ рд╣реИрдВред рд░рд╛рдЙрдЯрд░ рдкрд┐рдХрд┐рдВрдЧ рднрддреНрддрд╛

рдЗрд╕ рд▓реЗрдЦ рдореЗрдВ рдореИрдВ рдпрд╣ рдмрддрд╛рдиреЗ рдХреА рдХреЛрд╢рд┐рд╢ рдХрд░реВрдВрдЧрд╛ рдХрд┐ рдПрдХ рдУрдкрдирд╡рд╛рд░реНрдЯ рд░рд╛рдЙрдЯрд░ рдкрд░ рдлреНрд▓реИрд╢ рдХреИрд╕реЗ рдХрд░реЗрдВ рдФрд░ рд╡рд╣рд╛рдВ рд╕реАрдбреАрдЬреЗрдПрди рд╕реНрдерд╛рдкрд┐рдд рдХрд░реЗрдВред рд╕рдЪ рдореЗрдВ, рдЗрд╕ рдЪрдХреНрдХрд░ рдХреА рдкреЗрдЪреАрджрдЧрд┐рдпреЛрдВ рдХрд╛ рдЕрдзреНрдпрдпрди рдХрд░рдиреЗ рдореЗрдВ рдореБрдЭреЗ рдмрд╣реБрдд рд╕рдордп рдФрд░ рдирд╕реЛрдВ рдХреА рдЬрд╝рд░реВрд░рдд рдереАред рдореБрдЦреНрдп рд░реВрдк рд╕реЗ рдХреНрдпреЛрдВрдХрд┐ OpenWrt рдореЗрдВ рдмрд╣реБрдд рд╕рд╛рд░реА рдЪреАрдЬреЗрдВ рдЕрдирд┐рд░реНрджрд┐рд╖реНрдЯ рд╣реИрдВ, рдФрд░ рдореБрдЭреЗ рдордВрдЪреЛрдВ рдкрд░ рдмрд╣реБрдд рдХреБрдЫ рдЦреЛрдЬрдирд╛ рдерд╛ рдФрд░ рдмрд╣реБрдд рдХреБрдЫ рд╕реЛрдЪрдирд╛ рдерд╛ред рдореБрдЭреЗ рд▓рдЧрддрд╛ рд╣реИ рдХрд┐ рдареАрдХ рдпрд╣реА рд╕реНрдерд┐рддрд┐ рд╣реИ рдЬрдм рд╕рдмрд╕реЗ рдЕрдЪреНрдЫрд╛ рдкреНрд░рд▓реЗрдЦрди рд╕реНрд░реЛрдд рд╣реИред рдЗрд╕рд▓рд┐рдП рдореИрдВ рдЗрд╕ рд▓реЗрдЦ рдХреЛ рд▓рд┐рдЦрдиреЗ рдХреА рдХреЛрд╢рд┐рд╢ рдХрд░реВрдВрдЧрд╛ рдХреНрдпреЛрдВрдХрд┐ рдореИрдВ рдЗрд╕ рдпрд╛рддреНрд░рд╛ рдХреА рд╢реБрд░реБрдЖрдд рдореЗрдВ рдкрдврд╝рдирд╛ рдЪрд╛рд╣реВрдВрдЧрд╛ред


рддреЛ, рдкрд╣рд▓реА рдмрд╛рдд рдпрд╣ рд╣реИ рдХрд┐ OpenWrt рд╡реЗрдмрд╕рд╛рдЗрдЯ рдкрд░ рдЬрд╛рдПрдВ рдФрд░ рд╕рдорд░реНрдерд┐рдд рдЙрдкрдХрд░рдгреЛрдВ рдХреА рд╕реВрдЪреА рджреЗрдЦреЗрдВ: wiki.openwrt.org/toh/start
рдпрджрд┐ рдЖрдкрдХреЛ рдЕрдкрдирд╛ рд▓реЛрд╣реЗ рдХрд╛ рдЯреБрдХрдбрд╝рд╛ рдирд╣реАрдВ рдорд┐рд▓рд╛, рддреЛ рдирд┐рд░рд╛рд╢ рдордд рд╣реЛрдЗрдПред OpenWrt , : kamikaze.openwrt.org/docs/openwrt.html#x1-540002.3 OpenWrt , : kamikaze.openwrt.org/docs/openwrt.html#x1-540002.3 рд╣рд╛рд▓рд╛рдВрдХрд┐, рдЖрдкрдХреЛ рдкрд╣рд▓реЗ рдХрд┐рд╕реА рддрд░рд╣ рдирд┐рд░реНрдорд╛рддрд╛ рд╕реЗ рдХрд░реНрдиреЗрд▓ рд╕реНрд░реЛрдд рдХрд╛ рд╡рд┐рд╕реНрддрд╛рд░ рдХрд░рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИред

рдЕрдм рдереЛрдбрд╝рд╛ рд╕рд┐рджреНрдзрд╛рдВрддред OpenWrt рд░реВрдЯрдлрд╝реЛрдВ рдХреЛ рд╕рдВрдЧреНрд░рд╣реАрдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рджреЛ рдлрд╝рд╛рдЗрд▓ рд╕рд┐рд╕реНрдЯрдо рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рддрд╛ рд╣реИ: рд╕реНрдХреНрд╡реИрд╢ рдФрд░ JJFS2ред рджреВрд╕рд░реЛрдВ рдХреЛ рдХрдиреЗрдХреНрдЯ рдХрд░рдирд╛ рднреА рд╕рдВрднрд╡ рд╣реИ, рд▓реЗрдХрд┐рди рдмрд╛рдж рдореЗрдВ рдЙрд╕ рдкрд░ рдЕрдзрд┐рдХред
рд╕реНрдХреНрд╡реИрд╢ рдПрдлрдПрд╕ рдПрдХ рд╕рдВрдХреБрдЪрд┐рдд рд╕реНрдерд┐рд░ рдлрд╛рдЗрд▓ рд╕рд┐рд╕реНрдЯрдо рд╣реИред рд╡рд╣ рд╡рд╣реА рд╣реИ рдЬреЛ рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ рд╕рд┐рд▓рд╛ рд╣реБрдЖ рд╣реИред рдЗрд╕рдХреА рд╕реНрдерд┐рд░ рдкреНрд░рдХреГрддрд┐ рдХреЗ рдХрд╛рд░рдг, рдЗрд╕рдореЗрдВ рд╕рдВрдкреАрдбрд╝рди рдмреЗрд╣рддрд░ рд╣реИред
JJFS2 рдПрдХ рд╕рдВрдкреАрдбрд╝рд┐рдд рдбрд╛рдпрдирд╛рдорд┐рдХ рдлрд╝рд╛рдЗрд▓ рд╕рд┐рд╕реНрдЯрдо рд╣реИ рдЬрд┐рд╕рдореЗрдВ рдлрд╝рд╛рдЗрд▓ рдкрд░рд┐рд╡рд░реНрддрди рд▓рд┐рдЦреЗ рдЬрд╛рддреЗ рд╣реИрдВред рдпрд╣ рдорд╛рдЙрдВрдЯреЗрдб рд╣реИ, рдЬреИрд╕рд╛ рдХрд┐ рд╕реНрдХреНрд╡рд╛рд╢ рдХреЗ рд╢реАрд░реНрд╖ рдкрд░ рдерд╛, рд▓рд┐рдирдХреНрд╕ рдУрд╡рд░рд▓реЗрдлреНрд╕ рдХрд░реНрдиреЗрд▓ рд╕реБрд╡рд┐рдзрд╛ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдХреЗред рдпрд╣ рдХрд░реНрдиреЗрд▓ рд╕рдВрд╕реНрдХрд░рдг 3.11 рдХреЗ рдмрд╛рдж рд╕реЗ рджрд┐рдЦрд╛рдИ рджрд┐рдпрд╛ред

OpenWRT рдмрд┐рд▓реНрдб рд╡рд╛рддрд╛рд╡рд░рдг 4 рд╕рдВрд╕реНрдХрд░рдгреЛрдВ рдореЗрдВ рдбрд╛рдЙрдирд▓реЛрдб рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИред

рдкрд┐рдЫрд▓реЗ рддреАрди рдХреЛ OpenWrt Buildroot рд╕реЗ рд╕рдВрдХрд▓рд┐рдд рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИред

рдЬреИрд╕рд╛ рдХрд┐ рдКрдкрд░ рдЙрд▓реНрд▓реЗрдЦ рдХрд┐рдпрд╛ рдЧрдпрд╛ рд╣реИ, рд╕реНрдХреНрд╡рд╛рд╢рдПрдл рдореЗрдВ рд╕рдВрдкреАрдбрд╝рди рдмреЗрд╣рддрд░ рд╣реИ, рдЗрд╕рд▓рд┐рдП рд╣рдорд╛рд░реЗ рдкрд╛рд╕ рдлрд╝рд░реНрдорд╡реЗрдпрд░ рдХреЛ рдХрдВрдкрд╛рдЗрд▓ рдХрд░рдХреЗ рдФрд░ рддреИрдпрд╛рд░ рдХреА рдЧрдИ рдЫрд╡рд┐ рдХреЛ рдбрд╛рдЙрдирд▓реЛрдб рдХрд░рдХреЗ рд╡рд╛рдВрдЫрд┐рдд рдкреИрдХреЗрдЬ рджреЗрдиреЗ рдХреА рдЬрд╝рд░реВрд░рдд рд╣реИред рдЙрди рд▓реЛрдЧреЛрдВ рдХреЗ рд▓рд┐рдП рдЬреЛ рддреИрдпрд╛рд░-рдирд┐рд░реНрдорд┐рдд рдиреНрдпреВрдирддрдо рдлрд░реНрдорд╡реЗрдпрд░ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдиреЗ рдЬрд╛ рд░рд╣реЗ рд╣реИрдВ, рдпрд╣рд╛рдВ рдбреЗрд╡рд▓рдкрд░реНрд╕ рд╕реЗ рдмрд┐рд▓реНрдб рд╣реИрдВ ред рд╡реЗ рд╡рд╛рд╕реНрддреБрдХрд▓рд╛ (рд╕рдорд░реНрдерд┐рдд рд╣рд╛рд░реНрдбрд╡реЗрдпрд░ рдХреА рд╕реВрдЪреА рдореЗрдВ рд▓рдХреНрд╖реНрдп рд╕реНрддрдВрдн) рдФрд░ рдореЗрдореЛрд░реА рдкреНрд░рдХрд╛рд░ (рдирдВрдж рдФрд░ рдмрд╛рдХреА рд╕рднреА) рджреНрд╡рд╛рд░рд╛ рдХреНрд░рдордмрджреНрдз рд╣реИрдВ, рдлрд╝рд╛рдЗрд▓ рдирд╛рдореЛрдВ рдореЗрдВ рд░рд╛рдЙрдЯрд░ рдХрд╛ рдирд╛рдо рд╢рд╛рдорд┐рд▓ рд╣реИред "Sysupgrad" рдирд╛рдо рдХрд╛ рдлрд╝рд░реНрдорд╡реЗрдпрд░ рдкрд╣рд▓реЗ рд╕реЗ рд╕реНрдерд╛рдкрд┐рдд OpenWrt рдХреЛ рдЪрдордХрд╛рдиреЗ рдХреЗ рд▓рд┐рдП рд╣реИред рдпреБрдХреНрдд "рдлрд╝реИрдХреНрдЯрд░реА" рдХреЛ рд╡реЗрдм рдлрд╝реЙрд░реНрдо рдлрд╝реИрдХреНрдЯрд░реА рдлрд╝рд░реНрдорд╡реЗрдпрд░ рдЦрд┐рд▓рд╛рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИред рднреНрд░рдорд┐рдд рдордд рдХрд░реЛред

рдЪрд▓реЛ рд╡рд┐рдзрд╛рдирд╕рднрд╛ рд╢реБрд░реВ рдХрд░рддреЗ рд╣реИрдВред



рдЪреЗрддрд╛рд╡рдиреА! рдмрд┐рд▓реНрдб рдХреЛ рд░реВрдЯ рдпрд╛ рдлрд╝реЗрдХрд░реВрдЯ рдореЗрдВ рдирд╣реАрдВ рдХрд┐рдпрд╛ рдЬрд╛рдирд╛ рдЪрд╛рд╣рд┐рдП ред

рдЖрд░рдВрдн рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдмрд┐рд▓реНрдбрд░реЛрдЯ рдбрд╛рдЙрдирд▓реЛрдб рдХрд░реЗрдВред рдпрд╣рд╛рдВ рдЙрдиреНрд╣реЗрдВ рдбрд╛рдЙрдирд▓реЛрдб рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рд╢рд╛рдЦрд╛рдУрдВ рдФрд░ рдЖрджреЗрд╢реЛрдВ рдХреА рдПрдХ рд╕реВрдЪреА рджреА рдЧрдИ рд╣реИред рд╣рдо рдПрдЯреАрдЯреНрдпреВрдб рдПрдбрдЬрд╕реНрдЯрдореЗрдВрдЯ рдХреЛ рд╕реНрдерд┐рд░ рдХрд░реЗрдВрдЧреЗ:
 git clone git://git.openwrt.org/12.09/openwrt.git 

рдЬрд╛рд╣рд┐рд░рд╛ рддреМрд░ рдкрд░, рдмреАрдЯрд╛, рдмреАрдЯрд╛ 2, рдЖрд░рд╕реА 1 рдФрд░ рдЖрд░рд╕реА 2 рдХреЗ рд╕рд╛рде рдХреЛрдИ рд░рд┐рдкреЙрдЬрд┐рдЯрд░реА рдирд╣реАрдВ рд╣реИрдВ, рд▓реЗрдХрд┐рди рдпрд╣ рдЕрдлрд╝рд╕реЛрд╕ рдХреА рдмрд╛рдд рд╣реИ, рдХреНрдпреЛрдВрдХрд┐ рдмреАрдЯрд╛ рдкрд░ рд╕реНрдерд┐рд░ рдХреЗ рд▓рд┐рдП рд╕рдВрдХрд▓рд┐рдд рдкреИрдХреЗрдЬ рдирд╣реАрдВ рдмрди рдЧрдпрд╛, рдХреЗрд╡рд▓ рд╢рд╛рдк рджрд┐рдпрд╛ рдХрд┐ рдХрд░реНрдиреЗрд▓ рдХреА рдЧрд┐рдЯ рдХрдо рдЖрдИрдбреА рд╡рд╣ рдереА рдЬрд┐рд╕рдХреА рдЬрд╝рд░реВрд░рдд рдирд╣реАрдВ рдереА (рд╣рд╛рд▓рд╛рдВрдХрд┐ рд╕рдВрд╕реНрдХрд░рдг рд╕рдорд╛рди рдереЗ)ред

рдЗрд╕рдХреЗ рдЕрд▓рд╛рд╡рд╛, рдирд┐рд░реНрджреЗрд╢реЛрдВ рдХрд╛ рдкрд╛рд▓рди тАЛтАЛрдХрд░рддреЗ рд╣реБрдП , рд╣рдо рдЙрди рд╕реНрдерд╛рдиреЛрдВ рдХреА рд╕реВрдЪреА рдореЗрдВ рдЬреЛрдбрд╝рддреЗ рд╣реИрдВ рдЬрд╣рд╛рдВ рд╕реЗ cddns рдХреЗ рд╕рд╛рде "рд░рд┐рдкреЙрдЬрд┐рдЯрд░реА" рдХрд╛ рд╕реНрд░реЛрдд рдХреЛрдб рд▓реЛрдб рдХрд┐рдпрд╛ рдЬрд╛рдПрдЧрд╛ред
 cd ./openwrt cp feeds.conf.default feeds.conf 

Feeds.conf рдлрд╝рд╛рдЗрд▓ рдореЗрдВ рд▓рд╛рдЗрди рдЬреЛрдбрд╝реЗрдВ
 src-git cjdns git://github.com/cjdelisle/cjdns-openwrt.git 

рдЕрдЧрд▓рд╛, рд╕рднреА рдкреИрдХреЗрдЬреЛрдВ рдХреЗ рд▓рд┐рдП рд╕реНрд░реЛрдд рдХреЛрдб рд▓реЛрдб рдХрд░реЗрдВ:
 ./scripts/feeds update -a ./scripts/feeds install -a 

рдЕрдм рджреМрдбрд╝реЛ
 make menuconfig 

рдФрд░ рд╕рдм рдХреБрдЫ рдЖрдк рдХреА рдЬрд░реВрд░рдд рдХреЛ рдЕрдиреБрдХреВрд▓рд┐рддред


рд╣рдо "рд▓рдХреНрд╖реНрдп рдкреНрд░рдгрд╛рд▓реА" (рдЖрдкрдХреЗ рд░рд╛рдЙрдЯрд░ рдХреЗ рдирд╛рдо рдХреЗ рдкрд╛рд╕ рд╕рдорд░реНрдерд┐рдд рдЙрдкрдХрд░рдгреЛрдВ рдХреА рд╕реВрдЪреА рдореЗрдВ рджрд░реНрд╢рд╛рдпрд╛ рдЧрдпрд╛ рд╣реИ), рд╕рдмрдЯрд╛рд░реНрдЧреЗрдЯ (рдпрджрд┐ рд░рд╛рдЙрдЯрд░ рдореЗрдВ рдЧреИрд░-рдирдВрдж рд╕реНрдерд╛рдпреА рдореЗрдореЛрд░реА рд╣реИ, рдЬреЗрдиреЗрд░рд┐рдХ рдЪреБрдирдиреЗ рдХреЗ рд▓рд┐рдП рд╕реНрд╡рддрдВрддреНрд░ рдорд╣рд╕реВрд╕ рдХрд░рддреЗ рд╣реИрдВ), "рд▓рдХреНрд╖реНрдп рдкреНрд░реЛрдлрд╝рд╛рдЗрд▓" (рд╣рдо рдЙрд╕ рд░рд╛рдЙрдЯрд░ рдХреЗ рдирд╛рдо рдХреА рддрд▓рд╛рд╢ рдХрд░рддреЗ рд╣реИрдВ рдЬрд┐рд╕рдХреЗ рд▓рд┐рдП рд╣рдо рдПрдХрддреНрд░ рдХрд░реЗрдВрдЧреЗ) рдХрд╛ рдЪрдпрди рдХрд░реЗрдВред "рд▓рдХреНрд╖реНрдп рдЫрд╡рд┐рдпрд╛рдБ" рдореЗрдВ, рдЖрдорддреМрд░ рдкрд░ рдХреБрдЫ рднреА рдмрджрд▓рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рдирд╣реАрдВ рд╣реЛрддреА рд╣реИред рдПрдХ рд╕реНрдерд╛рди рдЪреБрдиреЗрдВред

рдЗрд╕ рд╕реНрддрд░ рдкрд░, рд╕рднреА рдЖрд╡рд╢реНрдпрдХ рдбреНрд░рд╛рдЗрд╡рд░ рдкрд╣рд▓реЗ рд╕реЗ рд╣реА рдЪрд┐рд╣реНрдирд┐рдд рд╣реИрдВ ("рд▓рдХреНрд╖реНрдп рдкреНрд░реЛрдлрд╝рд╛рдЗрд▓" рдХреЗ рд▓рд┐рдП рдзрдиреНрдпрд╡рд╛рдж)ред рдЕрдЧрд▓рд╛, рд╣рдо рд╢реЗрд╖ рд╢рд╛рдЦрд╛рдУрдВ рдХреЗ рд╕рд╛рде рдЬрд╛рддреЗ рд╣реИрдВ рдФрд░ рдЖрд╡рд╢реНрдпрдХ рдкреЗрдХреЗрдЯреНрд╕ рдХрд╛ рдЪрдпрди рдХрд░рддреЗ рд╣реИрдВ (рд╣рдорд╛рд░реЗ рд▓рд┐рдПред рд╕рд┐рджреНрдзрд╛рдВрдд рд░реВрдк рдореЗрдВ, рдпрд╣ рдХрд╛рдо рдХрд░реЗрдЧрд╛)ред рдпрд╣рд╛рдВ рдЦреЛрдЬ рдкреНрд░рджрд╛рди рдирд╣реАрдВ рдХреА рдЧрдИ рд╣реИ, рдЗрд╕рд▓рд┐рдП рд╣рдо рдЗрд╕ рддрд░рд╣ рджреЗрдЦреЗрдВрдЧреЗ:
 find ./feeds/ -name nano 

рд╕реМрднрд╛рдЧреНрдп рд╕реЗ, рдЕрдзрд┐рдХрд╛рдВрд╢ рдкреИрдХреЗрдЬ рдЕрдиреБрднрд╛рдЧреЛрдВ рдореЗрдВ рдХреНрд░рдордмрджреНрдз рд╣реИрдВред рдпрджреНрдпрдкрд┐ рд╡реЗ /ред рдкреИрдХреЗрдЬ рдореЗрдВ рд╕реНрдерд┐рдд рд╣реЛ рд╕рдХрддреЗ рд╣реИрдВ рдФрд░ рдлрд┐рд░ рдЖрдк рдЙрдиреНрд╣реЗрдВ рдЗрд╕ рддрд░рд╣ рдирд╣реАрдВ рдкрд╛рдПрдВрдЧреЗред рдЖрдЙрдЯрдкреБрдЯ рдореЗрдВ рд╣рдо рджреЗрдЦрддреЗ рд╣реИрдВ ред/feeds/packages/utils/nano, рдЬрд┐рд╕рдХрд╛ рдЕрд░реНрде рд╣реИ рдХрд┐ рд╣рдореЗрдВ "рдЙрдкрдпреЛрдЧрд┐рддрд╛" рдЕрдиреБрднрд╛рдЧ рдореЗрдВ рдиреИрдиреЛ рдХреА рддрд▓рд╛рд╢ рдХрд░рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИред рд╕реБрдирд┐рд╢реНрдЪрд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдЖрдк рдореЗрдХрдлрд╛рдЗрд▓ рд╕рдВрдзрд┐ рдХреЛ рдкрдврд╝ рд╕рдХрддреЗ рд╣реИрдВред рдиреИрдиреЛ рдХреЗ рд▓рд┐рдП, рдпрд╣ ./feeds/packages/utils/nano/Makefile рд╣реИред рдЗрд╕рдореЗрдВ рд╣рдо рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдЕрдВрд╢ рджреЗрдЦрддреЗ рд╣реИрдВ:
 define Package/nano SUBMENU:=Editors SECTION:=utils CATEGORY:=Utilities TITLE:=An enhanced clone of the Pico text editor URL:=http://www.nano-editor.org/ MAINTAINER:=Bernhard Loos <bernhardloos@googlemail.com> DEPENDS:=+libncurses endef 

"CATEGORY" - рдЕрдиреБрднрд╛рдЧ рдХрд╛ рдирд╛рдо, "SUBMENU" - рдЙрдкрдзрд╛рд░рд╛ рдХрд╛ рдирд╛рдоред рд╡реИрд╕реЗ, рдРрд╕рд╛ рд░рд┐рдХреЙрд░реНрдб рдПрдХ рдирд╣реАрдВ рд╣реЛ рд╕рдХрддрд╛ рд╣реИред рддрдереНрдп рдпрд╣ рд╣реИ рдХрд┐ рд╕реНрд░реЛрддреЛрдВ рдХреЗ рдПрдХ рд╕реЗрдЯ рд╕реЗ рдХрдИ рдЕрд▓рдЧ-рдЕрд▓рдЧ рдкреИрдХреЗрдЬ рдЗрдХрдЯреНрдареЗ рдХрд┐рдП рдЬрд╛ рд╕рдХрддреЗ рд╣реИрдВред

UPD: рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛ klirichek рдиреЗ рд╕реБрдЭрд╛рд╡ рджрд┐рдпрд╛ рдХрд┐ рдЕрднреА рднреА рдПрдХ рдЦреЛрдЬ рд╣реИред рдЗрд╕реЗ рджрд░реНрдЬ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдЖрдкрдХреЛ menuconfig рдореЗрдВ "/" рджрдмрд╛рдирд╛ рд╣реЛрдЧрд╛ред



рд╣рдореЗрдВ рд╡рд╕реНрддреБрдУрдВ рдХреА рдПрдХ рд╕реВрдЪреА рдорд┐рд▓рддреА рд╣реИ, рдЬрд┐рдирдореЗрдВ рд╕реЗ рдПрдХ рдирд╛рдо, рдкреВрд░реНрдг рд╡рд┐рд╡рд░рдг рдФрд░ рдореЗрдиреВ рдореЗрдВ рд╕реНрдерд╛рди рдХреЗ рд╕рд╛рде рджрд░реНрдЬ рдХреА рдЧрдИ рдХреНрд╡реЗрд░реА рд╢рд╛рдорд┐рд▓ рд╣реИред

рдЗрд╕рд▓рд┐рдП, рдРрд╕реЗ рдкреИрдХреЗрдЬ рдЬрд┐рдирдХреА рд╣рдореЗрдВ рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реЛ рд╕рдХрддреА рд╣реИред

рдпрд╣ рдзреНрдпрд╛рди рджрд┐рдпрд╛ рдЬрд╛рдирд╛ рдЪрд╛рд╣рд┐рдП рдХрд┐ рд╕рдм рдХреБрдЫ рдлрд┐рдЯ рдирд╣реАрдВ рд╣реЛ рд╕рдХрддрд╛ рд╣реИред рдЗрд╕ рдорд╛рдорд▓реЗ рдореЗрдВ, рд░рд╛рдЙрдЯрд░ рдХреЗ рд▓рд┐рдП рдЫрд╡рд┐ рдПрдХрддреНрд░ рдирд╣реАрдВ рдХреА рдЬрд╛рдПрдЧреА, рд▓реЗрдХрд┐рди рдкреИрдХреЗрдЯ рдПрдХрддреНрд░ рдХрд┐рдП рдЬрд╛рдПрдВрдЧреЗред рдкреИрдХреЗрдЬ рдХреЛ рдиреЛрдЯ рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИ рддрд╛рдХрд┐ рдЗрд╕реЗ рдЗрдХрдЯреНрдард╛ рдХрд┐рдпрд╛ рдЬрд╛рдП, рд▓реЗрдХрд┐рди рдпрд╣ рдЫрд╡рд┐ рдореЗрдВ рд╢рд╛рдорд┐рд▓ рдирд╣реАрдВ рдерд╛ред рдРрд╕рд╛ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдПрдо рдХреБрдВрдЬреА рджрдмрд╛рдПрдВред

рдФрд░ рдЕрдм рдореИрдВ рдЖрдкрдХреЛ рдПрдХ рдмрдЧ рдХреЗ рдмрд╛рд░реЗ рдореЗрдВ рдмрддрд╛рддрд╛ рд╣реВрдБ рдЬреЛ cjdns рдХреА рд╕реНрдерд╛рдкрдирд╛ рдХреЛ рд░реЛрдХрддрд╛ рд╣реИред Cjdns рдирд┐рд░реНрднрд░рддрд╛ рдЕрджреНрднреБрдд рдирд╛рдо nacl рдХреЗ рд╕рд╛рде рдПрдХ рдкреИрдХреЗрдЬ рд╣реИред рдЗрд╕рдХрд╛ рдЙрдкрдпреЛрдЧ рдЕрдиреНрдп рдкреИрдХреЗрдЬреЛрдВ рдХрд╛ рдирд┐рд░реНрдорд╛рдг рдХрд░рддреЗ рд╕рдордп рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ, рд▓реЗрдХрд┐рди рдмрд╛рдЗрдирд░реА рдкреИрдХреЗрдЬ рдХреЛ рдЗрд╕рд╕реЗ рдПрдХрддреНрд░ рдирд╣реАрдВ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред рдЗрд╕реА рд╕рдордп, рдпрд╣ cjdns рдмрд╛рдЗрдирд░реА рдкреИрдХреЗрдЬ рдХреА рдирд┐рд░реНрднрд░рддрд╛ рдореЗрдВ рдкреНрд░рдХрдЯ рд╣реЛрддрд╛ рд╣реИред рдирддреАрдЬрддрди, cjdns рдХреЗ рд╕рд╛рде рдкрд╣рд▓реЗ рд╕реЗ рд╕рдВрдХрд▓рд┐рдд рдкреИрдХреЗрдЬ рдХреЛ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдЖрдкрдХреЛ рдкрд╣рд▓реЗ nacl рдкреИрдХреЗрдЬ рдХреЛ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдирд╛ рд╣реЛрдЧрд╛ рдЬреЛ рдЗрдХрдЯреНрдареЗ рд░реВрдк рдореЗрдВ рдореМрдЬреВрдж рдирд╣реАрдВ рд╣реИред

рдЕрдм, рдЗрд╕реЗ рдХреИрд╕реЗ рдкреНрд░рд╛рдкреНрдд рдХрд░реЗрдВред рдЦреЛрд▓реЗрдВ ./openwrt/feeds/cjdns/cjdns/Makefile рдПрдХ рдкрд╛рда рд╕рдВрдкрд╛рджрдХ рдореЗрдВ, рд╣рдо рдЗрд╕ рдЯреБрдХрдбрд╝реЗ рдХреЛ рдкрд╛рддреЗ рд╣реИрдВ:
 define Package/cjdns SECTION:=net CATEGORY:=Network SUBMENU:=Routing and Redirection TITLE:=Experimental self configuring routing protocol. DEPENDS:=+kmod-tun +kmod-ipv6 +libnl +nacl +libpthread MAINTAINER:=cjd -- #cjdns on irc.efnet.org endef 

рдФрд░ "DEPENDS" "+ nacl" рд╕реЗ рд╣рдЯрд╛ рджреЗрдВред рдпрд╣ рдЗрд╕ рддрд░рд╣ рд╣реЛрдирд╛ рдЪрд╛рд╣рд┐рдП:
 define Package/cjdns SECTION:=net CATEGORY:=Network SUBMENU:=Routing and Redirection TITLE:=Experimental self configuring routing protocol. DEPENDS:=+kmod-tun +kmod-ipv6 +libnl +libpthread MAINTAINER:=cjd -- #cjdns on irc.efnet.org endef 

Menuconfig рдореЗрдВ рд╣рдо nacl ("рд▓рд╛рдЗрдмреНрд░реЗрд░реАрдЬрд╝" рд╕реЗрдХреНрд╢рди рдореЗрдВ) рдкрд╛рддреЗ рд╣реИрдВ рдФрд░ рдЗрд╕реЗ рдЗрдВрд╕реНрдЯреЙрд▓ рдХрд░рддреЗ рд╣реИрдВ
 . 

nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
  1. .

    nacl :
    make package/nacl/compile

    - mate-terminal, , tmux. , , , .

    . , . , . , - , . , tl-mr3220, serial hack adapter , .
    . OpenWrt UCI, . , . , , , . , /etc/config/.
    - , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
    config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

    , OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

    cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

    , :
    make

    ./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

    .
    , openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

    OpenWrt.

    ssh, , :
    free
    tmpfs.
    /etc/sysupgrade.conf. , ( jffs2). #. , .
    /tmp ( tmpfs):
    scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
    . :
    cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
    .

    :
    sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

    , . ssh passwd root.

    , . , , .

    .
    OpenWrt opkg . :
    update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
    opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
    : wiki.openwrt.org/doc/techref/opkg
    , /etc/opkg.conf
    src/gz < > <url >
    :
    src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
    , ,
    src/gz local file://////
    , , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

    ( ).
    . ext4. , , . , /dev . , .
    , :
    mount /dev/sda1 /mnt
    , , .
    rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
    tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
    , /etc/config/fstab. :
    config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
    ,
    uci commit fstab
    - uuid, usb. "device" "uuid" , , uuid .
    : wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

    swap.
    , :
    config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
    . swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
    swap free.
    uci commit .

    C cjdns ( squashfs).
    scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

    wi-fi ad-hoc.
    /etc/config/wireless :
    config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
    "device" "", "wifi-device". :
    config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
    . . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
    , bridge . , :
    iw dev </code> : <source> brctl show
    ad-hoc , /etc/config/network. interface "type" "bridge" :
    config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
    "_orig_ifname" "radio0.network1", "ifname" - "wlan0"

    cjdns. ETHInterface, , :
    "ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
    , , -, cjdroute . , , - .

    .
    /etc/init.d/ . /etc/init.d/cjdns :
    #!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
    $START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

    chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
    OpenWrt : wiki.openwrt.org/doc/techref/initscripts

    , , . , !

    UPD: cjdns README.md , .

    UPD2: .
    , '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

    , , , . .
    - , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
    , feeds.conf :
    src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
    , .
  2. .

    nacl :
    make package/nacl/compile

    - mate-terminal, , tmux. , , , .

    . , . , . , - , . , tl-mr3220, serial hack adapter , .
    . OpenWrt UCI, . , . , , , . , /etc/config/.
    - , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
    config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

    , OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

    cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

    , :
    make

    ./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

    .
    , openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

    OpenWrt.

    ssh, , :
    free
    tmpfs.
    /etc/sysupgrade.conf. , ( jffs2). #. , .
    /tmp ( tmpfs):
    scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
    . :
    cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
    .

    :
    sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

    , . ssh passwd root.

    , . , , .

    .
    OpenWrt opkg . :
    update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
    opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
    : wiki.openwrt.org/doc/techref/opkg
    , /etc/opkg.conf
    src/gz < > <url >
    :
    src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
    , ,
    src/gz local file://////
    , , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

    ( ).
    . ext4. , , . , /dev . , .
    , :
    mount /dev/sda1 /mnt
    , , .
    rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
    tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
    , /etc/config/fstab. :
    config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
    ,
    uci commit fstab
    - uuid, usb. "device" "uuid" , , uuid .
    : wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

    swap.
    , :
    config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
    . swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
    swap free.
    uci commit .

    C cjdns ( squashfs).
    scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

    wi-fi ad-hoc.
    /etc/config/wireless :
    config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
    "device" "", "wifi-device". :
    config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
    . . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
    , bridge . , :
    iw dev </code> : <source> brctl show
    ad-hoc , /etc/config/network. interface "type" "bridge" :
    config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
    "_orig_ifname" "radio0.network1", "ifname" - "wlan0"

    cjdns. ETHInterface, , :
    "ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
    , , -, cjdroute . , , - .

    .
    /etc/init.d/ . /etc/init.d/cjdns :
    #!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
    $START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

    chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
    OpenWrt : wiki.openwrt.org/doc/techref/initscripts

    , , . , !

    UPD: cjdns README.md , .

    UPD2: .
    , '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

    , , , . .
    - , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
    , feeds.conf :
    src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
    , .
  3. .

    nacl :
    make package/nacl/compile

    - mate-terminal, , tmux. , , , .

    . , . , . , - , . , tl-mr3220, serial hack adapter , .
    . OpenWrt UCI, . , . , , , . , /etc/config/.
    - , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
    config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

    , OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

    cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

    , :
    make

    ./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

    .
    , openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

    OpenWrt.

    ssh, , :
    free
    tmpfs.
    /etc/sysupgrade.conf. , ( jffs2). #. , .
    /tmp ( tmpfs):
    scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
    . :
    cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
    .

    :
    sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

    , . ssh passwd root.

    , . , , .

    .
    OpenWrt opkg . :
    update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
    opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
    : wiki.openwrt.org/doc/techref/opkg
    , /etc/opkg.conf
    src/gz < > <url >
    :
    src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
    , ,
    src/gz local file://////
    , , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

    ( ).
    . ext4. , , . , /dev . , .
    , :
    mount /dev/sda1 /mnt
    , , .
    rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
    tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
    , /etc/config/fstab. :
    config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
    ,
    uci commit fstab
    - uuid, usb. "device" "uuid" , , uuid .
    : wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

    swap.
    , :
    config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
    . swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
    swap free.
    uci commit .

    C cjdns ( squashfs).
    scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

    wi-fi ad-hoc.
    /etc/config/wireless :
    config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
    "device" "", "wifi-device". :
    config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
    . . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
    , bridge . , :
    iw dev </code> : <source> brctl show
    ad-hoc , /etc/config/network. interface "type" "bridge" :
    config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
    "_orig_ifname" "radio0.network1", "ifname" - "wlan0"

    cjdns. ETHInterface, , :
    "ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
    , , -, cjdroute . , , - .

    .
    /etc/init.d/ . /etc/init.d/cjdns :
    #!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
    $START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

    chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
    OpenWrt : wiki.openwrt.org/doc/techref/initscripts

    , , . , !

    UPD: cjdns README.md , .

    UPD2: .
    , '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

    , , , . .
    - , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
    , feeds.conf :
    src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
    , .
  4. .

    nacl :
    make package/nacl/compile

    - mate-terminal, , tmux. , , , .

    . , . , . , - , . , tl-mr3220, serial hack adapter , .
    . OpenWrt UCI, . , . , , , . , /etc/config/.
    - , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
    config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

    , OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

    cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

    , :
    make

    ./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

    .
    , openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

    OpenWrt.

    ssh, , :
    free
    tmpfs.
    /etc/sysupgrade.conf. , ( jffs2). #. , .
    /tmp ( tmpfs):
    scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
    . :
    cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
    .

    :
    sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

    , . ssh passwd root.

    , . , , .

    .
    OpenWrt opkg . :
    update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
    opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
    : wiki.openwrt.org/doc/techref/opkg
    , /etc/opkg.conf
    src/gz < > <url >
    :
    src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
    , ,
    src/gz local file://////
    , , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

    ( ).
    . ext4. , , . , /dev . , .
    , :
    mount /dev/sda1 /mnt
    , , .
    rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
    tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
    , /etc/config/fstab. :
    config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
    ,
    uci commit fstab
    - uuid, usb. "device" "uuid" , , uuid .
    : wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

    swap.
    , :
    config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
    . swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
    swap free.
    uci commit .

    C cjdns ( squashfs).
    scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

    wi-fi ad-hoc.
    /etc/config/wireless :
    config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
    "device" "", "wifi-device". :
    config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
    . . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
    , bridge . , :
    iw dev </code> : <source> brctl show
    ad-hoc , /etc/config/network. interface "type" "bridge" :
    config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
    "_orig_ifname" "radio0.network1", "ifname" - "wlan0"

    cjdns. ETHInterface, , :
    "ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
    , , -, cjdroute . , , - .

    .
    /etc/init.d/ . /etc/init.d/cjdns :
    #!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
    $START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

    chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
    OpenWrt : wiki.openwrt.org/doc/techref/initscripts

    , , . , !

    UPD: cjdns README.md , .

    UPD2: .
    , '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

    , , , . .
    - , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
    , feeds.conf :
    src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
    , .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
 . 

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.

nacl :
make package/nacl/compile

- mate-terminal, , tmux. , , , .

. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'

, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .

cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".

, :
make

./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .

.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!

OpenWrt.

ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.

:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin

, . ssh passwd root.

, . , , .

.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .

( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem

swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .

C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.

wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"

cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .

.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.

chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts

, , . , !

UPD: cjdns README.md , .

UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.

, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .

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


All Articles