{"id":3851,"date":"2016-10-13T19:04:45","date_gmt":"2016-10-13T10:04:45","guid":{"rendered":"http:\/\/www.nkozawa.com\/blog\/?p=3851"},"modified":"2016-10-13T20:46:15","modified_gmt":"2016-10-13T11:46:15","slug":"%e5%b0%8f%e7%b1%b3%e3%83%ab%e3%83%bc%e3%82%bf%e3%83%bc%e9%9d%92%e6%98%a5%e7%89%88openwrt-%e5%87%86%e6%96%87%e9%8e%ae%e3%81%8b%e3%82%89%e3%81%ae%e8%84%b1%e5%87%ba-xiaomi-wifi-router-youth-openwrt","status":"publish","type":"post","link":"http:\/\/www.nkozawa.com\/blog\/archives\/3851","title":{"rendered":"\u5c0f\u7c73\u30eb\u30fc\u30bf\u30fc\u9752\u6625\u7248+OpenWrt \u51c6\u6587\u93ae\u304b\u3089\u306e\u8131\u51fa \/ Xiaomi Wifi Router Youth + OpenWrt exit from semi-bricked state"},"content":{"rendered":"<p>\u5c0f\u7c73\u30eb\u30fc\u30bf\u30fc\u9752\u6625\u7248+OpenWrt\u3092\u8a2d\u5b9a\u4e2d\u306b\u5916\u90e8\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3092\u4e0d\u80fd\u306b\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002OpenWrt\u3092\u5165\u308c\u305f\u72b6\u614b\u3067\u306f\u30ea\u30bb\u30c3\u30c8\u30dc\u30bf\u30f3\u306e\u9577\u62bc\u3057\u3067\u306e\u56de\u5fa9\u306f\u4e0d\u53ef\u80fd\u3067\u3059\u306e\u3067\u3001\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30ea\u30ab\u30d0\u30ea\u30fc\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>I lost the access into the Xiaomi Wifi router + OpenWrt. Hardware reset button does not work to reset configuration under OpenWrt. Then I hooked up serial port to use console for recovery action.<\/p>\n<p><a href=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_Opener.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3858\" src=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_Opener.jpg\" alt=\"xmyouth_opener\" width=\"400\" height=\"225\" srcset=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_Opener.jpg 1024w, http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_Opener-300x169.jpg 300w, http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_Opener-768x432.jpg 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>PDA\u30aa\u30fc\u30d7\u30ca\u30fc(\u6b7b\u8a9e?)\u3067\u30ab\u30d0\u30fc\u3092\u958b\u3051\u307e\u3059\u3002Ethernet\u30b3\u30cd\u30af\u30bf\u30fc\u5074\u3092\u3053\u3058\u308b\u3068\u7c21\u5358\u306b\u958b\u304d\u307e\u3059\u3002<\/p>\n<p>Opened router cover by using plastic tool. The cover can be opened from Ethernet connector side easily.<\/p>\n<p><a href=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouthSerialPort.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3857\" src=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouthSerialPort.jpg\" alt=\"xmyouthserialport\" width=\"400\" height=\"225\" srcset=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouthSerialPort.jpg 1024w, http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouthSerialPort-300x169.jpg 300w, http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouthSerialPort-768x432.jpg 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>\u57fa\u677f\u4e0a\u306e\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u306f\u30b9\u30eb\u30fc\u30db\u30fc\u30eb\u304c\u958b\u3044\u3066\u3044\u308b\u3060\u3051\u3067\u3059\u3002\u30d4\u30f3\u30a2\u30b5\u30a4\u30f3\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b<a href=\"https:\/\/wiki.openwrt.org\/toh\/xiaomi\/nano\">OpenWrt Wiki<\/a>\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>Serial port pins assignment on the mother board is as follows.<\/p>\n<blockquote><p>UART console<br \/>\nFrom the J1:<br \/>\n1 \u2014\u2014 VCC<br \/>\n2 \u2014\u2014 RX<br \/>\n3 \u2014\u2014 GND<br \/>\n4 \u2014\u2014 TX<\/p><\/blockquote>\n<p><a href=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_Pins.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3856\" src=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_Pins.jpg\" alt=\"xmyouth_pins\" width=\"400\" height=\"539\" srcset=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_Pins.jpg 760w, http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_Pins-223x300.jpg 223w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>\u30dc\u30fc\u30c9\u306b\u30d4\u30f3\u3092\u305f\u3066\u307e\u3057\u305f\u3002<\/p>\n<p>Soldered pins on the board.<\/p>\n<p><a href=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_SerialCable.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3855\" src=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_SerialCable.jpg\" alt=\"xmyouth_serialcable\" width=\"400\" height=\"297\" srcset=\"http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_SerialCable.jpg 1024w, http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_SerialCable-300x223.jpg 300w, http:\/\/www.nkozawa.com\/blog\/wp-content\/uploads\/XMYouth_SerialCable-768x570.jpg 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8USB\u5909\u63db\u30b3\u30cd\u30af\u30bf\u30fc\u3092\u63a5\u7d9a(VCC\u306f\u63a5\u7d9a\u3057\u306a\u3044\u65b9\u304c\u826f\u3044\u6c17\u304c\u3057\u307e\u3059)\u3057\u3066Mac OS X\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u30fb\u30b3\u30de\u30f3\u30c9\u3092\u8d77\u52d5\u3057\u3001\u30eb\u30fc\u30bf\u30fc\u306e\u96fb\u6e90\u3092\u5165\u308c\u308b\u3068\u30d6\u30fc\u30c8\u30fb\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u30d6\u30fc\u30c8\u304c\u7d42\u4e86\u3057\u305f\u3053\u308d\u3092\u898b\u8a08\u3089\u3063\u3066return\u30ad\u30fc\u3092\u62bc\u3059\u3068\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8USB\u5909\u63db\u30b1\u30fc\u30d6\u30eb\u306b\u3064\u3044\u3066\u306fRaspberry Pi\u95a2\u9023\u306e\u60c5\u5831\u3092\u63a2\u3059\u3068\u6ca2\u5c71\u898b\u3064\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>Hooked up serial to USB cable to the router board and started console command on the Mac OS X. Boot messages appeared when powered up the router. Press return key to show command prompt. Serial to USB cable is same to Raspberry Pi. You can find the cable information on the internet.<\/p>\n<p>OpenWrt\u3092\u5c0e\u5165\u6642\u306e\u72b6\u614b\u306b\u623b\u3059\u306e\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6295\u5165\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>To reset OpenWrt configuration, just need to enter following commands.<\/p>\n<p><code># fastboot<br \/>\n# reboot -f <\/code><\/p>\n<p>\u8ffd\u8a18)<br \/>\n\u30d4\u30f3\u304c\u90aa\u9b54\u3067\u84cb\u304c\u5b8c\u5168\u306b\u9589\u307e\u3089\u306a\u3044\u3002\u30d4\u30f3\u306e\u53f0\u5ea7\u306e\u30d7\u30e9\u30b9\u30c1\u30c3\u30af\u3092\u58ca\u3057\u3066\u6839\u672c\u304b\u3089\u30d4\u30f3\u3092\u66f2\u3052\u306a\u3044\u3068\u884c\u3051\u306a\u3044\u611f\u3058\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u7c73\u30eb\u30fc\u30bf\u30fc\u9752\u6625\u7248+OpenWrt\u3092\u8a2d\u5b9a\u4e2d\u306b\u5916\u90e8\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3092\u4e0d\u80fd\u306b\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002OpenWrt\u3092\u5165\u308c\u305f\u72b6\u614b\u3067\u306f\u30ea\u30bb\u30c3\u30c8\u30dc\u30bf\u30f3\u306e\u9577\u62bc\u3057\u3067\u306e\u56de\u5fa9\u306f\u4e0d\u53ef\u80fd\u3067\u3059\u306e\u3067\u3001\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30ea\u30ab\u30d0 [&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-3851","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\/3851","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=3851"}],"version-history":[{"count":12,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/3851\/revisions"}],"predecessor-version":[{"id":3867,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/3851\/revisions\/3867"}],"wp:attachment":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/media?parent=3851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/categories?post=3851"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/tags?post=3851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}