T1040D4RDB DPAA FMan Coarse Classifier

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

T1040D4RDB DPAA FMan Coarse Classifier

776 Views
Cole_B
Contributor I

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 Kudos
Reply
9 Replies

750 Views
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 Kudos
Reply

729 Views
Cole_B
Contributor I

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 Kudos
Reply

713 Views
yipingwang
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

701 Views
Cole_B
Contributor I

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

0 Kudos
Reply

678 Views
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 Kudos
Reply

654 Views
Cole_B
Contributor I

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 Kudos
Reply

637 Views
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 Kudos
Reply

608 Views
Cole_B
Contributor I

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 Kudos
Reply

543 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please create a new thread to address your new problem.

0 Kudos
Reply