failed to read/write rpmb in uboot phase

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

failed to read/write rpmb in uboot phase

847 次查看
jiankang
Contributor III

hello,

I'm working on a product based on s32g platform using bsp32-release.

I find that the rpmb read/ write function doesn't work in uboot phase.

after adding some logs in "drivers/mmc/fsl_esdhc_imx.c"

I find that emmc register status is incorrect after try to read/write rpmb storage: (line 577)

 

 

 563     /* Wait until all of the blocks are transferred */
 564     if (data) {
 565 #ifdef CONFIG_SYS_FSL_ESDHC_USE_PIO
 566         esdhc_pio_read_write(priv, data);
 567 #else
 568         flags = DATA_COMPLETE;
 569         if ((cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK) ||
 570             (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200)) {
 571             flags = IRQSTAT_BRR;
 572         }
 573
 574         do {
 575             irqstat = esdhc_read32(&regs->irqstat);
 576
 577             if (irqstat & IRQSTAT_DTOE) {
/* error occurs in this condition check */
 578                 err = -ETIMEDOUT;
 579                 goto out;
 580             }
 581
 582             if (irqstat & DATA_ERR) {
 583                 err = -ECOMM;
 584                 goto out;
 585             }
 586         } while ((irqstat & flags) != flags);

 

 

if I don't try to read/write rpmb, the basic functions of emmc are OK.

once I got the rpmb error, basic functions of emmc turns to be unavaliable.(ex: read write emmc)

please help to check, thanks a lot!

0 项奖励
回复
2 回复数

786 次查看
MayanksPatel
NXP Employee
NXP Employee

Hi @jiankang,

Is issue resolved? shall we close the ticket?

you can always create a new case if anything.

 

Thanks,

Mayank s Patel

0 项奖励
回复

837 次查看
jiankang
Contributor III

fixed by adding memory rotatation logic for mmc DAM.

0 项奖励
回复