<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: system will be stuck in readl_relaxed function when UUU tool flash image</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/system-will-be-stuck-in-readl-relaxed-function-when-UUU-tool/m-p/1966649#M229253</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Could you please share the logs of issue in UUU tool?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;There are no errors in log. It get stuck on&amp;nbsp;readl_relaxed when system reboot to copy DTS and kernel image to /run/media/mmcblk2p1&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Are you able to flash successfully without your custom functions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, it will flash successfully without readl_relaxed. There are no errors in of_find_compatible_node and of_iomap functions.&lt;/P&gt;&lt;P&gt;And I found the same code in&amp;nbsp;sources/linux-imx/drivers/soc/imx/soc-imx8m.c, which can success to readl / writel to efuse (0x30350000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;np = of_find_compatible_node(NULL, NULL, "fsl,imx8mm-ocotp");
        if (!np)
                return;

ocotp_base = of_iomap(np, 0);
WARN_ON(!ocotp_base);
clk = of_clk_get_by_name(np, NULL);
if (IS_ERR(clk)) {
       WARN_ON(IS_ERR(clk));
       return;
}

clk_prepare_enable(clk);

soc_uid = readl_relaxed(ocotp_base + OCOTP_UID_HIGH + offset);
soc_uid &amp;lt;&amp;lt;= 32;
soc_uid |= readl_relaxed(ocotp_base + OCOTP_UID_LOW + offset);

if (offset) {
       soc_uid_h = readl_relaxed(ocotp_base + IMX8MP_OCOTP_UID_HIGH + 0x10);
       soc_uid_h &amp;lt;&amp;lt;= 32;
       soc_uid_h |= readl_relaxed(ocotp_base + IMX8MP_OCOTP_UID_HIGH);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My function add in sources/linux-imx/drivers/thermal/imx8mm_thermal.c , but it cannot read efuse memory successfully&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2024 01:08:33 GMT</pubDate>
    <dc:creator>CoolSean</dc:creator>
    <dc:date>2024-10-04T01:08:33Z</dc:date>
    <item>
      <title>system will be stuck in readl_relaxed function when UUU tool flash image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/system-will-be-stuck-in-readl-relaxed-function-when-UUU-tool/m-p/1965046#M229168</link>
      <description>&lt;P&gt;I created a new function imx8mp opp_check_temp_grading() and read the efuse data(1.png), but the system gets stuck on readl_relaxed&amp;nbsp;when flash the image by UUU tool .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 08:45:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/system-will-be-stuck-in-readl-relaxed-function-when-UUU-tool/m-p/1965046#M229168</guid>
      <dc:creator>CoolSean</dc:creator>
      <dc:date>2024-10-01T08:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: system will be stuck in readl_relaxed function when UUU tool flash image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/system-will-be-stuck-in-readl-relaxed-function-when-UUU-tool/m-p/1965316#M229179</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235831"&gt;@CoolSean&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;Could you please share the logs of issue in UUU tool?&lt;/P&gt;
&lt;P&gt;Are you able to flash successfully without your custom functions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 16:23:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/system-will-be-stuck-in-readl-relaxed-function-when-UUU-tool/m-p/1965316#M229179</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2024-10-01T16:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: system will be stuck in readl_relaxed function when UUU tool flash image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/system-will-be-stuck-in-readl-relaxed-function-when-UUU-tool/m-p/1966649#M229253</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Could you please share the logs of issue in UUU tool?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;There are no errors in log. It get stuck on&amp;nbsp;readl_relaxed when system reboot to copy DTS and kernel image to /run/media/mmcblk2p1&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Are you able to flash successfully without your custom functions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, it will flash successfully without readl_relaxed. There are no errors in of_find_compatible_node and of_iomap functions.&lt;/P&gt;&lt;P&gt;And I found the same code in&amp;nbsp;sources/linux-imx/drivers/soc/imx/soc-imx8m.c, which can success to readl / writel to efuse (0x30350000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;np = of_find_compatible_node(NULL, NULL, "fsl,imx8mm-ocotp");
        if (!np)
                return;

ocotp_base = of_iomap(np, 0);
WARN_ON(!ocotp_base);
clk = of_clk_get_by_name(np, NULL);
if (IS_ERR(clk)) {
       WARN_ON(IS_ERR(clk));
       return;
}

clk_prepare_enable(clk);

soc_uid = readl_relaxed(ocotp_base + OCOTP_UID_HIGH + offset);
soc_uid &amp;lt;&amp;lt;= 32;
soc_uid |= readl_relaxed(ocotp_base + OCOTP_UID_LOW + offset);

if (offset) {
       soc_uid_h = readl_relaxed(ocotp_base + IMX8MP_OCOTP_UID_HIGH + 0x10);
       soc_uid_h &amp;lt;&amp;lt;= 32;
       soc_uid_h |= readl_relaxed(ocotp_base + IMX8MP_OCOTP_UID_HIGH);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My function add in sources/linux-imx/drivers/thermal/imx8mm_thermal.c , but it cannot read efuse memory successfully&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 01:08:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/system-will-be-stuck-in-readl-relaxed-function-when-UUU-tool/m-p/1966649#M229253</guid>
      <dc:creator>CoolSean</dc:creator>
      <dc:date>2024-10-04T01:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: system will be stuck in readl_relaxed function when UUU tool flash image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/system-will-be-stuck-in-readl-relaxed-function-when-UUU-tool/m-p/1967535#M229318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have any suggestion?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 01:42:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/system-will-be-stuck-in-readl-relaxed-function-when-UUU-tool/m-p/1967535#M229318</guid>
      <dc:creator>CoolSean</dc:creator>
      <dc:date>2024-10-07T01:42:03Z</dc:date>
    </item>
  </channel>
</rss>

