s32g emmc write timeout issue.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s32g emmc write timeout issue.

726 Views
hirain
Contributor I

Hi All,

I'm working on a custom s32g274a  board based. my board will enter the Fastboot mode due to it can't write eMMC(see debug logs).

U-Boot 2020.04+gc2dbae631e (Dec 12 2023 - 11:02:59 +0000) bsp32.0-2020.04

CPU: NXP S32G274A rev. 2.1.0
DRAM: 1.8 GiB
MMC: FSL_SDHC: 0
Using internal clock for PCIe0, CRNS
Frequency 100Mhz configured for PCIe0
Configuring PCIe0 as RootComplex(x1)&SGMII [XPCS 0 OFF(PCIex1), XPCS1 1G]
PCIe0 disabled
Using internal clock for PCIe1, CRNS
Frequency 100Mhz configured for PCIe1
Configuring PCIe1 as SGMII(x2) [XPCS0 1G, XPCS1 1G]
In: serial@401C8000
Out: serial@401C8000
Err: serial@401C8000

(bootloader) Net: register phy driver for BCM89883
PFE: emac0: sgmii emac1: none emac2: sgmii

Warning: eth_pfeng using MAC address from ROM
eth0: eth_pfeng
mmc write failed
misc_read_command:misc part write failed.
check_bootmode: misc read failed
Hit some key to stop autoboot: 0

ERROR - can't switch to rpmb partition
avb_ab_flow.c:109: ERROR: Error reading A/B metadata.
avb_ab_flow.c:188: ERROR: I/O error while loading A/B metadata.
avb_ab_flow.c:138: ERROR: Error writing A/B metadata.
do_boot_avb: Fastboot: enter!

When i enabled the CONFIG_TRACE_MMC , here the logs:

it returns timeout value.I want to know why EMMC fails to write druing u-boot startup, but reads normally.(The attachment is a log of normal startup)

 

U-Boot 2020.04+gc2dbae631e (Jan 05 2024 - 06:56:06 +0000) bsp32.0-2020.04
 
CPU:   NXP S32G274A rev. 2.1.0
DRAM:  1.8 GiB
MMC:   FSL_SDHC: 0
Using internal clock for PCIe0, CRNS
Frequency 100Mhz configured for PCIe0
Configuring PCIe0 as RootComplex(x1)&SGMII [XPCS0 OFF(PCIex1), XPCS1 1G]
PCIe0 disabled
Using internal clock for PCIe1, CRNS
Frequency 100Mhz configured for PCIe1
Configuring PCIe1 as SGMII(x2) [XPCS0 1G, XPCS1 1G]
In:    serial@401C8000
Out:   serial@401C8000
Err:   serial@401C8000
Net:   register phy driver for BCM89883
 PFE: emac0: sgmii emac1: none emac2: sgmii
 
Warning: eth_pfeng using MAC address from ROM
eth0: eth_pfeng
CMD_SEND:0
ARG 0x00000000
MMC_RSP_NONE
CMD_SEND:8
ARG 0x000001aa
RET -110
CMD_SEND:55
ARG 0x00000000
RET -110
CMD_SEND:0
ARG 0x00000000
MMC_RSP_NONE
CMD_SEND:1
ARG 0x00000000
MMC_RSP_R3,4 0x00ff8080 
CMD_SEND:1
ARG 0x40300000
MMC_RSP_R3,4 0x00ff8080 
CMD_SEND:0
ARG 0x00000000
MMC_RSP_NONE
CMD_SEND:1
ARG 0x40300000
MMC_RSP_R3,4 0x00ff8080 
CMD_SEND:1
ARG 0x40300000
MMC_RSP_R3,4 0x00ff8080 
CMD_SEND:1
ARG 0x40300000
MMC_RSP_R3,4 0xc0ff8080 
CMD_SEND:2
ARG 0x00000000
MMC_RSP_R2 0x13014e47 
          0x314d3135 
          0x4c102765 
          0xee709900 
 
DUMPING DATA
000 - 13 01 4e 47 
004 - 31 4d 31 35 
008 - 4c 10 27 65 
012 - ee 70 99 00 
CMD_SEND:3
ARG 0x00010000
MMC_RSP_R1,5,6,7 0x00000540 
CMD_SEND:9
ARG 0x00010000
MMC_RSP_R2 0xd07f0132 
          0x8f5903ff 
          0xc003ffef 
          0x8e400000 
 
DUMPING DATA
000 - d0 7f 01 32 
004 - 8f 59 03 ff 
008 - c0 03 ff ef 
012 - 8e 40 00 00 
CMD_SEND:7
ARG 0x00010000
MMC_RSP_R1,5,6,7 0x00000740 
CMD_SEND:8
ARG 0x00000000
MMC_RSP_R1,5,6,7 0x00000940 
CMD_SEND:6
ARG 0x03b70200
MMC_RSP_R1b 0x00000840 
CMD_SEND:13
ARG 0x00010000
MMC_RSP_R1,5,6,7 0x00000940 
CURR STATE:4
CMD_SEND:6
ARG 0x03b90100
MMC_RSP_R1b 0x00000840 
CMD_SEND:13
ARG 0x00010000
MMC_RSP_R1,5,6,7 0x00000940 
CURR STATE:4
CMD_SEND:8
ARG 0x00000000
MMC_RSP_R1,5,6,7 0x00000940 
CMD_SEND:6
ARG 0x03b78600
MMC_RSP_R1b 0x00000840 
CMD_SEND:13
ARG 0x00010000
MMC_RSP_R1,5,6,7 0x00000940 
CURR STATE:4
CMD_SEND:6
ARG 0x03b90300
MMC_RSP_R1b 0x00000840 
CMD_SEND:13
ARG 0x00010000
MMC_RSP_R1,5,6,7 0x00000940 
CURR STATE:4
CMD_SEND:8
ARG 0x00000000
MMC_RSP_R1,5,6,7 0x00000940 
CMD_SEND:17
ARG 0x00020000
MMC_RSP_R1,5,6,7 0x00000940 
CMD_SEND:17
ARG 0x00000000
MMC_RSP_R1,5,6,7 0x00000940 
CMD_SEND:17
ARG 0x00020001
MMC_RSP_R1,5,6,7 0x00000940 
CMD_SEND:18
ARG 0x00020002
MMC_RSP_R1,5,6,7 0x00000940 
CMD_SEND:12
ARG 0x00000000
MMC_RSP_R1b 0x00000b40 
CMD_SEND:18
ARG 0x00020800
MMC_RSP_R1,5,6,7 0x00000940 
CMD_SEND:12
ARG 0x00000000
MMC_RSP_R1b 0x00000b40 
CMD_SEND:18
ARG 0x00020002
MMC_RSP_R1,5,6,7 0x00000940 
CMD_SEND:12
ARG 0x00000000
MMC_RSP_R1b 0x00000b40 
 
Device 0: Vendor: Man 000013 Snr 2765ee70 Rev: 1.0 Prod: G1M15L
            Type: Removable Hard Disk
            Capacity: 30352.0 MB = 29.6 GB (62160896 x 512)
### blk_dwrite:dev->name=usdhc@402F0000.blk, if_type=6, devnum=0 ###
CMD_SEND:25
ARG 0x00020800
RET -110
mmc_write_blocks:mmc write failed -110
misc_read_command:misc part write failed.
check_bootmode: misc read failed
Hit some key to stop autoboot:  0 
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
CMD_SEND:6
ARG 0x03b30300
RET -110
ERROR - can't switch to rpmb partition 
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
avb_ab_flow.c:109: ERROR: Error reading A/B metadata.
avb_ab_flow.c:188: ERROR: I/O error while loading A/B metadata.
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
CMD_SEND:6
ARG 0x03b30000
RET -110
avb_ab_flow.c:138: ERROR: Error writing A/B metadata.
do_boot_avb: AVB I/O ERROR
do_boot_avb: Fastboot: enter!
Attached to pfe0
fastboot_start_server: fastboot mode with avb i/o error
Using eth_pfeng device
Listening for fastboot command on 192.168.0.100
 
Thanks!
0 Kudos
Reply
1 Reply

686 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Are you able to use an NXP reference board? Are you able to reproduce this outcome on the NXP reference board?

We can recommend looking into AN13667 under the S32G2 product page (link: S32G2 Safe and Secure Vehicle Network Processor | NXP Semiconductors). This AN provides some debugging tips on regards of the eMMC interface, could provide to be useful.

Also, within this community, the support for custom boards is not that common, since we are not able to reproduce the outcome of custom boards, we do apologize. For this, we can recommend contacting your local NXP DFAE/FAE since they should be able to provide a better support on this situation.

Please, let us know.

0 Kudos
Reply