Hi jackie, thanks for reply,
I am also using the same
uuu_version 1.5.21
# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f u-boot-dtb.imx
# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -f u-boot-dtb.imx
# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f u-boot-dtb.imx -offset 0x57c00
SDPU: jump
# }
# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f u-boot-dtb.imx -skipspl
SDPV: jump
# }
# use uboot burn bootloader to eMMC
# becaue difference chip, offset is difference
# you can use kernel to do that for specific boards
FB: ucmd setenv fastboot_dev mmc3
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: ucmd saveenv
FB: flash bootloader u-boot-dtb.imx
#FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
#FB: ucmd setenv emmc_cmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
#FB: ucmd saveenv
FBK: DONE
But I am getting below error on using the saveenv command in UUU .
New USB Device Attached at 2:8
2:8>Start Cmd:SDP: boot -f u-boot-dtb.imx
100%2:8>Okay (1.399s)
New USB Device Attached at 2:8
New USB Device Attached at 1:9
1:9>Start Cmd:SDP: boot -f u-boot-dtb.imx
100%1:9>Okay (1.283s)
New USB Device Attached at 1:9
1:9>Start Cmd:FB: ucmd setenv fastboot_dev mmc3
1:9>Okay (0.001s)
1:9>Start Cmd:FB: ucmd setenv mmcdev ${emmc_dev}
1:9>Okay (0s)
1:9>Start Cmd:FB: ucmd saveenv
1:9>Fail Bulk(R):LIBUSB_ERROR_IO(0.148s)
1:9>Start Cmd:FB: flash bootloader u-boot-dtb.imx
0x400000001:9>Okay (0.18s)
1:9>Start Cmd:FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
1:9>Okay (0.001s)
1:9>Start Cmd:FB: ucmd setenv emmc_cmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
1:9>Okay (0s)
and on terminal , I am getting below.
U-Boot 2021.04-00007-g7ea82d90df-dirty (Feb 28 2023 - 18:09:37 +0530)
CPU: i.MX6D rev1.6 at 792MHz
CPU: Industrial temperature grade (-40C to 105C) at 36C
Reset cause: POR
Model: Freescale i.MX6 Quad SABRE Smart Device Board
DRAM: 1 GiB
PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x21
MMC: FSL_SDHC: 1, FSL_SDHC: 2, FSL_SDHC: 3
In: serial
Out: serial
Err: serial
flash target is MMC:2
Card did not respond to voltage select! : -110
MMC card init failed!
Card did not respond to voltage select! : -110
** Block device MMC 2 not supported
Net: FEC [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
MX6 U-Boot >
MX6 U-Boot >
MX6U-Boot > saveenv
Saving Environment to MMC... Card did not respond to voltage select! : -110
No block device
Failed (1)
MX6 U-Boot >
I am getting "LIBUSB_ERROR_IO(0.148s)" error while using the saveenv cmd in UUU.
But on reboot its "falsh target is getting to MMC:2 " and then all issue starts.
flash target is MMC:2
Card did not respond to voltage select! : -110
MMC card init failed!
Card did not respond to voltage select! : -110
** Block device MMC 2 not supported
Is this line correct ? Not mentioning the mmc dev in fastboot_dev any thing ?
Below is my u-boot fast boot configuration for emmc_dev 3.
+CONFIG_CMD_FASTBOOT=y
+CONFIG_USB_FUNCTION_FASTBOOT=y
+CONFIG_FASTBOOT_UUU_SUPPORT=y
+CONFIG_FASTBOOT=y
+CONFIG_FASTBOOT_BUF_ADDR=0x12000000
+CONFIG_FASTBOOT_BUF_SIZE=0x40000000
+CONFIG_FASTBOOT_FLASH=y
+CONFIG_FASTBOOT_FLASH_MMC_DEV=3
+CONFIG_EFI_PARTITION=y
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_USB_GADGET_MANUFACTURER="FSL"
+CONFIG_USB_GADGET_VENDOR_NUM=0x0525
+CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
Please suggest on this error .