honda4life
Posts: 74
Joined: Thu Mar 15, 2012 7:27 pm

Cross compiled kernel won't boot

Thu Jun 28, 2012 9:47 pm

I've followed this wiki under Ubuntu:
http://elinux.org/Rpi_kernel_compilation#Ubuntu_Linux
Copied the config as described and afterwards menuconfig to enable PPP filtering.
Build completed, copied the kernel en ending with the "test screen".
i've copied the latest kernel from github to /boot/ so the other files should be up-to-date ;)

What can I do wrong with this, it should be so easy...
Who has a clue?

Killerbee
Posts: 62
Joined: Tue Sep 20, 2011 6:38 pm

Re: Cross compiled kernel won't boot

Fri Jun 29, 2012 7:30 am

If I understand you correct you are able to compile a new kernel.
Are you able to convert the kernel to a kernel.img file using this command?

Code: Select all

python imagetool-uncompressed.py path/to/linux/arch/arm/boot/Image
If it works you will find a kernel.img file. Copy this file to your SD card's /boot directory

At least your pi should boot.
Please let me know if you pi boots because we need to copy the modules also

KB

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5099
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Cross compiled kernel won't boot

Fri Jun 29, 2012 8:48 am

Killerbee wrote:

Code: Select all

python imagetool-uncompressed.py path/to/linux/arch/arm/boot/Image
Actually this is now optional. Recent firmwares will accept the "Image" file directly (just renamed to kernel.img).

Killerbee
Posts: 62
Joined: Tue Sep 20, 2011 6:38 pm

Re: Cross compiled kernel won't boot

Fri Jun 29, 2012 11:22 am

dom wrote:
Killerbee wrote:

Code: Select all

python imagetool-uncompressed.py path/to/linux/arch/arm/boot/Image
Actually this is now optional. Recent firmwares will accept the "Image" file directly (just renamed to kernel.img).
Nice :) thanks but does it work with the ZImage as well?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5099
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Cross compiled kernel won't boot

Fri Jun 29, 2012 11:31 am

Killerbee wrote:Nice :) thanks but does it work with the ZImage as well?
No.

honda4life
Posts: 74
Joined: Thu Mar 15, 2012 7:27 pm

Re: Cross compiled kernel won't boot

Sat Jun 30, 2012 7:20 am

Yes, compilation is ok
Indeed commands aren't needed ;)

hongrun007
Posts: 2
Joined: Wed Sep 04, 2013 5:38 pm

Re: Cross compiled kernel won't boot

Wed Sep 04, 2013 5:41 pm

I tried to use Image file directly , but it doesn't work , after I use the script , it works ,any one can tell me why ?

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Cross compiled kernel won't boot

Wed Sep 04, 2013 7:51 pm

Did you rename the Image to kernel.img ? Are you using up-to-date firmware (start.elf & bootcode.bin)

hongrun007
Posts: 2
Joined: Wed Sep 04, 2013 5:38 pm

Re: Cross compiled kernel won't boot

Wed Sep 04, 2013 8:45 pm

AndrewS wrote:Did you rename the Image to kernel.img ? Are you using up-to-date firmware (start.elf & bootcode.bin)
Even if i don't rename it , i know that i can modify the config.txt file to assign the kernel file. and i use the 2013-07-26-wheezy-raspbian system , i think the firmware is already up-to-date.

Return to “Advanced users”

Who is online

Users browsing this forum: No registered users and 19 guests