-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update vcap syntax #569
Update vcap syntax #569
Conversation
With the latest kernel, the syntax for adding/removing vcap entries has been changed. Therefore update also the scripts to use new syntax. While at this update also the documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi!
This is not working in my setup. When a controller sets up an AR I get the following output:
PLC connect indication. AREP: 1
ANA_RT_VLAN_PCP[1].PCP_MASK = 0x000000ff -> 0x000000ff
ANA_RT_VLAN_PCP[1].VLAN_ID = 0x00000000 -> 0x00000000
ANA_RT_VLAN_PCP[1].VLAN_PCP_ENA = 0x00000001 -> 0x00000001
vcap add 3 is1 10 0 VCAP_KFS_RT RT_VLAN_IDX 1 0x7 L2_MAC 12:A9:2D:16:93:89 ff:ff:ff:ff:ff:ff RT_TYPE 1 0x3 RT_FRMID 32768 0xffff VCAP_AFS_S1_RT RTP_ID 5 FWD_ENA 1 FWD_MASK 0x10
No ACTIONSET found
VCAP[3]: is1
actionset: [6]: VCAP_AFS_S1
No matching ACTIONSET name: VCAP_AFS_S1_RT
From the updated documentation I can see that you have somehow reconfigured the vcam handle or vcam_base_id and also the final argument to vcap is 0 compared to 0x10 in the script.
I built my system with mera master and this p-net branch/pr.
Even if I modify the script and reconfigure vcam_base_id so that I get the output log I see in the updated documentation I can't make it work. - Still "no actionset is found".
Is it possible I need a updated BSP? I used 2023.09 for this test.
I will now test with 2023.09-1.
@@ -304,7 +304,7 @@ log:: | |||
ANA_RT_VLAN_PCP[1].PCP_MASK = 0x00000000 -> 0x000000ff | |||
ANA_RT_VLAN_PCP[1].VLAN_ID = 0x00000000 -> 0x00000000 | |||
ANA_RT_VLAN_PCP[1].VLAN_PCP_ENA = 0x00000000 -> 0x00000001 | |||
vcap add is1 10 3 s1_rt first 0 rt_vlan_idx 1 0x7 l2_mac 12:A9:2D:16:93:83 ff:ff:ff:ff:ff:ff rt_type 1 0x3 rt_frmid 32769 0xffff s1_rt rtp_id 5 fwd_ena 1 fwd_mas0 | |||
vcap add 10000 is1 10 0 VCAP_KFS_RT RT_VLAN_IDX 1 0x7 L2_MAC 12:A9:2D:16:93:83 ff:ff:ff:ff:ff:ff RT_TYPE 1 0x3 RT_FRMID 32769 0xffff VCAP_AFS_S1_RT RTP_ID 5 FWD_ENA 1 FWD_MASK 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not match with the updated script. FWD_MASK is 0x10 in the script.
Additionally the vcam_handle is not what I expect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
I can now build and run image on LAN9662 Rev B
With the latest kernel, the syntax for adding/removing vcap entries has been changed. Therefore update also the scripts to use new syntax. While at this update also the documentation.