<?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 ls1046ardb. Installing OpenWRT from source code? in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/ls1046ardb-Installing-OpenWRT-from-source-code/m-p/1413020#M10035</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;After building from source, I get .bin firmware files. What are the steps to create an installation USB? In its current form, it requires .img files that I don't get after building from source.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;As part of USB, I have files:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;firmware_ls1046ardb_uboot_qspiboot_1133_5a59.img
ls1046ardb_update.scr
usb_update.itb
config.ini
firmware_ls1046ardb_uboot_sdboot_1133_5a59.img
OpenWRT_1133.img&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 10:01:01 GMT</pubDate>
    <dc:creator>mefer</dc:creator>
    <dc:date>2022-02-14T10:01:01Z</dc:date>
    <item>
      <title>ls1046ardb. Installing OpenWRT from source code?</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1046ardb-Installing-OpenWRT-from-source-code/m-p/1413020#M10035</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;After building from source, I get .bin firmware files. What are the steps to create an installation USB? In its current form, it requires .img files that I don't get after building from source.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;As part of USB, I have files:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;firmware_ls1046ardb_uboot_qspiboot_1133_5a59.img
ls1046ardb_update.scr
usb_update.itb
config.ini
firmware_ls1046ardb_uboot_sdboot_1133_5a59.img
OpenWRT_1133.img&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 10:01:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1046ardb-Installing-OpenWRT-from-source-code/m-p/1413020#M10035</guid>
      <dc:creator>mefer</dc:creator>
      <dc:date>2022-02-14T10:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: ls1046ardb. Installing OpenWRT from source code?</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1046ardb-Installing-OpenWRT-from-source-code/m-p/1414083#M10048</link>
      <description>&lt;P&gt;Please refer to&amp;nbsp;target/linux/layerscape/README in OpenWRT source code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Build&lt;BR /&gt;--------&lt;BR /&gt;Before configuration and build, update and install package feeds.&lt;/P&gt;
&lt;P&gt;$ ./scripts/feeds update -a&lt;BR /&gt;$ ./scripts/feeds install -a&lt;/P&gt;
&lt;P&gt;* make menuconfig&lt;/P&gt;
&lt;P&gt;Target System: "NXP Layerscape"&lt;BR /&gt;Subtarget: (Select subtarget)&lt;BR /&gt;Target Profile: (Select device, or "Multiple devices")&lt;BR /&gt;Target Devices: (Select devices. Available when Target Profile is "Multiple devices")&lt;BR /&gt;Target Images: (Disable "GZip images" if don't want to compress images)&lt;/P&gt;
&lt;P&gt;Note: The first time make menuconfig would create a .config file which&lt;BR /&gt;would include all dependencies for selected target. After that, make&lt;BR /&gt;menuconfig still could be used to modify packages. If want to change&lt;BR /&gt;other target, please remove .config and make menuconfig to select again.&lt;BR /&gt;Otherwise the packages selected in .config would be a mess.&lt;/P&gt;
&lt;P&gt;* make download (or make download -j&amp;lt;n&amp;gt;)&lt;/P&gt;
&lt;P&gt;* make (or make -j&amp;lt;n&amp;gt;)&lt;/P&gt;
&lt;P&gt;* Final firmware/image&lt;/P&gt;
&lt;P&gt;Path: bin/targets/layerscape/&amp;lt;subtarget&amp;gt;/&lt;BR /&gt;Firmware for flash: openwrt-layerscape-&amp;lt;subtarget&amp;gt;-&amp;lt;device&amp;gt;-&amp;lt;rootfs&amp;gt;-firmware.bin&lt;BR /&gt;Image for SD card: openwrt-layerscape-&amp;lt;subtarget&amp;gt;-&amp;lt;device&amp;gt;-&amp;lt;rootfs&amp;gt;-sdcard.img&lt;/P&gt;
&lt;P&gt;Program sdcard.img to SD card&lt;BR /&gt;---------------------------------&lt;BR /&gt;sdcard.img could be programmed to SD card in either u-boot environment&lt;BR /&gt;or linux environment. After programming, configure the board to boot&lt;BR /&gt;from SD card.&lt;/P&gt;
&lt;P&gt;* u-boot environment&lt;/P&gt;
&lt;P&gt;=&amp;gt; tftp a0000000 &amp;lt;image_name&amp;gt;-sdcard.img&lt;BR /&gt;=&amp;gt; mmc write a0000000 0 a0000&lt;/P&gt;
&lt;P&gt;Note: The default sdcard.img size is 320MB. a0000 is the block number for 320MB.&lt;BR /&gt;blk_num = filesize / 512.&lt;/P&gt;
&lt;P&gt;* linux environment&lt;/P&gt;
&lt;P&gt;$ dd if=./&amp;lt;image_name&amp;gt;-sdcard.img of=/dev/mmcblkx&lt;/P&gt;
&lt;P&gt;Note: Need to check the SD card device name to replace "mmcblkx".&lt;/P&gt;
&lt;P&gt;Program firmware.bin to flash&lt;BR /&gt;---------------------------------&lt;/P&gt;
&lt;P&gt;* LS1046ARDB&lt;/P&gt;
&lt;P&gt;Start up from bank1, and program firmware to bank2 with below commands.&lt;BR /&gt;Switch to bank2 to start up OpenWrt.&lt;/P&gt;
&lt;P&gt;=&amp;gt; tftp a0000000 &amp;lt;firmware_name&amp;gt;-firmware.bin&lt;BR /&gt;=&amp;gt; sf probe 0:1&lt;BR /&gt;=&amp;gt; sf erase 0 +$filesize&lt;BR /&gt;=&amp;gt; sf write a0000000 0 $filesize&lt;BR /&gt;=&amp;gt; cpld reset altbank&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 03:53:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1046ardb-Installing-OpenWRT-from-source-code/m-p/1414083#M10048</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-02-16T03:53:31Z</dc:date>
    </item>
  </channel>
</rss>

