{"id":31,"date":"2013-07-31T16:12:10","date_gmt":"2013-07-31T16:12:10","guid":{"rendered":"http:\/\/blog.ignoranthack.me\/?p=31"},"modified":"2013-07-31T16:12:10","modified_gmt":"2013-07-31T16:12:10","slug":"how-to-fry-a-router-in-x-easy-steps-the-serial-console","status":"publish","type":"post","link":"http:\/\/blog.ignoranthack.me\/?p=31","title":{"rendered":"How to fry a router, in X easy steps:  The Serial Console"},"content":{"rendered":"<p><a href=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/07\/2013-07-24-20.03.26.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignright size-medium wp-image-35\" alt=\"DIR 825\" src=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/07\/2013-07-24-20.03.26-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/07\/2013-07-24-20.03.26-300x225.jpg 300w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/07\/2013-07-24-20.03.26-1024x768.jpg 1024w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/07\/2013-07-24-20.03.26-624x467.jpg 624w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>I&#8217;ve started to hack on my DLink DIR-825 B1 to get it running <a href=\"http:\/\/www.freebsd.org\">FreeBSD<\/a> and have had some great success.\u00a0 Adrian Chadd, adrian@freebsd.org put together a <a href=\"http:\/\/code.google.com\/p\/freebsd-wifi-build\/wiki\/DlinkDir825 \">build system <\/a>for this router and committed some of the needed changes to get this Atheros MIPS 24k based router working for us and I&#8217;ll try to document my steps in getting it working.<\/p>\n<p>These things come with a variant of Linux installed, so the first step is to get a working serial console on it.\u00a0 By default the serial console is 115200, 8N1.\u00a0 There are 4 pins providing a 3.3v TTL RS-232 connection on the board, but you have to solder the pins on yourself.\u00a0 Removing the board requires removal of the 2 screws underneath the small, black rubber feet on the bottom of the case.<img decoding=\"async\" loading=\"lazy\" class=\"alignright size-medium wp-image-36\" alt=\"TTL Adapter\" src=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/07\/2013-07-28-10.42.39-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/07\/2013-07-28-10.42.39-300x225.jpg 300w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/07\/2013-07-28-10.42.39-1024x768.jpg 1024w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/07\/2013-07-28-10.42.39-624x467.jpg 624w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Opening the case requires a bit of pressure, but it will come apart and the top half of the case will detach, giving you access to the interior.\u00a0 Next remove the two screws securing the LED shroud and main board to the case.\u00a0 There may be bits of tape holding the\u00a0<a href=\"https:\/\/www.dropbox.com\/s\/mtrxla9yh2n5nn7\/2013-07-24%2020.03.26.jpg\">DIR-825 B1 interior<\/a> and shroud in place, so remove them and you should be able to remove the router from its case.<\/p>\n<p>Your goal now is to get 4 pins soldered onto the board at JP1.\u00a0 This will give you a VCC, Ground, TX and RX connection of a TTL serial adapter.\u00a0 I recommend purchasing the cheap, <a href=\"http:\/\/osepp.com\/products\/breakout-board\/osepp-ftdi-breakout-board\/\">Open Source Hardware<\/a> version, either from Fry&#8217;s or online.\u00a0 This will give you the flexibility to do 3.3v or 5v TTL serial and let you use any mini USB cable you have lying around to get the console working.<\/p>\n<p>Once you have soldered your pins, connect them to your serial adapter.\u00a0 <a href=\"http:\/\/wiki.openwrt.org\/toh\/d-link\/dir-825#serial\">OpenWRT <\/a>has the pinouts you need.\u00a0 Pin #1 is the connection closest to the label JP1 on my board.\u00a0 The VCC connection is identified with a full square around the pin.\u00a0 You will not need to connect up the VCC connection in any way, so leave it alone.<\/p>\n<p>At this point, connect your TTL serial adapter to the USB port of your PC and open a connection to it via your favourite serial port application (minicom, cu, etc).\u00a0 You should be able to power on the DIR-825 and watch the system boot up now.<\/p>\n<p>Why is this important?\u00a0 We have no way of interacting with the unit if we fail to boot.\u00a0 Developing the O\/S images for deployment require many mistakes, most of which end up requiring reboots.\u00a0 There&#8217;s no easy way to determine what went wrong without some kind of log, the serial console is your most important interface to managing your router.\u00a0 Besides which, its TOTALLY RAD to hack on your equipment and see the results of your work when you get the serial console working.\u00a0 You don&#8217;t have to know how to code, nor do you have to even be an o\/s developer to think that this is cool.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve started to hack on my DLink DIR-825 B1 to get it running FreeBSD and have had some great success.\u00a0 Adrian Chadd, adrian@freebsd.org put together a build system for this router and committed some of the needed changes to get this Atheros MIPS 24k based router working for us and I&#8217;ll try to document my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"_share_on_mastodon":"0"},"categories":[3,2],"tags":[],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=\/wp\/v2\/posts\/31"}],"collection":[{"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31"}],"version-history":[{"count":6,"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":104,"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions\/104"}],"wp:attachment":[{"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}