T1040D4RDB DPAA FMan Coarse Classifier

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

T1040D4RDB DPAA FMan Coarse Classifier

2,214件の閲覧回数
Cole_B
Contributor II

Hi, 



I am having trouble using the DPAA FMan Coarse Classifier on the T1040D4RDB. As far as I can tell, I have fully set up this software on the board. When booting, the microcode is loaded correctly, the clock is selected and turned on, and I can print in memacEndRxHandle each time a packet comes in. However, I want to add a Coarse Classifier to only let in packets if they match a given MAC address. I followed the guidelines in vxbQoriQFman.c. I can see the fmanCcPortConfig and fmanCcConfigAdd go through, but it doesn't filter out any packets. I also tried to get the FMC tool working but I couldn't get the library versions to line up. Is there any demo code that I can use to filter out packets or are there any suggestions for how I can get this working?

Thanks

0 件の賞賛
返信
9 返答(返信)

2,188件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

You could implement your purpose through creating PCD policies to configure DPAA hardware(FMAN) to parse, classify and distribute packets from the expected MAC addresses to a series of frame queues, where processors dequeue packets.You could use fmc tool to write XML PCD policies to FMAN hardware.I created a sample for your based on the existing example provided in Linux SDK.If you can run Linux SDK images on your target board, you could use this sample to do verification, I have attached the policy and configuration files to you.Please refer to the following content in policy file policy_ipv4.xml, please modify the data filed in mac_dest_clsf1 classification as your expected MAC address. In my testing environment, the source MAC address is 00:e0:0c:00:71:00.

 

0 件の賞賛
返信

2,167件の閲覧回数
Cole_B
Contributor II

Can you provide the code outputted by the FMC tool using that policy file? I can't seem to get the tool to compile.

0 件の賞賛
返信

2,151件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the attached fmc source code and Yocto recipe to compile fmc.

0 件の賞賛
返信

2,139件の閲覧回数
Cole_B
Contributor II

Can you share what versions of the necessary libraries you are using? (xmllib2, tclap, fmd)

0 件の賞賛
返信

2,116件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

libxml2:2.9.2

fmlib:

SRC_URI = "git://git.freescale.com/ppc/sdk/fmlib.git;branch=sdk-v2.0.x"

SRCREV = "43fa98fdbf0c697167e415c3f060896d5b482791"

 

Tclap:1.2.1

0 件の賞賛
返信

2,092件の閲覧回数
Cole_B
Contributor II

Which layer are you using to get the t1040qds? I don't see it in the meta-freescale layer's available machines. Also, I don't seem to be able to pull from git.freescale.com. Is there some extra setup that I need to do the access that code?

0 件の賞賛
返信

2,075件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

I have attached the source code from git.freescale.com to you, which is extracted from QorIQ SDK 2.0 1703 release.

I suggest you use QorIQ SDK 2.0 1703 for T1040D4RDB.

Please search for "QorIQ Linux SDK 2.0-1703" from www.nxp.com, and download the software.

0 件の賞賛
返信

2,046件の閲覧回数
Cole_B
Contributor II

I successfully compiled the FMC tool on an external device and now I’m trying to boot Linux onto the T1040. I extracted the t1040 uImage and device tree from the QorIQ Linux SDK iso. When I load these onto the T1040 I am getting the error “No filesystem could mount root.” I tried using each of the listed partitions in the bootcmd under root=, but none worked. Then I tried booting from an nfs mount, which it said it couldn’t find. I could access this nfs mount from another machine so I know that it wasn’t the issue. Finally, I tried using an external USB, but it could not select that either. How can I fix this?

0 件の賞賛
返信

1,981件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please create a new thread to address your new problem.

0 件の賞賛
返信