Software for White Rabbit PTP Core issueshttps://ohwr.org/project/wrpc-sw/issues2023-03-08T00:09:35Zhttps://ohwr.org/project/wrpc-sw/issues/60include wr-cores version in the ver command2023-03-08T00:09:35ZAdam Wujekinclude wr-cores version in the ver commandwr-cores version is probably not available to lm32/RISC-Vhttps://ohwr.org/project/wrpc-sw/issues/53Send VLAN ID via LLDP2021-09-24T01:10:07ZAdam WujekSend VLAN ID via LLDPSend VLAN ID in LLDP frame. Example reported by 3Com switch:
```
[lldpcli] # show neighbors details
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface: eth0, via: LLDP, RID: 1, Time: 0 day, 03:45:43
Chassis:
ChassisID: mac xx:xx:xx:xx:xx:xx
SysName: 3Com
SysDescr: 3Com Baseline Switch
Capability: Bridge, on
Capability: Router, on
Port:
PortID: ifname GigabitEthernet1/0/3
PortDescr: GigabitEthernet1/0/3 Interface
TTL: 120
VLAN: 10 pvid: yes VLAN 0010
PPVID: supported: yes, enabled: no
-------------------------------------------------------------------------------
```Adam WujekAdam Wujekhttps://ohwr.org/project/wrpc-sw/issues/51Add advanced PPSI parameters to Kconfig and add a command to wrpc to configur...2021-09-24T01:10:07ZAdam WujekAdd advanced PPSI parameters to Kconfig and add a command to wrpc to configure themparameters like:
* priority1/2
* clock class
* domain numberhttps://ohwr.org/project/wrpc-sw/issues/50Add CONFIG_NO_PTPDUMP to Kconfig2021-09-24T01:10:07ZAdam WujekAdd CONFIG_NO_PTPDUMP to Kconfighttps://ohwr.org/project/wrpc-sw/issues/49add command to print sfp info (and monitoring)2021-05-31T23:43:31ZAdam Wujekadd command to print sfp info (and monitoring)https://ohwr.org/project/wrpc-sw/issues/48Improve wrpc-dump to support WRPC related info2021-05-17T14:18:14ZAdam WujekImprove wrpc-dump to support WRPC related infoImprove `wrpc-dump` to support WRPC related info. Right now `wrpc-dump` supports only the dump of ppsi memory.https://ohwr.org/project/wrpc-sw/issues/46Reduce the size of WRPC2021-05-17T14:16:34ZAdam WujekReduce the size of WRPCWith the new PPSI (used in WRS v6.0), the footprint of WRPC is bigger than the available memory (128KB). There was some work done in this area, this issue is to keep track of it.
The size at the beginning of the WP1b was 139968 Bytes, the size was reduced to 125596 Bytes (by 14372 Bytes) with possible further reduction to 123640 (total reduction by 16328 Bytes) if `Single port`, `One instance per port` and `One foreign master` options are selected in PPSI's config. Additionally, it was identified that the use of RISCV can reduce the footprint by 7844B.
Also following can reduce the size (tested not for the latest commit):
* Use newer compiler for RISCV (10.2.0 instead of 7.3.0), reduction ~1.5KB
* Use Compressed Instructions in RISCV, reduction ~27KB
* Use LTO (Link Time Optimization) for RISCV, reduction ~5KB.
If all of the above are used, the footprint can be reduced by more than 40KB, from ~125KB down to ~85KB (or even less).
The attached file contains the detailed information about size reduction of WRPC.
[Size_report.ods](/uploads/d85f04ae54bc0675455a6e3dc2d318d3/Size_report.ods)https://ohwr.org/project/wrpc-sw/issues/43make network services (syslog, lldp, etc.) aware of multiple interfaces2020-10-07T15:54:29ZGrzegorz Danilukmake network services (syslog, lldp, etc.) aware of multiple interfacesFunctions to configure these should take netif structure object as argument.wrpc-v5.0Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wrpc-sw/issues/42add storage support for multiple MAC addresses (multiple ports)2020-10-07T15:54:37ZGrzegorz Danilukadd storage support for multiple MAC addresses (multiple ports)Required e.g. for LLRF where the board has several endpoints (only one used for WR, the other used e.g. for BTrain traffic).wrpc-v5.0Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wrpc-sw/issues/39make wrpc-vuart "Convention-aware"2019-12-03T09:21:25ZDimitris Lampridismake wrpc-vuart "Convention-aware"It would be really nice if wrpc-vuart (and possibly other tools as well) could detect if the underlying core is following the "Convention", because then the tool would know on which offset to find the wrpc and all its peripherals, without the need for the user to manually provide this offset.
Detecting the Convention is a rather straight-forward process, it is enough to read a couple of registers starting at offset zero.https://ohwr.org/project/wrpc-sw/issues/2Export SFPs' monitoring data via SNMP (node)2019-02-12T10:26:31ZAdam WujekExport SFPs' monitoring data via SNMP (node)Some SFPs provides parameters like temperature, RX and TX power. Nodse
(and Switch) shall export this data via SNMP.Adam WujekAdam Wujekhttps://ohwr.org/project/wrpc-sw/issues/5Fix sending interval of LLDP packets2021-09-24T01:10:07ZAdam WujekFix sending interval of LLDP packetsAs today LLDP is sent every 10000th execution of lldp task. During a
normal operation that means 1 packets every 2 seconds. However, It can
happen that LM32 is busy with other tasks like handling SNMP requests,
then frequency of LLDP packets can be much, much longer. LLDP task shall
check (monotonic\!) time at every execution. When the the defined time
elapsed it should send a LLDP packet.
It was never seen as a problem in operation since LLDP was not widely
used yet.https://ohwr.org/project/wrpc-sw/issues/6configuration of priority for VLAN-tagged tx traffic2019-02-12T10:26:32ZMaciej Lipinskiconfiguration of priority for VLAN-tagged tx trafficallow configuration of priority, ideally menuconfig and command lineAdam WujekAdam Wujekhttps://ohwr.org/project/wrpc-sw/issues/7Setting of leap seconds and time when GM2021-09-30T13:14:06ZMaciej LipinskiSetting of leap seconds and time when GMadd commands (shell and SNMP) to set the current time and leap secondsAdam WujekAdam Wujekhttps://ohwr.org/project/wrpc-sw/issues/8display UTC, TAI and leap seconds2019-02-12T10:26:33ZMaciej Lipinskidisplay UTC, TAI and leap secondsmodify wr\_mon to show that "Switch time" is UTC, "WR time" is TAI, and
display number of leap seconds
is:
TAI Time: Thu, Jul 13, 2017, 13:29:20
make:
WR time (TAI): 2017-03-11 23:30:46
Switch time (UTC): 2017-03-11 23:30:08
Leap seconds: 37Adam WujekAdam Wujekhttps://ohwr.org/project/wrpc-sw/issues/9Add commands to wr-streamer tool2019-02-12T10:26:34ZMaciej LipinskiAdd commands to wr-streamer toolThere is a number of parameters that can be configured via WB and for
which commands should be implemented.
There is something done in this regards, the work is incomplete
(commented out in the code). Look for "TODO" in
tool/wr-streamers.c
Commands to be completed:
WRSTM\_CMD\_TX\_ETHERTYPE,
WRSTM\_CMD\_TX\_LOC\_MAC,
WRSTM\_CMD\_TX\_REM\_MAC,
WRSTM\_CMD\_RX\_ETHERTYPE,
WRSTM\_CMD\_RX\_LOC\_MAC,
WRSTM\_CMD\_RX\_REM\_MAC,