<?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: Access QSPI &amp;amp; eMMC uboot env variables in linux userspace LS1046ARDB in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Access-QSPI-amp-eMMC-uboot-env-variables-in-linux-userspace/m-p/1538421#M11287</link>
    <description>&lt;P&gt;According to configs/ls1046ardb_tfa_defconfig, the parameters are still as the following.&lt;/P&gt;
&lt;P&gt;CONFIG_ENV_SIZE=0x2000&lt;BR /&gt;CONFIG_ENV_OFFSET=0x500000&lt;/P&gt;
&lt;P&gt;DPDK can work normally with&amp;nbsp;&lt;SPAN&gt;hugepages=2&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 08:27:04 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2022-10-17T08:27:04Z</dc:date>
    <item>
      <title>Access QSPI &amp; eMMC uboot env variables in linux userspace LS1046ARDB</title>
      <link>https://community.nxp.com/t5/Layerscape/Access-QSPI-amp-eMMC-uboot-env-variables-in-linux-userspace/m-p/1536788#M11281</link>
      <description>&lt;P&gt;I am working with Custom-LS1046ARDB Evaluation Board to develop a network based application. I have started my project with Flex-builder(flexbuild_lsdk2108), Flex-installer(version: 1.13.2108) and Codewarrior IDE.&lt;/P&gt;&lt;P&gt;I have download the images from &lt;A href="https://lsdk.github.io/components.html" target="_blank" rel="noopener"&gt;https://lsdk.github.io/components.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;boot_LS -&amp;gt; wget &lt;A href="https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz" target="_blank" rel="noopener"&gt;https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;firmware image -&amp;gt; wget &lt;A href="https://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img" target="_blank" rel="noopener"&gt;https://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Rootfs -&amp;gt; wget &lt;A href="https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz" target="_blank" rel="noopener"&gt;https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have depolyed the image's in SD card through flex-installer:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ flex-installer -i pf -d /dev/sdx (partition and format the target storage device)

$ sudo flex-installer -b boot_LS_arm64_lts_5.10.tgz -r rootfs_lsdk2108_ubuntu_main_arm64.tgz -f firmware_ls1046ardb_sdboot.img -d /dev/sdx&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Uboot log from Custom-LS1046ARDB Board :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NOTICE: 4 GB DDR4, 64-bit, CL=15, ECC on&lt;BR /&gt;NOTICE: BL2: v2.4(release):LSDK-21.08-0-g340b20bcb-dirty&lt;BR /&gt;NOTICE: BL2: Built : 14:29:23, Oct 6 2022&lt;BR /&gt;NOTICE: BL2: Booting BL31&lt;BR /&gt;NOTICE: BL31: v2.4(release):LSDK-21.08-0-g340b20bcb-dirty&lt;BR /&gt;NOTICE: BL31: Built : 14:29:23, Oct 6 2022&lt;BR /&gt;NOTICE: Welcome to ls1046ardb BL31 Phase&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;U-Boot 2021.04-dirty (Oct 06 2022 - 14:29:11 +0530)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SoC: LS1046AE Rev1.0 (0x87070010)&lt;/STRONG&gt;&lt;BR /&gt;Clock Configuration:&lt;BR /&gt;CPU0(A72):1600 MHz CPU1(A72):1600 MHz CPU2(A72):1600 MHz&lt;BR /&gt;CPU3(A72):1600 MHz&lt;BR /&gt;Bus: 600 MHz DDR: 2100 MT/s FMAN: 700 MHz&lt;BR /&gt;Reset Configuration Word (RCW):&lt;BR /&gt;00000000: 0c150010 0e000000 00000000 00000000&lt;BR /&gt;00000010: 11330000 40300012 40025000 c1000000&lt;BR /&gt;00000020: 00000000 00000000 00000000 00028800&lt;BR /&gt;00000030: 20024500 00063100 00000096 00000001&lt;BR /&gt;Model: LS1046A RDB Board&lt;BR /&gt;&lt;STRONG&gt;Board: Network-Encryptor, Rev: Unknown, boot from QSPI&lt;/STRONG&gt;&lt;BR /&gt;SD1_CLK1 = 100.00MHZ, SD1_CLK2 = 156.25MHZ&lt;BR /&gt;&lt;STRONG&gt;DRAM: 3.9 GiB (DDR4, 64-bit, CL=15, ECC on)&lt;/STRONG&gt;&lt;BR /&gt;Using SERDES1 Protocol: 4403 (0x1133)&lt;BR /&gt;Using SERDES2 Protocol: 0 (0x0)&lt;BR /&gt;SERDES2[PRTCL] = 0x0 is not valid&lt;BR /&gt;&lt;STRONG&gt;NAND: 0 MiB&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MMC: FSL_SDHC: 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Loading Environment from SPIFlash... SF: Detected mt25qu512a with page size 256 Bytes, erase size 64 KiB, total 64 MiB&lt;/STRONG&gt;&lt;BR /&gt;OK&lt;BR /&gt;EEPROM: NXID v1&lt;BR /&gt;In: serial&lt;BR /&gt;Out: serial&lt;BR /&gt;Err: serial&lt;BR /&gt;SEC0: RNG instantiated&lt;BR /&gt;Net:&lt;BR /&gt;RGMII1 addr: 1 , 0 SF: Detected mt25qu512a with page size 256 Bytes, erase size 64 KiB, total 64 MiB&lt;BR /&gt;Fman1: Uploading microcode version 106.4.18&lt;BR /&gt;Could not get PHY for FM_TGEC_MDIO: addr 1&lt;BR /&gt;Failed to connect&lt;BR /&gt;Could not get PHY for FM_TGEC_MDIO: addr 0&lt;BR /&gt;Failed to connect&lt;BR /&gt;FM1@DTSEC3, FM1@DTSEC4, FM1@DTSEC5, FM1@DTSEC6, FM1@TGEC1 [PRIME], FM1@TGEC2&lt;BR /&gt;Hit any key to stop autoboot: 0&lt;BR /&gt;=&amp;gt; boot&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;user@localhost:~$ ll /dev/mtd*&lt;/STRONG&gt;&lt;BR /&gt;l&lt;STRONG&gt;s: cannot access '/dev/mtd*': No such file or directory&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;user@localhost:~$ ll /dev/mmcblk*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 0 Jul 22 00:30 /dev/mmcblk0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 32 Jul 22 00:30 /dev/mmcblk0boot0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 64 Jul 22 00:30 /dev/mmcblk0boot1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 1 Jul 22 00:30 /dev/mmcblk0p1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 2 Jul 22 00:30 /dev/mmcblk0p2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 3 Jul 22 00:30 /dev/mmcblk0p3&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;brw-rw---- 1 root disk 179, 4 Jul 22 00:30 /dev/mmcblk0p4&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;crw------- 1 root root 506, 0 Jul 22 00:30 /dev/mmcblk0rpmb&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;user@localhost:~$ cat /proc/mtd&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;dev: size erasesize name&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;user@localhost:~$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I already posted question about "&lt;A href="https://community.nxp.com/t5/Layerscape/Access-U-boot-env-variables-in-LS1046ARDB-Linux-user-space/m-p/1524767#M11197" target="_self"&gt;Access U-boot env variables in LS1046ARDB Linux user space&lt;/A&gt;&amp;nbsp;" for SD card in NXP Community and also get a solution from NXP TechSupport&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have questions about fw_env in LS1046ARDB :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Previously i booted uboot through SD card so ENV_ CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_OFFSET=0x500000 used for reading/writing uboot envirnoment variables in the linux userspace. Can you guide us to know about the CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET values for uboot environment in QSPI and eMMC blocks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;And Also I have question :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In LS1046ARDB Evaluation Board have 16GB-RAM &lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;setenv othbootargs default_hugepagesz=1024m hugepagesz=1024m hugepages=4 isolcpus=1-3 bportals=s0 qportals=s0 iommu.passthrough=1&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;In Custom-LS1046ARDB Board have 4GB-RAM&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;setenv othbootargs default_hugepagesz=1024m hugepagesz=1024m hugepages=2 isolcpus=1-3 bportals=s0 qportals=s0 iommu.passthrough=1&lt;/LI-CODE&gt;&lt;P&gt;I'm using hugepage for running DPDK application, is hugepages=2 is enough because lsdkug_2108 doc mentioned hugepages=4 by default.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 05:23:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Access-QSPI-amp-eMMC-uboot-env-variables-in-linux-userspace/m-p/1536788#M11281</guid>
      <dc:creator>sheikfaaruk</dc:creator>
      <dc:date>2022-10-13T05:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Access QSPI &amp; eMMC uboot env variables in linux userspace LS1046ARDB</title>
      <link>https://community.nxp.com/t5/Layerscape/Access-QSPI-amp-eMMC-uboot-env-variables-in-linux-userspace/m-p/1538421#M11287</link>
      <description>&lt;P&gt;According to configs/ls1046ardb_tfa_defconfig, the parameters are still as the following.&lt;/P&gt;
&lt;P&gt;CONFIG_ENV_SIZE=0x2000&lt;BR /&gt;CONFIG_ENV_OFFSET=0x500000&lt;/P&gt;
&lt;P&gt;DPDK can work normally with&amp;nbsp;&lt;SPAN&gt;hugepages=2&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 08:27:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Access-QSPI-amp-eMMC-uboot-env-variables-in-linux-userspace/m-p/1538421#M11287</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-10-17T08:27:04Z</dc:date>
    </item>
  </channel>
</rss>

