Disable console output to ttyS0

I have tried the following setting:

systemctl stop nvgetty
systemctl disable nvgetty

but ttyS0 continue to output console logs, and when I connect it with a GPS module, the ubuntu system failed to boot up .

the jetson nano board version : A02
L4t version: 32.3


Please also remove ttyS0 from the kernel command line.