Skip to content
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

Merged
merged 1 commit into from
Nov 10, 2023
Merged

Update vcap syntax #569

merged 1 commit into from
Nov 10, 2023

Conversation

HoratiuVultur
Copy link

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.

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.
@olbjo olbjo self-assigned this Nov 8, 2023
Copy link
Collaborator

@olbjo olbjo left a 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
Copy link
Collaborator

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.

Copy link
Collaborator

@olbjo olbjo left a 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

@olbjo olbjo requested a review from hefloryd November 10, 2023 08:43
@hefloryd hefloryd merged commit ea5e554 into rtlabs-com:master Nov 10, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants