<?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>ostebaronen.dk &#187; Compiling</title>
	<atom:link href="http://ostebaronen.dk/tag/compiling/feed/" rel="self" type="application/rss+xml" />
	<link>http://ostebaronen.dk</link>
	<description>write letters and shit, yo!</description>
	<lastBuildDate>Fri, 20 Aug 2010 09:35:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Compiled my own CM kernel!</title>
		<link>http://ostebaronen.dk/compiled-my-own-cm-kernel/</link>
		<comments>http://ostebaronen.dk/compiled-my-own-cm-kernel/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 16:47:57 +0000</pubDate>
		<dc:creator>ostebaronen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Compiling]]></category>
		<category><![CDATA[GIT]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ostebaronen.dk/?p=210</guid>
		<description><![CDATA[Awesome, I got it working. My own compiled Linux Kernel from CyanogenMod&#8217;s repository. It boots and wlan does also work. Great success! The process of doing so is pretty straight forward. I followed a post, by a guy called bcrook at XDA-developers had made to help some other person, with slight modifications. This guide requires [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ostebaronen.dk/wp-content/uploads/2009/10/device.png"><img class="alignright size-medium wp-image-226" title="Settings menu" src="http://ostebaronen.dk/wp-content/uploads/2009/10/device-200x300.png" alt="Settings menu" width="200" height="300" /></a></p>
<p>Awesome, I got it working. My own compiled Linux Kernel from CyanogenMod&#8217;s repository. It boots and wlan does also work. Great success!</p>
<p>The process of doing so is pretty straight forward. I followed <a title="Bcrook helping Hotweiss" href="http://forum.xda-developers.com/showpost.php?p=4576850&amp;postcount=8">a post</a>, by a guy called <a title="bcrook" href="http://forum.xda-developers.com/member.php?u=1839316">bcrook</a> at <a title="XDA-developers forum" href="http://forum.xda-developers.com">XDA-developers</a> had made to help some other person, with slight modifications.</p>
<p>This guide requires you to run a Linux based system, since the compilers are made for this system. You might as well have some luck with Cygwin, but I wouldn&#8217;t count on it.</p>
<p>So here is what I did to get it working.</p>
<ol>
<li>First get the <a title="Android source download" href="http://source.android.com/download">android source</a> and build it. You will need JDK, curl and git and probably also some other tools to get this working.<br />
<code>curl http://android.git.kernel.org/repo &gt;~/bin/repo<br />
chmod a+x ~/bin/repo<br />
mkdir  &lt;Android source dir&gt; &amp;&amp; cd &lt;Android source dir&gt;<br />
repo init -u git://android.git.kernel.org/platform/manifest.git<br />
</code><br />
When it is done build it.<code><br />
make</code></li>
<li>Now we have the tools and compilers ready so we just need to add them to our <em>PATH</em>.<code><br />
export PATH=$PATH:~/&lt;Android source dir&gt;/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin<br />
</code></li>
<li>Grab the CyanogenMod kernel from his GIT repo. Make sure to get the correct branch or you will see a lot of errors while compiling!<br />
<code>git clone git://github.com/cyanogen/cm-kernel.git<br />
git branch -r<br />
git checkout --track -b cm-2.6.29-bfs origin/android-2.6.29-bfs</code></li>
<li>Now get a configuration for the kernel. You can pull an existing one from you phone, it is found in /proc/config.gz or you can use your own. This needs to be put in your cm-kernel dir, where you will se a lot of folders and such.<br />
<code>zcat config.gz &gt; ~/cm-kernel/.config</code></li>
<li>Apply any patches to the kernel now.</li>
<li>Build it! This is done easily it is here the PATH we exported earlier comes in handy.<br />
<code>cd ~/cm-kernel<br />
make ARCH=arm CROSS_COMPILE=arm-eabi-</code><br />
Wait for it to get done. The built kernel will be in arch/arm/boot/zImage</li>
<li>Now we just need to build the wlan.ko module, so we can get some WiFi on our phone.<code>cd &lt;Android source dir&gt;/system/wlan/ti/sta_dk_4_0_4_32<br />
make KERNEL_DIR="&lt;kernel source dir&gt;" ARCH=arm</code><br />
The kernel is now built!</li>
</ol>
<p>Last thing to do is to pack it into a boot.img <a title="Repack boot.img" href="http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack%2C_Edit%2C_and_Re-Pack_Boot_Images">instructions can be found on android-dl&#8217;s Wiki</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ostebaronen.dk/compiled-my-own-cm-kernel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
