<?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: Building u-boot for a custom imx93 based board in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1875672#M224214</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220898"&gt;@abt&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;What was the missing step?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2024 15:04:19 GMT</pubDate>
    <dc:creator>eik3</dc:creator>
    <dc:date>2024-05-27T15:04:19Z</dc:date>
    <item>
      <title>Building u-boot for a custom imx93 based board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1865689#M223718</link>
      <description>&lt;P&gt;I have updated&amp;nbsp;&lt;STRONG&gt;lpddr4x_timing.c&lt;/STRONG&gt; and &lt;STRONG&gt;spl.c&lt;/STRONG&gt;&amp;nbsp;in the existing&amp;nbsp;&lt;STRONG&gt;board/freescale/imx93_evk&lt;/STRONG&gt;&amp;nbsp;u-boot source folder to reflect custom DRAM and PMIC integrations. I was able to build the flash binary file and successfully deploy it on the eMMC storage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any guidance for creating a custom board configuration for u-boot?&amp;nbsp;&lt;BR /&gt;I have been trying to create a separate configuration for the custom board, in the source tree, using the&amp;nbsp; steps outlined below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cp -R board/freescale/imx93_evk board/freescale/imx93_som
cp include/configs/imx93_evk.h include/configs/imx93_som.h
cp arch/arm/dts/imx93-11x11-evk.dts arch/arm/dts/imx93-11x11-som.dts
cp arch/arm/dts/imx93-11x11-evk-u-boot.dtsi arch/arm/dts/imx93-11x11-som-u-boot.dtsi&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;Updated &lt;STRONG&gt;board/freescale/imx93_som/Kconfig&lt;/STRONG&gt;&amp;nbsp;with this content:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if TARGET_IMX93_11X11_SOM 

config SYS_BOARD
        default "imx93_som"

config SYS_VENDOR
        default "freescale"

config SYS_CONFIG_NAME
        default "imx93_som"
choice
        prompt "Select DDR Type"
        default IMX93_EVK_LPDDR4X if TARGET_IMX93_11X11_SOM 
config IMX93_EVK_LPDDR4X
        bool "Using LPDDR4X Timing and PMIC voltage"
        select IMX9_LPDDR4X
        help
          Select the LPDDR4X timing and 0.6V VDDQ

config IMX93_EVK_LPDDR4
        bool "Using LPDDR4 Timing and PMIC voltage"
        select IMX9_LPDDR4X
        help
          Select the LPDDR4 timing and 1.1V VDDQ

endchoice

endif&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;Updated&amp;nbsp;&lt;STRONG&gt;arch/arm/mach-imx/imx9/Kconfig&lt;/STRONG&gt; with the following addition:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
config TARGET_IMX93_11X11_SOM
        bool "imx93_11x11_som"
        select OF_BOARD_FIXUP
        select IMX93
...
source "board/freescale/imx93_som/Kconfig"
...&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;Updated&amp;nbsp;&lt;STRONG&gt;arch/arm/dts/Makefile&lt;/STRONG&gt; and added an entry for a custom dts file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dtb-$(CONFIG_ARCH_IMX9) += \
        imx93-11x11-evk.dtb \
        imx93-11x11-som.dtb \
        imx93-14x14-evk.dtb \
        imx93-9x9-qsb.dtb \
        imx93-9x9-qsb-ontat-wvga-panel.dtb \
        imx91p-11x11-evk.dtb \
        imx91p-9x9-qsb-ontat-wvga-panel.dtb \
        imx91p-9x9-qsb-spinand.dtb&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;Updated .config file with the following changes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;29,30c29,30
&amp;lt; CONFIG_SYS_BOARD="imx93_evk"
&amp;lt; CONFIG_SYS_CONFIG_NAME="imx93_evk"
---
&amp;gt; CONFIG_SYS_BOARD="imx93_som"
&amp;gt; CONFIG_SYS_CONFIG_NAME="imx93_som"
195c195
&amp;lt; CONFIG_DEFAULT_DEVICE_TREE="imx93-11x11-evk"
---
&amp;gt; CONFIG_DEFAULT_DEVICE_TREE="imx93-11x11-som"
202c202
&amp;lt; CONFIG_TARGET_IMX93_11X11_EVK=y
---
&amp;gt; # CONFIG_TARGET_IMX93_11X11_EVK is not set
206,207c206
&amp;lt; CONFIG_IMX93_EVK_LPDDR4X=y
&amp;lt; # CONFIG_IMX93_EVK_LPDDR4 is not set
---
&amp;gt; CONFIG_TARGET_IMX93_11X11_SOM=y
431c430
&amp;lt; CONFIG_DEFAULT_FDT_FILE="imx93-11x11-evk.dtb"
---
&amp;gt; CONFIG_DEFAULT_FDT_FILE="imx93-11x11-som.dtb"
936c935
&amp;lt; CONFIG_OF_LIST="imx93-11x11-evk"
---
&amp;gt; CONFIG_OF_LIST="imx93-11x11-som"
938c937
&amp;lt; CONFIG_SPL_OF_LIST="imx93-11x11-evk"
---
&amp;gt; CONFIG_SPL_OF_LIST="imx93-11x11-som"&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;However, I get the following error when trying to make a build:&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;&lt;EM&gt;AR spl/fs/built-in.o&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LDS spl/u-boot-spl.lds&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LD spl/u-boot-spl&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;aarch64-poky-linux-ld.bfd: board/freescale/imx93_som/spl.o: in function `spl_dram_init':&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/home/user/controls/Uboot/user-som/source/board/freescale/imx93_som/spl.c:76: undefined reference to `dram_timing'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;aarch64-poky-linux-ld.bfd: /home/user/controls/Uboot/user-som/source/board/freescale/imx93_som/spl.c:76: undefined reference to `dram_timing'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;make[2]: *** [/home/user/controls/Uboot/user-som/source/scripts/Makefile.spl:528: spl/u-boot-spl] Error 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;make[1]: *** [/home/user/controls/Uboot/user-som/source/Makefile:2044: spl/u-boot-spl] Error 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;make[1]: Leaving directory '/home/user/controls/Uboot/user-som/artifacts'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;make: *** [Makefile:177: sub-make] Error 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;make: Leaving directory '/home/user/controls/Uboot/user-som/source'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Did I miss anything?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any input appreciated, thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 21:10:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1865689#M223718</guid>
      <dc:creator>abt</dc:creator>
      <dc:date>2024-05-14T21:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Building u-boot for a custom imx93 based board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1869947#M224023</link>
      <description>&lt;P&gt;My problem has been solved. I was missing a step.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 18:33:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1869947#M224023</guid>
      <dc:creator>abt</dc:creator>
      <dc:date>2024-05-21T18:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Building u-boot for a custom imx93 based board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1875672#M224214</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220898"&gt;@abt&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;What was the missing step?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 15:04:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1875672#M224214</guid>
      <dc:creator>eik3</dc:creator>
      <dc:date>2024-05-27T15:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Building u-boot for a custom imx93 based board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1928970#M227169</link>
      <description>Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220898"&gt;@abt&lt;/a&gt;,&lt;BR /&gt;I'm currently stuck at the same problem, do you recall what your missing step was?</description>
      <pubDate>Fri, 09 Aug 2024 08:37:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1928970#M227169</guid>
      <dc:creator>dpog</dc:creator>
      <dc:date>2024-08-09T08:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Building u-boot for a custom imx93 based board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1929116#M227173</link>
      <description>&lt;P&gt;Here is the missing step in red:&lt;BR /&gt;&lt;BR /&gt;cp -R board/freescale/imx93_evk/ board/freescale/imx93_som&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;mv board/freescale/imx93_som/imx93_evk.c board/freescale/imx93_som/imx93_som.c&lt;/FONT&gt;&lt;BR /&gt;cp include/configs/imx93_evk.h include/configs/imx93_som.h&lt;BR /&gt;cp arch/arm/dts/imx93-11x11-evk.dts arch/arm/dts/imx93-11x11-som.dts&lt;BR /&gt;cp arch/arm/dts/imx93-11x11-evk-u-boot.dtsi arch/arm/dts/imx93-11x11-som-u-boot.dtsi&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I forgot to also mention these changes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;diff --git a/board/freescale/imx93_som/Makefile b/board/freescale/imx93_som/Makefile
index b6b978dd..4710b954 100644
--- a/board/freescale/imx93_som/Makefile
+++ b/board/freescale/imx93_som/Makefile
@@ -4,7 +4,7 @@
 # SPDX-License-Identifier:      GPL-2.0+
 #
 
-obj-y += imx93_evk.o
+obj-y += imx93_som.o
 
 ifdef CONFIG_SPL_BUILD
 obj-y += spl.o&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 13:09:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1929116#M227173</guid>
      <dc:creator>abt</dc:creator>
      <dc:date>2024-08-09T13:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Building u-boot for a custom imx93 based board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1964291#M229100</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220898"&gt;@abt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently stuck at the same error you got :&lt;BR /&gt;&lt;BR /&gt;aarch64-poky-linux-ld.bfd: board/freescale/imx93_som/spl.o: in function `spl_dram_init':&lt;BR /&gt;/home/user/uboot-imx-2023.04-A1/board/freescale/imx93_som/spl.c:78:(.text.spl_dram_init+0xc): undefined reference to `dram_timing'&lt;BR /&gt;aarch64-poky-linux-ld.bfd: /home/user/uboot-imx-2023.04-A1/board/freescale/imx93_som/spl.c:78:(.text.spl_dram_init+0x10): undefined reference to `dram_timing'&lt;BR /&gt;make[1]: *** [scripts/Makefile.spl:528: spl/u-boot-spl] Error 1&lt;/P&gt;&lt;P&gt;I have added the missing step in red and also updated the Makefile as you have mentionned before but still stuck at the same error.&lt;BR /&gt;Is there any other missing step&amp;nbsp; for resolving this error please ?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 08:00:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1964291#M229100</guid>
      <dc:creator>Victory777</dc:creator>
      <dc:date>2024-09-30T08:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Building u-boot for a custom imx93 based board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1965768#M229219</link>
      <description>&lt;P&gt;I would try updating some additional variables in .config file as shown below:&lt;/P&gt;&lt;P&gt;CONFIG_DEFAULT_DEVICE_TREE="imx93-som"&lt;BR /&gt;CONFIG_OF_LIST="imx93-som"&lt;BR /&gt;CONFIG_SPL_OF_LIST="imx93-som"&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 15:54:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-u-boot-for-a-custom-imx93-based-board/m-p/1965768#M229219</guid>
      <dc:creator>abt</dc:creator>
      <dc:date>2024-10-02T15:54:00Z</dc:date>
    </item>
  </channel>
</rss>

