xilinx: Define only mmc devnum not partition
The commit 53b406369e ("DFU: Check the number of arguments and argument
string strictly") added strict control over string that 0:1 partition
definition is not valid anymore that's why use only device number without
partition ID. Device is specified by 2nd parameter and partition by 3rd.
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/840eca944f4f2abeeb63b5d724f9ba5fe9a9213b.1660055571.git.michal.simek@amd.com
This commit is contained in:
@@ -176,7 +176,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
|
|||||||
switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
|
switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
|
||||||
case ZYNQ_BM_SD:
|
case ZYNQ_BM_SD:
|
||||||
snprintf(buf, DFU_ALT_BUF_LEN,
|
snprintf(buf, DFU_ALT_BUF_LEN,
|
||||||
"mmc 0:1=boot.bin fat 0 1;"
|
"mmc 0=boot.bin fat 0 1;"
|
||||||
"%s fat 0 1", CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
|
"%s fat 0 1", CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
|
||||||
break;
|
break;
|
||||||
case ZYNQ_BM_QSPI:
|
case ZYNQ_BM_QSPI:
|
||||||
|
|||||||
@@ -661,13 +661,13 @@ void set_dfu_alt_info(char *interface, char *devstr)
|
|||||||
bootseq = mmc_get_env_dev();
|
bootseq = mmc_get_env_dev();
|
||||||
if (!multiboot)
|
if (!multiboot)
|
||||||
snprintf(buf, DFU_ALT_BUF_LEN,
|
snprintf(buf, DFU_ALT_BUF_LEN,
|
||||||
"mmc %d:1=boot.bin fat %d 1;"
|
"mmc %d=boot.bin fat %d 1;"
|
||||||
"%s fat %d 1",
|
"%s fat %d 1",
|
||||||
bootseq, bootseq,
|
bootseq, bootseq,
|
||||||
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME, bootseq);
|
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME, bootseq);
|
||||||
else
|
else
|
||||||
snprintf(buf, DFU_ALT_BUF_LEN,
|
snprintf(buf, DFU_ALT_BUF_LEN,
|
||||||
"mmc %d:1=boot%04d.bin fat %d 1;"
|
"mmc %d=boot%04d.bin fat %d 1;"
|
||||||
"%s fat %d 1",
|
"%s fat %d 1",
|
||||||
bootseq, multiboot, bootseq,
|
bootseq, multiboot, bootseq,
|
||||||
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME, bootseq);
|
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME, bootseq);
|
||||||
|
|||||||
Reference in New Issue
Block a user