<?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>topic Re: MFG tool. Is it possible to read from flash in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151122#M1142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the source code there is an undocumented XML attribute for the element command type push: savedfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just tried this with MfgTool2 and it seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;CMD state="Updater" type="push" body="read /mnt/flags/BoardInfo.bin" savedfile="test.bin"&amp;gt;Retrieve BoardInfo.bin&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Mar 2017 07:19:55 GMT</pubDate>
    <dc:creator>matthewmckay-da</dc:creator>
    <dc:date>2017-03-22T07:19:55Z</dc:date>
    <item>
      <title>MFG tool. Is it possible to read from flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151116#M1136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possilbe to read data from the NAND flash on my MX53 board using the MFG tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CMD type="find" body="Updater" timeout="180"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CMD type="push" body="mknod class/mtd,mtd2,/dev/mtd2"/&amp;gt; &amp;lt;!-- The data location --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CMD type="push" body="$ dd if=/dev/mtd2 of=pdata bs=1 count=100"&amp;gt;Copy 100 bytes of data to a temp file named pdata&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CMD type="pull" body="read pdata" file="test"&amp;gt;Read pdata&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When excuting the last pull command the MFG tool sometime stops working, or it only read 2 bytes. (The bytes is not the right bytes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong, or is it not possible to read data from the board&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Output from debug)&lt;/P&gt;&lt;P&gt;UTP: received command 'mknod class/mtd,mtd2,/dev/mtd2'&lt;BR /&gt;class = 'class/mtd'&lt;BR /&gt;item = 'mtd2'&lt;BR /&gt;node = /dev/mtd2&lt;BR /&gt;type = (null)&lt;BR /&gt;UTP: running utp_mk_devnode(class/mtd,mtd2,/dev/mtd2,0x2000)&lt;BR /&gt;utp_mk_devnode: creating node '/dev/mtd2' with 90+4&lt;BR /&gt;UTP: sending Success&lt;BR /&gt;UTP: received command '$ dd if=/dev/mtd2 of=pdata bs=1 count=100'&lt;BR /&gt;UTP: sending Busy&lt;BR /&gt;UTP: executing "dd if=/dev/mtd2 of=pdata bs=1 count=100"&lt;BR /&gt;100+0 records in&lt;BR /&gt;100+0 records out&lt;BR /&gt;UTP: sending Success&lt;BR /&gt;utp_poll: pass returned.&lt;BR /&gt;UTP: received command 'read pdata'&lt;BR /&gt;UTP: sending DCopied to 9dd84000, 2 bytes started from 0&lt;BR /&gt;ata&lt;BR /&gt;UTP: received command '$ echo Read Complete!'&lt;BR /&gt;UTP: sending Busy&lt;BR /&gt;UTP: executing "echo Read Complete!"&lt;BR /&gt;Read Complete!&lt;BR /&gt;UTP: sending Success&lt;BR /&gt;utp_poll: pass returned.&lt;BR /&gt;g_file_storage gadget: high speed config #1&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 09:59:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151116#M1136</guid>
      <dc:creator>claussørensen</dc:creator>
      <dc:date>2012-10-25T09:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: MFG tool. Is it possible to read from flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151117#M1137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to download MfgTool source code and try to see where it actually fails. If you want to do a decision based on the data you read from device, or log it somewhere, you will probably have to rebuild MfgTool on your own anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 13:47:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151117#M1137</guid>
      <dc:creator>VladanJovanovic</dc:creator>
      <dc:date>2012-10-25T13:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: MFG tool. Is it possible to read from flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151118#M1138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already downloaded the source code because I do ned to modify it.&lt;/P&gt;&lt;P&gt;I am still not sure the syntax is correct in the ucl.xml file, I cant find any examples for reading data back to the PC.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 14:11:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151118#M1138</guid>
      <dc:creator>claussørensen</dc:creator>
      <dc:date>2012-10-25T14:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: MFG tool. Is it possible to read from flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151119#M1139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not that familiar with it, but Apps\MfgTool.exe\OpUtpUpdate.cpp seems like a good start, just search for "pull".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 07:04:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151119#M1139</guid>
      <dc:creator>VladanJovanovic</dc:creator>
      <dc:date>2012-10-26T07:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: MFG tool. Is it possible to read from flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151120#M1140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; padding-right: 3px; color: #6a737b; font-style: inherit; font-size: 1.1em; font-family: inherit; font-weight: inherit;"&gt;Vladan Jovanovic&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I got mfgtool.v2.2.3.SRC.zip for i.MX6 series from feescale's web site.&lt;/P&gt;&lt;P&gt;But, I couldn't find "pull" feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked DWORDParseUclXml(MFGLIB_VARS *pLibVars) in Apps\MfgToolLib\MfgToolLib.cpp&lt;/P&gt;&lt;P&gt;However, there was push feature but there was not pull feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is "pull" feature implemented in mfgtool.v2.2.3.SRC for i.MX6?&lt;/P&gt;&lt;P&gt;Or, could you give me source code of MFG tool implemented "pull" feature for i.MX6?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 04:54:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151120#M1140</guid>
      <dc:creator>keitanagashima</dc:creator>
      <dc:date>2014-02-12T04:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: MFG tool. Is it possible to read from flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151121#M1141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I wrote a CFG entry on the ucl2.xml file to mount a USB drive and dump the partitions I needed. I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;LIST name="imx6-dump-mmcblk2" desc="Dump /dev/mmcblk2 into an ext4 USB drive"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;CMD state="BootStrap" type="boot" body="BootStrap" file ="u-boot_dl.bin" file1="u-boot_qd.bin" &amp;gt;Loading U-boot&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;CMD state="BootStrap" type="load" file="uImage" address="0x10800000"&lt;/P&gt;&lt;P&gt;&amp;nbsp; loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" &amp;gt;Loading Kernel&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;CMD state="BootStrap" type="load" file="initramfs.cpio.gz.uboot" address="0x10C00000"&lt;/P&gt;&lt;P&gt;&amp;nbsp; loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" &amp;gt;Loading Initramfs&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;CMD state="BootStrap" type="jump" &amp;gt;Jumping to OS image&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;!-- --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;CMD state="Updater" type="push" body="$ ls -la /"&amp;gt;List root&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;CMD state="Updater" type="push" body="$ ls -la /dev/sd*"&amp;gt;List USB dev nodes&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;CMD state="Updater" type="push" body="$ mkdir -p /tmp/mntusb"&amp;gt;Make mntusb directory&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;CMD state="Updater" type="push" body="$ mount -t ext4 /dev/sda1 /tmp/mntusb"&amp;gt;Mount ext4 USB&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;CMD state="Updater" type="push" body="$ cat /dev/mmcblk2 &amp;gt; /tmp/mntusb/mmcblk2_dump"&amp;gt;Dump eMMC&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;CMD state="Updater" type="push" body="$ ls -la /tmp/mntusb"&amp;gt;List USB contents&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;CMD state="Updater" type="push" body="$ sync"&amp;gt;Sync USB FS&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;!-- --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CMD state="Updater" type="push" body="$ echo Dump Complete!"&amp;gt;Dump Complete&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/LIST&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jul 2016 15:48:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151121#M1141</guid>
      <dc:creator>SantiagoVillafu</dc:creator>
      <dc:date>2016-07-24T15:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: MFG tool. Is it possible to read from flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151122#M1142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the source code there is an undocumented XML attribute for the element command type push: savedfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just tried this with MfgTool2 and it seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;CMD state="Updater" type="push" body="read /mnt/flags/BoardInfo.bin" savedfile="test.bin"&amp;gt;Retrieve BoardInfo.bin&amp;lt;/CMD&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 07:19:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151122#M1142</guid>
      <dc:creator>matthewmckay-da</dc:creator>
      <dc:date>2017-03-22T07:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: MFG tool. Is it possible to read from flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151123#M1143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First real answer - kudos Matthew...&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also trying to pull out a unique file name as a variable - kinda the opposite of pushing a file to the $file operator.&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;...&amp;gt; type"push" body="$ FILE=ls | grep .log" &amp;lt;...&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;...&amp;gt; type"pull" body="read" name="$FILE" &amp;lt;...&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;...&amp;gt; type"push" body="read '$NAME'.log" savedfile="'$NAME.log" &amp;lt;...&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Did you come across anything that would indicate this is possible?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 21:55:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151123#M1143</guid>
      <dc:creator>jataylor</dc:creator>
      <dc:date>2017-03-22T21:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: MFG tool. Is it possible to read from flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151124#M1144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid not. Though I didn't&amp;nbsp;look at the code&amp;nbsp;in detail. I have to admit that I only spent enough time looking at the code to find what&amp;nbsp;I&amp;nbsp;was after, and it was luck more than anything that I spotted the&amp;nbsp;parsing of the undocumented attribute&amp;nbsp;after just skimming through the code for about 15 minutes. Especially as I'd wasted quite a bit of time&amp;nbsp;trying various combinations of&amp;nbsp;push and pull commands before looking on the&amp;nbsp;forums and finding this&amp;nbsp;thread with the response elusively marked as correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used the 'read' command as part of sequence that programs&amp;nbsp;the OTP&amp;nbsp;MAC registers. Basically in production someone will scan&amp;nbsp;a barcode sticker&amp;nbsp;on the board&amp;nbsp;with the MAC and this sets up&amp;nbsp;mac.txt which gets sent to the board&amp;nbsp;along with mac_prev.txt and a&amp;nbsp;bash script checks that the same MAC isn't being used twice, in case the person forgets to scan the new MAC between boards. I read back the mac.txt to mac_prev.txt ready for the next program cycle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 22:44:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MFG-tool-Is-it-possible-to-read-from-flash/m-p/151124#M1144</guid>
      <dc:creator>matthewmckay-da</dc:creator>
      <dc:date>2017-03-22T22:44:43Z</dc:date>
    </item>
  </channel>
</rss>

