рдЗрд╕ рд▓реЗрдЦ рдореЗрдВ рдореИрдВ рдпрд╣ рдмрддрд╛рдиреЗ рдХреА рдХреЛрд╢рд┐рд╢ рдХрд░реВрдВрдЧрд╛ рдХрд┐ рдПрдХ рдУрдкрдирд╡рд╛рд░реНрдЯ рд░рд╛рдЙрдЯрд░ рдкрд░ рдлреНрд▓реИрд╢ рдХреИрд╕реЗ рдХрд░реЗрдВ рдФрд░ рд╡рд╣рд╛рдВ рд╕реАрдбреАрдЬреЗрдПрди рд╕реНрдерд╛рдкрд┐рдд рдХрд░реЗрдВред рд╕рдЪ рдореЗрдВ, рдЗрд╕ рдЪрдХреНрдХрд░ рдХреА рдкреЗрдЪреАрджрдЧрд┐рдпреЛрдВ рдХрд╛ рдЕрдзреНрдпрдпрди рдХрд░рдиреЗ рдореЗрдВ рдореБрдЭреЗ рдмрд╣реБрдд рд╕рдордп рдФрд░ рдирд╕реЛрдВ рдХреА рдЬрд╝рд░реВрд░рдд рдереАред рдореБрдЦреНрдп рд░реВрдк рд╕реЗ рдХреНрдпреЛрдВрдХрд┐ 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 рдПрдХ рдкреНрд░рдХрд╛рд░ рдХрд╛ рдлреНрд░реЗрдВрдХрд╕реНрдЯреАрди рд░рд╛рдХреНрд╖рд╕ рд╣реИ рдЬреЛ рдХрд┐ рдЖрдкрдХреА рдЬрд╝рд░реВрд░рдд рдХреА рд╣рд░ рдЪреАрдЬрд╝ рдХреЗ рд╕реНрд░реЛрдд рдХреЛ рдбрд╛рдЙрдирд▓реЛрдб рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рд▓рд┐рдЦрд╛ рдЬрд╛рддрд╛ рд╣реИ, рдЗрд╕реЗ рдЦреБрдж рдкреИрдЪ рдХрд░рддрд╛ рд╣реИ, рдХреНрд░реЙрд╕-рдХрдВрдкрд╛рдЗрд▓рд░ рдХреЛ рдЗрдХрдЯреНрдард╛ рдХрд░рддрд╛ рд╣реИ, рдлрд╝рд░реНрдорд╡реЗрдпрд░ рдХреЗ рд▓рд┐рдП рдкреИрдХреЗрдЬ рдФрд░ рдЪрд┐рддреНрд░ рдПрдХрддреНрд░ рдХрд░рддрд╛ рд╣реИред рдлреЛрд░реНрдХ рдмрд┐рд▓реНрдбрд░реЛрдЯ рдЗрди рдореЗрдХрдлрд╛рдЗрд▓реНрд╕ рдХреЗ рдкреНрд░рд╛рд░реВрдк рдХреЗ рдмрд╛рд░реЗ рдореЗрдВ ред рдпрд╣рд╛рдБ рдкреНрд░рд▓реЗрдЦрди рдЙрджреНрдзреГрдд рдХрд░рдирд╛ рдкрд░реНрдпрд╛рдкреНрдд рд╣реИ :
тАЬрдХрд┐рд╕реА рднреА рдкреИрдХреЗрдЬ рд╕реЗ рдореЗрдХрдлрд╛рдЗрд▓ рдХреЛ рджреЗрдЦрддреЗ рд╣реБрдП, рдЖрдк рдЗрд╕рдореЗрдВ рд╕рд╛рдорд╛рдиреНрдп рдореЗрдХрдлрд╛рдЗрд▓ рдХреЛ рдкрд╣рдЪрд╛рдирдиреЗ рдХреА рд╕рдВрднрд╛рд╡рдирд╛ рдирд╣реАрдВ рд░рдЦрддреЗ рд╣реИрдВред рдЗрд╕реЗ рдкрд░рдореНрдкрд░рд╛рдЧрдд рдмрдирд╛рдиреЗ рдХреЗ рдкреНрд░рд╛рд░реВрдк рдХреА рд╕реНрдкрд╖реНрдЯ рдЙрдкреЗрдХреНрд╖рд╛ рдФрд░ рджреБрд░реБрдкрдпреЛрдЧ рдХреЗ рд░реВрдк рдореЗрдВ рд╡рд░реНрдгрд┐рдд рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИ, рд╣рд╛рд▓рд╛рдБрдХрд┐, рдСрдмреНрдЬреЗрдХреНрдЯ-рдЙрдиреНрдореБрдЦ рдЯреЗрдореНрдкрд▓реЗрдЯ рдореЗрдВ рдореЗрдХрдлрд╛рдЗрд▓ рдкреИрдХреЗрдЬ рдХреЗ рд░реВрдкрд╛рдВрддрд░рдг рдиреЗ рдЕрдиреБрдкреНрд░рдпреЛрдЧреЛрдВ рдХреЛ рдкреЛрд░реНрдЯ рдХрд░рдиреЗ рдХреА рдкреВрд░реА рдкреНрд░рдХреНрд░рд┐рдпрд╛ рдХреЛ рд╕рд░рд▓ рдмрдирд╛ рджрд┐рдпрд╛ рд╣реИред " - рдУрдкрдирд╡рд░реНрдЯ рдЗрдореЗрдЬ рдмрд┐рд▓реНрдбрд░ рдПрдХ рд╣реА рд╣реИ, рд▓реЗрдХрд┐рди рдпрд╣ рдкрд╣рд▓реЗ рд╕реЗ рд╣реА рд╕рдВрдХрд▓рд┐рдд рдкреИрдХреЗрдЬреЛрдВ рдХреЛ рд▓реЛрдб рдХрд░рддрд╛ рд╣реИ рдФрд░ рдЙрдирд╕реЗ рдПрдХ рдЫрд╡рд┐ рдПрдХрддреНрд░ рдХрд░рддрд╛ рд╣реИред
- рдУрдкрдирд╡рд░реНрдЯ рдПрд╕рдбреАрдХреЗ рд╕рдорд╛рди рд╣реИ, рд▓реЗрдХрд┐рди рдХреНрд░реЙрд╕-рд╕рдВрдХрд▓рди рдХреЗ рдХрд╛рд░реНрдпрдХреНрд░рдореЛрдВ рдХрд╛ рд╕реЗрдЯ рдкрд╣рд▓реЗ рд╕реЗ рд╣реА рд╕рдВрдХрд▓рд┐рдд рд╣реИ рдФрд░ рдпрд╣ рдЕрдм рдЫрд╡рд┐рдпреЛрдВ рдХреЛ рдПрдХрддреНрд░ рдирд╣реАрдВ рдХрд░ рд╕рдХрддрд╛ рд╣реИред рд╡реНрдпрдХреНрддрд┐рдЧрдд рдкреИрдХреЗрдЬ рдмрдирд╛рдиреЗ рдХреЗ рд▓рд┐рдП рдбрд┐рдЬрд╝рд╛рдЗрди рдХрд┐рдпрд╛ рдЧрдпрд╛ред
- OpenWrt рдЖрдзрд╛рд░рд┐рдд рдЯреВрд▓рдХрд┐рди Openwrt Buildroot рд╕реЗ рдлрд╛рдбрд╝реЗ рдЧрдП рдХреНрд░реЙрд╕-рд╕рдВрдХрд▓рди рдХрд╛рд░реНрдпрдХреНрд░рдореЛрдВ рдХрд╛ рдПрдХ рдкрд╣рд▓реЗ рд╕реЗ рд╕рдВрдХрд▓рд┐рдд рд╕реЗрдЯ рд╣реИред
рдкрд┐рдЫрд▓реЗ рддреАрди рдХреЛ 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:
"CATEGORY" - рдЕрдиреБрднрд╛рдЧ рдХрд╛ рдирд╛рдо, "SUBMENU" - рдЙрдкрдзрд╛рд░рд╛ рдХрд╛ рдирд╛рдоред рд╡реИрд╕реЗ, рдРрд╕рд╛ рд░рд┐рдХреЙрд░реНрдб рдПрдХ рдирд╣реАрдВ рд╣реЛ рд╕рдХрддрд╛ рд╣реИред рддрдереНрдп рдпрд╣ рд╣реИ рдХрд┐ рд╕реНрд░реЛрддреЛрдВ рдХреЗ рдПрдХ рд╕реЗрдЯ рд╕реЗ рдХрдИ рдЕрд▓рдЧ-рдЕрд▓рдЧ рдкреИрдХреЗрдЬ рдЗрдХрдЯреНрдареЗ рдХрд┐рдП рдЬрд╛ рд╕рдХрддреЗ рд╣реИрдВред
UPD: рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛
klirichek рдиреЗ рд╕реБрдЭрд╛рд╡ рджрд┐рдпрд╛ рдХрд┐ рдЕрднреА рднреА рдПрдХ рдЦреЛрдЬ рд╣реИред рдЗрд╕реЗ рджрд░реНрдЬ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдЖрдкрдХреЛ menuconfig рдореЗрдВ "/" рджрдмрд╛рдирд╛ рд╣реЛрдЧрд╛ред


рд╣рдореЗрдВ рд╡рд╕реНрддреБрдУрдВ рдХреА рдПрдХ рд╕реВрдЪреА рдорд┐рд▓рддреА рд╣реИ, рдЬрд┐рдирдореЗрдВ рд╕реЗ рдПрдХ рдирд╛рдо, рдкреВрд░реНрдг рд╡рд┐рд╡рд░рдг рдФрд░ рдореЗрдиреВ рдореЗрдВ рд╕реНрдерд╛рди рдХреЗ рд╕рд╛рде рджрд░реНрдЬ рдХреА рдЧрдИ рдХреНрд╡реЗрд░реА рд╢рд╛рдорд┐рд▓ рд╣реИред
рдЗрд╕рд▓рд┐рдП, рдРрд╕реЗ рдкреИрдХреЗрдЬ рдЬрд┐рдирдХреА рд╣рдореЗрдВ рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реЛ рд╕рдХрддреА рд╣реИред
- рдиреИрдиреЛ - рддрд╛рдХрд┐ рдЖрдк vi рдпрд╛ рдмрд┐рд▓реНрд▓реА / рдЧреВрдВрдЬ рдХреЗ рд╕рд╛рде рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХреЛ рд╕рдВрдкрд╛рджрд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдирд╣реАрдВ рд╣реИ
- htop - рдкреНрд░рдХреНрд░рд┐рдпрд╛ рджрд░реНрд╢рдХ
- iftop - рдиреЗрдЯрд╡рд░реНрдХ рдЧрддрд┐рд╡рд┐рдзрд┐ рдХреА рдирд┐рдЧрд░рд╛рдиреА рдХреЗ рд▓рд┐рдП рдПрдХ рдХрд╛рд░реНрдпрдХреНрд░рдо (рдХреМрди, рдХрд┐рд╕рдХреЗ рд╕рд╛рде, рдХрд┐рд╕ рдмрдВрджрд░рдЧрд╛рд╣ рдкрд░, рдХрд┐рд╕ рдЧрддрд┐ рд╕реЗ)
- tcpdump - рдЕрдЪреНрдЫрд╛, рдЙрд╕рдХреЗ рдмрд┐рдирд╛ рдХрд╣рд╛рдБ?
- kmod-usb-storage - рдХрд░реНрдиреЗрд▓ рдореЙрдбреНрдпреВрд▓ usb рдХреЗ рдорд╛рдзреНрдпрдо рд╕реЗ рдмрд╛рд╣рд░реА рднрдВрдбрд╛рд░рдг рдореАрдбрд┐рдпрд╛ рдХреЛ рдЬреЛрдбрд╝рдиреЗ рдХреЗ рд▓рд┐рдП
- kmod-usb-storage-extras - рдХреБрдЫ рд╡рд┐рджреЗрд╢реА рдмрд╛рд╣рд░реА USB рд╕рдВрдЧреНрд░рд╣рдг рдореАрдбрд┐рдпрд╛ (рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, рдПрдХ рдХрд╛рд░реНрдб рд░реАрдбрд░) рдХреЛ рдЬреЛрдбрд╝рдиреЗ рдХреЗ рд▓рд┐рдП рдХрд░реНрдиреЗрд▓ рдореЙрдбреНрдпреВрд▓
- рдмреНрд▓реЙрдХ-рдорд╛рдЙрдВрдЯ - рд╕реНрд╡рдЪрд╛рд▓рд┐рдд рд░реВрдк рд╕реЗ / etc / fstab рдкрд░ рдмрдврд╝рддреЗ рд╕реНрдХреНрд░рд┐рдкреНрдЯреНрд╕ рдХрд╛ рдПрдХ рд╕реЗрдЯред рд╡реНрдпрд╕реНрдд рдмреЙрдХреНрд╕ рд╕реЗ рдорд╛рдЙрдВрдЯ uci config (рдмрд╛рдж рдореЗрдВ рдЙрд╕ рдкрд░ рдЕрдзрд┐рдХ) рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдХреЗ рдлрд╝рд╛рдЗрд▓ рд╕рд┐рд╕реНрдЯрдо рдХреЛ рд╕реНрд╡рдЪрд╛рд▓рд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдкрд░реНрдпрд╛рдкреНрдд рд╣реИ, рд▓реЗрдХрд┐рди рд╕реНрд╡реИрдк рд╕реНрд╡рдЪрд╛рд▓рд┐рдд рд░реВрдк рд╕реЗ рдЙрдирдХреЗ рд╕рд╛рде рдорд╛рдЙрдВрдЯ рдирд╣реАрдВ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред
- рд╕реНрд╡реИрдк-рдмрд░реНрддрди - рд╕реНрд╡реИрдк рдорд╛рдЙрдВрдЯ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдЖрд╡рд╢реНрдпрдХ рд╣реИ
- рд╕рднреА рдкреНрд░рдХрд╛рд░ рдХреЗ рдлрд╝рд╛рдЗрд▓ рд╕рд┐рд╕реНрдЯрдо рдбреНрд░рд╛рдЗрд╡рд░ред рдЖрдк рдЗрд╕реЗ "рдХрд░реНрдиреЗрд▓ рдореЙрдбреНрдпреВрд▓" -> "рдлрд╛рдЗрд▓рд╕рд┐рд╕реНрдЯрдо" рдореЗрдВ рдкрд╛ рд╕рдХрддреЗ рд╣реИрдВ
- рдЫрд╛рдпрд╛-рдЧреНрд░реЛрдкрдб, рдЫрд╛рдпрд╛-рд╕рдореВрд╣, рдЫрд╛рдпрд╛-рд╕рдореВрд╣-рдЫрд╛рдпрд╛, рдЫрд╛рдпрд╛-рд╕рдореВрд╣, рдЫрд╛рдпрд╛-рдкрд╛рд╕рд╡рд╛рд░реНрдб, рдЫрд╛рдпрд╛-рд╕реБ, рдЫрд╛рдпрд╛-рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛рдб, рдЫрд╛рдпрд╛-рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛-рдЫрд╛рдпрд╛, рдЫрд╛рдпрд╛-рдЙрдкрдпреЛрдЧ-рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛ рдФрд░ рд╕рдореВрд╣реЛрдВ рдХреЗ рдкреНрд░рдмрдВрдзрди рдХреЗ рд▓рд┐рдП рдЙрдкрдпреЛрдЧрд┐рддрд╛рдУрдВ рдХрд╛ рдПрдХ рд╕рдореВрд╣ред рдЖрдк рдЖрдорддреМрд░ рдкрд░ рдЙрдирдХреЗ рдмрд┐рдирд╛ рдХрд░ рд╕рдХрддреЗ рд╣реИрдВред
- рдЖрдИрдкреА, iw, iptables, ip6tables - рдореИрдиреБрдЕрд▓ рдиреЗрдЯрд╡рд░реНрдХ рд╕реЗрдЯрдЕрдк рдХреЗ рд▓рд┐рдП
- рдмрд╛рдБрдз-рдЦреБрджрд╛рдИ - dns рдЧреНрд░рд╛рд╣рдХ
рдпрд╣ рдзреНрдпрд╛рди рджрд┐рдпрд╛ рдЬрд╛рдирд╛ рдЪрд╛рд╣рд┐рдП рдХрд┐ рд╕рдм рдХреБрдЫ рдлрд┐рдЯ рдирд╣реАрдВ рд╣реЛ рд╕рдХрддрд╛ рд╣реИред рдЗрд╕ рдорд╛рдорд▓реЗ рдореЗрдВ, рд░рд╛рдЙрдЯрд░ рдХреЗ рд▓рд┐рдП рдЫрд╡рд┐ рдПрдХрддреНрд░ рдирд╣реАрдВ рдХреА рдЬрд╛рдПрдЧреА, рд▓реЗрдХрд┐рди рдкреИрдХреЗрдЯ рдПрдХрддреНрд░ рдХрд┐рдП рдЬрд╛рдПрдВрдЧреЗред рдкреИрдХреЗрдЬ рдХреЛ рдиреЛрдЯ рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИ рддрд╛рдХрд┐ рдЗрд╕реЗ рдЗрдХрдЯреНрдард╛ рдХрд┐рдпрд╛ рдЬрд╛рдП, рд▓реЗрдХрд┐рди рдпрд╣ рдЫрд╡рд┐ рдореЗрдВ рд╢рд╛рдорд┐рд▓ рдирд╣реАрдВ рдерд╛ред рдРрд╕рд╛ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдПрдо рдХреБрдВрдЬреА рджрдмрд╛рдПрдВред
рдФрд░ рдЕрдм рдореИрдВ рдЖрдкрдХреЛ рдПрдХ рдмрдЧ рдХреЗ рдмрд╛рд░реЗ рдореЗрдВ рдмрддрд╛рддрд╛ рд╣реВрдБ рдЬреЛ 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
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .
.
nacl :
make package/nacl/compile
- mate-terminal, , tmux. , , , .
. , . , . , - , . , tl-mr3220, serial hack adapter , .
. OpenWrt UCI, . , . , , , . , /etc/config/.
- , , , Buildroot files . , ./files/etc/config/network . tl-mr3220 v1.2:
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0 radio0.network1' option _orig_bridge 'true' option ifname 'eth0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2' config switch option name 'eth0' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth0' option vlan '1' option ports '0 1 2 3 4'
, OpenWrt . _orig_ifname _orig_bridge , . , , , , , - .
cjdns. , menuconfig: "Network"->"Routing and Redirection"->"cjdns".
, :
make
./bin, target- ( ). , ./bin/ar71xx, ./bin/ar71xx/packages/. ./bin/ar71xx/openwrt-ar71xx-generic-rootfs.tar.gz ( target) , .
.
, openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin . , , : wi-fi!
OpenWrt.
ssh, , :
free
tmpfs.
/etc/sysupgrade.conf. , ( jffs2). #. , .
/tmp ( tmpfs):
scp ./bin/ar71xx/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin root@192.168.5.1:/tmp
. :
cd /tmp md5sum openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
.
:
sysupgrade -v /tmp/openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-sysupgrade.bin
, . ssh passwd root.
, . , , .
.
OpenWrt opkg . :
update - . /tmp/opkg-lists/snapshots, /tmp tmpfs. , - . upgrade - , , , . trunc. , . ( kmod-). " " opkg . install , url :
opkg install hiawatha opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/hiawatha_7.7-2_ar71xx.ipk opkg install /tmp/hiawatha_7.7-2_ar71xx.ipk
configure - , . , . remove - . list - . list-installed - ╤Ц .
: wiki.openwrt.org/doc/techref/opkg
, /etc/opkg.conf
src/gz < > <url >
:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages
, ,
src/gz local file://////
, , apt-get, , https. https, , , downloads.openwrt.org. , , , , , - .
( ).
. ext4. , , . , /dev . , .
, :
mount /dev/sda1 /mnt
, , .
rm -rf /mnt/* tar -C /overlay -cvf - . | tar -C /mnt -xf - # overlay
tar, -? , . wiki.openwrt.org/doc/howto/extroot#installation1 .
, /etc/config/fstab. :
config mount option target /overlay option device /dev/sda1 # option uuid <uuid> option fstype ext4 option options rw,sync option enabled 1 option enabled_fsck 0
,
uci commit fstab
- uuid, usb. "device" "uuid" , , uuid .
: wiki.openwrt.org/doc/uci/fstab#mounting.filesystem
swap.
, :
config swap option device /dev/sda2 # option uuid <uuid> option enabled 1
. swap. linux swap , , " " ( ?) , , swap. , " " - . - . 512 MiB, , !
swap free.
uci commit .
C cjdns ( squashfs).
scp /tmp opkg. cjdns. . , ETHInterface br-lan eth0.
wi-fi ad-hoc.
/etc/config/wireless :
config wifi-iface option device radio0 option mode adhoc option ssid hype option bssid 66:77:55:88:44:aa option disabled 0
"device" "", "wifi-device". :
config wifi-device 'radio0' option type 'mac80211' option macaddr 'ab:cd:ef:ab:cd:ef' option hwmode '11ng' option htmode 'HT40+' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option channel 'auto' option txpower '18' option country 'RU'
. . uci commit wireless ; /etc/init.d/wireless restart , . , disabled 1.
, bridge . , :
iw dev </code> : <source> brctl show
ad-hoc , /etc/config/network. interface "type" "bridge" :
config interface 'lan' option type 'bridge' option proto 'static' option netmask '255.255.255.0' option _orig_ifname 'eth0, radio0.network1' option _orig_bridge 'true' option ifname 'eth0 wlan0' option ipaddr '192.168.5.1' option gateway '192.168.5.2' option broadcast '192.168.5.255' option dns '192.168.5.2'
"_orig_ifname" "radio0.network1", "ifname" - "wlan0"
cjdns. ETHInterface, , :
"ETHInterface": [ { "bind": "wlan0", "beacon": 2, }, { "bind":"br-lan", "beacon": 2 } ]
, , -, cjdroute . , , - .
.
/etc/init.d/ . /etc/init.d/cjdns :
#!/bin/sh /etc/rc.common START=93 STOP=51 start() { cjdroute < /etc/cjdroute.conf } stop() { killall cjdroute }
$START $STOP . "start()" - , -. "stop()" - . , , , , , . -, cjdns "pidFile", "master", OpenWrt.
chmod u+rwx /etc/init.d/cjdns /etc/init.d/cjdns enable
OpenWrt : wiki.openwrt.org/doc/techref/initscripts
, , . , !
UPD: cjdns README.md , .
UPD2: .
, '' '' uci. , , , json-uci, LUA, , , - , . - . cjdroute . , crashey. init- , trunc. . , todo.
, , , . .
- , Makefile init-. , , . : github.com/DinoAsm/cjdns-openwrt-tiny
, feeds.conf :
src-git cjdns_tiny https://github.com/DinoAsm/cjdns-openwrt-tiny.git
, .