<?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>LayerscapeのトピックIssue on NOR flash erase and copy</title>
    <link>https://community.nxp.com/t5/Layerscape/Issue-on-NOR-flash-erase-and-copy/m-p/1393004#M9746</link>
    <description>&lt;DIV&gt;We are working on an LS1021A custom board where we are using 2 NOR Flash (IS29GL256-70FLET) chips. We modified our DTS file based on this link &lt;A href="https://community.nxp.com/t5/P-Series/cannot-erase-256MB-NOR-flash-beyond-first-139MB/m-p/370821/highlight/true#M1909" target="_blank" rel="noopener noreferrer"&gt;https://community.nxp.com/t5/P-Series/cannot-erase-256MB-NOR-flash-beyond-first-139MB/m-p/370821/highlight/true#M1909&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;amp;ifc {&lt;/DIV&gt;&lt;DIV&gt;#address-cells = &amp;lt;2&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;#size-cells = &amp;lt;1&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;/* NOR Flash on board and SRAM */&lt;/DIV&gt;&lt;DIV&gt;ranges = &amp;lt;0x0 0x0 0x0 0x60000000 0x04000000&lt;/DIV&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 0x2 0x0 0x0 0x68000000 0x00080000&lt;/P&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x4 0x0 0x0 0x69000000 0x01000000&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;status = "okay";&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;nor@0,0 {&lt;/DIV&gt;&lt;DIV&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;#size-cells = &amp;lt;1&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;compatible = "cfi-flash";&lt;/DIV&gt;&lt;DIV&gt;reg = &amp;lt;0x0 0x0 0x2000000&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 0x1 0x2000000 0x2000000&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;bank-width = &amp;lt;2&amp;gt;;&lt;/DIV&gt;&lt;P&gt;device-width = &amp;lt;1&amp;gt;;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Our logs look like this&lt;/DIV&gt;&lt;DIV&gt;================&lt;/DIV&gt;&lt;DIV&gt;60000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x00009d Chip ID 0x00227e&lt;BR /&gt;Amd/Fujitsu Extended Query Table at 0x0040&lt;BR /&gt;Amd/Fujitsu Extended Query version 1.4.&lt;BR /&gt;number of CFI chips: 1&lt;BR /&gt;15 ofpart partitions found on MTD device 60000000.nor&lt;BR /&gt;Creating 15 MTD partitions on "60000000.nor":&lt;BR /&gt;0x000000000000-0x000000020000 : "Pre-Bootloader Configuration(PBLC)"&lt;BR /&gt;0x000000020000-0x000000040000 : "Ethernet Data"&lt;BR /&gt;0x000000040000-0x000000080000 : "Bootloader Environment(BLE)"&lt;BR /&gt;0x000000080000-0x0000000a0000 : "DTS-D"&lt;BR /&gt;0x0000000a0000-0x0000000c0000 : "DTS-1"&lt;BR /&gt;0x0000000c0000-0x0000000e0000 : "QE uCode Image"&lt;BR /&gt;0x0000000e0000-0x000000100000 : "DTS-2"&lt;BR /&gt;0x000000100000-0x000000200000 : "Bootloader Image (BLI)"&lt;BR /&gt;0x000000200000-0x000000600000 : "Kernel Image Default (KI-D)"&lt;BR /&gt;0x000000600000-0x000000a00000 : "Kernel Image1 (KI-1)"&lt;BR /&gt;0x000000a00000-0x000001000000 : "Kernel Image-2 (KI-2)"&lt;BR /&gt;0x000001000000-0x000002000000 : "Rootfs-1 (RFS-1)"&lt;BR /&gt;0x000000000000-0x000000600000 : "Rootfs Default (RFS-D)"&lt;BR /&gt;0x000000600000-0x000001600000 : "Rootfs-2 (RFS-2)"&lt;BR /&gt;0x000001600000-0x000001f00000 : "ADFS"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But when we tried to erase using the flash_eraseall command, we are getting the below log&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;root@atc-gen2:~# flash_eraseall /dev/mtd0&lt;BR /&gt;flash_eraseall has been replaced by `flash_erase &amp;lt;mtddev&amp;gt; 0 0`; please use it&lt;BR /&gt;Erasing 128 Kibyte @ 0 -- 0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 0 (mtd0)&lt;BR /&gt;error 5 (Input/output error)&lt;BR /&gt;flash_erase: error!: /dev/mtd0: MTD Erase failure&lt;BR /&gt;error 5 (Input/output error)&lt;BR /&gt;Erasing 128 Kibyte @ 0 -- 100 % complete&lt;BR /&gt;root@atc-gen2:~# flash_eraseall /dev/mtd1&lt;BR /&gt;flash_eraseall has been replaced by `flash_erase &amp;lt;mtddev&amp;gt; 0 0`; please use it&lt;BR /&gt;Erasing 128 Kibyte @ 0 -- 0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 0 (mtd1)&lt;BR /&gt;error 5 (Input/output error)&lt;BR /&gt;flash_erase: error!: /dev/mtd1: MTD Erase failure&lt;BR /&gt;error 5 (Input/output error)&lt;BR /&gt;Erasing 128 Kibyte @ 0 -- 100 % complete&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We need to know whether our changes are proper for 2 NOR flash chips and also we need solutions to our flash_erase error.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Winston&lt;/DIV&gt;</description>
    <pubDate>Wed, 29 Dec 2021 09:52:29 GMT</pubDate>
    <dc:creator>winstonjacob</dc:creator>
    <dc:date>2021-12-29T09:52:29Z</dc:date>
    <item>
      <title>Issue on NOR flash erase and copy</title>
      <link>https://community.nxp.com/t5/Layerscape/Issue-on-NOR-flash-erase-and-copy/m-p/1393004#M9746</link>
      <description>&lt;DIV&gt;We are working on an LS1021A custom board where we are using 2 NOR Flash (IS29GL256-70FLET) chips. We modified our DTS file based on this link &lt;A href="https://community.nxp.com/t5/P-Series/cannot-erase-256MB-NOR-flash-beyond-first-139MB/m-p/370821/highlight/true#M1909" target="_blank" rel="noopener noreferrer"&gt;https://community.nxp.com/t5/P-Series/cannot-erase-256MB-NOR-flash-beyond-first-139MB/m-p/370821/highlight/true#M1909&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;amp;ifc {&lt;/DIV&gt;&lt;DIV&gt;#address-cells = &amp;lt;2&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;#size-cells = &amp;lt;1&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;/* NOR Flash on board and SRAM */&lt;/DIV&gt;&lt;DIV&gt;ranges = &amp;lt;0x0 0x0 0x0 0x60000000 0x04000000&lt;/DIV&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 0x2 0x0 0x0 0x68000000 0x00080000&lt;/P&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x4 0x0 0x0 0x69000000 0x01000000&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;status = "okay";&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;nor@0,0 {&lt;/DIV&gt;&lt;DIV&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;#size-cells = &amp;lt;1&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;compatible = "cfi-flash";&lt;/DIV&gt;&lt;DIV&gt;reg = &amp;lt;0x0 0x0 0x2000000&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 0x1 0x2000000 0x2000000&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;bank-width = &amp;lt;2&amp;gt;;&lt;/DIV&gt;&lt;P&gt;device-width = &amp;lt;1&amp;gt;;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Our logs look like this&lt;/DIV&gt;&lt;DIV&gt;================&lt;/DIV&gt;&lt;DIV&gt;60000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x00009d Chip ID 0x00227e&lt;BR /&gt;Amd/Fujitsu Extended Query Table at 0x0040&lt;BR /&gt;Amd/Fujitsu Extended Query version 1.4.&lt;BR /&gt;number of CFI chips: 1&lt;BR /&gt;15 ofpart partitions found on MTD device 60000000.nor&lt;BR /&gt;Creating 15 MTD partitions on "60000000.nor":&lt;BR /&gt;0x000000000000-0x000000020000 : "Pre-Bootloader Configuration(PBLC)"&lt;BR /&gt;0x000000020000-0x000000040000 : "Ethernet Data"&lt;BR /&gt;0x000000040000-0x000000080000 : "Bootloader Environment(BLE)"&lt;BR /&gt;0x000000080000-0x0000000a0000 : "DTS-D"&lt;BR /&gt;0x0000000a0000-0x0000000c0000 : "DTS-1"&lt;BR /&gt;0x0000000c0000-0x0000000e0000 : "QE uCode Image"&lt;BR /&gt;0x0000000e0000-0x000000100000 : "DTS-2"&lt;BR /&gt;0x000000100000-0x000000200000 : "Bootloader Image (BLI)"&lt;BR /&gt;0x000000200000-0x000000600000 : "Kernel Image Default (KI-D)"&lt;BR /&gt;0x000000600000-0x000000a00000 : "Kernel Image1 (KI-1)"&lt;BR /&gt;0x000000a00000-0x000001000000 : "Kernel Image-2 (KI-2)"&lt;BR /&gt;0x000001000000-0x000002000000 : "Rootfs-1 (RFS-1)"&lt;BR /&gt;0x000000000000-0x000000600000 : "Rootfs Default (RFS-D)"&lt;BR /&gt;0x000000600000-0x000001600000 : "Rootfs-2 (RFS-2)"&lt;BR /&gt;0x000001600000-0x000001f00000 : "ADFS"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But when we tried to erase using the flash_eraseall command, we are getting the below log&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;root@atc-gen2:~# flash_eraseall /dev/mtd0&lt;BR /&gt;flash_eraseall has been replaced by `flash_erase &amp;lt;mtddev&amp;gt; 0 0`; please use it&lt;BR /&gt;Erasing 128 Kibyte @ 0 -- 0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 0 (mtd0)&lt;BR /&gt;error 5 (Input/output error)&lt;BR /&gt;flash_erase: error!: /dev/mtd0: MTD Erase failure&lt;BR /&gt;error 5 (Input/output error)&lt;BR /&gt;Erasing 128 Kibyte @ 0 -- 100 % complete&lt;BR /&gt;root@atc-gen2:~# flash_eraseall /dev/mtd1&lt;BR /&gt;flash_eraseall has been replaced by `flash_erase &amp;lt;mtddev&amp;gt; 0 0`; please use it&lt;BR /&gt;Erasing 128 Kibyte @ 0 -- 0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 0 (mtd1)&lt;BR /&gt;error 5 (Input/output error)&lt;BR /&gt;flash_erase: error!: /dev/mtd1: MTD Erase failure&lt;BR /&gt;error 5 (Input/output error)&lt;BR /&gt;Erasing 128 Kibyte @ 0 -- 100 % complete&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We need to know whether our changes are proper for 2 NOR flash chips and also we need solutions to our flash_erase error.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Winston&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Dec 2021 09:52:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Issue-on-NOR-flash-erase-and-copy/m-p/1393004#M9746</guid>
      <dc:creator>winstonjacob</dc:creator>
      <dc:date>2021-12-29T09:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on NOR flash erase and copy</title>
      <link>https://community.nxp.com/t5/Layerscape/Issue-on-NOR-flash-erase-and-copy/m-p/1393475#M9759</link>
      <description>&lt;P&gt;Please check whether you could execute erase and copy command in u-boot.&lt;/P&gt;
&lt;P&gt;=&amp;gt; protect off 60000000 +$filesize &amp;amp;&amp;amp; erase 60000000 +$filesize &amp;amp;&amp;amp; cp.b $load_addr 60000000&lt;BR /&gt;$filesize&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 06:40:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Issue-on-NOR-flash-erase-and-copy/m-p/1393475#M9759</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-12-31T06:40:00Z</dc:date>
    </item>
  </channel>
</rss>

