[U-Boot] [PATCH v3 06/20] common: Generic firmware loader for file system

Chee, Tien Fong tien.fong.chee at intel.com
Fri Oct 27 09:23:19 UTC 2017


On Kha, 2017-10-26 at 14:51 +0200, Lukasz Majewski wrote:
> Tien Fong,
> 
> > 
> > On Isn, 2017-10-16 at 16:41 +0200, Marek Vasut wrote:
> > > 
> > > On 10/16/2017 04:08 PM, Dinh Nguyen wrote:
> > > > 
> > > > 
> > > > 
> > > > 
> > > > On 10/13/2017 03:08 AM, tien.fong.chee at intel.com wrote:
> > > > > 
> > > > > 
> > > > > From: Tien Fong Chee <tien.fong.chee at intel.com>
> > > > > 
> > > > > Generic firmware loader framework contains some common
> > > > > functionality
> > > > > which is reusable by any specific file system firmware
> > > > > loader.
> > > > > 
> > > > > Signed-off-by: Tien Fong Chee <tien.fong.chee at intel.com>
> > > > > ---
> > > > >  common/Makefile   |   2 +
> > > > >  common/load_fs.c  | 163
> > > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > > > >  include/load_fs.h |  40 ++++++++++++++
> > > > >  3 files changed, 205 insertions(+)
> > > > >  create mode 100644 common/load_fs.c
> > > > >  create mode 100644 include/load_fs.h
> > > > There is alot of change here and the commit message doesn't
> > > > tell
> > > > me anything! Please describe, in detail, what your patch is
> > > > doing.
> > > > 
> > > > Also you need to include more people in the review path for
> > > > this
> > > > patch.
> > These are the code factored out from splash loader, contains some
> > common functions which can be used by other file system loader such
> > as
> > fpga loadfs.
> Would it be possible to provide ./doc entry to explain how one can
> use
> this set of tools (splash/loadfs loaders) ?
> 
Sure. I will provide a./doc or comment in next version. Basically, the
idea is factoring out the common code which specific handlle image in
file format loading from flash to target(memory/device) between splash
loader and fpga loadfs. So, you will see i have declared a few weak
functions, which is used for defined speficic handling algorithm such
as get_file, and fs_loading.

Initially, my plan is creating a more generic function name and geneirc
file name, then replacing those splash_loader fs at separate patch set.

Now, i am working directly on splash loader. Anyway, i also like more
discussion and good comments while i am working on it.

Thanks.
 
> > 
> > Okay, i will include more peoples.
> > > 
> > > And pull it out of the series and convert the splash loader to
> > > use
> > > this.
> > > It seems my comment about factoring out code from the splash
> > > loader
> > > was
> > > ignored, sigh ...
> > > 
> > I didn't ignore your comment, i factored out the common code from
> > splash loader and put in more generic function name and file name.
> > Then, i will replace these generic fs loader with splash fs loader
> > at
> > different patchset.
> > > 
> > > > 
> > > > 
> > > > Dinh
> > > > 
> > _______________________________________________
> > U-Boot mailing list
> > U-Boot at lists.denx.de
> > https://lists.denx.de/listinfo/u-boot
> 
> 
> 
> Best regards,
> 
> Lukasz Majewski
> 
> --
> 
> DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de


More information about the U-Boot mailing list