<?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 U-Boot Configurations - Select Boot Device in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/U-Boot-Configurations-Select-Boot-Device/m-p/488300#M78196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have multiple u-boot configurations for a custom MX6DL device. I am trying to build two different versions of u-boot.imx based on different boot devices, an SD or SPINOR device. Is there any way to differentiate the two u-boot.imx files. Each configuration produces the same u-boot-imx6dlc420-2104.04-r0.imx binary.In the manufacturing tool file directory, the Freescale devices have different u-boot file names according to the boot device. Is this something done automatically or do I create these files using the u-boot file created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the following two options in my boards.cfg file - mx6dlc420 and mx6dlc420_spinor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Active&amp;nbsp; arm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; armv7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mx6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; freescale&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mx6dlc420&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mx6dlc420&lt;/P&gt;&lt;P&gt;mx6dlc420:IMX_CONFIG=board/freescale/mx6dlc420/mx6dl.cfg,MX6DL,DEFAULT_FDT_FILE="imx6dl-c420.dtb",DDR_MB=1024&lt;/P&gt;&lt;P&gt;Active&amp;nbsp; arm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; armv7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mx6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; freescale&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mx6dlc420&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mx6dlc420_spinor&lt;/P&gt;&lt;P&gt;mx6dlc420:IMX_CONFIG=board/freescale/mx6dlc420/mx6dl.cfg,MX6DL,DEFAULT_FDT_FILE="imx6dl-c420.dtb",DDR_MB=1024,SYS_BOOT_SPINOR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my machine file, I have the following options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;UBOOT_CONFIG ??= "sd"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;UBOOT_CONFIG[sd] = "mx6dlc420_config,sdcard"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;UBOOT_CONFIG[spinor] = "mx6dlc420_spinor_config"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;UBOOT_CONFIG[mfgtool] = "mx6dlc420_config"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have built with the following selections which both work and build a u-boot file with the same name.&lt;/P&gt;&lt;P&gt;UBOOT_CONFIG ??= "sd"&lt;/P&gt;&lt;P&gt;UBOOT_CONFIG ??= "spinor"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following selections did not build because of an error stating only one configuration is allowed.&lt;/P&gt;&lt;P&gt;UBOOT_CONFIG ??= "spinor sd"&lt;/P&gt;&lt;P&gt;UBOOT_CONFIG ??= "sd spinor"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get the builds to produce different output files???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2016 17:46:25 GMT</pubDate>
    <dc:creator>PaulDeMetrotion</dc:creator>
    <dc:date>2016-02-04T17:46:25Z</dc:date>
    <item>
      <title>U-Boot Configurations - Select Boot Device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-Boot-Configurations-Select-Boot-Device/m-p/488300#M78196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have multiple u-boot configurations for a custom MX6DL device. I am trying to build two different versions of u-boot.imx based on different boot devices, an SD or SPINOR device. Is there any way to differentiate the two u-boot.imx files. Each configuration produces the same u-boot-imx6dlc420-2104.04-r0.imx binary.In the manufacturing tool file directory, the Freescale devices have different u-boot file names according to the boot device. Is this something done automatically or do I create these files using the u-boot file created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the following two options in my boards.cfg file - mx6dlc420 and mx6dlc420_spinor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Active&amp;nbsp; arm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; armv7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mx6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; freescale&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mx6dlc420&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mx6dlc420&lt;/P&gt;&lt;P&gt;mx6dlc420:IMX_CONFIG=board/freescale/mx6dlc420/mx6dl.cfg,MX6DL,DEFAULT_FDT_FILE="imx6dl-c420.dtb",DDR_MB=1024&lt;/P&gt;&lt;P&gt;Active&amp;nbsp; arm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; armv7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mx6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; freescale&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mx6dlc420&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mx6dlc420_spinor&lt;/P&gt;&lt;P&gt;mx6dlc420:IMX_CONFIG=board/freescale/mx6dlc420/mx6dl.cfg,MX6DL,DEFAULT_FDT_FILE="imx6dl-c420.dtb",DDR_MB=1024,SYS_BOOT_SPINOR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my machine file, I have the following options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;UBOOT_CONFIG ??= "sd"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;UBOOT_CONFIG[sd] = "mx6dlc420_config,sdcard"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;UBOOT_CONFIG[spinor] = "mx6dlc420_spinor_config"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;UBOOT_CONFIG[mfgtool] = "mx6dlc420_config"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have built with the following selections which both work and build a u-boot file with the same name.&lt;/P&gt;&lt;P&gt;UBOOT_CONFIG ??= "sd"&lt;/P&gt;&lt;P&gt;UBOOT_CONFIG ??= "spinor"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following selections did not build because of an error stating only one configuration is allowed.&lt;/P&gt;&lt;P&gt;UBOOT_CONFIG ??= "spinor sd"&lt;/P&gt;&lt;P&gt;UBOOT_CONFIG ??= "sd spinor"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get the builds to produce different output files???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 17:46:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-Boot-Configurations-Select-Boot-Device/m-p/488300#M78196</guid>
      <dc:creator>PaulDeMetrotion</dc:creator>
      <dc:date>2016-02-04T17:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: U-Boot Configurations - Select Boot Device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-Boot-Configurations-Select-Boot-Device/m-p/488301#M78197</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;I do not know if that is possible in Yocto. As I see it you have to change it manually or if you are compiling U-boot with cross-compiler and not using bitbake, you can create shell scritpt that uses as parameter the configuration you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your script may look like the below one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;export ARCH=arm&lt;/P&gt;&lt;P&gt;export CROSS_COMPILE=/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-&lt;/P&gt;&lt;P&gt;make distclean;&lt;/P&gt;&lt;P&gt;make $1&lt;/P&gt;&lt;P&gt;make&lt;/P&gt;&lt;P&gt;mv u-boot.imx u-boot-$1.imx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you have to call the srcipt with the configuration name as parameter.&lt;/P&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>Mon, 08 Feb 2016 22:05:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-Boot-Configurations-Select-Boot-Device/m-p/488301#M78197</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2016-02-08T22:05:52Z</dc:date>
    </item>
  </channel>
</rss>

