<?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 LS1043: root file system on Sata in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1043-root-file-system-on-Sata/m-p/1084054#M6388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When booting from USB or booting from the SDcard, there is a boot script which executes:&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp; ls1043ardb_boot.scr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's easy enough to extract the contents of this file to a .txt file, and then re-make the .scr using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mkimage -A arm64 -O linux -T script -C none -a 0 -e 0 -n "boot.scr" -d ls1043ardb_boot.txt ls1043ardb_boot.scr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done this, so that I can change the 'root=' parameter.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a SATA drive in the PCIE slot I'd like to use as the root file system.&amp;nbsp;&amp;nbsp;&amp;nbsp; I change the 'root=' parm to:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root=/dev/sda1&lt;/P&gt;&lt;P&gt;Where I have the standard root file system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works just fine!&amp;nbsp;&amp;nbsp;&amp;nbsp; Note that booting from usb is sort of a 2-step process where you 1st have to boot up from either Nor-flash or the SDcard, and then "run bootcmd_usb0".&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, here's the MILLION DOLLAR QUESTION:&lt;/P&gt;&lt;P&gt;&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; How can I boot from Nor-flash ( both u-boot and kernel ), and have root file system as SATA ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Side question might be:&amp;nbsp;&amp;nbsp;&amp;nbsp; How to get a custom-built kernel in NOR-Flash on the LS1043ardb??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems simple enough, and I'm pretty adept at figuring these things out.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So far, no go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2020 01:01:15 GMT</pubDate>
    <dc:creator>john_reed</dc:creator>
    <dc:date>2020-08-12T01:01:15Z</dc:date>
    <item>
      <title>LS1043: root file system on Sata</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1043-root-file-system-on-Sata/m-p/1084054#M6388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When booting from USB or booting from the SDcard, there is a boot script which executes:&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp; ls1043ardb_boot.scr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's easy enough to extract the contents of this file to a .txt file, and then re-make the .scr using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mkimage -A arm64 -O linux -T script -C none -a 0 -e 0 -n "boot.scr" -d ls1043ardb_boot.txt ls1043ardb_boot.scr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done this, so that I can change the 'root=' parameter.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a SATA drive in the PCIE slot I'd like to use as the root file system.&amp;nbsp;&amp;nbsp;&amp;nbsp; I change the 'root=' parm to:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root=/dev/sda1&lt;/P&gt;&lt;P&gt;Where I have the standard root file system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works just fine!&amp;nbsp;&amp;nbsp;&amp;nbsp; Note that booting from usb is sort of a 2-step process where you 1st have to boot up from either Nor-flash or the SDcard, and then "run bootcmd_usb0".&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, here's the MILLION DOLLAR QUESTION:&lt;/P&gt;&lt;P&gt;&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; How can I boot from Nor-flash ( both u-boot and kernel ), and have root file system as SATA ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Side question might be:&amp;nbsp;&amp;nbsp;&amp;nbsp; How to get a custom-built kernel in NOR-Flash on the LS1043ardb??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems simple enough, and I'm pretty adept at figuring these things out.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So far, no go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 01:01:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1043-root-file-system-on-Sata/m-p/1084054#M6388</guid>
      <dc:creator>john_reed</dc:creator>
      <dc:date>2020-08-12T01:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: LS1043: root file system on Sata</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1043-root-file-system-on-Sata/m-p/1084055#M6389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could deploy images to the alternate bank at the current bank.&lt;/P&gt;&lt;P&gt;=&amp;gt;tftp 0xa0000000&amp;nbsp;bl2_nor.pbl&lt;/P&gt;&lt;P&gt;=&amp;gt;erase&amp;nbsp;0x64000000 +$filesize&lt;/P&gt;&lt;P&gt;=&amp;gt;cp.b&amp;nbsp;&lt;SPAN&gt;0xa0000000&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;0x64000000&amp;nbsp; $filesize&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;tftp 0xa0000000 fip.bin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;erase 0x64100000 +$filesize&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;cp.b 0xa0000000 0x64100000 $filesize&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;tftp 0xa0000000 Image&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;erase 0x65000000+$filesize&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;cp.b&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0xa0000000 &lt;SPAN&gt;0x65000000&lt;/SPAN&gt; $filesize&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;tftp 0xa0000000&amp;nbsp;fsl-ls1043a-rdb-sdk.dtb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;erase&lt;SPAN&gt; 0x64F00000&lt;/SPAN&gt;+$filesize&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;cp.b&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0xa0000000&lt;SPAN&gt; &lt;SPAN&gt;0x64F00000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;$filesize&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On your PC, in flex-builder build environment please execute the following command to download&amp;nbsp;rootfs_lsdk2004_ubuntu_main_arm64.tgz.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$ flex-installer -i download -m ls1043ardb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please boot up your target board with lsdk_linux_arm64_LS_tiny.itb, use "fdisk /dev/sda" to create one SATA partition, use "mke2fs /dev/sda1" to format SATA partition, and copy&amp;nbsp;rootfs_lsdk2004_ubuntu_main_arm64.tgz to&amp;nbsp;/dev/sda1 and decompress it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please configure bootargs as the following.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;cpld reset altbank&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rw rootwait earlycon=uart8250,mmio,0x21c0500"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&amp;gt;booti&amp;nbsp;0x61000000 -&amp;nbsp;0x60F00000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 07:33:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1043-root-file-system-on-Sata/m-p/1084055#M6389</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2020-08-12T07:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: LS1043: root file system on Sata</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1043-root-file-system-on-Sata/m-p/1084056#M6390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fip.bin should be fip_uboot.bin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This mostly got me going in the right direction.&amp;nbsp;&amp;nbsp;&amp;nbsp; The final 'booti' command was failing with FDT_ERR_&amp;lt;SOMETHING&amp;gt; and "could not create node" or something to that effect.&amp;nbsp;&amp;nbsp;&amp;nbsp; (Sorry for the inaccurate error msgs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I fiddled around awhile, and settled on basically the same booti sequence as the one from the sdcard.&amp;nbsp;&amp;nbsp;&amp;nbsp; Then I just copied kernel and dtb to the correct location.&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is my booti command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( note I hardcoded in the length of the images, which is a potential shortcoming )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bootnor=cp.b 0x61000000 0x81000000 0x2300000; cp.b 0x60F00000 0x90000000 0x8000; booti 0x81000000 - 0x90000000;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 22:26:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1043-root-file-system-on-Sata/m-p/1084056#M6390</guid>
      <dc:creator>john_reed</dc:creator>
      <dc:date>2020-08-13T22:26:21Z</dc:date>
    </item>
  </channel>
</rss>

