How to demonstrate DPAA function on the LS1043A-VNP board?
I only refer to this manual: MPC-LS-VNP-RD-UM.pdf to burn the firmware: RDB-EAR0.1-Binaries
All the steps are same as the manual,except the dtb file.
One burn the default dtb file: fsl-ls1043a-rdb-sdk.dtb in emmc block.the kernel boot logs and the rootfs ifconfig result are in this file: ls1043_vnp_without_dpaa_001.txt. And the ifconfig result looks normal.
Another burn the usdpaa dtb file: fsl-ls1043a-rdb-usdpaa.dtb (from LSDK source) in emmc block, and fix the uboot mmcboot string. the kernel boot logs and the rootfs ifconfig result are in this file: ls1043_vnp_usdpaa_001.txt. And the ifconfig result looks abnormal: a lot of net devices like eth0 ... are lost.
已解决! 转到解答。
The dts fsl-ls1043a-rdb-usdpaa.dts is used for DPDK, all Ethernet ports are assigned to the user space. DPDK is an user space packet processing framework.
File fsl-ls1043a-rdb-sdk.dtb is the normal dts file for Linux Kernel.
DPAA is the hardware mechanism to provide hardware acceleration of packet queues. DPAA module cannot be disabled in networking packets processing.
When you use USDPAA dts file fsl-ls1043a-rdb-usdpaa.dtb, all Ethernet ports have been assigned to USDPAA, so you cannot see any Ethernet port in Linux.
In fsl,dpaa device node definition in arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts, if you delete ethernet@0 definition, you will find eth0 is assigned to Linux,
Thanks,
Yiping
Hi, YiPing
Thank for you answer
I could understand why there are no any ethernet port on Linux.
And do you have any idea to build a simple demo about the DPAA function(uboot,kernel configure,Linux rootfs references, and so on),I just want to know how to use it and How does it work.
Thanks
TIC.
DPAA driver is enabled in Linux Kernel by default. You could run any networking related application(eg. ping, iperf).
You could refer to section "8.2 DPAA1-specific Software" in LSDK 20.04 user manual for how DPAA1 works.
Hi YiPing:
Do you mean both the two dtbs:fsl-ls1043a-rdb-sdk.dtb and fsl-ls1043a-rdb-usdpaa.dts
are DPAA driver enabled in Linux Kernel by default?
And How to enable / disable the DPAA function? then we could Compare their effects.
Thanks,
TIC
The dts fsl-ls1043a-rdb-usdpaa.dts is used for DPDK, all Ethernet ports are assigned to the user space. DPDK is an user space packet processing framework.
File fsl-ls1043a-rdb-sdk.dtb is the normal dts file for Linux Kernel.
DPAA is the hardware mechanism to provide hardware acceleration of packet queues. DPAA module cannot be disabled in networking packets processing.