Page 1 of 1

Kernel build - two different model

Posted: Tue May 23, 2017 10:46 am
by MrBool
I have to prepare one image for two different model od Raspberry with custom build kernel. First device is RASPBERRY PI 1 so I have to use bcmrpi_defconfig, second device is RASPBERRY PI 3, in this case I have to use bcm2709_defconfig. First kernel file is kernel.img and for second is kernel7.img. During boot the appropriate kernel file is use and there is no problem. But what about modules and dtbs? Do I have to make modules and dtbs for both configuration?
I ask bacause I noticed when I build modules with bcm2709_defconfig and then I use this modules with kernel build with bcmrpi_defconfig there is problem with load modules.

Re: Kernel build - two different model

Posted: Tue May 23, 2017 12:05 pm
by jamesh
MrBool wrote:I have to prepare one image for two different model od Raspberry with custom build kernel. First device is RASPBERRY PI 1 so I have to use bcmrpi_defconfig, second device is RASPBERRY PI 3, in this case I have to use bcm2709_defconfig. First kernel file is kernel.img and for second is kernel7.img. During boot the appropriate kernel file is use and there is no problem. But what about modules and dtbs? Do I have to make modules and dtbs for both configuration?
I ask bacause I noticed when I build modules with bcm2709_defconfig and then I use this modules with kernel build with bcmrpi_defconfig there is problem with load modules.
Yes, the modules and dtbs do need to be rebuilt for each configuration.