From patchwork Sat May 23 09:36:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 246338 List-Id: U-Boot discussion From: xypron.glpk at gmx.de (Heinrich Schuchardt) Date: Sat, 23 May 2020 11:36:49 +0200 Subject: [PATCH 1/1] doc: dfu: describe eMMC partition number parameter Message-ID: <20200523093649.6608-1-xypron.glpk@gmx.de> In dfu_alt_info for eMMC the eMMC partition number can be specified. The separator in dfu_alt_info is a semicolon not a comma. Signed-off-by: Heinrich Schuchardt Acked-by: Lukasz Majewski --- doc/README.dfu | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) -- 2.26.2 diff --git a/doc/README.dfu b/doc/README.dfu index caf1c9998c..29230ec654 100644 --- a/doc/README.dfu +++ b/doc/README.dfu @@ -49,7 +49,7 @@ Configuration Options: Environment variables: the dfu command use 3 environments variables: - "dfu_alt_info" : the DFU setting for the USB download gadget with a comma + "dfu_alt_info" : the DFU setting for the USB download gadget with a semicolon separated string of information on each alternate: dfu_alt_info=";;....;" @@ -87,12 +87,21 @@ Commands: "mmc" (for eMMC and SD card) cmd: dfu 0 mmc each element in "dfu_alt_info" = - raw raw access to mmc device - part raw acces to partition - fat file in FAT partition - ext4 file in EXT4 partition + raw [mmcpart ] raw access to mmc device + part [mmcpart ] raw access to partition + fat [mmcpart ] file in FAT partition + ext4 [mmcpart ] file in EXT4 partition + + with being the GPT or DOS partition index, + with being the eMMC hardware partition number. + + A value of environment variable dfu_alt_info for eMMC could be: + + "u-boot raw 0x3e 0x800 mmcpart 1;bl2 raw 0x1e 0x1d mmcpart 1" + + A value of environment variable dfu_alt_info for SD card could be: - with is the GPT or DOS partition index + "u-boot raw 0x80 0x800;uImage ext4 0 2" "nand" (raw slc nand device) cmd: dfu 0 nand