Write param by sd card

I’m using Pixhawk 6c mini pilot board, I accidently disable the Serial 1 and Serial 2 flow control. I can’t connect to Ground Station Control, I want to enable Serial1 and 2 by using SD card. How can I do?