public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Lukasz Majewski <l.majewski@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH 2/5] spl: dfu: fs: adding ext4/fat filesystem support for SPL-DFU
Date: Mon, 30 May 2016 13:59:48 +0200	[thread overview]
Message-ID: <20160530135948.479d7a33@amdc2363> (raw)
In-Reply-To: <1464356373-8375-3-git-send-email-ravibabu@ti.com>

Hi Ravi,

> Adding ext4/fat filesytem support for SPL-DFU to
> write ext4/fat files to eMMC, MMC/SD device
> 
> Signed-off-by: Ravi Babu <ravibabu@ti.com>
> ---
>  cmd/Makefile    |    9 +++++++++
>  common/Makefile |    4 +++-
>  fs/Makefile     |   12 +++++++++++-
>  3 files changed, 23 insertions(+), 2 deletions(-)
> 
> diff --git a/cmd/Makefile b/cmd/Makefile
> index 139189e..ad89e09 100644
> --- a/cmd/Makefile
> +++ b/cmd/Makefile
> @@ -12,6 +12,15 @@ CONFIG_INC_COMMON=n
>  endif
>  endif
>  
> +ifeq ($(CONFIG_INC_COMMON),y)
> +obj-$(CONFIG_CMD_EXT4) += ext4.o
> +obj-$(CONFIG_CMD_EXT2) += ext2.o
> +obj-$(CONFIG_CMD_FAT) += fat.o
> +obj-$(CONFIG_CMD_FDC) += fdc.o
> +obj-$(CONFIG_CMD_FS_GENERIC) += fs.o
> +obj-$(CONFIG_CMD_SCSI) += scsi.o
> +endif

Could we extend code from ./common/spl/spl_fat.c
or ./common/spl/spl_ext to support write ?

> +
>  ifndef CONFIG_SPL_BUILD
>  # core command
>  obj-y += boot.o
> diff --git a/common/Makefile b/common/Makefile
> index 3576fac..99de9e1 100644
> --- a/common/Makefile
> +++ b/common/Makefile
> @@ -24,6 +24,9 @@ obj-y += env_attr.o
>  obj-y += env_callback.o
>  obj-y += env_flags.o
>  obj-y += cli.o
> +ifdef CONFIG_CMD_USB
> +obj-$(CONFIG_USB_STORAGE) += usb_storage.o
> +endif
>  endif
>  
>  ifndef CONFIG_SPL_BUILD
> @@ -78,7 +81,6 @@ obj-$(CONFIG_PHYLIB) += miiphyutil.o
>  
>  ifdef CONFIG_CMD_USB
>  obj-y += usb.o usb_hub.o
> -obj-$(CONFIG_USB_STORAGE) += usb_storage.o
>  endif
>  
>  # others
> diff --git a/fs/Makefile b/fs/Makefile
> index 51d06fc..d4490a9 100644
> --- a/fs/Makefile
> +++ b/fs/Makefile
> @@ -6,11 +6,21 @@
>  # SPDX-License-Identifier:	GPL-2.0+
>  #
>  
> +CONFIG_INC_COMMON=y
> +ifdef CONFIG_SPL_BUILD
> +ifndef CONFIG_SPL_DFU
> +CONFIG_INC_COMMON=n
> +endif
> +endif
> +
> +ifeq ($(CONFIG_INC_COMMON),y)
> +obj-y				+= fs.o
> +endif
> +
>  ifdef CONFIG_SPL_BUILD
>  obj-$(CONFIG_SPL_FAT_SUPPORT) += fat/
>  obj-$(CONFIG_SPL_EXT_SUPPORT) += ext4/
>  else
> -obj-y				+= fs.o
>  
>  obj-$(CONFIG_CMD_CBFS) += cbfs/
>  obj-$(CONFIG_CMD_CRAMFS) += cramfs/

Just side question:

How large could be the SPL code for your board (dra7x)?

-- 
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group

  reply	other threads:[~2016-05-30 11:59 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-27 13:39 [U-Boot] [RFC PATCH 0/5] SPL: DFU Support in SPL Ravi Babu
2016-05-27 13:39 ` [U-Boot] [RFC PATCH 1/5] spl: dfu: add dfu support " Ravi Babu
2016-05-30 11:54   ` Lukasz Majewski
2016-05-30 13:43     ` B, Ravi
2016-05-30 14:59       ` Lukasz Majewski
2016-05-31  6:39         ` B, Ravi
2016-05-31  8:39           ` Lukasz Majewski
2016-05-31  9:04             ` B, Ravi
2016-05-31  9:55               ` Lukasz Majewski
2016-05-31 10:34                 ` B, Ravi
2016-05-31 12:47                   ` Lukasz Majewski
2016-05-31 13:31                     ` B, Ravi
2016-05-31 15:13                       ` Lukasz Majewski
2016-06-02 12:39                         ` B, Ravi
2016-06-02 14:14                           ` Lukasz Majewski
2016-06-02 14:22                             ` B, Ravi
2016-06-03  9:27                               ` Lukasz Majewski
2016-06-03 11:35                                 ` B, Ravi
2016-06-03 11:45                                   ` Lukasz Majewski
2016-05-27 13:39 ` [U-Boot] [RFC PATCH 2/5] spl: dfu: fs: adding ext4/fat filesystem support for SPL-DFU Ravi Babu
2016-05-30 11:59   ` Lukasz Majewski [this message]
2016-05-30 12:52     ` B, Ravi
2016-05-30 13:20       ` Lukasz Majewski
2016-05-30 13:52         ` B, Ravi
2016-05-27 13:39 ` [U-Boot] [RFC PATCH 3/5] spl: dfu: adding dfu support functions " Ravi Babu
2016-05-30  5:27   ` Heiko Schocher
2016-05-30 12:04   ` Lukasz Majewski
2016-05-30 12:49     ` B, Ravi
2016-05-27 13:39 ` [U-Boot] [RFC PATCH 4/5] dfu: spl: add generic spl-dfu function in common-spl Ravi Babu
2016-05-30 12:07   ` Lukasz Majewski
2016-05-27 13:39 ` [U-Boot] [RFC PATCH 5/5] dra7x: spl: dfu: adding SPL-DFU support for dra7x platform Ravi Babu
2016-05-30 12:19   ` Lukasz Majewski
2016-05-27 13:42 ` [U-Boot] [RFC PATCH 0/5] SPL: DFU Support in SPL Marek Vasut

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=20160530135948.479d7a33@amdc2363 \
    --to=l.majewski@samsung.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox