<div dir="ltr">Well it is not that complicated to find in fact ...<div><br></div><div><a href="http://com.odroid.com/sigong/nf_file_board/nfile_board_view.php?keyword=&amp;tag=ODROID-XU&amp;bid=198">http://com.odroid.com/sigong/nf_file_board/nfile_board_view.php?keyword=&amp;tag=ODROID-XU&amp;bid=198</a></div>
<div><a href="http://dn.odroid.com/ODROID-XU/Android_bsp/11-15-2013/">http://dn.odroid.com/ODROID-XU/Android_bsp/11-15-2013/</a></div><div><a href="http://dn.odroid.com/ODROID-XU/Firmware/11-15-2013/">http://dn.odroid.com/ODROID-XU/Firmware/11-15-2013/</a></div>
<div><br></div><div>Are those ones right?</div><div><br></div><div>Regards,</div><div>Tinti<br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 23, 2013 at 11:19 PM, Tinti <span dir="ltr">&lt;<a href="mailto:viniciustinti@gmail.com" target="_blank">viniciustinti@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
Hi Renato,</div><div class="gmail_quote"><br></div><div class="gmail_quote">Can you send the ODroid official page with Android images? I did not find it so easily.</div>
<div class="gmail_quote">Then we can be sure that we are on the same point.</div><div class="gmail_quote"><br></div><div class="gmail_quote"><div class="im">On Sat, Nov 23, 2013 at 4:51 PM, Renato Golin <span dir="ltr">&lt;<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">

Hi Vinicius,</div><div class="gmail_quote"><br></div><div class="gmail_quote">So, I&#39;m a bit green on Android, but here&#39;s what I&#39;ve done:</div><div class="gmail_quote">
<br></div><div class="gmail_quote">1. Got the Android image from ODroid webpage</div><div class="gmail_quote">2. Flashed an SDcard with it, which created 4 partitions:</div><div class="gmail_quote"><br></div><div class="gmail_quote">


<div class="gmail_quote">/dev/mmcblk0p1  4.0G  329M  3.7G   9% /media/rengolin/7FB2-80EE</div><div class="gmail_quote">/dev/mmcblk0p3  2.0G   77M  1.8G   5% /media/rengolin/1d41d736-bc13-417e-82c1-d6931befb0e8</div><div class="gmail_quote">


/dev/mmcblk0p4  248M  132K  248M   1% /media/rengolin/57f8f4bc-abf4-655f-bf67-946fc0f9f25b1</div><div class="gmail_quote">/dev/mmcblk0p2  992M  261M  732M  27% /media/rengolin/57f8f4bc-abf4-655f-bf67-946fc0f9f25b</div><div>


<div><br></div><div>        Device Boot      Start         End      Blocks   Id  System</div><div>/dev/mmcblk0p1         6982800    15377339     4197270    c  W95 FAT32 (LBA)</div><div>/dev/mmcblk0p2          136620     2246639     1055010   83  Linux</div>


<div>/dev/mmcblk0p3         2246640     6451499     2102430   83  Linux</div><div>/dev/mmcblk0p4         6451500     6982799      265650   83  Linux</div></div><div><br></div><div>p1 is my &quot;/sdcard&quot; partition, mounts ok.</div>


<div>p2 has &quot;app&quot;, &quot;backup&quot;, &quot;data&quot;, &quot;drm&quot;, &quot;dontpanic&quot;, etc. Not sure what it is...</div><div>p3 seems to be empty?</div><div>p4 seems to be /root, with init.*, /dev, /etc, etc.</div>


<div><br></div><div>I have no zImage on any of the partitions, and I can&#39;t find the /boot partition or directory.</div></div></div></div></blockquote><div><br></div></div><div>That is expected. Android (usually) has a special binary format that is composed by the:</div>

<div>- kernel parameters</div><div>- kernel itself</div><div>- minimal rootfs</div><div> </div><div>Then you do not have access to the zImage directly. You need to use three tools that are</div><div>available on this link <a href="http://ge.tt/5CFeOx11/v/0" target="_blank">http://ge.tt/5CFeOx11/v/0</a></div>

<div><br></div><div>They are &#39;abootimg&#39; that checks and shows this boot image binary. &#39;mkbootimg&#39; which</div><div>generates it and &#39;mkunpackbootimg&#39; which extracts it. Normally what I do is to</div>

<div>extract the boot.img which will give me a kernel. Then replace it and run &#39;mkbootimg&#39;</div><div>with all other files and parameters given by &#39;mkunpackbootimg&#39;.</div><div><br></div><div>But as I said usually some vendors implement other types of &quot;packing&quot; schemes.</div>

<div>There are ones that will even put the kernel inside a partition as Linux does.</div><div>Others will use uImage for compatibility with uBoot.</div><div><br></div><div>Karim&#39;s book talk about it as far as I remember.</div>

<div><br></div><div>Embedded Android - Porting, Extending, and Customizing</div><div>By Karim Yaghmour.</div><div><br></div><div>The  we need to know first which scheme is ODroid using. I will try to check it and</div><div>

send you the procedures.</div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Questions:</div><div><br></div><div>1. How do I replace my current kernel with your LLVM-compiled one?</div></div></div></div></blockquote><div><br></div>

</div><div>We need to check the scheme used by ODroid. </div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div>2. Do I un-tar your /lib/modules/ tar ball onto /root&#39;s /lib/modules?</div></div></div></div></blockquote><div><br></div></div><div>Yes. Exactly that. I really need to do a better documentation of it.</div>
<div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">

<div><br></div><div>3. My SDcard is only 4GB, so I think there might have been some issues with the size... I&#39;m flashing on a 16GB SD, lets see if the same issue persists.</div>
<div><br></div></div></div></div></blockquote><div><br></div></div><div>It should not be a problem. Android itself is really small. 300 MiB for Android system itself should be more than enough.</div><div>We can try anyway.</div>

<div><br></div><div>Thanks Renato, I will try to generate a image here too.</div><div><br></div><div>Regards,</div><div>Tinti</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div>Thanks,</div><div>--renato</div></div></div></div>
<br>_______________________________________________<br>
LLVMLinux mailing list<br>
<a href="mailto:LLVMLinux@lists.linuxfoundation.org" target="_blank">LLVMLinux@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a><br></blockquote></div><div class="im"><br><br clear="all"><div><br></div>
-- <br><div dir="ltr">
Simplicity is the ultimate sophistication<br></div>
</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Simplicity is the ultimate sophistication<br></div>
</div></div></div>