On Thu, Mar 31, 2011 at 07:41:53PM +0200, Loïc Minier wrote:
> On Fri, Apr 01, 2011, Shawn Guo wrote:
> > As the .dtb files will be naturally generated in the same kernel
> > folder as kernel image sits, why do not we ship .dtb in the same
> > folder as kernel image /boot?
> 
>  You could say the same of kernel modules; problem is that there might

Let me be more specific.  We currently run 'make ARCH=arm mx51-babbage.dtb'
to get mx51-babbage.dtb right in folder arch/arm/boot, which happens
to where zImage sits.  My point is since .dtb file is born in the
same location as zImage and needs to be on boot partition just like
zImage, we can get .dtb along with zImage during the packaging process.
I do not think kernel modules are built out in where zImage sits and
need to be on boot partition. 

>  be many .dtbs and that would clutter /boot IMHO.  So I think /lib is

With folder /boot/dtbs?

>  more sensible, but I'm open to hear good arguments!
> 
> > The .dtb files will be generated and shipped with unique name, which
> > comes from .dts file name.  But I intend to use the generic name,
> > maybe something like board.dtb along with l-m-c, just like we use
> > zImage and u-boot for all platforms in boot partition, so that l-m-c
> > does not need to encode platform specific dtb filename.
> 
>  I don't think this would work in the upstream kernel or kernel

We use platform specific filename anyway in kernel.

>  packaging: the same linux-image.deb will provide support for multiple
>  boards, for instance linux-image-mx51 supports for efikamx, efikasb,
>  mx51evk, so the package needs to ship three .dtb files.
> 
Ah, I forgot this.  Then we need to carry on platform specific
filename in l-m-c till we copy them into boot partition, where should
have only one dtb file, and generic filename should work.

>  However, it will likely be needed to copy this dtb in a place where
>  u-boot can read it, for instance in the boot partition probably as an
>  u-boot image: uDeviceTree just like uImage, uInitrd etc.; I don't care
>  too strongly about the name.
> 
I will go 'board.dtb' if no one really cares :)

-- 
Regards,
Shawn


_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to