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.

[参考译文] TDA4VL-Q1:MMCSD 驱动器:为 eMMC 设置 pSLC 模式

Guru**** 2478765 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1459982/tda4vl-q1-mmcsd-driver-set-pslc-mode-for-emmc

器件型号:TDA4VL-Q1

工具与软件:

尊敬的 TI 支持部门:

我当前使用 MMCSD (_v2)驱动程序通过 SBL 引导加载程序访问 eMMC。 是否有任何方法可以使用 MMCSD 驱动程序为 eMMC 启用 pSLC 模式?

如果不正确、我可以使用哪个 eMMC 命令来写入 ECSD 寄存器的特定值? 您是否有通过 SBL 激活 pSLC 模式的示例?

此致、

Andreas

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Andreas:

    [quote userid="621221" url="~/support/processors-group/processors/f/processors-forum/1459982/tda4vl-q1-mmcsd-driver-set-pslc-mode-for-emmc 是否有办法使用 MMCSD 驱动程序为 eMMC 启用 pSLC 模式?

    目前、MMCSD 驱动程序中不存在该驱动程序。 由于这个选项只可配置一次、最好是从 uBoot 或 Linux 内核中对其进行配置。

    [报价 userid="621221" url="~/support/processors-group/processors/f/processors-forum/1459982/tda4vl-q1-mmcsd-driver-set-pslc-mode-for-emmc "]

    如果不正确、我可以使用哪个 eMMC 命令来写入 ECSD 寄存器的特定值? 您是否有通过 SBL 激活 pSLC 模式的示例?

    [报价]

    使用 mcu-util 在 Linux 内核中配置 PSLC:

    命令 :[ MMC ENH_AREA --help ]命令。

    在 uboot 中配置 PSLC:

    1:进入 Linux 内核,执行以下命令,只需记下它:

      > cat /sys/class/block/mmcblk0/size

      它基本上表示 eMMC uda 分区中存在的512个块的数量

    2:重新引导至 Uboot 和 e nter the below command which will just test if it is working:

    > mmc hwpartition user enh <start> <number of 512B sized blocks> check

    SYNTAX:



    I am attaching an example below just for reference:

    Here 62160896 is the value obtained after running cat /sys/class/block/mmcblk0/size as stated earlier.

    Here 1264 indicates the maximum number of HC WP Group Size(8Mib(as in the below image)) blocks allowed.

    Hence number of 512B sized blocks now = (1264×8×1024×1024)/512 which is equal to 20709376 which works fine.


    3:Now to set this configuration permanently:
    NOTE:Because all the operations are one-time only,be very careful before applying the below command.
     > mmc hwpartition user enh 0 20709376 wrrel on complete

    4:Power cycle the board for the changes to get applied.
     
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Gokul:

    我能够通过使用 MMCSD_v2_transfer ()函数在 SBL 中手动执行此更改。

    此主题的最后一个问题:您是否知道 eMMC 在下电上电后应用这些更改需要多长时间? 使用 MMCSD_init ()初始化 eMMC 时、SBL 是否等待 pSLC 模式的最终确定?

    此致、

    Andreas

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Andreas:

    您是否知道 eMMC 在下电上电后应用这些更改需要多长时间?

    理想情况下,一旦您重启电路板,更改就会生效。

    使用 MMCSD_init ()初始化 eMMC 时、SBL 是否等待 pSLC 模式的最终确定?

    由于 SBL 中没有实现 pSLC 模式、因此 初始化 eMMC init 时不会等待。