<?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>TangoRangers.com's Blog &#187; kernel</title>
	<atom:link href="http://blog.tangorangers.com/tag/kernel/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tangorangers.com</link>
	<description>Misc crap and such</description>
	<lastBuildDate>Fri, 30 Jul 2010 01:13:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Tetherbot, Android, and Slackware How to</title>
		<link>http://blog.tangorangers.com/2009/02/tetherbot_android_and_slackware_how_to/</link>
		<comments>http://blog.tangorangers.com/2009/02/tetherbot_android_and_slackware_how_to/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 03:50:30 +0000</pubDate>
		<dc:creator>DaijoubuKun</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[G1]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[tetherbot]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://blog.tangorangers.com/?p=61</guid>
		<description><![CDATA[After trying to get my Android (aka, T-Mobile&#8217;s G1) working on my Slackware laptop and having many problems I looked for help at androidcommuinity.com. Even tho they didn&#8217;t technically help me solve the problem they were still a great help, and there quick replies kept me thinking of what the problem could be, and I [...]]]></description>
			<content:encoded><![CDATA[<p>After trying to get my Android (aka, T-Mobile&#8217;s G1) working on my Slackware laptop and having many problems I looked for help at <a href="http://androidcommunity.com/forums">androidcommuinity.com</a>.  Even tho they didn&#8217;t technically help me solve the problem they were still a great help, and there quick replies kept me thinking of what the problem could be, and I thank them for that.  In the end it was my own fault.  Here&#8217;s the story.</p>
<p>My laptop runs Slackware 12.0 with a new custom 2.6.28 kernel and there was were the problem was.  As it turns out I failed to turn on and modularize certain USB functions, now I&#8217;m unsure of what I enabled that made it work.  </p>
<p>First, if you think it&#8217;s a problem with your kernel check your USB device settings.  I use the <em>make menuconfig</em> when I build kernels, if you use xconfig it may appear slightly differently.</p>
<p>Check under Device Drivers &#8211;> USB Support.  I turned on just about everything and modularized just about every USB device, don&#8217;t forget to turn on <em>USB Gadget Support</em> I turned on the top 3 options, they are for debugging and also Serial Gadget was modularized.  Click <a href='http://www.tangorangers.com/files_blog/DaijoubuKun.Android.config'>Here</a> to download my .config file.  This file is in the root of where you extracted your kernel (usually <em>/usr/src/linux-2.6.28/</em>).  Be sure to rename the file from <em>DaijoubuKun.Android.config</em> to <em>.config</em> otherwise you will need to tell your kernel to use that file.  Quick note:  I know I have a lot here that does not need to be turned on, I like large kernels with lots of modules.</p>
<p>UPDATE!<br />
Put your 50-android.rules file in /etc/udev/rules/ and chmod it to 755!<br />
Also in your kernel build make sure you turn on USB debugging mode!!!</p>
<p>If you think your kernel is OK check out <a href='http://graha.ms/androidproxy/'>graha.ms.</a>  There is a lot of the stuff your going to need to know there.</p>
<p>Now, at this point I&#8217;m assuming you visited the link above but your Tetherbot still isn&#8217;t working.  This may be because the commands google gives may not work in Slackware.  I wrote 4 lines more designed in Slackware&#8217;s udev style.  Below are 8 lines.  I&#8217;m sure you only need one, but it didn&#8217;t hurt me none to use all 8, the bottom 4 are mine.  Here is my 50-android.rules</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">SUBSYSTEM==&quot;usb&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;
SUBSYSTEM==&quot;usb_device&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;
SUBSYSTEM==&quot;usb&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;660&quot;
SUBSYSTEM==&quot;usb_device&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;660&quot;
SUBSYSTEM==&quot;usb&quot;, ENV{DEVTYPE}==&quot;usb&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;
SUBSYSTEM==&quot;usb&quot;, ENV{DEVTYPE}==&quot;usb_device&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;
SUBSYSTEM==&quot;usb_device&quot;, ENV{DEVTYPE}==&quot;usb&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;
SUBSYSTEM==&quot;usb_device&quot;, ENV{DEVTYPE}==&quot;usb_device&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;</pre></div></div>

<p>I know it&#8217;s got to be overkill to have 8 lines in there, so if you figure out which is the one that works post it in a comment and I will edit this to show that line with credit to you.</p>
<p>NOTE:  When you plug in your phone you will be asked if you want to mount the sdcard to your computer.  SELECT NO! According to rynosaur of androidcommunity.com.</p>
<p>Note, to make things easier copy the files is your tools/ directory (from the android sdk) to <em>/bin</em>.  This way you do not need to go to the download directory to run the adb program.  You can also copy the libs to <em>/bin/lib</em></p>
<p>Now run <em>adb devices</em>.  You should get some out put like</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">List of devices attached
HTxxxGZxxxxx    device</pre></div></div>

<p>If you do then we are ready to go!<br />
If not did you remember to run on USB debugging?<br />
Start the Tetherbot program and hit <em>Start Socks</em><br />
Now type &#8216;<em>adb forward tcp:1080 tcp:1080</em>&#8216;.  This will forward and thing you send to &#8216;localhost:1080&#8242; to the phone.</p>
<p>Using nmap I found that Tetherbot uses socks 5 with no authentication.  This makes things a bit easier.  Once you have gotten this far you are ready to setup your web browser to use the socks proxy.  I have done this in SeaMonkey and Firefox (haven&#8217;t tried anything else yet) so here are the instructions for FireFox 3.0.x (should stay about the same for future versions).</p>
<p>Go to Edit &#8211;> Preferences &#8211;> Advanced (top tab) &#8211;> Network (lower tab) &#8211;> Connection Settings (button).<br />
Select &#8216;<em>Manual Proxy configuration</em>&#8216; and put <em>localhost</em> in <em>SOCKS Host</em> and port <em>1080</em> in <em>port</em>.  ONLY put that information in the SOCKS Host! Do NOT put it in HTTP Proxy!  Be sure to select <em>Socks v5</em> and (this may not be necessary) remove anything in the field <em>No Proxy for:</em><br />
Here is a picture:<br />
<img src="http://www.tangorangers.com/files_blog/proxy_settings.jpg" alt="proxy settings" /><br />
Once you do that everything will go through your phone.  I did read that there is a 1GB per month limit on the phone.  I do not know if this is true or not.  I&#8217;m only going to use Tetherbot when I&#8217;m doing a service call, I need a file and there is no other way to get online.</p>
<p>Lastly, just as quick bit of info.  I live in an area where T-Mobile doesn&#8217;t have 3G!  It sucks, but I&#8217;m told it&#8217;s coming later this year.  It damn well better with how much I pay every month for this thing.  I ran a bandwidth test through the EDGE network (it&#8217;s like 2.5G) and below is my speed.<br />
<img src="http://www.tangorangers.com/files_blog/bandwidth_test.jpg" alt="bandwidth test" /><br />
Granted, I only ran the test once, and early in the morning. Plus I don&#8217;t think the phone was designed to have these sort of things run through it, but it will have to do for now. P.S. Thanks for the awesome speed test program <a href="http://www.speakeasy.net/speedtest">Speakeasy.</a></p>
<p>Special note:  I could be wrong, but it seems that after you put the required information into 50-android.rules you may need to either restart or run <em>/etc/rc.d/rc.udev restart</em> to restart the udev service.  You may also need to replug in your phone, make sure you don&#8217;t mount your sd card as it may cause tetherbot to not function properly.</p>
<p>If this helped you in anyway please let me know.  If it didn&#8217;t help post your problem and I will try to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tangorangers.com/2009/02/tetherbot_android_and_slackware_how_to/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
