I'm using the latest DietPi image on a RaspberryPi.
In spite of the /boot/cmdline.txt:
# cat cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=XYZXYZ rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
The actual command line uses the ttyAMA0 serial port:
# dmesg | more
...
[ 0.000000] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=720 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 smsc95xx.macaddr=x:x:x:x:x:x vc_mem.mem_base=0 x1fa00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=PARTUUID=XYZXYZ rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
How can I change the command line parameters to NOT use the ttyAMA0 for the system messages?