[PATCH v4 3/6] tools: Add mkfwumdata tool for FWU metadata image

2023-03-27 Thread jassisinghbrar
From: Masami Hiramatsu Add 'mkfwumdata' tool to generate FWU metadata image for the meta-data partition to be used in A/B Update imeplementation. Signed-off-by: Masami Hiramatsu Signed-off-by: Sughosh Ganu Signed-off-by: Jassi Brar --- tools/Kconfig | 9 ++ tools/Makefile | 4 +

[PATCH v4 6/6] fwu: DeveloperBox: add support for FWU

2023-03-27 Thread jassisinghbrar
From: Jassi Brar Add code to support FWU_MULTI_BANK_UPDATE. The platform does not have gpt-partition storage for Banks and MetaData, rather it used SPI-NOR backed mtd regions for the purpose. Signed-off-by: Jassi Brar --- board/socionext/developerbox/Makefile | 1 + board/socionext/dev

[PATCH v4 2/6] FWU: mtd: Add helper functions for accessing FWU metadata

2023-03-27 Thread jassisinghbrar
From: Masami Hiramatsu Add helper functions needed for accessing the FWU metadata which contains information on the updatable images. Signed-off-by: Masami Hiramatsu Signed-off-by: Jassi Brar --- include/fwu.h | 34 lib/fwu_updates/Makefile | 1 + lib/fwu_updates/fwu_

[PATCH v4 4/6] dt: fwu: developerbox: enable fwu banks and mdata regions

2023-03-27 Thread jassisinghbrar
From: Jassi Brar Specify Bank-0/1 and fwu metadata mtd regions. Signed-off-by: Jassi Brar --- .../synquacer-sc2a11-developerbox-u-boot.dtsi | 49 +-- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi b/arch/ar

[PATCH v4 5/6] configs: move to new flash layout and boot flow

2023-03-27 Thread jassisinghbrar
From: Jassi Brar Towards enabling FWU and supporting new firmware layout in NOR flash, make u-boot PIC and adjust uboot env offset in flash. Signed-off-by: Jassi Brar --- configs/synquacer_developerbox_defconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/sy

[PATCH v4 1/6] FWU: Add FWU metadata access driver for MTD storage regions

2023-03-27 Thread jassisinghbrar
From: Masami Hiramatsu In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate region. Add a driver for reading from and writing to the metadata when the updatable images and the metadata are stored on a raw MTD region. Si

[PATCH v4 0/6] FWU: Add support for mtd backed feature on DeveloperBox

2023-03-27 Thread jassisinghbrar
From: Jassi Brar Introduce support for mtd backed storage for FWU feature and enable it on Synquacer platform based DeveloperBox. This revision is rebased onto patchset that trims the FWU api https://lore.kernel.org/u-boot/20230306231747.1888513-1-jassisinghb...@gmail.com/ Changes since v3:

[PATCH v6 7/7] test: dm: fwu: fix for the updated api

2023-03-06 Thread jassisinghbrar
From: Jassi Brar fwu_get_mdata() no more requires 'dev' argument and fwu_check_mdata_validity() has been rendered useless and dropped. Fix the test cases to work with aforementioned changes. Signed-off-by: Jassi Brar --- test/dm/fwu_mdata.c | 22 +++--- 1 file changed, 3 insert

[PATCH v6 5/7] fwu: meta-data: switch to management by common code

2023-03-06 Thread jassisinghbrar
From: Jassi Brar The common code can now read, verify and fix meta-data copies while exposing one consistent structure to users. Only the .read_mdata() and .write_mdata() callbacks of fwu_mdata_ops are needed. Get rid of .get_mdata() .update_mdata() .get_mdata_part_num() .read_mdata_partition()

[PATCH v6 6/7] fwu: rename fwu_get_verified_mdata to fwu_get_mdata

2023-03-06 Thread jassisinghbrar
From: Jassi Brar fwu_get_mdata() sounds more appropriate than fwu_get_verified_mdata() Signed-off-by: Jassi Brar Reviewed-by: Etienne Carriere Reviewed-by: Ilias Apalodimas --- cmd/fwu_mdata.c | 2 +- include/fwu.h | 4 ++-- lib/fwu_updates/fwu.c | 6 +++--- 3 files changed, 6

[PATCH v6 4/7] fwu: gpt: implement read_mdata and write_mdata callbacks

2023-03-06 Thread jassisinghbrar
From: Jassi Brar Moving towards using common code for meta-data management, implement the read/write mdata hooks. Signed-off-by: Jassi Brar Reviewed-by: Etienne Carriere Reviewed-by: Ilias Apalodimas --- drivers/fwu-mdata/gpt_blk.c | 36 1 file changed, 3

[PATCH v6 3/7] fwu: move meta-data management in core

2023-03-06 Thread jassisinghbrar
From: Jassi Brar Instead of each i/f having to implement their own meta-data verification and storage, move the logic in common code. This simplifies the i/f code much simpler and compact. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/fwu-mdata-uclass.c | 34 +++ include/fwu.h

[PATCH v6 2/7] fwu: gpt: use cached meta-data partition numbers

2023-03-06 Thread jassisinghbrar
From: Jassi Brar Use cached values and avoid parsing and scanning through partitions everytime for meta-data partitions because they can't change after bootup. Acked-by: Etienne Carriere Reviewed-by: Ilias Apalodimas Signed-off-by: Jassi Brar --- drivers/fwu-mdata/gpt_blk.c | 43

[PATCH v6 1/7] dt/bindings: fwu-mdata-mtd: drop changes outside FWU

2023-03-06 Thread jassisinghbrar
From: Jassi Brar Any requirement of FWU should not require changes to bindings of other subsystems. For example, for mtd-backed storage we can do without requiring 'fixed-partitions' children to also carry 'uuid', a property which is non-standard and not in the bindings. There exists no code ye

[PATCH v6 0/7] fwu: gpt: implement read_mdata and write_mdata callbacks

2023-03-06 Thread jassisinghbrar
From: Jassi Brar The patchset reduces ~400 lines of code, while keeping the functionality same and making meta-data operations much faster (by using cached structures). Issue: meta-data copies (primary and secondary) are being handled by the backend/storage layer instead of the common core in

[PATCH v5 6/6] fwu: rename fwu_get_verified_mdata to fwu_get_mdata

2023-02-27 Thread jassisinghbrar
From: Jassi Brar fwu_get_mdata() sounds more appropriate than fwu_get_verified_mdata() Signed-off-by: Jassi Brar Reviewed-by: Etienne Carriere Reviewed-by: Ilias Apalodimas --- cmd/fwu_mdata.c | 2 +- include/fwu.h | 4 ++-- lib/fwu_updates/fwu.c | 6 +++--- 3 files changed, 6

[PATCH v5 5/6] fwu: meta-data: switch to management by common code

2023-02-27 Thread jassisinghbrar
From: Jassi Brar The common code can now read, verify and fix meta-data copies while exposing one consistent structure to users. Only the .read_mdata() and .write_mdata() callbacks of fwu_mdata_ops are needed. Get rid of .get_mdata() .update_mdata() .get_mdata_part_num() .read_mdata_partition()

[PATCH v5 4/6] fwu: gpt: implement read_mdata and write_mdata callbacks

2023-02-27 Thread jassisinghbrar
From: Jassi Brar Moving towards using common code for meta-data management, implement the read/write mdata hooks. Signed-off-by: Jassi Brar Reviewed-by: Etienne Carriere Reviewed-by: Ilias Apalodimas --- drivers/fwu-mdata/gpt_blk.c | 36 1 file changed, 3

[PATCH v5 3/6] fwu: move meta-data management in core

2023-02-27 Thread jassisinghbrar
From: Jassi Brar Instead of each i/f having to implement their own meta-data verification and storage, move the logic in common code. This simplifies the i/f code much simpler and compact. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/fwu-mdata-uclass.c | 34 +++ include/fwu.h

[PATCH v5 2/6] fwu: gpt: use cached meta-data partition numbers

2023-02-27 Thread jassisinghbrar
From: Jassi Brar Use cached values and avoid parsing and scanning through partitions everytime for meta-data partitions because they can't change after bootup. Acked-by: Etienne Carriere Reviewed-by: Ilias Apalodimas Signed-off-by: Jassi Brar --- drivers/fwu-mdata/gpt_blk.c | 43

[PATCH v5 1/6] dt/bindings: fwu-mdata-mtd: drop changes outside FWU

2023-02-27 Thread jassisinghbrar
From: Jassi Brar Any requirement of FWU should not require changes to bindings of other subsystems. For example, for mtd-backed storage we can do without requiring 'fixed-partitions' children to also carry 'uuid', a property which is non-standard and not in the bindings. There exists no code ye

[PATCH v5 0/6] FWU: Handle meta-data in common code

2023-02-27 Thread jassisinghbrar
From: Jassi Brar The patchset reduces ~400 lines of code, while keeping the functionality same and making meta-data operations much faster (by using cached structures). Issue: meta-data copies (primary and secondary) are being handled by the backend/storage layer instead of the common core in

[PATCHv4 5/5] fwu: rename fwu_get_verified_mdata to fwu_get_mdata

2023-02-04 Thread jassisinghbrar
From: Jassi Brar fwu_get_mdata() sounds more appropriate than fwu_get_verified_mdata() Signed-off-by: Jassi Brar Reviewed-by: Etienne Carriere Reviewed-by: Ilias Apalodimas --- cmd/fwu_mdata.c | 2 +- include/fwu.h | 4 ++-- lib/fwu_updates/fwu.c | 6 +++--- 3 files changed, 6

[PATCHv4 4/5] fwu: meta-data: switch to management by common code

2023-02-04 Thread jassisinghbrar
From: Jassi Brar The common code can now read, verify and fix meta-data copies while exposing one consistent structure to users. Only the .read_mdata() and .write_mdata() callbacks of fwu_mdata_ops are needed. Get rid of .get_mdata() .update_mdata() .get_mdata_part_num() .read_mdata_partition()

[PATCHv4 3/5] fwu: gpt: implement read_mdata and write_mdata callbacks

2023-02-04 Thread jassisinghbrar
From: Jassi Brar Moving towards using common code for meta-data management, implement the read/write mdata hooks. Signed-off-by: Jassi Brar Reviewed-by: Etienne Carriere Reviewed-by: Ilias Apalodimas --- drivers/fwu-mdata/gpt_blk.c | 36 1 file changed, 3

[PATCHv4 2/5] fwu: move meta-data management in core

2023-02-04 Thread jassisinghbrar
From: Jassi Brar Instead of each i/f having to implement their own meta-data verification and storage, move the logic in common code. This simplifies the i/f code much simpler and compact. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/fwu-mdata-uclass.c | 34 +++ include/fwu.h

[PATCHv4 1/5] fwu: gpt: use cached meta-data partition numbers

2023-02-04 Thread jassisinghbrar
From: Jassi Brar Use cached values and avoid parsing and scanning through partitions everytime for meta-data partitions because they can't change after bootup. Acked-by: Etienne Carriere Reviewed-by: Ilias Apalodimas Signed-off-by: Jassi Brar --- drivers/fwu-mdata/gpt_blk.c | 43

[PATCHv4 0/5] FWU: Handle meta-data in common code

2023-02-04 Thread jassisinghbrar
From: Jassi Brar The patchset reduces ~400 lines of code, while keeping the functionality same and making meta-data operations much faster (by using cached structures). Issue: meta-data copies (primary and secondary) are being handled by the backend/storage layer instead of the common core in

[PATCHv2 5/4] fwu: rename fwu_get_verified_mdata to fwu_get_mdata

2022-12-02 Thread jassisinghbrar
From: Jassi Brar fwu_get_mdata() sounds more appropriate than fwu_get_verified_mdata() Signed-off-by: Jassi Brar --- Forgot to send this patch previously in v2 cmd/fwu_mdata.c | 2 +- include/fwu.h | 4 ++-- lib/fwu_updates/fwu.c | 6 +++--- 3 files changed, 6 insertions(+), 6 d

[PATCHv2 4/4] fwu: meta-data: switch to management by common code

2022-12-02 Thread jassisinghbrar
From: Jassi Brar The common code can now read, verify and fix meta-data copies while exposing one consistent structure to users. Only the .read_mdata() and .write_mdata() callbacks of fwu_mdata_ops are needed. Get rid of .get_mdata() .update_mdata() .get_mdata_part_num() .read_mdata_partition()

[PATCHv2 3/4] fwu: gpt: implement read_mdata and write_mdata callbacks

2022-12-02 Thread jassisinghbrar
From: Jassi Brar Moving towards using common code for meta-data management, implement the read/write mdata hooks. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/gpt_blk.c | 40 +++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/drivers/fwu-mda

[PATCHv2 2/4] fwu: move meta-data management in core

2022-12-02 Thread jassisinghbrar
From: Jassi Brar Instead of each i/f having to implement their own meta-data verification and storage, move the logic in common code. This simplifies the i/f code much simpler and compact. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/fwu-mdata-uclass.c | 34 +++ include/fwu.h

[PATCHv2 1/4] fwu: gpt: use cached meta-data partition numbers

2022-12-02 Thread jassisinghbrar
From: Jassi Brar Use cached values and avoid parsing and scanning through partitions everytime for meta-data partitions because they can't change after bootup. Acked-by: Etienne Carriere Signed-off-by: Jassi Brar --- drivers/fwu-mdata/gpt_blk.c | 43 + 1 fi

[PATCHv2 0/4] FWU: Handle meta-data in common code

2022-12-02 Thread jassisinghbrar
From: Jassi Brar The patchset reduces ~400 lines of code, while keeping the functionality same and making meta-data operations much faster (by using cached structures). Issue: meta-data copies (primary and secondary) are being handled by the backend/storage layer instead of the common core in

[PATCH 4/4] fwu: meta-data: switch to management by common code

2022-11-03 Thread jassisinghbrar
From: Jassi Brar The common code can now read, verify and fix meta-data copies while exposing one consistent structure to users. Only the .read_mdata() and .write_mdata() callbacks of fwu_mdata_ops are needed. Get rid of .get_mdata() .update_mdata() .get_mdata_part_num() .read_mdata_partition()

[PATCH 3/4] fwu: gpt: implement read_mdata and write_mdata callbacks

2022-11-03 Thread jassisinghbrar
From: Jassi Brar Moving towards using common code for meta-data management, implement the read/write mdata hooks. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/gpt_blk.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/fwu-mdata/gpt_blk.c b/dr

[PATCH 2/4] fwu: move meta-data management in core

2022-11-03 Thread jassisinghbrar
From: Jassi Brar Instead of each i/f having to implement their own meta-data verification and storage, move the logic in common code. This simplifies the i/f code much simpler and compact. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/fwu-mdata-uclass.c | 34 +++ include/fwu.h

[PATCH 1/4] fwu: gpt: use cached meta-data partition numbers

2022-11-03 Thread jassisinghbrar
From: Jassi Brar Use cached values and avoid parsing and scanning through partitions everytime for meta-data partitions because they can't change after bootup. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/gpt_blk.c | 43 + 1 file changed, 24 insertions(+)

[PATCH 0/4] FWU: Handle meta-data in common code

2022-11-03 Thread jassisinghbrar
From: Jassi Brar Hi, The patchset reduces 400 lines of code, while keeping the functionality same and making meta-data operations much faster (by using cached structures). Issue: meta-data copies (primary and secondary) are being handled by the backend/storage layer instead of the common c

[PATCHv2 5/5] tools: Add mkfwumdata tool for FWU metadata image

2022-10-02 Thread jassisinghbrar
From: Masami Hiramatsu Add 'mkfwumdata' tool to generate FWU metadata image for the meta-data partition to be used in A/B Update imeplementation. Signed-off-by: Masami Hiramatsu Signed-off-by: Sughosh Ganu Signed-off-by: Jassi Brar --- tools/Kconfig | 9 ++ tools/Makefile | 4 +

[PATCHv2 4/5] fwu: DeveloperBox: add support for FWU

2022-10-02 Thread jassisinghbrar
From: Masami Hiramatsu Add code to support FWU_MULTI_BANK_UPDATE. The platform does not have gpt-partition storage for Banks and MetaData, rather it used SPI-NOR backed mtd regions for the purpose. Signed-off-by: Masami Hiramatsu Signed-off-by: Jassi Brar --- board/socionext/developerbox/Make

[PATCHv2 3/5] dt: fwu: developerbox: enable fwu banks and mdata regions

2022-10-02 Thread jassisinghbrar
From: Masami Hiramatsu Specify Bank-0/1 and fwu metadata mtd regions. Signed-off-by: Masami Hiramatsu Signed-off-by: Jassi Brar --- .../synquacer-sc2a11-developerbox-u-boot.dtsi | 22 ++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/synquacer-sc2a

[PATCHv2 2/5] FWU: mtd: Add helper functions for accessing FWU metadata

2022-10-02 Thread jassisinghbrar
From: Sughosh Ganu Add helper functions needed for accessing the FWU metadata which contains information on the updatable images. Signed-off-by: Sughosh Ganu Signed-off-by: Jassi Brar --- include/fwu.h | 27 ++ lib/fwu_updates/Makefile | 1 + lib/fwu_updates/fwu_mtd.c | 17

[PATCHv2 1/5] FWU: Add FWU metadata access driver for MTD storage regions

2022-10-02 Thread jassisinghbrar
From: Sughosh Ganu In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate region. Add a driver for reading from and writing to the metadata when the updatable images and the metadata are stored on a raw MTD region. Signed

[PATCHv2 0/5] FWU: Add support for mtd backed feature on DeveloperBox

2022-10-02 Thread jassisinghbrar
From: Jassi Brar Introduce support for mtd backed storage for FWU feature and enable it on Synquacer platform based DeveloperBox. The patchset has been rebased on latest(v11) submission of FWU Multi Bank Update feature by Sughosh[1]. [1] https://lore.kernel.org/u-boot/20220928092956.2535777-1-

[PATCH 2/2] board: developerbox: move mem_map setup later

2022-09-12 Thread jassisinghbrar
From: Jassi Brar dram_init() can't modify global/static variables, so move the mem_map setup later when bss is available. Signed-off-by: Jassi Brar --- board/socionext/developerbox/developerbox.c | 57 - 1 file changed, 34 insertions(+), 23 deletions(-) diff --git a/board/

[PATCH 1/2] board: developerbox: use identity mapping for >4GB

2022-09-12 Thread jassisinghbrar
From: Jassi Brar Identity-map the second and later memory banks which are located >4GB. Signed-off-by: Jassi Brar --- board/socionext/developerbox/developerbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/socionext/developerbox/developerbox.c b/board/socionext/d

[PATCH 5/5] fwu: DeveloperBox: add support for FWU

2022-07-22 Thread jassisinghbrar
From: Jassi Brar Add code to support FWU_MULTI_BANK_UPDATE. The platform does not have gpt-partition storage for Banks and MetaData, rather it used SPI-NOR backed mtd regions for the purpose. Signed-off-by: Masami Hiramatsu Signed-off-by: Jassi Brar --- board/socionext/developerbox/Makefile

[PATCH 4/5] dt: fwu: developerbox: enable fwu banks and mdata regions

2022-07-22 Thread jassisinghbrar
From: Jassi Brar specify Bank-0/1 and fwu metadata mtd regions. Signed-off-by: Masami Hiramatsu Signed-off-by: Jassi Brar --- .../synquacer-sc2a11-developerbox-u-boot.dtsi | 22 ++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/synquacer-sc2a11-dev

[PATCH 3/5] FWU: mtd: Add helper functions for accessing FWU metadata

2022-07-22 Thread jassisinghbrar
From: Sughosh Ganu Add helper functions needed for accessing the FWU metadata which contains information on the updatable images. Signed-off-by: Sughosh Ganu Signed-off-by: Jassi Brar --- lib/fwu_updates/Makefile | 1 + lib/fwu_updates/fwu_mtd.c | 173 ++

[PATCH 2/5] FWU: Add FWU metadata access driver for MTD storage regions

2022-07-22 Thread jassisinghbrar
From: Sughosh Ganu In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate region. Add a driver for reading from and writing to the metadata when the updatable images and the metadata are stored on a raw MTD region. Signed

[PATCH 1/5] dt/bindings: Add bindings for FWU Metadata mtd storage

2022-07-22 Thread jassisinghbrar
From: Sughosh Ganu Add bindings needed for accessing the FWU metadata regions. These include the compatible string which point to the access method, the actual device which stores the FWU metadata and the offsets for both metadata regions. The current patch adds basic bindings needed for accessi

[PATCH 0/5] FWU: Add support for mtd backed feature on DeveloperBox

2022-07-22 Thread jassisinghbrar
From: Jassi Brar The mtd and synquacer (developerbox) support was dropped from v6[1] This patchset re-introduces the support over last v7[2] submission of the patchset. All the comments on this code over v5 submission have been addressed. Moving forward a changelog will be maintained. [1] ht

[PATCH 0/5] FWU: Add support for mtd backed feature on DeveloperBox

2022-07-22 Thread jassisinghbrar
From: Jassi Brar The mtd and synquacer (developerbox) support was dropped from v6[1] This patchset re-introduces the support over last v7[2] submission of the patchset. All the comments on this code over v5 submission have been addressed. Moving forward a changelog will be maintained. [1] ht

[PATCHv3] usb: max3420: add the gadget driver

2020-07-29 Thread jassisinghbrar
From: Jassi Brar MAX3420 implements FullSpeed USB Device over SPI. Another version MAX3421, also implements USB Host mode. This driver should be good for the device mode of max3421 as well. Signed-off-by: Jassi Brar --- Changes since v2: - used FIELD_PREP instead of simple left shift operat

[PATCHv2] usb: max3420: add the gadget driver

2020-06-23 Thread jassisinghbrar
From: Jassi Brar MAX3420 implements FullSpeed USB Device over SPI. Another version MAX3421, also implements USB Host mode. This driver should be good for the device mode of max3421 as well. Signed-off-by: Jassi Brar --- drivers/usb/gadget/Kconfig| 6 + drivers/usb/gadget/Makefile

[RESEND PATCH] usb: max3420: add the gadget driver

2020-06-07 Thread jassisinghbrar
From: Jassi Brar MAX3420 implements FullSpeed USB Device over SPI. Another version MAX3421, also implements USB Host mode. This driver should be good for the device mode of max3421 as well. Signed-off-by: Jassi Brar --- drivers/usb/gadget/Kconfig| 6 + drivers/usb/gadget/Makefile

[PATCH] usb: max3420: add the gadget driver

2020-03-30 Thread jassisinghbrar
From: Jassi Brar MAX3420 implements FullSpeed USB Device over SPI. Another version MAX3421, also implements USB Host mode. This driver should be good for the device mode of max3421 as well. Signed-off-by: Jassi Brar --- drivers/usb/gadget/Kconfig| 6 + drivers/usb/gadget/Makefile

[PATCH] usb: max3420: add the gadget driver

2020-03-30 Thread jassisinghbrar
From: Jassi Brar MAX3420 implements FullSpeed USB Device over SPI. Another version MAX3421, also implements USB Host mode. This driver should be good for the device mode of max3421 as well. Signed-off-by: Jassi Brar --- drivers/usb/gadget/Kconfig| 6 + drivers/usb/gadget/Makefile

[U-Boot] [PATCH 2/3] fastboot: sparse: make write_sparse_image useable for non-fastboot

2018-04-06 Thread jassisinghbrar
From: Jassi Brar write_sparse_image could be useful for non-fastboot users. For ex a platform, without usb-device/fastboot support, could get sparse images over tftp and write using the mmc command. Or non-android systems could also leverage the sparse format. Towards that, this patch removes an

[U-Boot] [PATCH 3/3] mmc: support writing sparse images

2018-04-06 Thread jassisinghbrar
From: Jassi Brar Provide an alternate path for sparse-images to be written to MMC. For example, via tftp on platforms that don't support fastboot protocol. Or when an image is to written at some offset, rather than the start of a partition. Signed-off-by: Jassi Brar --- cmd/mmc.c | 67

[U-Boot] [PATCH 1/3] fastboot: sparse: remove redundant argument to write_sparse_image

2018-04-06 Thread jassisinghbrar
From: Jassi Brar 'sz' has no use for write_sparse_image, remove it simplifying the api. Signed-off-by: Jassi Brar --- common/fb_mmc.c| 3 +-- common/fb_nand.c | 3 +-- common/image-sparse.c | 2 +- include/image-sparse.h | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-)

[U-Boot] [PATCH 0/3] Enable mmc to write sparse images

2018-04-06 Thread jassisinghbrar
From: Jassi Brar Hi, Having capability to flash sparse images from mmc subsystem could be useful. For example, non-android/fastboot platforms could leverage the concept. Or some platforms that need to 'pull' updates (get images over tftp and flash using mmc). Or when we want to flash image at s