This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62: eMMC write file while flashing the rootfs binary using DFU.

Part Number: SK-AM62

HW : AM62x SKEVM

SW : SDK8.5

Dear TI Expert,

I'm trying to flash the rootfs binary(2.5GB) to eMMC using DFU. However it is always failed at the same percentage as below.

Host PC logs:

jwook@jwook-Desktop:~/ssd1/TI_AM62x$ sudo dfu-util -a rootfs -D tisdk-default-image-am62xx-evm-20230307080605.rootfs.ext4
dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0451:6165
Device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Interface #1 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0110
Device returned transfer size 4096
Copying data from PC to DFU device
Download	[=======                  ]  29%    792231936 bytes failed!
DFU state(10) = dfuERROR, status(14) = Something went wrong, but the device does not know what it was

UART Console logs:

U-Boot SPL 2021.01-00001-g3e29ce144c (Feb 16 2023 - 14:49:19 +0900)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.3--v08.05.03 (Chill Capybar')
SPL initial stack usage: 13424 bytes
Trying to boot from DFU
################################################DOWNLOAD ... OK
Ctrl+C to exit ...
Loading Environment from MMC... MMC Device 0 not found
*** Warning - No MMC card found, using default environment

init_env from device 10 not supported!
Starting ATF on ARM64 core...

NOTICE:  BL31: v2.7(release):v2.7.0-359-g1309c6c805-dirty
NOTICE:  BL31: Built : 11:48:12, Dec 14 2022
I/TC:
I/TC: OP-TEE version: 3.19.0-15-gd6c5d0037 (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 Wed Dec 14 11:52:03 UTC 2022 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.3--v08.05.03 (Chill Capybar')
I/TC: HUK Initialized
I/TC: Activated SA2UL device
I/TC: Fixing SA2UL firewall owner for GP device
I/TC: Enabled firewalls for SA2UL TRNG device
I/TC: SA2UL TRNG initialized
I/TC: SA2UL Drivers initialized
I/TC: Primary CPU switching to normal world boot

U-Boot SPL 2021.01-00001-g3e29ce144c (Feb 16 2023 - 15:35:12 +0900)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.3--v08.05.03 (Chill Capybar')
Trying to boot from DFU
####DOWNLOAD ... OK
Ctrl+C to exit ...


U-Boot 2021.01-00001-g3e29ce144c (Feb 16 2023 - 15:35:12 +0900)

SoC:   AM62X SR1.0 GP
Model: Texas Instruments AM625 SK
EEPROM not available at 0x50, trying to read at 0x51
Board: AM62-SKEVM rev E3
DRAM:  2 GiB
MMC:   mmc@fa10000: 0, mmc@fa00000: 1, mmc@fa20000: 2
Loading Environment from MMC... OK
In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
Net:   eth0: ethernet@8000000port@1
Hit any key to stop autoboot:  0
=>
=> setenv dfu_alt_info ${dfu_alt_info_emmc}
=> dfu 0 mmc 0
#####################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################mmc write failed
MMC operation failed

Could you check this issue?

Thanks & Regards,

JaeWook

  • Error value is TIMEOUT.

    mmc write failed: -110

    #define ETIMEDOUT       110     /* Connection timed out */

  • Hello JaeWook,
    Can we add gpt partition table to eMMC if not done previously?
    This can be done @u-boot
    software-dl.ti.com/.../UG-Memory.html

    Can we retest flashing rootfs.ext4 with USB-DFU after gpt partition table is added to eMMC?

    Best,
    -Hong

  • Hi Hong Guan,

    Thank for your feedback.

    I already added the gpt partition table in previous as below


    => mmc part

    Partition Map for MMC device 0 -- Partition Type: EFI

    Part Start LBA End LBA Name
    Attributes
    Type GUID
    Partition GUID
    1 0x00000022 0x01da3fde "rootfs"
    attrs: 0x0000000000000000
    type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
    guid: 731a396e-ea6f-49bc-ac52-3e97f76eb198

    And there was no issue when I flashed the tisdk_base_rootfs(about 400MB) binary.

    Thanks & Regards,

    Jaewook

  • Hello Hong Guan,

    This is a debug log of dfu after enable DEBUG in dfu.

    =>
    => setenv dfu_alt_info ${dfu_alt_info_emmc}
    => dfu 0 mmc 0
    dfu_alt_init: dfu_alt_num=7
    dfu_fill_entity: rawemmc raw 0 0x800000 mmcpart 1 interface: mmc dev: 0
    dfu_fill_entity: rootfs part 0 1 mmcpart 0 interface: mmc dev: 0
    dfu_fill_entity: tiboot3.bin.raw raw 0x0 0x400 mmcpart 1 interface: mmc dev: 0
    dfu_fill_entity: tispl.bin.raw raw 0x400 0x1000 mmcpart 1 interface: mmc dev: 0
    dfu_fill_entity: u-boot.img.raw raw 0x1400 0x2000 mmcpart 1 interface: mmc dev: 0
    dfu_fill_entity: u-env.raw raw 0x3400 0x100 mmcpart 1 interface: mmc dev: 0
    dfu_fill_entity: sysfw.itb.raw raw 0x3600 0x800 mmcpart 1 interface: mmc dev: 0
    
    ..................
    ..................
    ..................
    ..................
    
    
    #dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4c0 offset: 0x2f4c0000 bufoffset: 0x0
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4c1 offset: 0x2f4c0000 bufoffset: 0x1000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4c2 offset: 0x2f4c0000 bufoffset: 0x2000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4c3 offset: 0x2f4c0000 bufoffset: 0x3000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4c4 offset: 0x2f4c0000 bufoffset: 0x4000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4c5 offset: 0x2f4c0000 bufoffset: 0x5000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4c6 offset: 0x2f4c0000 bufoffset: 0x6000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4c7 offset: 0x2f4c0000 bufoffset: 0x7000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4c8 offset: 0x2f4c0000 bufoffset: 0x8000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4c9 offset: 0x2f4c0000 bufoffset: 0x9000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4ca offset: 0x2f4c0000 bufoffset: 0xa000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4cb offset: 0x2f4c0000 bufoffset: 0xb000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4cc offset: 0x2f4c0000 bufoffset: 0xc000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4cd offset: 0x2f4c0000 bufoffset: 0xd000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4ce offset: 0x2f4c0000 bufoffset: 0xe000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4cf offset: 0x2f4c0000 bufoffset: 0xf000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4d0 offset: 0x2f4c0000 bufoffset: 0x10000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4d1 offset: 0x2f4c0000 bufoffset: 0x11000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4d2 offset: 0x2f4c0000 bufoffset: 0x12000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4d3 offset: 0x2f4c0000 bufoffset: 0x13000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4d4 offset: 0x2f4c0000 bufoffset: 0x14000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4d5 offset: 0x2f4c0000 bufoffset: 0x15000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4d6 offset: 0x2f4c0000 bufoffset: 0x16000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4d7 offset: 0x2f4c0000 bufoffset: 0x17000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4d8 offset: 0x2f4c0000 bufoffset: 0x18000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4d9 offset: 0x2f4c0000 bufoffset: 0x19000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4da offset: 0x2f4c0000 bufoffset: 0x1a000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4db offset: 0x2f4c0000 bufoffset: 0x1b000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4dc offset: 0x2f4c0000 bufoffset: 0x1c000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4dd offset: 0x2f4c0000 bufoffset: 0x1d000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4de offset: 0x2f4c0000 bufoffset: 0x1e000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4df offset: 0x2f4c0000 bufoffset: 0x1f000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4e0 offset: 0x2f4c0000 bufoffset: 0x20000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4e1 offset: 0x2f4c0000 bufoffset: 0x21000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4e2 offset: 0x2f4c0000 bufoffset: 0x22000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4e3 offset: 0x2f4c0000 bufoffset: 0x23000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4e4 offset: 0x2f4c0000 bufoffset: 0x24000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4e5 offset: 0x2f4c0000 bufoffset: 0x25000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4e6 offset: 0x2f4c0000 bufoffset: 0x26000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4e7 offset: 0x2f4c0000 bufoffset: 0x27000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4e8 offset: 0x2f4c0000 bufoffset: 0x28000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4e9 offset: 0x2f4c0000 bufoffset: 0x29000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4ea offset: 0x2f4c0000 bufoffset: 0x2a000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4eb offset: 0x2f4c0000 bufoffset: 0x2b000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4ec offset: 0x2f4c0000 bufoffset: 0x2c000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4ed offset: 0x2f4c0000 bufoffset: 0x2d000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4ee offset: 0x2f4c0000 bufoffset: 0x2e000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4ef offset: 0x2f4c0000 bufoffset: 0x2f000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4f0 offset: 0x2f4c0000 bufoffset: 0x30000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4f1 offset: 0x2f4c0000 bufoffset: 0x31000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4f2 offset: 0x2f4c0000 bufoffset: 0x32000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4f3 offset: 0x2f4c0000 bufoffset: 0x33000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4f4 offset: 0x2f4c0000 bufoffset: 0x34000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4f5 offset: 0x2f4c0000 bufoffset: 0x35000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4f6 offset: 0x2f4c0000 bufoffset: 0x36000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4f7 offset: 0x2f4c0000 bufoffset: 0x37000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4f8 offset: 0x2f4c0000 bufoffset: 0x38000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4f9 offset: 0x2f4c0000 bufoffset: 0x39000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4fa offset: 0x2f4c0000 bufoffset: 0x3a000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4fb offset: 0x2f4c0000 bufoffset: 0x3b000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4fc offset: 0x2f4c0000 bufoffset: 0x3c000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4fd offset: 0x2f4c0000 bufoffset: 0x3d000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4fe offset: 0x2f4c0000 bufoffset: 0x3e000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf4ff offset: 0x2f4c0000 bufoffset: 0x3f000
    mmc_block_op: MMC WRITE dev: 0 start: 1549858 cnt: 512 buf: 0x00000000f8723280
    #dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf500 offset: 0x2f500000 bufoffset: 0x0
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf501 offset: 0x2f500000 bufoffset: 0x1000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf502 offset: 0x2f500000 bufoffset: 0x2000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf503 offset: 0x2f500000 bufoffset: 0x3000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf504 offset: 0x2f500000 bufoffset: 0x4000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf505 offset: 0x2f500000 bufoffset: 0x5000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf506 offset: 0x2f500000 bufoffset: 0x6000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf507 offset: 0x2f500000 bufoffset: 0x7000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf508 offset: 0x2f500000 bufoffset: 0x8000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf509 offset: 0x2f500000 bufoffset: 0x9000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf50a offset: 0x2f500000 bufoffset: 0xa000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf50b offset: 0x2f500000 bufoffset: 0xb000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf50c offset: 0x2f500000 bufoffset: 0xc000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf50d offset: 0x2f500000 bufoffset: 0xd000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf50e offset: 0x2f500000 bufoffset: 0xe000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf50f offset: 0x2f500000 bufoffset: 0xf000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf510 offset: 0x2f500000 bufoffset: 0x10000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf511 offset: 0x2f500000 bufoffset: 0x11000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf512 offset: 0x2f500000 bufoffset: 0x12000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf513 offset: 0x2f500000 bufoffset: 0x13000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf514 offset: 0x2f500000 bufoffset: 0x14000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf515 offset: 0x2f500000 bufoffset: 0x15000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf516 offset: 0x2f500000 bufoffset: 0x16000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf517 offset: 0x2f500000 bufoffset: 0x17000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf518 offset: 0x2f500000 bufoffset: 0x18000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf519 offset: 0x2f500000 bufoffset: 0x19000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf51a offset: 0x2f500000 bufoffset: 0x1a000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf51b offset: 0x2f500000 bufoffset: 0x1b000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf51c offset: 0x2f500000 bufoffset: 0x1c000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf51d offset: 0x2f500000 bufoffset: 0x1d000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf51e offset: 0x2f500000 bufoffset: 0x1e000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf51f offset: 0x2f500000 bufoffset: 0x1f000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf520 offset: 0x2f500000 bufoffset: 0x20000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf521 offset: 0x2f500000 bufoffset: 0x21000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf522 offset: 0x2f500000 bufoffset: 0x22000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf523 offset: 0x2f500000 bufoffset: 0x23000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf524 offset: 0x2f500000 bufoffset: 0x24000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf525 offset: 0x2f500000 bufoffset: 0x25000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf526 offset: 0x2f500000 bufoffset: 0x26000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf527 offset: 0x2f500000 bufoffset: 0x27000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf528 offset: 0x2f500000 bufoffset: 0x28000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf529 offset: 0x2f500000 bufoffset: 0x29000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf52a offset: 0x2f500000 bufoffset: 0x2a000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf52b offset: 0x2f500000 bufoffset: 0x2b000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf52c offset: 0x2f500000 bufoffset: 0x2c000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf52d offset: 0x2f500000 bufoffset: 0x2d000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf52e offset: 0x2f500000 bufoffset: 0x2e000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf52f offset: 0x2f500000 bufoffset: 0x2f000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf530 offset: 0x2f500000 bufoffset: 0x30000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf531 offset: 0x2f500000 bufoffset: 0x31000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf532 offset: 0x2f500000 bufoffset: 0x32000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf533 offset: 0x2f500000 bufoffset: 0x33000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf534 offset: 0x2f500000 bufoffset: 0x34000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf535 offset: 0x2f500000 bufoffset: 0x35000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf536 offset: 0x2f500000 bufoffset: 0x36000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf537 offset: 0x2f500000 bufoffset: 0x37000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf538 offset: 0x2f500000 bufoffset: 0x38000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf539 offset: 0x2f500000 bufoffset: 0x39000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf53a offset: 0x2f500000 bufoffset: 0x3a000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf53b offset: 0x2f500000 bufoffset: 0x3b000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf53c offset: 0x2f500000 bufoffset: 0x3c000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf53d offset: 0x2f500000 bufoffset: 0x3d000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf53e offset: 0x2f500000 bufoffset: 0x3e000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf53f offset: 0x2f500000 bufoffset: 0x3f000
    mmc_block_op: MMC WRITE dev: 0 start: 1550370 cnt: 512 buf: 0x00000000f8723280
    #dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf540 offset: 0x2f540000 bufoffset: 0x0
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf541 offset: 0x2f540000 bufoffset: 0x1000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf542 offset: 0x2f540000 bufoffset: 0x2000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf543 offset: 0x2f540000 bufoffset: 0x3000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf544 offset: 0x2f540000 bufoffset: 0x4000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf545 offset: 0x2f540000 bufoffset: 0x5000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf546 offset: 0x2f540000 bufoffset: 0x6000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf547 offset: 0x2f540000 bufoffset: 0x7000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf548 offset: 0x2f540000 bufoffset: 0x8000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf549 offset: 0x2f540000 bufoffset: 0x9000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf54a offset: 0x2f540000 bufoffset: 0xa000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf54b offset: 0x2f540000 bufoffset: 0xb000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf54c offset: 0x2f540000 bufoffset: 0xc000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf54d offset: 0x2f540000 bufoffset: 0xd000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf54e offset: 0x2f540000 bufoffset: 0xe000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf54f offset: 0x2f540000 bufoffset: 0xf000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf550 offset: 0x2f540000 bufoffset: 0x10000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf551 offset: 0x2f540000 bufoffset: 0x11000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf552 offset: 0x2f540000 bufoffset: 0x12000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf553 offset: 0x2f540000 bufoffset: 0x13000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf554 offset: 0x2f540000 bufoffset: 0x14000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf555 offset: 0x2f540000 bufoffset: 0x15000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf556 offset: 0x2f540000 bufoffset: 0x16000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf557 offset: 0x2f540000 bufoffset: 0x17000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf558 offset: 0x2f540000 bufoffset: 0x18000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf559 offset: 0x2f540000 bufoffset: 0x19000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf55a offset: 0x2f540000 bufoffset: 0x1a000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf55b offset: 0x2f540000 bufoffset: 0x1b000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf55c offset: 0x2f540000 bufoffset: 0x1c000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf55d offset: 0x2f540000 bufoffset: 0x1d000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf55e offset: 0x2f540000 bufoffset: 0x1e000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf55f offset: 0x2f540000 bufoffset: 0x1f000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf560 offset: 0x2f540000 bufoffset: 0x20000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf561 offset: 0x2f540000 bufoffset: 0x21000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf562 offset: 0x2f540000 bufoffset: 0x22000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf563 offset: 0x2f540000 bufoffset: 0x23000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf564 offset: 0x2f540000 bufoffset: 0x24000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf565 offset: 0x2f540000 bufoffset: 0x25000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf566 offset: 0x2f540000 bufoffset: 0x26000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf567 offset: 0x2f540000 bufoffset: 0x27000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf568 offset: 0x2f540000 bufoffset: 0x28000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf569 offset: 0x2f540000 bufoffset: 0x29000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf56a offset: 0x2f540000 bufoffset: 0x2a000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf56b offset: 0x2f540000 bufoffset: 0x2b000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf56c offset: 0x2f540000 bufoffset: 0x2c000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf56d offset: 0x2f540000 bufoffset: 0x2d000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf56e offset: 0x2f540000 bufoffset: 0x2e000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf56f offset: 0x2f540000 bufoffset: 0x2f000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf570 offset: 0x2f540000 bufoffset: 0x30000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf571 offset: 0x2f540000 bufoffset: 0x31000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf572 offset: 0x2f540000 bufoffset: 0x32000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf573 offset: 0x2f540000 bufoffset: 0x33000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf574 offset: 0x2f540000 bufoffset: 0x34000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf575 offset: 0x2f540000 bufoffset: 0x35000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf576 offset: 0x2f540000 bufoffset: 0x36000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf577 offset: 0x2f540000 bufoffset: 0x37000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf578 offset: 0x2f540000 bufoffset: 0x38000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf579 offset: 0x2f540000 bufoffset: 0x39000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf57a offset: 0x2f540000 bufoffset: 0x3a000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf57b offset: 0x2f540000 bufoffset: 0x3b000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf57c offset: 0x2f540000 bufoffset: 0x3c000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf57d offset: 0x2f540000 bufoffset: 0x3d000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf57e offset: 0x2f540000 bufoffset: 0x3e000
    dfu_write: name: rootfs buf: 0x00000000f7f02c80 size: 0x1000 p_num: 0xf57f offset: 0x2f540000 bufoffset: 0x3f000
    mmc_block_op: MMC WRITE dev: 0 start: 1550882 cnt: 512 buf: 0x00000000f8723280
    mmc write failed
    MMC operation faileddfu_write_buffer_drain: Write error!
    #
    
    
    

  • Hello Hong Guan,

    This is the MMC_TRACE log when a problem occurs.

    CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00177e22
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00178022
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00178222
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00178422
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00178622
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00178822
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00178a22
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00178c22
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00178e22
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00179022
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00179222
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00179422
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00179622
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00179822
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00179a22
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00179c22
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x00179e22
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x0017a022
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x0017a222
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x0017a422
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x0017a622
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x0017a822
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:12
    		ARG			 0x00000000
    		MMC_RSP_R1b		 0x00000c00 
    CMD_SEND:13
    		ARG			 0x00010000
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CURR STATE:4
    #CMD_SEND:16
    		ARG			 0x00000200
    		MMC_RSP_R1,5,6,7 	 0x00000900 
    CMD_SEND:25
    		ARG			 0x0017aa22
    sdhci_send_command: INT_STAT: 0x108000
    		RET			 -70
    mmc write failed
    MMC operation failed#

  • And there was no issue when I flashed the tisdk_base_rootfs(about 400MB) binary.

    My understanding from your last reply is root_fs eMMC flashing worked on your setup.
    What had changed since then?
    Best,
    -Hong

  • Hi Hong Guan,

    There are no change regarding source code and setup environment.

    only the size of rootfs file was increased from 400MB to 2.5GB.

    Because of that, the area of eMMC was changed.

    Thanks & Regards,

    Jaewook.

  • This is HW revison i'm using.

    AM62x SKEVM E3.

    I saw the same result on the other board of same revision.

    Thanks,

    Jaewook

  • Hello Hong Guan,

    I found a pattern of eMMC writing failure from this issue.

    mmc write failure always occurs when I try to write more than 3 blocks of 0xFF00FF00 data.

    I reproduced "mmc write failed" in u-boot prompt as following this.

    => mw 0x80080000 0xFF00FF00 0x800
    => mmc write 0x80080000 0x10000 1
    
    MMC write: dev # 0, block # 65536, count 1 ... 1 blocks written: OK
    => mmc write 0x80080000 0x10000 2
    
    MMC write: dev # 0, block # 65536, count 2 ... 2 blocks written: OK
    => mmc write 0x80080000 0x10000 3
    
    MMC write: dev # 0, block # 65536, count 3 ... mmc write failed
    0 blocks written: ERROR
    

    Please check this.

    Thanks & Regards,

    Jaewook

  • Hello Hong,

    Let me summarize the situation so far.
    At first, eMMC write failed when flashing the tisdk-default-image binary.
    After debugging, I found that the binary fails if it contains specific data(0xFF00FF00).
    And it can be easily reproduced with the same command as above.
    The same problem occurred on all 3 boards that our team had.
    I expect that you can easily reproduce it too.

    Please check this issue.

    I think this is a major problem for anyone using the AM62x EVM or SDK.

    Thanks&Regards,

    Jaewook.

  • Hello,

    Is there any update?

    Thanks&Regards,

    Jaewook

  • Hello JaeWook,
    Will you help re-run the test by replacing "0x80080000" with "${loadaddr}"?
    Best,
    -Hong

  • Hello Hong,

    Please find below result. it is same as before.

    => mw ${loadaddr} 0xFF00FF00 0x800
    => mmc write ${loadaddr} 0x10000 1

    MMC write: dev # 0, block # 65536, count 1 ... 1 blocks written: OK
    => mmc write ${loadaddr} 0x10000 2

    MMC write: dev # 0, block # 65536, count 2 ... 2 blocks written: OK
    => mmc write ${loadaddr} 0x10000 3

    MMC write: dev # 0, block # 65536, count 3 ... mmc write failed
    0 blocks written: ERROR
    => mmc write ${loadaddr} 0x10000 4

    MMC write: dev # 0, block # 65536, count 4 ... 0 blocks written: ERROR
    => mmc write ${loadaddr} 0x10000 1

    MMC write: dev # 0, block # 65536, count 1 ... 0 blocks written: ERROR
    =>

    Thanks&Regards,

    Jaewook