Dear all,<br><br>Finally we have succeeded on building a Raspberry Pi kernel and in making it start to boot.<br>Unfortunately it is still freezing for unknown reasons in different points.<br><br>Please follow the normal instructions for building a standard target.<br>
<br>  git clone <a href="http://git.linuxfoundation.org/llvmlinux.git">http://git.linuxfoundation.org/llvmlinux.git</a><br>  cd llvmlinux<br>  make sync-all<br>  cd targets/rpi<br>  make<br><br>On success, you should have your kernel at llvmlinux/targets/rpi/src/rpi/arch/arm/boot/Image.<br>
Now you need to get the tools from official repo and generate a compatible kernel.<br><br>  git clone <a href="https://github.com/raspberrypi/tools.git">https://github.com/raspberrypi/tools.git</a><br>  cd tools/mkimage<br>
  ./imagetool-uncompressed.py /path/to/llvmlinux/targets/rpi/src/rpi/arch/arm/boot/Image<br><br>This generates a file, at the same directory, called kernel.img which is the basically the original<br>kernel with padding. Now, replace your kernel.img in your sdcard distro (make a backup before).<br>
I have tested with Raspian.<br><br>Boot Raspberry Pi, normally you should get at least some messages from kernel or sometimes<br>an infinite loop printing random things. Please refer the attached photo in my case.<br><br>
More info at <a href="http://llvm.linuxfoundation.org/">http://llvm.linuxfoundation.org/</a> and<br><a href="http://elinux.org/RPi_Kernel_Compilation#Kernel_compilation">http://elinux.org/RPi_Kernel_Compilation#Kernel_compilation</a> .<br>
<br>Enjoy,<br>Tinti<br><br>-- <br>Vinicius Tinti <br>mail =&gt; {<a href="mailto:viniciustinti@gmail.com" target="_blank">viniciustinti@gmail.com</a>, <a href="mailto:tinti@comp.eng.br" target="_blank">tinti@comp.eng.br</a>}<br>
skype =&gt; {viniciustinti}<br>