littlefs data upload fail with lolin d1 mini 4.0 boards

Hi,
I have recently bought new LOLIN D1 mini (v4.0) boards with an USB-C connector.
With these boards I am unable to upload LittleFS data to the board.
With the same system (Linux Ubuntu 20.04, Arduino 1.8.16, ESP 8266 v 3.0.2) this is working fine with older boards (3.1).
I have no problem to upload the sketch, only with the Flash Data.
Little FS data upload creates the files, I am able to list the directory, but the content of the file (only one file for the test) is totally corrupted.
Any idea how to overcome this problem ?
Thanks in advance
I have recently bought new LOLIN D1 mini (v4.0) boards with an USB-C connector.
With these boards I am unable to upload LittleFS data to the board.
With the same system (Linux Ubuntu 20.04, Arduino 1.8.16, ESP 8266 v 3.0.2) this is working fine with older boards (3.1).
I have no problem to upload the sketch, only with the Flash Data.
Little FS data upload creates the files, I am able to list the directory, but the content of the file (only one file for the test) is totally corrupted.
Any idea how to overcome this problem ?
Thanks in advance