From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qe0-f45.google.com ([209.85.128.45]:44755 "EHLO mail-qe0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752898Ab3HPCvV (ORCPT ); Thu, 15 Aug 2013 22:51:21 -0400 Received: by mail-qe0-f45.google.com with SMTP id x7so933212qeu.4 for ; Thu, 15 Aug 2013 19:51:20 -0700 (PDT) Date: Thu, 15 Aug 2013 22:51:18 -0400 (EDT) From: Nicolas Pitre Subject: Re: [RFC] Best practices for hardware shipping device trees In-Reply-To: <20130815235909.GA11437@voom.fritz.box> Message-ID: References: <20130814151345.GA2983@bill-the-cat> <520BB3E6.7000205@wwwdotorg.org> <20130814182502.GC2983@bill-the-cat> <520C3840.4040309@ti.com> <20130815235909.GA11437@voom.fritz.box> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: devicetree-owner@vger.kernel.org To: David Gibson Cc: Tom Rini , Stephen Warren , cross-distro@lists.linaro.org, Mark Rutland , devicetree@vger.kernel.org, Tom Rini , Ian Campbell , Arnd Bergmann , Rob Herring , Pawel Moll List-ID: On Fri, 16 Aug 2013, David Gibson wrote: > On Wed, Aug 14, 2013 at 10:57:36PM -0400, Nicolas Pitre wrote: > > On Wed, 14 Aug 2013, Tom Rini wrote: > > > On 08/14/2013 08:37 PM, Nicolas Pitre wrote: > > > > On Wed, 14 Aug 2013, Tom Rini wrote: > [snip] > > Well, the hard guideline should require that the DTB be updateable and > > not linked with nor generated by the bootloader or firmware. That > > implies some storage separate from the bootloader but this doesn't need > > to be a filesystem. > > Wait, what!? > > Much as I think a bunch of the current problems have been caused by > being overly keen to push the dtb into firmware, we shouldn't *ban* > the original Open Firmware model of the device tree, where it is > generated by the firmware and consumed by the OS. If the DTB generating firmware can be updated by the end user just as easily and safely as a standalone DTB then that's probably fine. But we do know that many people/organizations are not willing to let end users upgrade bootloaders due to the risks associated with such an operation. So in that case we may not suggest the DTB be tied to the bootloader/firmware. Nicolas