<?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 LS1021A: Not able to boot from QSPI flash in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1021A-Not-able-to-boot-from-QSPI-flash/m-p/1548702#M11363</link>
    <description>&lt;P&gt;I have a working custom board based on LS1021ATWR. Board has two&amp;nbsp; "spansion,s25fl512s"&amp;nbsp; flash 64 MB each which is working fine. I am able to boot the device from flash.&lt;/P&gt;&lt;P&gt;RCW &amp;amp; u-boot file used&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; -&amp;nbsp;&lt;STRONG&gt;rcw_1000_qspiboot_swap.bin&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; -&amp;nbsp;&lt;STRONG&gt;u-boot-swap.bin&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Following is the DTS entry for it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;amp;qspi {
	num-cs = &amp;lt;2&amp;gt;;
	bus-num = &amp;lt;0&amp;gt;;
	fsl,qspi-has-second-chip;
	status = "okay";

	qflash0: s70fl01gs@0 {
		compatible = "spansion,s25fl512s", "jedec,spi-nor";
		spi-max-frequency = &amp;lt;50000000&amp;gt;;

		/*
		* NOTE: Changes to this partion layout possibly requires
		* changes in the bootloader and/or environment
		*/
		partitions {
			compatible = "fixed-partitions";
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;1&amp;gt;;

			partition@0 {
				label = "RCW";
				reg = &amp;lt;0x0 0x40000&amp;gt;;
			};

			partition@40000 {
				label = "u-boot";
				reg = &amp;lt;0x40000 0xc0000&amp;gt;;
			};

			partition@100000 {
				label = "u-boot-env";
				reg = &amp;lt;0x100000 0x40000&amp;gt;;
			};

			partition@140000 {
				label = "u-boot-env-redund";
				reg = &amp;lt;0x140000 0x40000&amp;gt;;
			};

			partition@180000 {
				label = "qe-ucode";
				reg = &amp;lt;0x180000 0x40000&amp;gt;;
			};

			partition@1c0000 {
				label = "dtb1";
				reg = &amp;lt;0x1c0000 0x40000&amp;gt;;
			};

			partition@200000 {
				label = "kernel1";
				reg = &amp;lt;0x200000 0x400000&amp;gt;;
			};

			partition@600000 {
				label = "rootfs1";
				reg = &amp;lt;0x600000 0xc00000&amp;gt;;
			};
			partition@1200000 {
				label = "dtb2";
				reg = &amp;lt;0x1200000 0x40000&amp;gt;;
			};

			partition@1240000 {
				label = "kernel2";
				reg = &amp;lt;0x1240000 0x500000&amp;gt;;
			};

			partition@1740000 {
				label = "rootfs2";
				reg = &amp;lt;0x1740000 0x2880000&amp;gt;;
			};
		};
	};

	qflash1: s70fl01gs@1 {
		compatible = "spansion,s25fl512s", "jedec,spi-nor";
		spi-max-frequency = &amp;lt;50000000&amp;gt;;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;1&amp;gt;;

			partition@0 {
				label = "user";
				reg = &amp;lt;0x0 0x4000000&amp;gt;;
			};
		};
	};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have replaced the "s25fl512s" flash with&amp;nbsp;"macronix,mx66lm1g45g" 128 MB flash. Modified the DTS file &amp;amp; booted the device using SD boot &amp;amp; flash the same &lt;STRONG&gt;rcw_1000_qspiboot_swap.bin&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;u-boot-swap.bin&lt;/STRONG&gt;. &lt;STRONG&gt;After Switching back to QSPI boot nothing comes on the console&lt;/STRONG&gt;. No u-boot output on the serial console. PBL is supposed to read RCW from /dev/mtd/RCW &amp;amp; then load u-boot from /dev/mtd/u-boot. But nothing comes on serial&lt;/P&gt;&lt;P&gt;Following is my modified DTS for the new flash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;amp;qspi {
	num-cs = &amp;lt;2&amp;gt;;
	bus-num = &amp;lt;0&amp;gt;;
	fsl,qspi-has-second-chip;
	status = "okay";

	qflash0: mx66lm1g45g@0 {
		compatible = "macronix,mx66lm1g45g", "jedec,spi-nor";
		spi-max-frequency = &amp;lt;50000000&amp;gt;;

		/*
		* NOTE: Changes to this partion layout possibly requires
		* changes in the bootloader and/or environment
		*/
		partitions {
			compatible = "fixed-partitions";
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;1&amp;gt;;

			partition@0 {
				label = "RCW";
				reg = &amp;lt;0x0 0x40000&amp;gt;;
			};

			partition@40000 {
				label = "u-boot";
				reg = &amp;lt;0x40000 0xc0000&amp;gt;;
			};

			partition@100000 {
				label = "u-boot-env";
				reg = &amp;lt;0x100000 0x40000&amp;gt;;
			};

			partition@140000 {
				label = "u-boot-env-redund";
				reg = &amp;lt;0x140000 0x40000&amp;gt;;
			};

			partition@180000 {
				label = "qe-ucode";
				reg = &amp;lt;0x180000 0x40000&amp;gt;;
			};

			partition@1c0000 {
				label = "dtb1";
				reg = &amp;lt;0x1c0000 0x40000&amp;gt;;
			};

			partition@200000 {
				label = "kernel1";
				reg = &amp;lt;0x200000 0x400000&amp;gt;;
			};

			partition@600000 {
				label = "rootfs1";
				reg = &amp;lt;0x600000 0xc00000&amp;gt;;
			};
			partition@1200000 {
				label = "dtb2";
				reg = &amp;lt;0x1200000 0x40000&amp;gt;;
			};

			partition@1240000 {
				label = "kernel2";
				reg = &amp;lt;0x1240000 0x500000&amp;gt;;
			};

			partition@1740000 {
				label = "rootfs2";
				reg = &amp;lt;0x1740000 0x2880000&amp;gt;;
			};

			partition@3FC0000 {
				label = "user";
				reg = &amp;lt;0x3FC0000 0x4000000&amp;gt;;
			};
		};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to change any settings in rcw.cfg file for the new flash or in the u-boot code? Any help is appreciated?&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 08:42:51 GMT</pubDate>
    <dc:creator>vishnu_motghare</dc:creator>
    <dc:date>2022-11-07T08:42:51Z</dc:date>
    <item>
      <title>LS1021A: Not able to boot from QSPI flash</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021A-Not-able-to-boot-from-QSPI-flash/m-p/1548702#M11363</link>
      <description>&lt;P&gt;I have a working custom board based on LS1021ATWR. Board has two&amp;nbsp; "spansion,s25fl512s"&amp;nbsp; flash 64 MB each which is working fine. I am able to boot the device from flash.&lt;/P&gt;&lt;P&gt;RCW &amp;amp; u-boot file used&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; -&amp;nbsp;&lt;STRONG&gt;rcw_1000_qspiboot_swap.bin&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; -&amp;nbsp;&lt;STRONG&gt;u-boot-swap.bin&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Following is the DTS entry for it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;amp;qspi {
	num-cs = &amp;lt;2&amp;gt;;
	bus-num = &amp;lt;0&amp;gt;;
	fsl,qspi-has-second-chip;
	status = "okay";

	qflash0: s70fl01gs@0 {
		compatible = "spansion,s25fl512s", "jedec,spi-nor";
		spi-max-frequency = &amp;lt;50000000&amp;gt;;

		/*
		* NOTE: Changes to this partion layout possibly requires
		* changes in the bootloader and/or environment
		*/
		partitions {
			compatible = "fixed-partitions";
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;1&amp;gt;;

			partition@0 {
				label = "RCW";
				reg = &amp;lt;0x0 0x40000&amp;gt;;
			};

			partition@40000 {
				label = "u-boot";
				reg = &amp;lt;0x40000 0xc0000&amp;gt;;
			};

			partition@100000 {
				label = "u-boot-env";
				reg = &amp;lt;0x100000 0x40000&amp;gt;;
			};

			partition@140000 {
				label = "u-boot-env-redund";
				reg = &amp;lt;0x140000 0x40000&amp;gt;;
			};

			partition@180000 {
				label = "qe-ucode";
				reg = &amp;lt;0x180000 0x40000&amp;gt;;
			};

			partition@1c0000 {
				label = "dtb1";
				reg = &amp;lt;0x1c0000 0x40000&amp;gt;;
			};

			partition@200000 {
				label = "kernel1";
				reg = &amp;lt;0x200000 0x400000&amp;gt;;
			};

			partition@600000 {
				label = "rootfs1";
				reg = &amp;lt;0x600000 0xc00000&amp;gt;;
			};
			partition@1200000 {
				label = "dtb2";
				reg = &amp;lt;0x1200000 0x40000&amp;gt;;
			};

			partition@1240000 {
				label = "kernel2";
				reg = &amp;lt;0x1240000 0x500000&amp;gt;;
			};

			partition@1740000 {
				label = "rootfs2";
				reg = &amp;lt;0x1740000 0x2880000&amp;gt;;
			};
		};
	};

	qflash1: s70fl01gs@1 {
		compatible = "spansion,s25fl512s", "jedec,spi-nor";
		spi-max-frequency = &amp;lt;50000000&amp;gt;;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;1&amp;gt;;

			partition@0 {
				label = "user";
				reg = &amp;lt;0x0 0x4000000&amp;gt;;
			};
		};
	};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have replaced the "s25fl512s" flash with&amp;nbsp;"macronix,mx66lm1g45g" 128 MB flash. Modified the DTS file &amp;amp; booted the device using SD boot &amp;amp; flash the same &lt;STRONG&gt;rcw_1000_qspiboot_swap.bin&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;u-boot-swap.bin&lt;/STRONG&gt;. &lt;STRONG&gt;After Switching back to QSPI boot nothing comes on the console&lt;/STRONG&gt;. No u-boot output on the serial console. PBL is supposed to read RCW from /dev/mtd/RCW &amp;amp; then load u-boot from /dev/mtd/u-boot. But nothing comes on serial&lt;/P&gt;&lt;P&gt;Following is my modified DTS for the new flash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;amp;qspi {
	num-cs = &amp;lt;2&amp;gt;;
	bus-num = &amp;lt;0&amp;gt;;
	fsl,qspi-has-second-chip;
	status = "okay";

	qflash0: mx66lm1g45g@0 {
		compatible = "macronix,mx66lm1g45g", "jedec,spi-nor";
		spi-max-frequency = &amp;lt;50000000&amp;gt;;

		/*
		* NOTE: Changes to this partion layout possibly requires
		* changes in the bootloader and/or environment
		*/
		partitions {
			compatible = "fixed-partitions";
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;1&amp;gt;;

			partition@0 {
				label = "RCW";
				reg = &amp;lt;0x0 0x40000&amp;gt;;
			};

			partition@40000 {
				label = "u-boot";
				reg = &amp;lt;0x40000 0xc0000&amp;gt;;
			};

			partition@100000 {
				label = "u-boot-env";
				reg = &amp;lt;0x100000 0x40000&amp;gt;;
			};

			partition@140000 {
				label = "u-boot-env-redund";
				reg = &amp;lt;0x140000 0x40000&amp;gt;;
			};

			partition@180000 {
				label = "qe-ucode";
				reg = &amp;lt;0x180000 0x40000&amp;gt;;
			};

			partition@1c0000 {
				label = "dtb1";
				reg = &amp;lt;0x1c0000 0x40000&amp;gt;;
			};

			partition@200000 {
				label = "kernel1";
				reg = &amp;lt;0x200000 0x400000&amp;gt;;
			};

			partition@600000 {
				label = "rootfs1";
				reg = &amp;lt;0x600000 0xc00000&amp;gt;;
			};
			partition@1200000 {
				label = "dtb2";
				reg = &amp;lt;0x1200000 0x40000&amp;gt;;
			};

			partition@1240000 {
				label = "kernel2";
				reg = &amp;lt;0x1240000 0x500000&amp;gt;;
			};

			partition@1740000 {
				label = "rootfs2";
				reg = &amp;lt;0x1740000 0x2880000&amp;gt;;
			};

			partition@3FC0000 {
				label = "user";
				reg = &amp;lt;0x3FC0000 0x4000000&amp;gt;;
			};
		};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to change any settings in rcw.cfg file for the new flash or in the u-boot code? Any help is appreciated?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 08:42:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021A-Not-able-to-boot-from-QSPI-flash/m-p/1548702#M11363</guid>
      <dc:creator>vishnu_motghare</dc:creator>
      <dc:date>2022-11-07T08:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: LS1021A: Not able to boot from QSPI flash</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021A-Not-able-to-boot-from-QSPI-flash/m-p/1551689#M11387</link>
      <description>&lt;P&gt;I've tried with another flash from Macronix&amp;nbsp;MX66L2G45G (256 MB) &amp;amp; Programmed the RCW &amp;amp; u-boot-swap.bin file &amp;amp; I'm able to boot from the flash. But the issue is still there with&amp;nbsp;MX66LM1G45G (128 MB) flash.&lt;/P&gt;&lt;P&gt;Following is my PBL setting in the&amp;nbsp;u-boot source code, do I need to modify anything here for to boot from 128 MB flash?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#PBL preamble and RCW header
aa55aa55 01ee0100

0608000a 00000000 00000000 00000000
20000000 08407922 60000a00 21046000
00000000 00000000 00000000 0021ef00
20024800 2808f340 00000000 00000000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 06:45:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021A-Not-able-to-boot-from-QSPI-flash/m-p/1551689#M11387</guid>
      <dc:creator>vishnu_motghare</dc:creator>
      <dc:date>2022-11-10T06:45:01Z</dc:date>
    </item>
  </channel>
</rss>

