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.
I have download the images from https://lsdk.github.io/components.html
boot_LS -> wget https://www.nxp.com/lgfiles/sdk/lsdk2108/boot_LS_arm64_lts_5.10.tgz
firmware image -> wget https://www.nxp.com/lgfiles/sdk/lsdk2108/firmware_ls1046ardb_sdboot.img
Rootfs -> wget https://www.nxp.com/lgfiles/sdk/lsdk2108/rootfs_lsdk2108_ubuntu_main_arm64.tgz
I have depolyed the image's in SD card through flex-installer:
$ 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
I have booted the board using SD card
u-boot :
=> setenv ethprime FM1@DTSEC6
=> setenv ethact FM1@DTSEC6
=> saveenv
=> boot
linux user-space :
user@localhost:~$ sudo insmod /usr/local/dpdk/rte_kni.ko kthread_mode=multiple
[sudo] password for user:
user@localhost:~$ sudo rmmod rte_kni
user@localhost:~$ ls /dev/kni
/dev/kni
user@localhost:~$ dmesg | grep kni
[ 45.396511] rte_kni: loading out-of-tree module taints kernel.
user@localhost:~$
user@localhost:~$ uname -av
Linux localhost 5.10.35 #1 SMP PREEMPT Fri Aug 27 22:03:58 CST 2021 aarch64 aarch64 aarch64 GNU/Linux
Now KNI loaded successfully with default build taken from internet
Custom Linux build from Flex-builder:
I have followed the steps in this document https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev21.08.pdf -> 9.2.3.1 Build DPDK using Flexbuild
$ flex-builder -c linux:custom -a arm64
1. [ Deivce Driver -> Network device support -> IEEE 802.1AE MAC-level encryption (MACsec) (ENABLED) ]
2. [ Cryptographic API -> Hardware crypto devices -> Freescale CAAM-multicore platform driver backend (ENABLED) ]
3. [ Cryptographic API -> Hardware crypto devices -> Freescale CAAM job ring driver backend -> Test caam rng (ENABLED) ]
4. [ Deivce Driver -> Real Time Clock -> NXP PCF2127 (ENABLED) ]
$ flex-builder -c linux -a arm64
$ flex-builder -c cryptodev_linux -a arm64
$ flex-builder -c openssl -a arm64
$ flex-builder -i mkrfs -r ubuntu:main
$ flex-builder -i mkboot
$ flex-builder -c apps -a arm64
$ flex-builder -i merge-component -a arm64
$ flex-builder -i packrfs
$ flex-builder -i mkfw -m ls1046ardb
$ cd build/images
$ flex-installer -i pf -d /dev/sdx (partition and format the target storage device)
$ 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
I have booted the board using SD card
u-boot :
=> setenv ethprime FM1@DTSEC6
=> setenv ethact FM1@DTSEC6
=> saveenv
=> boot
linux user-space :
user@localhost:~$ sudo insmod /usr/local/dpdk/rte_kni.ko kthread_mode=multiple
insmod: ERROR: could not insert module /usr/local/dpdk/rte_kni.ko: Invalid parameters
user@localhost:~$ ls /dev/kni
ls: cannot access '/dev/kni': No such file or directory
user@localhost:~$ sudo rmmod rte_kni
rmmod: ERROR: Module rte_kni is not currently loaded
user@localhost:~$ uname -av
Linux localhost 5.10.35-dirty #14 SMP PREEMPT Thu Sep 8 13:39:50 IST 2022 aarch64 aarch64 aarch64 GNU/Linux
After kernel configuration rte_kni was not loaded and shows "Invalid parameters"
Solved! Go to Solution.