Hmm, I have never actually build an rpi kernel. As a good lazy person I
always copy the images from github :)
and on top of that, I also have not cross complied anything. All has
been build on an actual ARM.

So the verification questions are:
- you do use the raspberry pi's source tree?
(https://github.com/raspberrypi/linux)
- and you start with their config file (bcmrpi_defconfig or
bcm2709_defconfig)

Recently I saw that there is a tool to make a kernel.img from an zImage:
https://github.com/raspberrypi/tools/tree/master/mkimage

and lastly, for my curiousity: what are you trying to achieve?

A hint from Gordan I got som time ago is to look at the kernel srpm for
pidora. IIRC, they also build their own kernels. the SPEC file should
thus be good documentation on how to build such a kernel (bar the cross
compiling)

Jacco



On 05/25/2015 11:58 PM, Bjarne Saltbaek wrote:
> Hi Jacco.
>
> A little off topic, but hey... :)
>
> Cann you give me a clue why I fail at compiling my own Raspberry kernel?
>
> I use a CentOS 6.6 64-bit with the cross-ng tools and QEMU on a
> Windows 7 with the image from
> http://ftp.redsleeve.org/pub/yum/os/raspi-redsleeve-cli-0.3.img.xz
>
> I have tried various Raspberry Kernel Cross Compiling guides from the
> net but none of them works.
>
> I get compiled the final zImage and Image but they wont boot on QEMU -
> blank screen ( the raspi-redsleeve-cli-0.3.img work ofc on the QEMU).
>
> BR,
> Bjarne
>
>
> On 23-05-2015 14:58, Jacco Ligthart wrote:
>> On 05/17/2015 11:42 PM, Joshua Kramer wrote:
>>> On Sun, May 17, 2015 at 11:57 AM, Jacco Ligthart
>>> <[email protected]> wrote:
>>>
>>>> Stupid question, did you keep /lib/modules/* from Emlid ?
>>> I didn't do that first time around, but after you posted that question
>>> I rebuilt my image with the /lib/modules* from Emlid.  Same thing
>>> happened.  When I boot with the kernel included with RSEL7, I get the
>>> raspberry icon, then the bootup progress bar.  Nice and clean.  When I
>>> try to use the Emlid kernel, I get lots of bootup messages (expected
>>> but undesired).  Then, when it gets to the login prompt, it seems like
>>> it's detecting my USB keyboard over and over and over again... and the
>>> keyboard doesn't work.
>>> _______________________________________________
>>> users mailing list
>>> [email protected]
>>> http://lists.redsleeve.org/mailman/listinfo/users
>> I tried if I could replicate your issue, but for me it just works.
>>
>> I tried with a pi model2, if that makes a difference.
>>
>> I started with the standard image for the pi model2. Then I copied in
>> the following from emlid-raspberrypi2-raspbian-rt-20150401.img:
>> /boot/config.txt
>> /boot/cmdline.txt
>> /boot/kernel7.rt.img
>> /lib/modules/3.18.9-rt5-v7+/*
>>
>> and after reboot it works like normal, although with all the bootup
>> messages extra.
>>
>> the bootup messages can be suppressed if you append "quiet rhgb" to the
>> cmdline.txt
>>
>> Jacco
>>
>> _______________________________________________
>> users mailing list
>> [email protected]
>> http://lists.redsleeve.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.redsleeve.org/mailman/listinfo/users

_______________________________________________
users mailing list
[email protected]
http://lists.redsleeve.org/mailman/listinfo/users

Reply via email to