Software for White Rabbit PTP Core issueshttps://ohwr.org/project/wrpc-sw/issues2022-12-05T14:14:08Zhttps://ohwr.org/project/wrpc-sw/issues/58storage_load_calibration() crahses on non formated storage2022-12-05T14:14:08ZPeter Jansweijerstorage_load_calibration() crahses on non formated storagestorage-cal.c => storage_load_calibration()
In case of a "clean" non formatted storage function storage_load_calibration() fails and wrc_main.c hangs on entry of this function.
Temporary fix; force a storage_sdbfs_format in board.c:
```
/*
* Mount SDBFS filesystem from storage.
*/
// #### TEMP_FIX ####
// #### Fixes RISC Crash due to SDBFS not present when EEPROM is clean ####
uint32_t base = 0;
storage_sdbfs_format( &wrc_storage_dev, base, 0 );
//storage_sdbfs_erase( &wrc_storage_dev, base, 0 );
// #### END_TEMP_FIX ####
storage_mount( &wrc_storage_dev );
```
This issue can be triggered by forcing storage_sdbfs_erase instead of format (see above).Tristan GingoldTristan Gingoldhttps://ohwr.org/project/wrpc-sw/issues/44LLDP corrupts memory2020-10-21T11:08:14ZGrzegorz DanilukLLDP corrupts memoryLLDP was performing memcmp() and memcpy() on unsigned char variables as if they were 4 element arrays.
Fixed with commit:
`d4b80ab: lldp: fix variables and pointers, lldp_poll was corrupting the memory`wrpc-v5.0Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wrpc-sw/issues/38Displaying delays in GUI and STAT commands2019-02-12T10:26:50ZGrzegorz DanilukDisplaying delays in GUI and STAT commandsFor long distance WR links, the values of link delays are above 32-bit
integer. Internally they are stored as 64-bit values, but were casted to
32-bit before reporting to the user (through *gui* or *stat* command).Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wrpc-sw/issues/37document the need of t24p calibration2019-02-12T10:26:50ZGrzegorz Danilukdocument the need of t24p calibrationCurrently the documentation of WRPC doesn't mention that even if WRPC is
configured to run in Master/GrandMaster mode, it has to be run at least
once in Slave mode. That is because automatic t24 phase transition point
calibration procedure is called automatically in Slave mode, the result
of measurement is stored to EEPROM and can be later used in
Master/GrandMaster mode. Forgetting that may result in generating wrong
timestamps once in a while, which causes jumps in RTT and PTP Offset.Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wrpc-sw/issues/36problem locking WRPC in GrandMaster mode to one GPS receiver2019-02-12T10:26:49ZGrzegorz Danilukproblem locking WRPC in GrandMaster mode to one GPS receiverThe problem is related to issue
[852](https://www.ohwr.org/work_packages/852) from WR Switch project
since they both use the same SoftPLL module.https://ohwr.org/project/wrpc-sw/issues/35v2.1 - GUI doesn't show info from multiple AUX clocks2019-02-12T10:26:49ZGrzegorz Danilukv2.1 - GUI doesn't show info from multiple AUX clocksThere are two separate monitor files implementing GUI/STAT commands for
ptp-noposix and PPSI. The one for PPSI displays information only about
one AUX clock, while monitor for ptp-noposix provides info from multiple
aux clks.
GUI/STAT for PPSI should also report info from all AUX clocks.Adam WujekAdam Wujekhttps://ohwr.org/project/wrpc-sw/issues/34uint64_t defined as signed2019-02-12T10:26:48ZPietro Fezzardiuint64_t defined as signedIn `./include/std/inttypes.h` at line 7 you can read the following
typedef
typedef signed long long uint64_t
It should be unsignedGrzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wrpc-sw/issues/33add Flash storage support2019-02-12T10:26:47ZGrzegorz Danilukadd Flash storage supportInit script, SFP database, MAC address etc should be stored in the
carrier configuration Flash instead of the EEPROM on mezzanine.Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wrpc-sw/issues/32add sdbfs for storage2019-02-12T10:26:47ZGrzegorz Danilukadd sdbfs for storageSimple filesystem in EEPROM/Flash instead of hardcoded base addresses.
This way we have a separate files for init script, SFP calibration
parameters, MAC address, etc.Alessandro RubiniAlessandro Rubinihttps://ohwr.org/project/wrpc-sw/issues/31code review and cleanup2019-02-12T10:26:46ZGrzegorz Danilukcode review and cleanupincludes among others:
- SoftPLL unification between WR PTP Core and WR Switch
- timer functions cleanup
- prototypes cleanup
- removing unused variables and structure fields
- overall code cleanupAlessandro RubiniAlessandro Rubinihttps://ohwr.org/project/wrpc-sw/issues/30add shell command to disable SFP laser2019-02-12T10:26:46ZGrzegorz Danilukadd shell command to disable SFP laserCommit 0e8b222 adds a new shell command *sfp ena*. It can be used to
disable/enable transmitting laser in the SFP and therefore be used for
link up/down tests of a device using WR PTP Core.Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wrpc-sw/issues/29software Kintex-7 support2019-02-12T10:26:45ZGrzegorz Daniluksoftware Kintex-7 supportRelated to issue [1205](https://www.ohwr.org/work_packages/1205) in the
*wr-cores* project.
Software support for a new FPGA family includes Kconfig option to select
whether 8 or 16-bit PCS and 125 or 62.5MHz reference clock is used.
Done with commits: b54a14a, 747effeGrzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wrpc-sw/issues/28change default MAC address not to be multicast2019-02-12T10:26:45ZGrzegorz Danilukchange default MAC address not to be multicastDefault MAC address is used when MAC could not be read from storage nor
generated from a 1-Wire ID. Default MAC used in the previous release was
a multicast address (*11:22:33:44:55:66*). To avoid any potential
problems commit 642e386 changes the default address to
*22:33:44:55:66:77*.Alessandro RubiniAlessandro Rubinihttps://ohwr.org/project/wrpc-sw/issues/27pfilter rules cleanup2019-02-12T10:26:44ZGrzegorz Danilukpfilter rules cleanupPfilter rules cleanup includes also a user space tool for building
pfilter binary. Then, the binary is loaded to pfilter in run-time so
that LM32 can update MAC address and later also configure VLAN
filtering.
Done with commits 300a09f - 808ffddAlessandro RubiniAlessandro Rubinihttps://ohwr.org/project/wrpc-sw/issues/26fix displaying stats2019-02-12T10:26:43ZGrzegorz Danilukfix displaying stats*gui* and *stat* commands were updated to refresh when wr servo is being
updated.
Then, for Master mode, *stat* information is printed every second.
Also commit 2a791f3 changes the printing function call so that *pll
stat* command prints the status of SoftPLL.Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wrpc-sw/issues/25set ip lost after link re-plug2019-02-12T10:26:42ZAdam Wujekset ip lost after link re-plugIn case IP address is set by a command
ip set x.x.x.x
when the link is lost and established again, then previously set IP
address is lost.
Then gui command shows:
IPv4: BOOTP runningAlessandro RubiniAlessandro Rubinihttps://ohwr.org/project/wrpc-sw/issues/24doc: improve flash-write example2019-02-12T10:26:42ZGrzegorz Danilukdoc: improve flash-write examplePage 5 of the manual states that the SDBFS can be written to file, as
usual the program "tools/flash-write" that does this has no help (-h
not implemented).
The command given in the manual fails, it turns out that the user has
to think that the bus -b 0x20 needs to be taken from the dmesg output
(given a bit further on the page) and is apparently the number between
the first and second semicolon in the dmesg lines that are printed
when the kernel drivers is inserted.
So two things:
\- - add help to flash-write tool
\- - clarify where the user should find the argument for the -b option.Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wrpc-sw/issues/23offensive language2019-02-12T10:26:41ZTjeerd Pinkertoffensive languageI came across the f word in comments in the following files:
softpll/softpll\_ng.c
ppsi/tools/decent\_types.h
tools/dump-funcs.c
pp\_printf/vsprintf-full.c
ppsi/pp\_printf/vsprintf-full.c
please remove...https://ohwr.org/project/wrpc-sw/issues/22softpll doesn't set Locked flag for the main channel2019-02-12T10:26:41ZGrzegorz Daniluksoftpll doesn't set Locked flag for the main channelSoftPLL code (wrpc-sw) doesn't set bit 0 of the SPLL\_OCCR:OUT\_LOCK
when the main channel is locked. It is done only for aux channels. As a
consequence, out\_locked\_o vector in VHDL never indicates that SoftPLL
is locked.Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wrpc-sw/issues/21GUI doesn't show IP address before lock2019-02-12T10:26:40ZAdam WujekGUI doesn't show IP address before lockGUI does not show IP address even it is available.
It show IP after lock.Adam WujekAdam Wujek