<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tinyhack.com &#187; misc</title>
	<atom:link href="http://tinyhack.com/category/misc/feed/" rel="self" type="application/rss+xml" />
	<link>http://tinyhack.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sat, 05 Nov 2011 10:09:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>D-LINK DIR-300 Serial Port and SD mod</title>
		<link>http://tinyhack.com/2010/04/04/d-link-dir-300-serial-port-and-sd-mod/</link>
		<comments>http://tinyhack.com/2010/04/04/d-link-dir-300-serial-port-and-sd-mod/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 13:45:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://tinyhack.com/?p=162</guid>
		<description><![CDATA[The latest progress of my freeBSD port for CNS21XX and ThinkLink Hot-e was three weeks ago. The CNS21XX network driver and Hot-e network driver was completed. I haven&#8217;t touched anything since then because I had to work on weekends at &#8230; <a href="http://tinyhack.com/2010/04/04/d-link-dir-300-serial-port-and-sd-mod/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The latest progress of my freeBSD port for CNS21XX and ThinkLink Hot-e was three weeks ago. The CNS21XX network driver and Hot-e network driver was completed. I haven&#8217;t touched anything since then because I had to work on weekends at the office. This weekend, I could have continued coding, but I don&#8217;t feel like coding, so I did a hardware project: adding serial port and SD card slot to my D-LINK DIR-300 that I <a href="http://tinyhack.com/2009/04/05/too-many-things-to-do/">bought April last year</a>.</p>
<p>This is not a difficult project, I already added SD/MMC card to my WRT54GL about 2,5 years ago. The difference is that there isn&#8217;t much guide about the hardware part (which GPIO pins to solder), and the software part (how to activate the drivers). So here is a short guide to anyone who needs it. Note that I already installed OpenWRT Kamikaze using the guide from: <a href="http://oldwiki.openwrt.org/OpenWrtDocs(2f)Hardware(2f)D(2d)Link(2f)DIR(2d)300.html">OpenWRT site</a>.<br />
<span id="more-162"></span><br />
This is what the front side of PCB looks like:</p>
<p><a href="http://www.flickr.com/photos/yohanes/4488923533/" title="DLINK DIR-300 PCB FRONT by Yohanes &amp; Risna, on Flickr"><img src="http://farm3.static.flickr.com/2766/4488923533_3351855dae.jpg" width="500" height="405" alt="DLINK DIR-300 PCB FRONT" /></a></p>
<p>On the bottom right, you can connect a serial port (note: 3.3V, you will need MAX3232 or use a data cable from phone, don&#8217;t connect directly). Many guides are already available for connecting serial port (for example: <a href="http://nuwiki.openwrt.org/oldwiki/OpenWrtDocs/Customizing/Hardware/Serial_Console">here</a>, <a href="http://blog.brixandersen.dk/?p=62">here</a>, <a href="http://www.nslu2-linux.org/wiki/HowTo/AddASerialPort">here</a>, and <a href="https://forum.openwrt.org/viewtopic.php?pid=7240">here</a>), so I wont write about it. Just note that you will use the 3.3V and GND for the SD card mod.</p>
<p><a href="http://www.flickr.com/photos/yohanes/4488923529/" title="DLINK DIR-300 SERIAL by Yohanes &amp; Risna, on Flickr"><img src="http://farm5.static.flickr.com/4010/4488923529_d257a72c8c_m.jpg" width="203" height="240" alt="DLINK DIR-300 SERIAL" /></a></p>
<p>This is what the PCB looks like from the back:</p>
<p><a href="http://www.flickr.com/photos/yohanes/4488923531/" title="DLINK DIR-300 PCB BACK by Yohanes &amp; Risna, on Flickr"><img src="http://farm3.static.flickr.com/2701/4488923531_82f792226b.jpg" width="500" height="350" alt="DLINK DIR-300 PCB BACK" /></a></p>
<p>I found the GPIO pins from this <a href="http://www.dd-wrt.com/phpBB2/viewtopic.php?p=269511">posting</a>  by guidoa:</p>
<blockquote><p><code><br />
1: SES Button Blue led (Enable=ON)<br />
2: WiFi led<br />
3: SES Button Red led (Enable=ON)<br />
4: SES Button (Pressed=01)<br />
6: Reset Button (Pressed=01)<br />
7: Status led (Enable=ON) </code>
</p></blockquote>
<p>I have confirmed it using voltmeter and <code>gpioctl</code> command line tool. The SES button is the button on the right side of the unit. As far as I know, SES button, and the LEDS (red and blue) are not used by default, the Wifi LED is used to indicate Wifi ON/OFF. So we can use GPIO 1,3,4. We need another one: we can use GPIO 6 or 7. Since The status led is not used, I prefer GPIO 7. You can see the location of the GPIO pins that I used from the above picture.</p>
<p>Now, look at the SD Card Pinout (you can search it in Google, or just look <a href="http://www.jbprojects.net/articles/wrt54gl_mods/">here</a>).<br />
You  need to connect SD Pin 4 to to 3.3V (see the serial port above), Pin 3 and 6 to GND. The rest is up to you (we will configure this later in software). This is what I use:</p>
<ul>
<li>Pin 2 (Data In/MOSI) to GPIO 4 (SES Button)</li>
<li>Pin 7 (Data Out/MISO) to GPIO 7 (Status LED)</li>
<li>Pin 5 in SD Card (CLK) to GPIO 1 (blue LED)</li>
<li>Pin 1 in SD Card (Chip Select) to GPIO 3 (red LED)</li>
</ul>
<p>After you solder them, you need to install these packages using opkg: kmod-mmc, kmod-mmc-over-gpio, kmod-mmc-spi, kmod-spi-bitbang, and kmod-spi-gpio. We need to edit /etc/init.d/mmc_over_gpio. The line that you are looking for is the <code>add_device "default"</code>. There are some numbers in the following order DI, DO, CLK, CS and SPI_MODE. You need to fill in the GPIO that you use for each of that pins and just fill in 0 for SPI_MODE. In my case I edit the line to become:  <code>add_device "default" 4 7 1 3 0</code>.</p>
<p>Now I can start the SD card using: <code>/etc/init.d/mmc_over_gpio start</code>. You can now mount the card. To remove the card, umount the card and  <code>/etc/init.d/mmc_over_gpio stop</code>. The SD card speed is to slow, I will look on to this later, but for now the speed is enough for me.</p>
<p>This is my final result (I am really lousy at soldering):</p>
<p><a href="http://www.flickr.com/photos/yohanes/4489691820/" title="D-LINK DIR-300 by Yohanes &amp; Risna, on Flickr"><img src="http://farm3.static.flickr.com/2700/4489691820_995f1d43cb.jpg" width="500" height="333" alt="D-LINK DIR-300" /></a></p>
<p>Doesn&#8217;t look too bad from the outside for the SD Card:</p>
<p><a href="http://www.flickr.com/photos/yohanes/4489618324/" title="DLINK DIR-300 SD CARD by Yohanes &amp; Risna, on Flickr"><img src="http://farm5.static.flickr.com/4049/4489618324_c8654d398e.jpg" width="500" height="333" alt="DLINK DIR-300 SD CARD" /></a></p>
<p>But I made a stupid mistake for the RS232 port. I put the port on the wrong place, and I can not drill for the screw on the right side of the port. Fortunately this is not fatal, I just glued the port to the casing.</p>
<p><a href="http://www.flickr.com/photos/yohanes/4489618318/" title="DLINK DIR-300 Serial Port by Yohanes &amp; Risna, on Flickr"><img src="http://farm3.static.flickr.com/2768/4489618318_1121771697.jpg" width="500" height="333" alt="DLINK DIR-300 Serial Port" /></a></p>
<p><b>Update</b> This is the dmesg log after <code>/etc/init.d/mmc_over_gpio start</code></p>
<pre>
gpio-mmc: Failed to request mmc_spi module.
mmc_spi spi32765.0: SD/MMC host mmc0, no DMA, no WP, no poweroff
gpio-mmc: MMC-Card "default" attached to GPIO pins di=4, do=7, clk=1, cs=3
mmc_spi spi32765.0: can't change chip-select polarity
mmc0: new SD card on SPI
mmcblk0: mmc0:0000 SD512 495488KiB
 mmcblk0: p1
</pre>
<p><b>Update 9 April 2010</b> to make it clear, this is the picture of the back side of the pcb after soldering:</p>
<p><a href="http://www.flickr.com/photos/yohanes/4505357944/" title="back side of DLink DIR-300 by Yohanes &amp; Risna, on Flickr"><img src="http://farm3.static.flickr.com/2713/4505357944_ee06179198.jpg" width="500" height="333" alt="back side of DLink DIR-300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2010/04/04/d-link-dir-300-serial-port-and-sd-mod/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Optimizing Asus EEE 900A</title>
		<link>http://tinyhack.com/2009/02/12/optimizing-asus-eee-900a/</link>
		<comments>http://tinyhack.com/2009/02/12/optimizing-asus-eee-900a/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 08:38:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://tinyhack.com/?p=112</guid>
		<description><![CDATA[I just got back from my vacation around Thailand, so I will start to update things (Wii homebrew, Symbian apps, blogs, etc) again. Well, may be starting next week, I have a dental surgery this weekend and may need to &#8230; <a href="http://tinyhack.com/2009/02/12/optimizing-asus-eee-900a/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just got back from my vacation around Thailand, so I will start to update things (Wii homebrew, Symbian apps, blogs, etc) again. Well, may be starting next week, I have a dental surgery this weekend and may need to rest. Anyway, this time I want to post about optimizing EEE 900A.</p>
<p><a href="http://risna.info">My wife</a> was happy with her Asus EEE 701, but she would like something better with the same size. We sold the old Asus 701 to my brother, and she bought Asus EEE 900A. Compared to EE PC 701, the EEE PC 900A has a faster processor (Intel Atom 1.6 ghz vs the 900 Mhz EEE), more memory (1 gb vs 512 mb), bigger disk space (16 gb vs 4 gb), higher resolution (1024 x 600 vs 840&#215;400), and better graphic processors (Intel GMA 950 vs Intel GMA 900). The only problem is the 16 GB SSD is much slower than the EEE 701 4 GB SSD. You can really feel it when running almost any applications, especially the firefox browser.</p>
<p>My wife uses Windows XP on the new Asus. After reading several blog posts and many forums, the conclusion is: to make everything faster, try to reduce the number of disk access. Here is how to reduce the disk access in Windows XP:</p>
<p><span id="more-112"></span></p>
<ol>
<li>Buy more memory, we bought 2 GB memory  (quite cheap, around 690 baht/20 usd) to replace the 1 GB default</li>
<li>Allocate some of the memory (384 Mb for RAM disk). I set the environment variables TEMP and TMP to point to the RAM Disk. I also point firefox cache to the RAM disk.</li>
<li>Turn off page file</li>
<li>Disable indexing on all drives</li>
<li>Disable System restore</li>
<li>Don&#8217;t install firefox on the SSD. Firefox 3 will try to write its history every few seconds. I use Firefox portable on SD Card, and it is much faster now.</li>
</ol>
<div>For Point No 2, actually firefox already has its own memory cache. But I choose to use RAM disk anyway, because it makes it faster when restarting firefox (as long as the computer is not turned off). When restarting firefox, the browser will reload all closed tabs, and having the cache in RAM disk makes it faster.</div>
<div>Some people suggest that using <a href="http://www.nliteos.com/">nlite</a> to reduce the Windows component will make things faster (but I haven&#8217;t tried that yet). Reducing the number of services using the guide from <a href="http://www.blackviper.com/">BlackViper</a> might also help (I haven&#8217;t tested that one also).</div>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2009/02/12/optimizing-asus-eee-900a/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>EEE PC 900</title>
		<link>http://tinyhack.com/2008/09/10/eee-pc-900/</link>
		<comments>http://tinyhack.com/2008/09/10/eee-pc-900/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 07:37:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://tinyhack.com/?p=60</guid>
		<description><![CDATA[One of our friend bought an EEE PC 900, it has 4 GB + 16 GB SSD. The seller didn&#8217;t told us that the 16 GB SSD was very slow (I should have read this). I found out about his &#8230; <a href="http://tinyhack.com/2008/09/10/eee-pc-900/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of our friend bought an EEE PC 900, it has 4 GB + 16 GB SSD. The seller didn&#8217;t told us that the 16 GB SSD was very slow (I should have read <a href="http://jkkmobile.blogspot.com/2008/07/asus-eee-pc-ssd-read-and-write-tests.html">this</a>). I found out about his when she tried to install many programs in the 4 gb SSD, and is was full. Using some steps that i found on the Internet, I tried moving her Windows installation to the 16 GB SSD. And the result is: the Windows is very slow.</p>
<p>I found <a href="http://forum.eeeuser.com/viewtopic.php?id=37047">some other guides</a> to speed up Windows on the 16 GB partition. I didn&#8217;t try all of the suggestions (too many steps), so I finally gave up because the speed improvement is not so much in my case. Finally I just moved the Windows back to the 4 GB SSD, and then reinstalling some seldom used software to the 16 GB partition.</p>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2008/09/10/eee-pc-900/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>P990i Stylus Stuck</title>
		<link>http://tinyhack.com/2008/06/28/p990i-stylus-stuck/</link>
		<comments>http://tinyhack.com/2008/06/28/p990i-stylus-stuck/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 17:36:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[phone]]></category>

		<guid isPermaLink="false">http://tinyhack.com/?p=45</guid>
		<description><![CDATA[It had been several months since my Sony Ericsson P990 stylus got stuck inside the casing. I was a little bit annoyed, since I can&#8217;t put a new stylus in it, but didn&#8217;t care too much because most of the &#8230; <a href="http://tinyhack.com/2008/06/28/p990i-stylus-stuck/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href='http://tinyhack.com/wp-content/uploads/2008/06/p990i-stylus-stuck.jpg'><img src="http://tinyhack.com/wp-content/uploads/2008/06/p990i-stylus-stuck-300x72.jpg" alt="Sony Ericsson P990 Stylus" title="p990i-stylus-stuck" width="300" height="72" align="left" style="margin: 5px" /></a> It had been several months since my Sony Ericsson P990 stylus got stuck inside the casing. I was a little bit annoyed, since I can&#8217;t put a new stylus in it, but didn&#8217;t care too much because most of the time I just use my hand to select the menu, and use the  keyboard to enter text.</p>
<p>When I bought a Torx T6 screw driver to replace MacBook Pro&#8217;s hard drive, I realized that the same screwdriver can be used to open P990i casing. So, I opened the casing, and I can pull out the old stylus. The stylus was stuck in a spring mechanism which I guess used to prevent the stylus from falling to easily.</p>
<p>You can look the disassembly pictures at<br />
<a href="http://www.flickr.com/photos/yohanes/sets/72157619774114117/">my photo album</a>.</p>
<p>One thing that may not be clear from the instructions on the Internet is this: To open the part that covers the front camera: pull it upward (that is toward the upper side of the phone).</p>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2008/06/28/p990i-stylus-stuck/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Useful Thai Sites in English</title>
		<link>http://tinyhack.com/2007/06/26/useful-thai-sites-in-english/</link>
		<comments>http://tinyhack.com/2007/06/26/useful-thai-sites-in-english/#comments</comments>
		<pubDate>Tue, 26 Jun 2007 15:23:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://tinyhack.com/2007/06/26/useful-thai-sites-in-english/</guid>
		<description><![CDATA[I just moved to Chiang Mai Thailand last month, and I really need a lot of information about this city, but the problem is that most stuff are written in Thai. Here are some English Language sites that I find &#8230; <a href="http://tinyhack.com/2007/06/26/useful-thai-sites-in-english/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just moved to Chiang Mai Thailand last month, and I really need a lot of information about this city, but the problem is that most stuff are written in Thai. Here are some English Language sites that I find useful (especially Chiang Mai related):</p>
<ul>
<li><a href="http://wikitravel.org/en/Chiang_Mai">Wikitravel info about Chiang Mai</a></li>
<li><a href="http://www.thaivisa.com">Thai Visa</a> Many information, the forum is very useful</li>
<li><a href="http://www.thai2english.com/dictionary/">Thai2English</a>, if you are stuck trying to figure out a thai website, then this might help you. This is not a translation service, just word by word translation</li>
<li><a href="http://vaja.nectec.or.th/onlinedemo/index.html">Thai text to speech</a> If you want to know how to pronounce a word, you can use this online tool</li>
<li><a href="http://www.learningthai.com/">Many resources, including dictionary</a></li>
<li><a href="http://chiangmainews.com">Chiang Mai News</a></li>
<li><a href="http://thanni.com">Thanni.com: Buy Electronic Stuff Onlne (I have never buy anything, but useful to know hardware price)</a></li>
<li<a href="http://www.thaitcc.ws/LZ_TTCC/index.jsp?location=ChiangMai">Chiang Mai Map</a>. Complete map (powered by Google), searchable, they have photos of  most places in Chiang Mai</li>
<li><a href="http://www.whatsonchiangmai.com/">www.whatsonchiangmai.com</a></li>
</ul>
<p>Don&#8217;t forget, Nokia Maps has a map of Chiang Mai for free. You can read more about it <a href="http://tinyhack.com/freewarelist/s603rd/2007/06/27/nokia-maps/">here</a></p>
<p>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2007/06/26/useful-thai-sites-in-english/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Internet Connection in Bali</title>
		<link>http://tinyhack.com/2007/02/20/internet-connection-in-bali/</link>
		<comments>http://tinyhack.com/2007/02/20/internet-connection-in-bali/#comments</comments>
		<pubDate>Tue, 20 Feb 2007 12:27:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://tinyhack.com/2007/02/20/internet-connection-in-bali/</guid>
		<description><![CDATA[As an Indonesian person, I have to admit that this is my first time going to Bali. I have gone to some other island in Indonesia, and even abroad, but this is my first time to Bali. Everybody knows that &#8230; <a href="http://tinyhack.com/2007/02/20/internet-connection-in-bali/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As an Indonesian person, I have to admit that this is my first time going to Bali. I have gone to some other island in Indonesia, and even abroad, but this is my first time to Bali. Everybody knows that Bali is beautiful, and everything is quite cheap, so I won&#8217;t talk about it.</p>
<p>Instead, I will talk about information tecnology (IT) in Bali, specifically about Internet access and mobile stuff. Internet Access is quite easy to get, four stars and five stars hotels provides Internet access over WIFI, and sometimes I can find it at dining places. You can also access the Internet through GPRS or thorough 3G data connection with your cellphone. Starter pack for GSM is very cheap, but the internet access cost is quite expensive (25 rupiah/kb, or about 2.8 USD/megabyte, at current rate).<br />
<span id="more-9"></span><br />
I haven&#8217;t been able to find a guide for Bali that can be put in my PDA or smartphone, so you will need to use online resources, or paper based information (from the Hotel, or from the airport). If you can speak english, you won&#8217;t need a translation program in your PDA, because most people can speak English.</p>
<p>May be you think I am a bit strange or too geeky: people come to Bali to enjoy the view and the culture, and not working with their computer. Well, I came to Bali to attend the Asia Open Source Software Symposium in Bali, to report the result of the Codefest that was held at Bandung, so going here is part of my work.</p>
<p>And now, as the AOSSS is over, I can extend my stay here, and enjoy my honeymoon.</p>
]]></content:encoded>
			<wfw:commentRss>http://tinyhack.com/2007/02/20/internet-connection-in-bali/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

