DPDK and VPP on ls1043a problem using dpaa1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DPDK and VPP on ls1043a problem using dpaa1

1,973 Views
forxy
Contributor I

After compiling the kernel (version 4.9,get from github), whether boot system using FSL-LS1043A-RDB-USDPAA.dtb or FSL-LS1043A-rDB.dtb, When exec:
fmc -c USDPAa_CONFIG_LS1043.XML-p USDPAa_policy_hash_IPv4_1queueu.XML-a
erro:
FM_Open for fm1 failed,
FM_PCD Disable for fm1 / pcd failed

There is no fm0 or fm1 in /dev/

Thank you very much!

0 Kudos
Reply
3 Replies

1,962 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please boot up the target board with dts file fsl-ls1043a-rdb-usdpaa.dtb for DPDK application..

For Linux Kernel 4.9 release, you could use source code form LSDK 1812 release.

$ git clone https://source.codeaurora.org/external/qoriq/qoriq-components/linux

$ git checkout -b LSDK-18.12-V4.9 LSDK-18.12-V4.9

You could use Linux Kernel configuration file arch/arm64/configs/lsdk.config provided in Linux Kernel source code.

If your problem remains, please provide the console log of your target board.

0 Kudos
Reply

1,907 Views
forxy
Contributor I

full log

 

0 Kudos
Reply

1,908 Views
forxy
Contributor I

Thank you very much!
After using these steps to compile the kernel, an error will still be reported:

[ 2.621659] libphy: Freescale XGMAC MDIO Bus: probed
[ 2.627749] libphy: Freescale XGMAC MDIO Bus: probed
[ 2.633324] libphy: Freescale XGMAC MDIO Bus: probed
[ 2.638472] libphy: Freescale XGMAC MDIO Bus: probed
[ 2.643617] libphy: Freescale XGMAC MDIO Bus: probed
[ 2.648764] libphy: Freescale XGMAC MDIO Bus: probed
[ 2.653909] libphy: Freescale XGMAC MDIO Bus: probed
[ 2.659060] libphy: Freescale XGMAC MDIO Bus: probed
[ 2.664210] libphy: Freescale XGMAC MDIO Bus: probed
[ 2.669728] cpu 0: ! WARNING FM Error [CPU00, drivers/net/ethernet/freescale/sdk_fman/src/wrapper/lnxwrp_fm.c:525 FindFmanMicrocode]: Resource Not Found;
[ 2.683372] cpu 0: firmware node is incomplete
[ 2.687813] cpu 0:
[ 2.689991] cpu 0: ! CRITICAL FM Error [CPU00, drivers/net/ethernet/freescale/sdk_fman/Peripherals/FM/fm.c:3305 FM_Config]: Invalid Value;
[ 2.702328] cpu 0:
[ 2.704424] cpu 0:
[ 2.706601] cpu 0: ! MAJOR FM Error [CPU00, drivers/net/ethernet/freescale/sdk_fman/src/wrapper/lnxwrp_fm.c:1121 InitFmDev]: Invalid Handle;
[ 2.719112] cpu 0: FM
[ 2.721374] cpu 0:
[ 2.723579] fsl-fman: probe of 1a00000.fman failed with error -5
[ 2.729639] Freescale FM module, FMD API version 21.1.0
[ 2.734983] fsl-fman-port: probe of 1a82000.port failed with error -5
[ 2.741438] fsl-fman-port: probe of 1a83000.port failed with error -5
[ 2.747893] fsl-fman-port: probe of 1a84000.port failed with error -5
[ 2.754345] fsl-fman-port: probe of 1a85000.port failed with error -5
[ 2.760797] fsl-fman-port: probe of 1a86000.port failed with error -5
[ 2.767250] fsl-fman-port: probe of 1a87000.port failed with error -5
[ 2.773719] fsl-fman-port: probe of 1a88000.port failed with error -5
[ 2.780172] fsl-fman-port: probe of 1aa8000.port failed with error -5
[ 2.786632] fsl-fman-port: probe of 1a89000.port failed with error -5
[ 2.793085] fsl-fman-port: probe of 1aa9000.port failed with error -5
[ 2.799542] fsl-fman-port: probe of 1a8a000.port failed with error -5
[ 2.805994] fsl-fman-port: probe of 1aaa000.port failed with error -5
[ 2.812452] fsl-fman-port: probe of 1a8b000.port failed with error -5
[ 2.818904] fsl-fman-port: probe of 1aab000.port failed with error -5
[ 2.825362] fsl-fman-port: probe of 1a8c000.port failed with error -5
[ 2.831815] fsl-fman-port: probe of 1aac000.port failed with error -5
[ 2.838271] fsl-fman-port: probe of 1a8d000.port failed with error -5
[ 2.844723] fsl-fman-port: probe of 1aad000.port failed with error -5
[ 2.851179] fsl-fman-port: probe of 1a90000.port failed with error -5
[ 2.857632] fsl-fman-port: probe of 1ab0000.port failed with error -5
[ 2.864108] Freescale FM Ports module
[ 2.867764] fsl_mac: fsl_mac: FSL FMan MAC API based driver
[ 2.873442] fsl_mac 1ae0000.ethernet: fm_bind(/soc/fman@1a00000) failed
[ 2.880076] fsl_mac 1ae2000.ethernet: fm_bind(/soc/fman@1a00000) failed
[ 2.886710] fsl_mac 1ae4000.ethernet: fm_bind(/soc/fman@1a00000) failed
[ 2.893342] fsl_mac 1ae6000.ethernet: fm_bind(/soc/fman@1a00000) failed
[ 2.899976] fsl_mac 1ae8000.ethernet: fm_bind(/soc/fman@1a00000) failed
[ 2.901190] ata1: SATA link down (SStatus 0 SControl 300)
[ 2.912001] fsl_mac 1aea000.ethernet: fm_bind(/soc/fman@1a00000) failed
[ 2.918634] fsl_mac 1af0000.ethernet: fm_bind(/soc/fman@1a00000) failed
[ 2.925277] fsl_dpa: FSL DPAA Ethernet driver
[ 2.929760] fsl_dpa soc:fsl,dpaa:ethernet@0: dev_get_drvdata(1ae0000.ethernet) failed
[ 2.937593] fsl_dpa: probe of soc:fsl,dpaa:ethernet@0 failed with error -22
[ 2.944583] fsl_dpa soc:fsl,dpaa:ethernet@1: dev_get_drvdata(1ae2000.ethernet) failed
[ 2.952414] fsl_dpa: probe of soc:fsl,dpaa:ethernet@1 failed with error -22
[ 2.959406] fsl_dpa soc:fsl,dpaa:ethernet@2: dev_get_drvdata(1ae4000.ethernet) failed
[ 2.967236] fsl_dpa: probe of soc:fsl,dpaa:ethernet@2 failed with error -22
[ 2.974227] fsl_dpa soc:fsl,dpaa:ethernet@3: dev_get_drvdata(1ae6000.ethernet) failed
[ 2.982058] fsl_dpa: probe of soc:fsl,dpaa:ethernet@3 failed with error -22
[ 2.989049] fsl_dpa soc:fsl,dpaa:ethernet@4: dev_get_drvdata(1ae8000.ethernet) failed
[ 2.996878] fsl_dpa: probe of soc:fsl,dpaa:ethernet@4 failed with error -22
[ 3.003870] fsl_dpa soc:fsl,dpaa:ethernet@5: dev_get_drvdata(1aea000.ethernet) failed
[ 3.011699] fsl_dpa: probe of soc:fsl,dpaa:ethernet@5 failed with error -22
[ 3.018693] fsl_dpa soc:fsl,dpaa:ethernet@8: dev_get_drvdata(1af0000.ethernet) failed
[ 3.026523] fsl_dpa: probe of soc:fsl,dpaa:ethernet@8 failed with error -22

in linux shell:

root@ls1043ardb:/userapp/dpaa#fmc -c usdpaa_config_ls1043.xml -p? ? ? ? ? ? sdpaa_policy_hash_ipv4.xml -a
ERR : Invocation of FM_Open for fm0 failed
ERR : Invocation of FM_PCD_Disable for fm0/pcd failed with error code 0x00010028
root@ls1043ardb:/userapp/dpaa# ls /dev/f*
/dev/fsl-usdpaa
/dev/fsl-usdpaa-irq
/dev/fsl_aiop_console
/dev/fsl_mc_console
/dev/full
/dev/fuse
/dev/fd:? 0 1 2 3
root@ls1043ardb:/userapp/dpaa#

NO /dev/fmanX device
Is the problem caused by Fman microcode?

0 Kudos
Reply