{"id":3829,"date":"2016-09-30T19:48:33","date_gmt":"2016-09-30T10:48:33","guid":{"rendered":"http:\/\/www.nkozawa.com\/blog\/?p=3829"},"modified":"2016-09-30T19:48:33","modified_gmt":"2016-09-30T10:48:33","slug":"%e5%b0%8f%e7%b1%b3wifi%e3%83%ab%e3%83%bc%e3%82%bf%e3%83%bc%e9%9d%92%e6%98%a5%e7%89%88-openwrt%e3%81%abstone%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/www.nkozawa.com\/blog\/archives\/3829","title":{"rendered":"\u5c0f\u7c73WiFi\u30eb\u30fc\u30bf\u30fc\u9752\u6625\u7248 + OpenWrt\u306bstone\u3092\u5c0e\u5165\u3059\u308b"},"content":{"rendered":"<p>\u5c0f\u7c73WiFi\u30eb\u30fc\u30bf\u30fc\u9752\u6625\u7248\u306f\u5c0f\u578b\u306a\u304c\u3089softether\u307e\u3067\u52d5\u304b\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f\u3002\u305f\u3060\u52d5\u3044\u305f\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u30e1\u30e2\u30ea\u30fc\u306e\u4f7f\u7528\u72b6\u6cc1\u3084CPU\u306e\u7a3c\u50cd\u7387\u3092\u898b\u308b\u3068\u4f55\u3068\u304b\u5b9f\u7528\u7684\u306b\u7a3c\u50cd\u3067\u304d\u305d\u3046\u3067\u3059\u3002\u305d\u3053\u3067\u6b32\u5f35\u3063\u3066\u30d1\u30b1\u30c3\u30c8\u30ea\u30d4\u30fc\u30bf\u30fcstone\u3082\u52d5\u304b\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u53c2\u8003web\u30b5\u30a4\u30c8:<br \/>\n<a href=\"http:\/\/www.gcd.org\/sengoku\/stone\/Welcome.ja.html\">stone version 2.3e<\/a> stone\u306e\u516c\u5f0f\u30da\u30fc\u30b8\u3067\u3059\u3002<br \/>\n<a href=\"http:\/\/www.gcd.org\/blog\/2007\/01\/114\/\">La Fonera \u4e0a\u3067 stone \u3092\u8d70\u3089\u305b\u3066\u307f\u308b<\/a> \u958b\u767a\u8005\u306e\u65b9\u306e\u8a18\u4e8b\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/wiki.openwrt.org\/doc\/devel\/crosscompile\">OpenWrt &#8211; Cross Compile<\/a> OpenWrt\u516c\u5f0fWiKi\u306eCross Compile\u306e\u305f\u3081\u306e\u8a2d\u5b9a\u3067\u3059\u3002<br \/>\n<strong><br \/>\n[ Cross Compile\u306e\u305f\u3081\u306e\u8a2d\u5b9a ]<\/strong><br \/>\nSDK\u306e\u5c0e\u5165\u304c\u7d42\u308f\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\u300c\u5c0f\u7c73\u30eb\u30fc\u30bf\u30fc\u9752\u6625\u7248 + OpenWrt\u306bSoftether VPN\u3092\u5c0e\u5165\u3059\u308b\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>OpenWrt\u306e\u516c\u5f0f\u30ac\u30a4\u30c9\u306b\u3042\u308b\u3088\u3046\u306bstaging dir\u306etoolchain\u306b\u30d1\u30b9\u3092\u901a\u3057\u3001\u74b0\u5883\u5909\u6570STAGING_DIR\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u308f\u305f\u3057\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3092 .\/.bash_profile \u306b\u5165\u308c\u307e\u3057\u305f\u3002<br \/>\n<code>PATH=$PATH:$HOME\/.local\/bin:$HOME\/bin:$HOME\/openwrt\/staging_dir\/toolchain-mipsel_24kec+dsp_gcc-5.3.0_musl-1.1.15\/bin<\/p>\n<p>export PATH<\/p>\n<p>STAGING_DIR=$HOME\/openwrt\/staging_dir\/toolchain-mipsel_24kec+dsp_gcc-5.3.0_musl-1.1.15<\/p>\n<p>export STAGING_DIR<\/code><br \/>\nopenwrt\u4ee5\u4e0b\u306e\u90e8\u5206\u306fTarget System\u306b\u3088\u3063\u3066\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<p><strong>[ stone\u306e\u30d3\u30eb\u30c9 ]<\/strong><br \/>\nstone\u306e\u516c\u5f0f\u30da\u30fc\u30b8\u3088\u308a\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n<p><code>$ wget http:\/\/www.gcd.org\/sengoku\/stone\/stone-2.3e.tar.gz<br \/>\n$ tar xvf stone-2.3e.tar.gz<br \/>\n$ cd stone-2.3d-2.3.2.7\/<\/code><\/p>\n<p>Makefile\u3092\u5c11\u3005\u5909\u66f4\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u4ee5\u4e0b\u3001\u5909\u66f4\u90e8\u5206\u306e\u307f\u3067\u3059\u3002<\/p>\n<p><code>fon:<br \/>\n        $(MAKE) CC=\"mipsel-openwrt-linux-gcc\" FLAGS=\"-O -Wall -DPTHREAD -DUNIX_DAEMON -DPRCTL -D_GNU_SOURCE $(FLAGS)\" LIBS=\"-lpthread $(LIBS)\" stone<br \/>\n        mipsel-openwrt-linux-strip stone<\/p>\n<p>fon-pop:<br \/>\n        $(MAKE) CC=\"mipsel-openwrt-linux-gcc\" TARGET=fon pop_stone<\/p>\n<p>fon-ssl:<br \/>\n        $(MAKE) CC=\"mipsel-openwrt-linux-gcc\" SSL_LIBS=\"-lssl -lcrypto\" TARGET=fon ssl_stone<br \/>\n<\/code><\/p>\n<p>fon\u7528\u306e\u8a2d\u5b9a\u3092\u6d41\u7528\u3057\u307e\u3057\u305f\u3002<br \/>\n&#8211; &#8220;-D_GNU_SOURCE&#8221;\u3092\u8ffd\u52a0\u3002\u3053\u308c\u306f\u901a\u5e38\u306eLinux\u7528\u306bmake\u3059\u308b\u3068\u304d\u3082\u5fc5\u8981\u304b\u3082\u3067\u3059\u3002<br \/>\n&#8211; CC=\u306e\u90e8\u5206\u3092&#8221;mips-linux-uclibc-gcc&#8221;\u304b\u3089&#8221;mipsel-openwrt-linux-gcc&#8221;\u306b\u66f8\u304d\u63db\u3048\u308b\u3002<br \/>\n&#8211; mips-linux-uclibc-strip\u3092mipsel-openwrt-linux-strip\u306b\u66f8\u304d\u63db\u3048\u308b\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067make fon\u306f\u901a\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3068\u3053\u308d\u304cmake fon-ssl\u3092\u5b9f\u884c\u3059\u308b\u3068openssl\/crypto.h\u304c\u7121\u3044\u3068\u8a00\u3063\u3066\u6012\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u78ba\u304b\u306bSTAGING_DIR\u4ee5\u4e0b\u3092\u63a2\u3057\u3066\u3082\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\u3068\u3044\u3046\u304b$STAGING_DIR\/usr\/\u4ee5\u4e0b\u306b\u306finlude\u3068lib\u304c\u3042\u308a\u307e\u3059\u304c\u7a7a\u3063\u307d\u3067\u3059\u3002\u63a2\u3057\u3066\u307f\u308b\u3068~\/openwrt\/staging_dir\/target-mipsel_24kec+dsp_musl-1.1.15\/usr\u306b\u306f\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u63c3\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u6b63\u3057\u3044\u89e3\u6c7a\u65b9\u6cd5\u306f\u5206\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u30fb\u30ea\u30f3\u30af\u3092\u8cbc\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><code>$ cd ~\/openwrt\/staging_dir\/toolchain-mipsel_24kec+dsp_gcc-5.3.0_musl-1.1.15<br \/>\n$ mv usr usr.xx<br \/>\n$ ln -s ~\/openwrt\/staging_dir\/target-mipsel_24kec+dsp_musl-1.1.15\/usr .\/usr<\/code><\/p>\n<p>\u518d\u3073stone\u306b\u623b\u3063\u3066make fon-ssl\u3067stone\u304c\u51fa\u6765\u4e0a\u304c\u308a\u3067\u3059\u3002<\/p>\n<p><code>$ cd ~\/stone-2.3d-2.3.2.7\/<br \/>\n$ make fon-ssl<\/code><\/p>\n<p><strong>[ \u5c0e\u5165 ]<\/strong><br \/>\n\u5358\u7d14\u306b\/usr\/bin\/\u306bstone\u3092\u304a\u304d\u307e\u3057\u305f\u3002\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3053\u3067\u306f\u8a73\u3057\u304f\u306f\u66f8\u304d\u307e\u305b\u3093\u3002<br \/>\n\/etc\/init.d\/\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7f6e\u3051\u3070LuCI\u304b\u3089\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u53ef\u80fd\u3068\u601d\u3044\u307e\u3059\u3002\u308f\u305f\u3057\u306e\u5834\u5408\u306f\u5e38\u306b\u8d77\u52d5\u3057\u307e\u3059\u306e\u3067\u5358\u7d14\u306b\/etc\/rc.local\u304b\u3089\u8d77\u52d5\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u7c73WiFi\u30eb\u30fc\u30bf\u30fc\u9752\u6625\u7248\u306f\u5c0f\u578b\u306a\u304c\u3089softether\u307e\u3067\u52d5\u304b\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f\u3002\u305f\u3060\u52d5\u3044\u305f\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u30e1\u30e2\u30ea\u30fc\u306e\u4f7f\u7528\u72b6\u6cc1\u3084CPU\u306e\u7a3c\u50cd\u7387\u3092\u898b\u308b\u3068\u4f55\u3068\u304b\u5b9f\u7528\u7684\u306b\u7a3c\u50cd\u3067\u304d\u305d\u3046\u3067\u3059\u3002\u305d\u3053\u3067\u6b32\u5f35\u3063\u3066\u30d1\u30b1\u30c3\u30c8\u30ea\u30d4\u30fc\u30bf\u30fcsto [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[43,42],"tags":[],"class_list":["post-3829","post","type-post","status-publish","format-standard","hentry","category-wifi","category-42"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/3829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/comments?post=3829"}],"version-history":[{"count":6,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/3829\/revisions"}],"predecessor-version":[{"id":3836,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/3829\/revisions\/3836"}],"wp:attachment":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/media?parent=3829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/categories?post=3829"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/tags?post=3829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}