All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chee, Tien Fong <tien.fong.chee@intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/3] common: Generic loader for file system
Date: Tue, 12 Jun 2018 04:25:45 +0000	[thread overview]
Message-ID: <1528777544.9908.2.camel@intel.com> (raw)
In-Reply-To: <CAPnjgZ3KF6vGnsP5Q2etkCP3TkYt+B=s98Ys3b0LNajpgoDiBA@mail.gmail.com>

On Mon, 2018-06-11 at 13:38 -0600, Simon Glass wrote:
> Hi,
> 
> On 11 June 2018 at 08:15, Marek Vasut <marex@denx.de> wrote:
> > 
> > On 06/11/2018 04:13 PM, Chee, Tien Fong wrote:
> > > 
> > > On Mon, 2018-06-11 at 16:03 +0200, Marek Vasut wrote:
> > > > 
> > > > On 06/11/2018 03:55 PM, Chee, Tien Fong wrote:
> > > > [...]
> > > > > 
> > > > > 
> > > > > > 
> > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > > > 
> > > > > > > > > 
> > > > > > > > > Linux firmware loading method is different with this
> > > > > > > > > Linux loading firmware with
> > > > > > > > > 1. Firmware search paths - which is hardcoded in root
> > > > > > > > > file
> > > > > > > > > system
> > > > > > > > > 2. Built-in firmware - part of kernel binaries
> > > > > > > > > 
> > > > > > > > > This patch loading firmware with
> > > > > > > > > 1. Storage type and partition specified in DTS, but
> > > > > > > > > storage
> > > > > > > > > type
> > > > > > > > > can
> > > > > > > > > be overridden dev instance and partition through U-
> > > > > > > > > boot
> > > > > > > > > variable
> > > > > > > > > environment.
> > > > > > > > > 
> > > > > > > > > Or:
> > > > > > > > > 
> > > > > > > > > 2. Storage type can be set through dev instance, and
> > > > > > > > > partition
> > > > > > > > > through
> > > > > > > > > U-boot variable environment. No DTS is required.
> > > > > > > > And why can we not do as Linux does ?
> > > > > > > > 
> > > > > > > Because we don't have root file system, but i have
> > > > > > > mimicked the
> > > > > > > search
> > > > > > > path in our variable environment, but with both storage
> > > > > > > type
> > > > > > > and
> > > > > > > partition.
> > > > > > OK, so user can configure environment variable to inform U-
> > > > > > Boot
> > > > > > where
> > > > > > to
> > > > > > look for firmware, good (although, this probably fails in
> > > > > > early
> > > > > > env,
> > > > > > dunno of that's a problem).
> > > > > > 
> > > > > Without DTS, then you need to configure env variable, so that
> > > > > SPL
> > > > > and
> > > > > U-boot only know what storage type and partiton to look for
> > > > > firmware.
> > > > I guess that's fine ?
> > > > 
> > > Yes, it is already supported in this patches.
> > > > 
> > > > > 
> > > > > 
> > > > > > 
> > > > > > 
> > > > > > But why do we need the DT part of things ? I don't think we
> > > > > > do
> > > > > > need
> > > > > > it
> > > > > > at all.
> > > > > > 
> > > > > Leverage the flexibility and benefits of the DT such as
> > > > > changing
> > > > > both
> > > > > storage type and partitions without changing the codes.
> > > > DT is a hardware description. Does this describe hardware ? No
> > > > 
> > > Okay, then i will remove DT part.
> > Wait for feedback from sjg at least.
> I think using device tree is fine for this, but I suggest that the
> binding file (when you add it) should mention that the node for this
> driver should go in /chosen. That's what we use for settings, etc.
> 
Okay, sure. So, we agree supporting device tree is good to go.

> Things to do:
> - Add a sandbox driver for this uclass, and a test in test/dm/...
> - Add some documentation about it somehwere
> - Add a device-tree binding file - see doc/device-tree-bindings
> 
Okay, let me try.

> Regards,
> Simon

  reply	other threads:[~2018-06-12  4:25 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-24  5:04 [U-Boot] [PATCH v2 0/3] Generic file system firmware loader DM tien.fong.chee at intel.com
2018-05-24  5:04 ` [U-Boot] [PATCH v2 1/3] doc: Add new doc for file system firmware loader driver model tien.fong.chee at intel.com
2018-05-24  5:04 ` [U-Boot] [PATCH v2 2/3] doc: dtbinding: Add file system firmware loader binding document tien.fong.chee at intel.com
2018-05-24  5:04 ` [U-Boot] [PATCH v2 3/3] common: Generic loader for file system tien.fong.chee at intel.com
2018-06-06  8:39   ` Marek Vasut
2018-06-07  4:04     ` Chee, Tien Fong
2018-06-07  6:51       ` Marek Vasut
2018-06-07  8:36         ` Chee, Tien Fong
2018-06-07  8:41           ` Marek Vasut
2018-06-07  9:45             ` Chee, Tien Fong
2018-06-07  9:50               ` Marek Vasut
2018-06-07 10:11                 ` Chee, Tien Fong
2018-06-07 10:29                   ` Marek Vasut
2018-06-11  5:01                     ` Chee, Tien Fong
2018-06-11  9:39                       ` Marek Vasut
2018-06-11 11:53                         ` Chee, Tien Fong
2018-06-11 11:55                           ` Marek Vasut
2018-06-11 12:42                             ` Chee, Tien Fong
2018-06-11 13:38                               ` Marek Vasut
2018-06-11 13:55                                 ` Chee, Tien Fong
2018-06-11 14:03                                   ` Marek Vasut
2018-06-11 14:13                                     ` Chee, Tien Fong
2018-06-11 14:15                                       ` Marek Vasut
2018-06-11 19:38                                         ` Simon Glass
2018-06-12  4:25                                           ` Chee, Tien Fong [this message]
2018-06-06  5:26 ` [U-Boot] [PATCH v2 0/3] Generic file system firmware loader DM Chee, Tien Fong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1528777544.9908.2.camel@intel.com \
    --to=tien.fong.chee@intel.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.