Hello Piotr,
In order to better understand what you are trying to achieve. Could you please describe what your target mcu is as well?
So far my understanding is that you are connecting your LPC-Link 2 to your Linux machine on one end and then via SWD you are connecting your target mcu. However your LPC-link 2 is not communicating properly with your linux machine. Is this correct?
Could you please attach screen shots of any error messages that you are receiving.
Best Regards,
Sabina