<?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: BSP Porting Guide -Errors while compiling uboot-sh in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/BSP-Porting-Guide-Errors-while-compiling-uboot-sh/m-p/444150#M68364</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;after trying your suggestions also, we have got the following errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arch/arm/imx-common/built-in.o: In function `arch_preboot_os':&lt;/P&gt;&lt;P&gt;/home/srinivas/fsl-release-bsp/build/tmp/work/wandboard_dual-poky-linux-gnueabi/u-boot-imx/2014.04-r0/git/arch/arm/imx-common/cpu.c:203: undefined reference to `ldo_mode_set'&lt;/P&gt;&lt;P&gt;/home/srinivas/fsl-release-bsp/build/tmp/sysroots/x86_64-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.bfd: BFD (GNU Binutils) 2.24 assertion fail /home/srinivas/fsl-release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/binutils-cross/2.24-r0/binutils-2.24/bfd/elf32-arm.c:7696&lt;/P&gt;&lt;P&gt;/home/srinivas/fsl-release-bsp/build/tmp/sysroots/x86_64-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.bfd: error: required section '.rel.plt' not found in the linker script&lt;/P&gt;&lt;P&gt;/home/srinivas/fsl-release-bsp/build/tmp/sysroots/x86_64-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.bfd: final link failed: Invalid operation&lt;/P&gt;&lt;P&gt;make: *** [u-boot] Error 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jul 2015 05:41:22 GMT</pubDate>
    <dc:creator>srinivasaporam</dc:creator>
    <dc:date>2015-07-03T05:41:22Z</dc:date>
    <item>
      <title>BSP Porting Guide -Errors while compiling uboot-sh</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/BSP-Porting-Guide-Errors-while-compiling-uboot-sh/m-p/444148#M68362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have got a customized board which has been designed based Wandboard -dual.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While porting the BSP we are follwoinf the Yocto project's "BSP porting guide.pdf" according to which we have done the following steps:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. We came to know that working directory for uboot is:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/home/srinivas/fsl-community-bsp/build/tmp/work/wandboard_dual-poky-linux-gnueabi/u-boot-fslc/v2013.10-r0/git&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. We have prepared the code for uboot by&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.1 Copy the board directory, as shown below:&lt;/P&gt;&lt;P&gt;$cp -R board/wandboard board/wandboard_dual_lpddr2&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.2 copy the existing configuration file (.h file) for the custom board&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$cp include/configs/wandboard.h include/configs/wandboard_dual_lpddr2.h&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.3 Create one entry in &amp;lt;UBOOT_DIR&amp;gt;/boards.cfg for the new -based configuration.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have created following entry :&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#3D3D3D&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#505050&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#F2F2F2&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;6&amp;quot;}"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;Active&amp;nbsp; arm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD style=""&gt;armv7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD style=""&gt;mx6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD style=""&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD style=""&gt;wandboard&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD style=""&gt;wandboard_dual_lpddr2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="6" style=""&gt;wandboard:IMX_CONFIG=board/wandboard_dual_lpddr2/wandboard_dual_lpddr2.cfg,MX6DL,DDR_MB=1024&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.4 Renamed the file /board/wandboard_dual_lpddr2/wandboard.c to /board/wandboard_dual_lpddr2/wandboard_dual_lpddr2.c&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.5 Changed the line&lt;/P&gt;&lt;P&gt;COBJS:= wandboard.o&amp;nbsp;&amp;nbsp;&amp;nbsp; to&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;obj-y := wandboard_dual_lpddr2.o&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Created a shell script under &amp;lt;UBOOT_DIR&amp;gt; named build_u-boot.sh.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file contents are as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#!/bin/bash&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;export ARCH=arm&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;export CROSS_COMPILE=/home/srinivas/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;make distclean;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;make wandboard_dual_lpddr2_config&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;make&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. Compiled U-Boot by using $bash ./build_u-boot.sh which is giving so many errors&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;the errors are as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/home/srinivas/fsl-community-bsp/build/tmp/work/wandboard_dual-poky-linux-gnueabi/u-boot-fslc/v2013.10-r0/git/include/configs/wandboard_dual_lpddr2.h:115:13: error: expected '}' before 'CONFIG_DEFAULT_FDT_FILE'&lt;/P&gt;&lt;P&gt;&amp;nbsp; "fdt_file="CONFIG_DEFAULT_FDT_FILE"\0" \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;/home/srinivas/fsl-community-bsp/build/tmp/work/wandboard_dual-poky-linux-gnueabi/u-boot-fslc/v2013.10-r0/git/include/env_default.h:122:2: note: in expansion of macro 'CONFIG_EXTRA_ENV_SETTINGS'&lt;/P&gt;&lt;P&gt;&amp;nbsp; CONFIG_EXTRA_ENV_SETTINGS&lt;/P&gt;&lt;P&gt;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;make[1]: *** [env_common.o] Error 1&lt;/P&gt;&lt;P&gt;make[1]: Leaving directory `/home/srinivas/fsl-community-bsp/build/tmp/work/wandboard_dual-poky-linux-gnueabi/u-boot-fslc/v2013.10-r0/git/common'&lt;/P&gt;&lt;P&gt;make: *** [common/libcommon.o] Error 2&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So after going through errors i have modified the /git/include/configs/wandboard_dual_lpddr2.h where &lt;STRONG&gt;"fdt_file="CONFIG_DEFAULT_FDT_FILE"\0" \ &lt;/STRONG&gt;is been changed to &lt;STRONG&gt;"fdt_file=CONFIG_DEFAULT_FDT_FILE\0" \ &lt;/STRONG&gt; the same way same variable is changed in /git/board/wandboard_dual_lpddr2/wandboard_dual_lpddr2.cfg&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now when i run the command for compiling uboot: &lt;STRONG&gt;$bash ./build_u-boot.sh &lt;/STRONG&gt;following errors are coming&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/home/srinivas/fsl-community-bsp/build/tmp/work/wandboard_dual-poky-linux-gnueabi/u-boot-fslc/v2013.10-r0/git/include/asm/arch/mx6-pins.h:18:2: error: #error "Please select cpu"&lt;/P&gt;&lt;P&gt; #error "Please select cpu"&lt;/P&gt;&lt;P&gt;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;make[1]: *** No rule to make target `.depend', needed by `libwandboard.o'.&amp;nbsp; Stop.&lt;/P&gt;&lt;P&gt;make[1]: Leaving directory `/home/srinivas/fsl-community-bsp/build/tmp/work/wandboard_dual-poky-linux-gnueabi/u-boot-fslc/v2013.10-r0/git/board/wandboard'&lt;/P&gt;&lt;P&gt;make: *** [board/wandboard/libwandboard.o] Error 2&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is problem. Why uboot is not compiling. after compilation only, we can customize it. how to resolve this issue.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336660"&gt;wandboard_dual_lpddr2.cfg.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336660"&gt;wandboard_dual_lpddr2.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336660"&gt;mx6-pins.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 11:44:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/BSP-Porting-Guide-Errors-while-compiling-uboot-sh/m-p/444148#M68362</guid>
      <dc:creator>srinivasaporam</dc:creator>
      <dc:date>2015-06-30T11:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: BSP Porting Guide -Errors while compiling uboot-sh</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/BSP-Porting-Guide-Errors-while-compiling-uboot-sh/m-p/444149#M68363</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;Please try the next configuration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Active&amp;nbsp; arm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;armv7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;mx6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;wandboard_dual_lpddr2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;wandboard_dual_lpddr2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="6"&gt;wandboard:IMX_CONFIG=board/wandboard_dual_lpddr2/wandboard_dual_lpddr2.cfg,MX6DL,DDR_MB=1024&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 21:21:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/BSP-Porting-Guide-Errors-while-compiling-uboot-sh/m-p/444149#M68363</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2015-07-02T21:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: BSP Porting Guide -Errors while compiling uboot-sh</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/BSP-Porting-Guide-Errors-while-compiling-uboot-sh/m-p/444150#M68364</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;after trying your suggestions also, we have got the following errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arch/arm/imx-common/built-in.o: In function `arch_preboot_os':&lt;/P&gt;&lt;P&gt;/home/srinivas/fsl-release-bsp/build/tmp/work/wandboard_dual-poky-linux-gnueabi/u-boot-imx/2014.04-r0/git/arch/arm/imx-common/cpu.c:203: undefined reference to `ldo_mode_set'&lt;/P&gt;&lt;P&gt;/home/srinivas/fsl-release-bsp/build/tmp/sysroots/x86_64-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.bfd: BFD (GNU Binutils) 2.24 assertion fail /home/srinivas/fsl-release-bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/binutils-cross/2.24-r0/binutils-2.24/bfd/elf32-arm.c:7696&lt;/P&gt;&lt;P&gt;/home/srinivas/fsl-release-bsp/build/tmp/sysroots/x86_64-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.bfd: error: required section '.rel.plt' not found in the linker script&lt;/P&gt;&lt;P&gt;/home/srinivas/fsl-release-bsp/build/tmp/sysroots/x86_64-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.bfd: final link failed: Invalid operation&lt;/P&gt;&lt;P&gt;make: *** [u-boot] Error 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 05:41:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/BSP-Porting-Guide-Errors-while-compiling-uboot-sh/m-p/444150#M68364</guid>
      <dc:creator>srinivasaporam</dc:creator>
      <dc:date>2015-07-03T05:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: BSP Porting Guide -Errors while compiling uboot-sh</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/BSP-Porting-Guide-Errors-while-compiling-uboot-sh/m-p/444151#M68365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try to build the original target reference first?&lt;/P&gt;&lt;P&gt;Please try that first and make sure do not moidfy the functionality of the code when porting U-boot first.&amp;nbsp; Just make sure that you are including the correct .h files in the .c ones. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Alejnadro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 21:42:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/BSP-Porting-Guide-Errors-while-compiling-uboot-sh/m-p/444151#M68365</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2015-07-03T21:42:17Z</dc:date>
    </item>
  </channel>
</rss>

