DiamondLightSource / DiamondLightSource/DLS-MBF

Compatibility with recent OS (Ubuntu 24.04 with kernel >= 6.0.0)

Open
#24 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
VHDL
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I faced a few difficulties to make a new DLS-MBF crate using a recent Vadatech micro-TCA rack (VT806) and a recent OS: Ubuntu 24.04. It eventually worked but required some modifications described here.

I will skip the difficulties with the VT806, but anyone can contact me if interested.

Regarding the OS there was 3 modifications required to use the DLS-MBF:
- driver: the DMA API changed in recent kernels
- segfault: pointers stored in read-only memory segment were modified due to some variables defined as const
- fpga_load: SCP's default configuration is not compatible with the AMC525

The modifications are available on [this branch](https://github.com/abdomit/DLS-MBF/tree/ubuntu24).

Finally, there was also a issue with EPICS 3.14 with a memory leak detected with the ADC or DAC MMS panel is opened. It seems that this is a bug with this old version of EPICS. The memory leak can be ignored by adding the following lines in `$EPICS_BASE/configure/os/CONFIG_SITE.linux-x86_64.linux-x86_64`:

```
OP_SYS_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
OP_SYS_CXXFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
```

I am really interested if someone has a better solution.

The best would probably be to make the DLS-MBF compatible with a recent version of EPICS, but I have absolutely no idea of the effort required.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.