UncleVan wrote:@Leio: I would if I could .. - I still dont own a Pi2 board and I dont know when I will ... I suppose kernel7.img won't boot with the Pi 1 model B ? -!!! CORRECT ME IF I'M WRONG !!!
...which would be a smooth transition to
No, it won't boot. kernel7.img is built for armv7 with NEON support. pi1 can't run that. kernel.img renamed to kernel7.img might work up to a point, but probably slightly different device tree or whatnot, and so won't get far, but who knows.
But the whole point of the different names is exactly for co-existence and smooth transition of a SD card between different Pi's, if the userland is for Pi1. So raspbian and such distros can install both kernel.img and kernel7.img, and have the most important part (kernel) run in ARMv7 mode, so that it runs at optimal speed and selected userspace bits can be using dynamically chosen armv7 with NEON code paths when they find it present at runtime (if the rest is ARMv6 to remain pi1 compatible; or just everything from a ARMv7 stage as we do in Gentoo usually). The firmware (start.elf, bootcode.bin and the others) is built so that it sees which Pi it is and then chooses the kernel image filename accordingly, so you can have both on the same /boot.
UncleVan wrote:So someone with RaspPi 2 board could friendly provide me with the /proc/config.gz from the kernel7.img, and I will retour with a fresh new 3.18.8 ARMv7 kernel image + Modules! (or at least Ill do my best to

)
There are of course workarounds for this but I dont have the time for experiments right now...
If you are having trouble, really, just use the pre-built ones from firmware.git repo and worry about your own kernel much later on.
The pi2 kernel has the added suffix to it, so the modules reside in separate paths and can co-exist. And no, can't use the same modules for both pi1 and pi2, because the modules would be built for ARMv7 as well. Hence the different kernel name suffix, to have them also co-exist in /lib/modules different subdirs.
As for the /proc/config.gz, I think it's too large to put here. But I suspect it's what would come out of using raspberry pi 2's kernel default config, i.e as found here:
https://github.com/raspberrypi/linux/bl ... _defconfig
I think "make bcm2709_defconfig" in your rpi kernel clone might start using it? Of course prepending with any necessary environment variables (or exported earlier) as appropriate, especially if cross compiling on a x86_64 or whatnot.
bcm2709 is the rpi2 "platform" in kernel and bcm2708 is rpi1 platform.
UncleVan wrote:Also I wonder whether I could use same git sources for both kernels ?
Yes, but might be useful to have a local copy or clone for the other, so that when you tweak a config, you don't need to rebuild all from scratch, had you happened to compile for the other pi type in the tree. Though maybe kernel supports building in builddirs too, then could do it easily in the same clone without any caveats.