<?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: RTE_KNI load failed in LS1046ARDB in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/RTE-KNI-load-failed-in-LS1046ARDB/m-p/1533794#M11251</link>
    <description>&lt;P&gt;&lt;A title="rte_kni.ko dynamic kernel module failed to load in lsdk2108 from flex-builder" href="https://community.nxp.com/t5/Layerscape/rte-kni-ko-dynamic-kernel-module-failed-to-load-in-lsdk2108-from/m-p/1533720#M11249" target="_self"&gt;https://community.nxp.com/t5/Layerscape/rte-kni-ko-dynamic-kernel-module-failed-to-load-in-lsdk2108-from/m-p/1533720#M11249&lt;/A&gt;&amp;nbsp;&lt;A title="RTE_KNI.KO load failed in LS1046A" href="https://community.nxp.com/t5/Layerscape/rte-kni-ko-dynamic-kernel-module-failed-to-load-in-lsdk2108-from/m-p/1533720#M11249" target="_self"&gt;rte_kni.ko dynamic kernel module failed to load in lsdk2108 from flex-builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 09:00:06 GMT</pubDate>
    <dc:creator>sheikfaaruk</dc:creator>
    <dc:date>2022-10-07T09:00:06Z</dc:date>
    <item>
      <title>RTE_KNI load failed in LS1046ARDB</title>
      <link>https://community.nxp.com/t5/Layerscape/RTE-KNI-load-failed-in-LS1046ARDB/m-p/1521663#M11155</link>
      <description>&lt;P&gt;I am working with 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;P&gt;$ flex-installer -i pf -d /dev/sdx (partition and format the target storage device)&lt;/P&gt;&lt;P&gt;$ 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;/P&gt;&lt;P&gt;I have booted the board using SD card&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;u-boot :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; setenv ethprime FM1@DTSEC6&lt;BR /&gt;=&amp;gt; setenv ethact FM1@DTSEC6&lt;BR /&gt;=&amp;gt; saveenv&lt;BR /&gt;=&amp;gt; boot&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;linux user-space :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;user@localhost:~$ sudo insmod /usr/local/dpdk/rte_kni.ko kthread_mode=multiple&lt;BR /&gt;[sudo] password for user:&lt;BR /&gt;user@localhost:~$ sudo rmmod rte_kni&lt;BR /&gt;user@localhost:~$ ls /dev/kni&lt;BR /&gt;/dev/kni&lt;BR /&gt;user@localhost:~$ dmesg | grep kni&lt;BR /&gt;[ 45.396511] rte_kni: loading out-of-tree module taints kernel.&lt;BR /&gt;user@localhost:~$&lt;/P&gt;&lt;P&gt;user@localhost:~$ uname -av&lt;BR /&gt;Linux localhost 5.10.35 #1 SMP PREEMPT Fri Aug 27 22:03:58 CST 2021 aarch64 aarch64 aarch64 GNU/Linux&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now KNI loaded successfully with default build taken from internet&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Custom Linux build from Flex-builder:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have followed the steps in this document &lt;A href="https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev21.08.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev21.08.pdf&lt;/A&gt; -&amp;gt; 9.2.3.1 Build DPDK using Flexbuild&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$ flex-builder -c linux:custom -a arm64&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. [ Deivce Driver -&amp;gt; Network device support -&amp;gt; IEEE 802.1AE MAC-level encryption (MACsec) (&lt;STRONG&gt;ENABLED&lt;/STRONG&gt;) ]&lt;BR /&gt;2. [ Cryptographic API -&amp;gt; Hardware crypto devices -&amp;gt; Freescale CAAM-multicore platform driver backend (&lt;STRONG&gt;ENABLED&lt;/STRONG&gt;) ]&lt;BR /&gt;3. [ Cryptographic API -&amp;gt; Hardware crypto devices -&amp;gt; Freescale CAAM job ring driver backend -&amp;gt; Test caam rng (&lt;STRONG&gt;ENABLED&lt;/STRONG&gt;) ]&lt;BR /&gt;4. [ Deivce Driver -&amp;gt; Real Time Clock -&amp;gt; NXP PCF2127 (&lt;STRONG&gt;ENABLED&lt;/STRONG&gt;) ]&lt;/P&gt;&lt;P&gt;$ flex-builder -c linux -a arm64&lt;/P&gt;&lt;P&gt;$ flex-builder -c cryptodev_linux -a arm64&lt;/P&gt;&lt;P&gt;$ flex-builder -c openssl -a arm64&lt;/P&gt;&lt;P&gt;$ flex-builder -i mkrfs -r ubuntu:main&lt;/P&gt;&lt;P&gt;$ flex-builder -i mkboot&lt;/P&gt;&lt;P&gt;$ flex-builder -c apps -a arm64&lt;/P&gt;&lt;P&gt;$ flex-builder -i merge-component -a arm64&lt;/P&gt;&lt;P&gt;$ flex-builder -i packrfs&lt;/P&gt;&lt;P&gt;$ flex-builder -i mkfw -m ls1046ardb&lt;/P&gt;&lt;P&gt;$ cd build/images&lt;/P&gt;&lt;P&gt;$ flex-installer -i pf -d /dev/sdx (partition and format the target storage device)&lt;/P&gt;&lt;P&gt;$ sudo flex-installer -b boot_LS_arm64_lts_5.10_202209121352.tgz -r rootfs_lsdk2108_ubuntu_main_arm64_202209121422.tgz -f firmware_ls1046ardb_sdboot.img -d /dev/sdx&lt;/P&gt;&lt;P&gt;I have booted the board using SD card&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;u-boot :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; setenv ethprime FM1@DTSEC6&lt;BR /&gt;=&amp;gt; setenv ethact FM1@DTSEC6&lt;BR /&gt;=&amp;gt; saveenv&lt;BR /&gt;=&amp;gt; boot&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;linux user-space :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;user@localhost:~$ sudo insmod /usr/local/dpdk/rte_kni.ko kthread_mode=multiple&lt;BR /&gt;insmod: ERROR: could not insert module /usr/local/dpdk/rte_kni.ko: Invalid parameters&lt;/P&gt;&lt;P&gt;user@localhost:~$ ls /dev/kni&lt;BR /&gt;ls: cannot access '/dev/kni': No such file or directory&lt;/P&gt;&lt;P&gt;user@localhost:~$ sudo rmmod rte_kni&lt;BR /&gt;rmmod: ERROR: Module rte_kni is not currently loaded&lt;/P&gt;&lt;P&gt;user@localhost:~$ uname -av&lt;BR /&gt;Linux localhost 5.10.35-dirty #14 SMP PREEMPT Thu Sep 8 13:39:50 IST 2022 aarch64 aarch64 aarch64 GNU/Linux&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;After kernel configuration rte_kni was not loaded and shows "Invalid parameters"&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 05:43:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/RTE-KNI-load-failed-in-LS1046ARDB/m-p/1521663#M11155</guid>
      <dc:creator>sheikfaaruk</dc:creator>
      <dc:date>2022-09-14T05:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: RTE_KNI load failed in LS1046ARDB</title>
      <link>https://community.nxp.com/t5/Layerscape/RTE-KNI-load-failed-in-LS1046ARDB/m-p/1533794#M11251</link>
      <description>&lt;P&gt;&lt;A title="rte_kni.ko dynamic kernel module failed to load in lsdk2108 from flex-builder" href="https://community.nxp.com/t5/Layerscape/rte-kni-ko-dynamic-kernel-module-failed-to-load-in-lsdk2108-from/m-p/1533720#M11249" target="_self"&gt;https://community.nxp.com/t5/Layerscape/rte-kni-ko-dynamic-kernel-module-failed-to-load-in-lsdk2108-from/m-p/1533720#M11249&lt;/A&gt;&amp;nbsp;&lt;A title="RTE_KNI.KO load failed in LS1046A" href="https://community.nxp.com/t5/Layerscape/rte-kni-ko-dynamic-kernel-module-failed-to-load-in-lsdk2108-from/m-p/1533720#M11249" target="_self"&gt;rte_kni.ko dynamic kernel module failed to load in lsdk2108 from flex-builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 09:00:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/RTE-KNI-load-failed-in-LS1046ARDB/m-p/1533794#M11251</guid>
      <dc:creator>sheikfaaruk</dc:creator>
      <dc:date>2022-10-07T09:00:06Z</dc:date>
    </item>
  </channel>
</rss>

