Procedure to enable the 4 comm port on M2-Berry

Hi, I would like to use the 4 comm port on the M2-Berry. Which OS distribution and procedure do I need to follow ?

I did try few distribution, but it looks like only /dev/ttyS2 is working.

Thanks for your help DGC

Pin 37,40? On 40 pin gpio? could help you to enable in armbian with mainline linux…