How to remove console=ttyS0 from cmdline

Hey

I need to remove console=ttyS0,115200n8 from parameters passed to the kernel.
What is the easiest way to do it?
It is possible to remove “${cbootargs}” from APPEND line and copy into that line other than “console=ttyS0” args from /proc/cmdline ?

My current /proc/cmdline:

tegraid=21.1.2.0.0 ddr_die=4096M@2048M section=512M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,0 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff780000 core_edp_mv=1125 core_edp_ma=4000 tegra_fbmem=0x140000@0x92cb6000 is_hdmi_initialised=1  root=/dev/mmcblk0p1 rw rootwait console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0    root=/dev/mmcblk0p1 rw rootwait console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 rootfstype=ext4 root=/dev/mmcblk0p1 rw rootwait

/boot/extlinux/extlinux.conf :

TIMEOUT 30
DEFAULT primary

MENU TITLE p3450-porg eMMC boot options

LABEL primary
      MENU LABEL primary kernel
      LINUX /boot/Image
      INITRD /boot/initrd
      APPEND ${cbootargs} rootfstype=ext4 root=/dev/mmcblk0p1 rw rootwait quiet

Some earlier boot stages need information prior to reaching extlinux.conf. “cbootargs” is necessary, but you should be able to remove the unwanted kernel parameters (the serial console) if you look up the docs on modifying the device tree. In particular, there will be a device tree node “chosen”, and within that the “bootargs”. You’d edit the “bootargs”.

FYI, you can see your current tree content in “/proc/device-tree/”. For your case, see:

cat /proc/device-tree/chosen/bootargs