<?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: How to use Flex-builder in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/How-to-use-Flex-builder/m-p/1346693#M8989</link>
    <description>&lt;P&gt;Probably I am wrong to write the .img file into the SD card. Is there an alternative way to write the SD card, or to verify that it was written correctly?&lt;/P&gt;</description>
    <pubDate>Mon, 27 Sep 2021 09:44:18 GMT</pubDate>
    <dc:creator>notshure</dc:creator>
    <dc:date>2021-09-27T09:44:18Z</dc:date>
    <item>
      <title>How to use Flex-builder</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-use-Flex-builder/m-p/1345901#M8979</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;I would like to create the file "&lt;EM&gt;&lt;STRONG&gt;firmware_ls1043ardb_sdboot.img&lt;/STRONG&gt;&lt;/EM&gt;" which must be loaded on the SD card using a RCW modified by me.&lt;/P&gt;&lt;P&gt;Flex-builder works with a lot of files (RCW, U-boot,...), different for each board and compiles them all together based on the type of command launched.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;The command that allows me to compile all the files for a specific board and get the ".img " is the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;"&lt;EM&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;flex-builer -i mkfw -m ls1043ardb -b sd&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But I want to change RCW, change the working frequency and disable core (core 1, core 2, core 3 ) of the processor.&lt;/P&gt;&lt;P&gt;From what I seem to have understood every time I run the command, it goes to check the file&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;lt;flexbuild&amp;gt; / configs / board / &amp;lt;machine&amp;gt; / manifest&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;An excerpt from the first part of manifest:&lt;/P&gt;&lt;P&gt;machine="ls1043ardb"&lt;/P&gt;&lt;P&gt;# default RCW&lt;BR /&gt;rcw_nor="firmware/rcw/ls1043ardb/RR_FQPP_1455/rcw_1600.bin"&lt;BR /&gt;rcw_nor_sec="firmware/rcw/ls1043ardb/RR_FQPP_1455/rcw_1600_sben.bin"&lt;BR /&gt;&lt;STRONG&gt;rcw_sd="firmware/rcw/ls1043ardb/RR_FQPP_1455/rcw_1600_sdboot.bin"&lt;/STRONG&gt;&lt;BR /&gt;rcw_sd_sec="firmware/rcw/ls1043ardb/RR_FQPP_1455/rcw_1600_sdboot_sben.bin"&lt;BR /&gt;rcw_nand="firmware/rcw/ls1043ardb/RR_FQPP_1455/rcw_1600_nandboot.bin"&lt;BR /&gt;rcw_nand_sec="firmware/rcw/ls1043ardb/RR_FQPP_1455/rcw_1600_nandboot_sben.bin"&lt;/P&gt;&lt;P&gt;uefi_nor="firmware/uefi/ls1043ardb/LS1043ARDB_EFI_NORBOOT.fd"&lt;BR /&gt;device_tree="linux/kernel/arm64/LS/fsl-ls1043a-rdb-sdk.dtb"&lt;/P&gt;&lt;P&gt;BOOT_TYPE="sd nor nand"&lt;BR /&gt;BOOTLOADER_TYPE="uboot uefi"&lt;/P&gt;&lt;P&gt;UBOOT_CONFIG="ls1043ardb_tfa_defconfig ls1043ardb_tfa_SECURE_BOOT_defconfig"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# RCW/PBL+BL2 image&lt;BR /&gt;COMPOSITE_IMG1_FILE_sd="firmware/atf/ls1043ardb/bl2_sd.pbl"&lt;BR /&gt;COMPOSITE_IMG1_FILE_sd_sec="firmware/atf/ls1043ardb/bl2_sd_sec.pbl"&lt;BR /&gt;COMPOSITE_IMG1_FILE_nor="firmware/atf/ls1043ardb/bl2_nor.pbl"&lt;BR /&gt;COMPOSITE_IMG1_FILE_nor_sec="firmware/atf/ls1043ardb/bl2_nor_sec.pbl"&lt;BR /&gt;COMPOSITE_IMG1_FILE_nand="firmware/atf/ls1043ardb/bl2_nand.pbl"&lt;/P&gt;&lt;P&gt;# BL33 fip image&lt;BR /&gt;COMPOSITE_IMG2_FILE="firmware/atf/ls1043ardb/fip_uboot.bin"&lt;BR /&gt;COMPOSITE_IMG2_FILE_sec="firmware/atf/ls1043ardb/fip_uboot_sec.bin"&lt;BR /&gt;COMPOSITE_IMG2_FILE_uefi="firmware/atf/ls1043ardb/fip_uefi.bin"&lt;/P&gt;&lt;P&gt;# bootloader UEFI environment variable&lt;BR /&gt;COMPOSITE_IMG3_FILE_uefi="firmware/uefi/ls1043ardb/LS1043ARDBNV_EFI_NORBOOT.fd"&lt;/P&gt;&lt;P&gt;I have to change this line&amp;nbsp;&lt;STRONG&gt;rcw_sd="firmware/rcw/ls1043ardb/RR_FQPP_1455/rcw_1600_sdboot.bin"&lt;/STRONG&gt; to &lt;STRONG&gt;rcw_sd="firmware/rcw/ls1043ardb/RR_FQPP_1455/rcw_1200_sdboot.bin"&amp;nbsp; &lt;/STRONG&gt;to run the board at 1.2GHz.&lt;/P&gt;&lt;P&gt;Not only that, inside the file &lt;STRONG&gt;rcw_1200_sdboot.bin &lt;/STRONG&gt;I have to go write:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;.pbi&lt;BR /&gt;write 0x01ee0094, 0x0000000e&lt;BR /&gt;.ebd&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;to disable cores.&lt;/P&gt;&lt;P&gt;the file &lt;STRONG&gt;rcw_1200_sdboot.bin &lt;/STRONG&gt;is in this path:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;flexbuild_lsdk2108/components/firmware/rcw/ls1043ardb/RR_FQPP_1455/rcw_1200_sdboot.bin&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Once the RCW file has been modified, rerun the command&amp;nbsp;&lt;SPAN class="Y2IQFc"&gt;&lt;EM&gt;&lt;STRONG&gt;$ &lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;flex-builer -i mkfw -m ls1043ardb -b sd&lt;/STRONG&gt;&lt;/EM&gt; and wait for the .img file to be generated.&lt;/P&gt;&lt;P&gt;Finally I insert the SD card formatted in Fat16 format&lt;/P&gt;&lt;P&gt;and I run the following command to load the file on the sd card:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;sudo dd if=firmware_lx2160ardb_rev2_uboot_sdboot.img of=/dev/sdb bs=512 seek=8&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are the steps described up to here correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 13:23:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-use-Flex-builder/m-p/1345901#M8979</guid>
      <dc:creator>notshure</dc:creator>
      <dc:date>2021-09-24T13:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Flex-builder</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-use-Flex-builder/m-p/1346375#M8984</link>
      <description>&lt;P&gt;These steps described by you are correct.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 01:59:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-use-Flex-builder/m-p/1346375#M8984</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-09-27T01:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Flex-builder</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-use-Flex-builder/m-p/1346689#M8988</link>
      <description>&lt;P&gt;Hi, thanks for your reply.&lt;/P&gt;&lt;P&gt;Although the procedure seems right, I am having problems.&lt;/P&gt;&lt;P&gt;I get nothing at all (via USB console), I don't see U-Boot.&lt;/P&gt;&lt;P&gt;I'm doing the steps in the most standard way without editing any files. I want to get an .img file capable of starting u-boot on my ls1043a platform.&lt;/P&gt;&lt;P&gt;So I download&lt;STRONG&gt; flex-builder&lt;/STRONG&gt; from your site:&lt;STRONG&gt;&lt;A href="http://www.nxp.com/lsdk" target="_blank"&gt;www.nxp.com/lsdk&lt;/A&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I perform the following steps:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;$ tar xvzf flexbuild_&amp;lt;version&amp;gt;.tgz&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$ cd flexbuild_&amp;lt;verison&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$ source setup.env&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$ flex-builder -h&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After that I run the command:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;$ flex-builder -i mkfw -m ls1043ardb -b sd&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Which after a while gives me the following outputs:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;firmware_ls1043ardb_sdboot.img&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;firmware_ls1043ardb_sdboot_secure.img&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;linux_LS_arm64_signature.itb&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lsdk2108_yocto_tiny_LS_arm64.itb&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rootfs_lsdk2108_yocto_tiny_arm64.cpio.gz&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm only interested in: &lt;STRONG&gt;firmware_ls1043ardb_sdboot.img&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm going to save the .img file in SD using the following command:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;sudo dd if=firmware_ls1043ardb_sdboot.img of=/dev/sdb1 bs=512 seek=8&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I use a USB adapter to insert SD card into my PC. I am running Ubuntu 20.04 through a virtual machine.&lt;/P&gt;&lt;P&gt;The writing seems to have been successful.&lt;/P&gt;&lt;P&gt;But when I try to boot from SD (set de DIP switches for SD boot), I don't see anything on the console.&lt;/P&gt;&lt;P&gt;I don't see Uboot starting.&lt;/P&gt;&lt;P&gt;I cannot understand where I am wrong. Having not changed anything, uboot should start without problems.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 09:41:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-use-Flex-builder/m-p/1346689#M8988</guid>
      <dc:creator>notshure</dc:creator>
      <dc:date>2021-09-27T09:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Flex-builder</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-use-Flex-builder/m-p/1346693#M8989</link>
      <description>&lt;P&gt;Probably I am wrong to write the .img file into the SD card. Is there an alternative way to write the SD card, or to verify that it was written correctly?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 09:44:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-use-Flex-builder/m-p/1346693#M8989</guid>
      <dc:creator>notshure</dc:creator>
      <dc:date>2021-09-27T09:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Flex-builder</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-use-Flex-builder/m-p/1346747#M8992</link>
      <description>&lt;P&gt;ok i solved the problem&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 11:04:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-use-Flex-builder/m-p/1346747#M8992</guid>
      <dc:creator>notshure</dc:creator>
      <dc:date>2021-09-27T11:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Flex-builder</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-use-Flex-builder/m-p/1604988#M11918</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could you please describe how you solved it? I faced with the same issue.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 05:45:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-use-Flex-builder/m-p/1604988#M11918</guid>
      <dc:creator>artem_shimko</dc:creator>
      <dc:date>2023-02-24T05:45:52Z</dc:date>
    </item>
  </channel>
</rss>

