Article Upstream Kernel Compilation

Fragment of a discussion from User talk:Rfreire
Jump to: navigation, search

Hello there, Moritz and happy 2015 for you!

Thanks for pointing that.

Regarding the DTB, this is plain odd. I don't see the rpi-b-rev2.dtb at https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/Makefile . AFAIK, the DTB file is specified at the u-Boot config file. Are you sure that you have a correct fdtfile specified at boot.scr.uimg in the SD card? Do a cat and you'll be able to check it. I think it can be whatever name, *if* it exists.

2. zImage and the DTB result build paths indeed has a wrong path. I've just corrected it at the article.

If you have any other concerns, feel free to get in touch.

Thanks again and my best regards,

- Rodrigo.

08:26, 9 January 2015

Hi Rodrigo, Happy new year and thank you for your fast reply! I am pretty new to kernel compilation in general and cross-compilation specifically, so I'm glad I can contribute to fine-tuning the description in the article.

Regarding the dtb file: I rechecked the process and noticed one more weird thing: When invoking 'make rpi_b_config' I get

'Can't find default configuration "configs/rpi_b_defconfig"!'

Removing the _b, so only 'make rpi_cofig' gives me a working config file. This config file does not contain any reference to "rev2"

I did some more research and was able to trace back the "rev2" to u-boot/board/raspberry/rpi/rpi.c. It seems to me that my board is not correctly detected. cat /proc/cpuinfo gives me

Hardware	: BCM2835
Revision	: 0000

However, a precompiled rasbmc kernel correctly reports:

Hardware	: BCM2708
Revision	: 000e
09:45, 12 January 2015

Moritz, you are right!

Thanks for fixing the Wiki page! And please excuse me from taking so long for replying.

Your revisions were awesome and the article now looks great!! Thanks for the help!

My best regards,

- RF.

13:37, 10 February 2015