<?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のトピックRe: LS1046A custom board:  starting u-boot</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-starting-u-boot/m-p/1548716#M11364</link>
    <description>&lt;P&gt;Please unzip the attached fman ucode image and deploy it at&amp;nbsp;0x900000 on the QSPI flash.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2022 07:02:53 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2022-11-04T07:02:53Z</dc:date>
    <item>
      <title>LS1046A custom board:  starting u-boot</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-starting-u-boot/m-p/1548518#M11360</link>
      <description>&lt;P&gt;So I'm making headway getting my board to work.&amp;nbsp; I've made it through the TFA stuff, and I've gotten u-boot to load, and I've even booted the default ubuntu image that comes with the FRWY board (which was way cool)...&lt;/P&gt;&lt;P&gt;Now I'm working on getting all of my peripherals to work; both from within u-boot, and ultimately within linux.&lt;/P&gt;&lt;P&gt;I spent a lot of time trying to modify the FRWY board files and kept getting weird compilation errors, like missing definitions for typedefs and things like that, and I dumped that method and went with using the LS1046ARDB files as a baseline.&lt;/P&gt;&lt;P&gt;My board doesn't have a CPLD, but it does have the same type of ethernet chip, so I'm focusing my attention there first.&lt;/P&gt;&lt;P&gt;My u-boot output looks like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;```&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;U-Boot 2021.04-dirty (Nov 03 2022 - 14:33:31 -0700)&lt;/P&gt;&lt;P&gt;SoC: LS1046AE Rev1.0 (0x87070010)&lt;BR /&gt;Clock Configuration:&lt;BR /&gt;CPU0(A72):1400 MHz CPU1(A72):1400 MHz CPU2(A72):1400 MHz&lt;BR /&gt;CPU3(A72):1400 MHz&lt;BR /&gt;Bus: 600 MHz DDR: 2100 MT/s FMAN: 700 MHz&lt;BR /&gt;Reset Configuration Word (RCW):&lt;BR /&gt;00000000: 0c15000e 0e000000 00000000 00000000&lt;BR /&gt;00000010: 00008888 00c00012 40000000 c1000000&lt;BR /&gt;00000020: 00000000 00000000 00000000 00030800&lt;BR /&gt;00000030: 20044100 24003101 00000096 00000001&lt;BR /&gt;Model: LS1046A BPC Board&lt;BR /&gt;Board: LS1046ARDB, boot from Invalid setting of SW5&lt;BR /&gt;CPLD: V0.0&lt;BR /&gt;PCBA: V0.0&lt;BR /&gt;SERDES Reference Clocks:&lt;BR /&gt;SD1_CLK1 = 100.00MHZ, SD1_CLK2 = 100.00MHZ&lt;BR /&gt;DRAM: 3.9 GiB (DDR4, 64-bit, CL=13, ECC on)&lt;BR /&gt;Using SERDES1 Protocol: 0 (0x0)&lt;BR /&gt;SERDES1[PRTCL] = 0x0 is not valid&lt;BR /&gt;Using SERDES2 Protocol: 34952 (0x8888)&lt;BR /&gt;NAND: 0 MiB&lt;BR /&gt;MMC: FSL_SDHC: 0&lt;BR /&gt;Loading Environment from SPIFlash... jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 9d, 70, 19&lt;BR /&gt;*** Warning - spi_flash_probe_bus_cs() failed, using default environment&lt;/P&gt;&lt;P&gt;EEPROM: Read failed.&lt;BR /&gt;In: serial&lt;BR /&gt;Out: serial&lt;BR /&gt;Err: serial&lt;BR /&gt;SEC0: RNG instantiated&lt;BR /&gt;Net: jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 9d, 70, 19&lt;BR /&gt;SF: probe for ucode failed&lt;BR /&gt;Fman1: Data at 00000000fbc2abd0 is not a firmware&lt;BR /&gt;jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 9d, 70, 19&lt;BR /&gt;SF: probe for ucode failed&lt;BR /&gt;Fman1: Data at 00000000fbc3abe0 is not a firmware&lt;BR /&gt;jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 9d, 70, 19&lt;BR /&gt;SF: probe for ucode failed&lt;BR /&gt;Fman1: Data at 00000000fbc4abf0 is not a firmware&lt;BR /&gt;jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 9d, 70, 19&lt;BR /&gt;SF: probe for ucode failed&lt;BR /&gt;Fman1: Data at 00000000fbc5ac00 is not a firmware&lt;BR /&gt;jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 9d, 70, 19&lt;BR /&gt;SF: probe for ucode failed&lt;BR /&gt;Fman1: Data at 00000000fbc6ac10 is not a firmware&lt;BR /&gt;jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 9d, 70, 19&lt;BR /&gt;SF: probe for ucode failed&lt;BR /&gt;Fman1: Data at 00000000fbc7ac20 is not a firmware&lt;BR /&gt;jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 9d, 70, 19&lt;BR /&gt;SF: probe for ucode failed&lt;BR /&gt;Fman1: Data at 00000000fbc8ac30 is not a firmware&lt;BR /&gt;jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 9d, 70, 19&lt;BR /&gt;SF: probe for ucode failed&lt;BR /&gt;Fman1: Data at 00000000fbc9ac40 is not a firmware&lt;BR /&gt;jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 9d, 70, 19&lt;BR /&gt;SF: probe for ucode failed&lt;BR /&gt;Fman1: Data at 00000000fbcaac50 is not a firmware&lt;BR /&gt;jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 9d, 70, 19&lt;BR /&gt;SF: probe for ucode failed&lt;BR /&gt;Fman1: Data at 00000000fbcbac60 is not a firmware&lt;BR /&gt;jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 9d, 70, 19&lt;BR /&gt;SF: probe for ucode failed&lt;BR /&gt;Fman1: Data at 00000000fbccac70 is not a firmware&lt;BR /&gt;jedec_spi_nor flash@0: unrecognized JEDEC id bytes: 9d, 70, 19&lt;BR /&gt;SF: probe for ucode failed&lt;BR /&gt;Fman1: Data at 00000000fbcdac80 is not a firmware&lt;BR /&gt;No ethernet found.&lt;/P&gt;&lt;P&gt;Hit any key to stop autoboot: 0&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;I was hoping someone could point me in the direction to start...&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 22:16:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-starting-u-boot/m-p/1548518#M11360</guid>
      <dc:creator>Daves_Garage</dc:creator>
      <dc:date>2022-11-03T22:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: LS1046A custom board:  starting u-boot</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-starting-u-boot/m-p/1548716#M11364</link>
      <description>&lt;P&gt;Please unzip the attached fman ucode image and deploy it at&amp;nbsp;0x900000 on the QSPI flash.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 07:02:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-starting-u-boot/m-p/1548716#M11364</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-11-04T07:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: LS1046A custom board:  starting u-boot</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-starting-u-boot/m-p/1549040#M11368</link>
      <description>&lt;P&gt;Thank you for the suggestion.&amp;nbsp; I loaded the firmware at 0x0900000 as you suggested, but the output stays the same, as I expected.&amp;nbsp; This is a later version of what I already am loading through the build process currently.&lt;/P&gt;&lt;P&gt;There are several things going on here&lt;/P&gt;&lt;P&gt;- 1 is the defined NOR flash part - the ID from my NOR flash is different than the one from the dev kit, so it's complaining about the ID.&amp;nbsp; I tried modifying the device tree for the board by changing the name to my part, but this doesn't seem to have an effect.&amp;nbsp; I'm not sure where within the u-boot files I need to change a definition for the NOR flash, or if there even is a driver for my part (ISSI), so any pointers here would be helpful.&lt;/P&gt;&lt;P&gt;- 2 is the ethernet port...Again, I used the RDB configuration as a baseline, since my PHY uses the same RGMII interface.&amp;nbsp; Any pointers here would be very welcome, as adding the firmware did nothing.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 20:35:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-starting-u-boot/m-p/1549040#M11368</guid>
      <dc:creator>Daves_Garage</dc:creator>
      <dc:date>2022-11-04T20:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: LS1046A custom board:  starting u-boot</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-starting-u-boot/m-p/1549555#M11371</link>
      <description>&lt;P&gt;There is problem with RCW configuration, you configured "&lt;SPAN&gt;SERDES1[PRTCL] = 0x0", this was invalid.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer to section "Table 31-1. Supported SerDes1 options" in LS1046ARM to choose a valid value.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 09:26:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-starting-u-boot/m-p/1549555#M11371</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-11-07T09:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: LS1046A custom board:  starting u-boot</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-starting-u-boot/m-p/1550426#M11377</link>
      <description>&lt;P&gt;Hi, and thank you for your response.&amp;nbsp; Are you saying that the SERDES1 value cannot be zero?&amp;nbsp; Will the RGMII interface not work if SERDES1 is disabled?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 16:30:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-starting-u-boot/m-p/1550426#M11377</guid>
      <dc:creator>Daves_Garage</dc:creator>
      <dc:date>2022-11-08T16:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: LS1046A custom board:  starting u-boot</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-starting-u-boot/m-p/1551244#M11383</link>
      <description>&lt;P&gt;Just to be clear, loading the fman microcode at address 0x00900000 &lt;U&gt;&lt;STRONG&gt;DID&lt;/STRONG&gt;&lt;/U&gt; actually make it so that I could see my RGMII interface, so this was a plus.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It didn't help with the ability to connect to the outside world - this turned out to be a missing clock trace on the board, and we're getting that repaired currently (go figure).&lt;/P&gt;&lt;P&gt;And getting the device tree setup and running took a little work as well, but now my NOR flash is recognized and usable... which is nice.&lt;/P&gt;&lt;P&gt;I had to first find the NOR flash part implementation, which was located in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;./drivers/mtd/spi/spi-nor-ids.c&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since my part was an IS25WP256D, the implementation was listed as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ INFO("is25wp256",  0x9d7019, 0, 64 * 1024, 512,
		SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
		SPI_NOR_4B_OPCODES) },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and of course, this was bracketed by the conditional compiler definition:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#ifdef CONFIG_SPI_FLASH_ISSI		/* ISSI */&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, back in my board `defconfig` file (which is in ./configs), I had to be sure to declare the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CONFIG_SPI_FLASH_ISSI=y&lt;/LI-CODE&gt;&lt;P&gt;Then, in my device tree, I added:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;qspi {
	status = "okay";

	is25wp2560: flash@0 {
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;
		compatible = "jedec,spi-nor";
		spi-max-frequency = &amp;lt;50000000&amp;gt;;
		reg = &amp;lt;0&amp;gt;;
	};
};&lt;/LI-CODE&gt;&lt;P&gt;And Ta-Da!&amp;nbsp; NOR flash is working.&lt;/P&gt;&lt;P&gt;It's a little complicated, but pretty cool when things get going.&lt;/P&gt;&lt;P&gt;I'm going to call this one done for now.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 19:03:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-custom-board-starting-u-boot/m-p/1551244#M11383</guid>
      <dc:creator>Daves_Garage</dc:creator>
      <dc:date>2022-11-09T19:03:57Z</dc:date>
    </item>
  </channel>
</rss>

