0001-include-configs-starfive-dubhe-fpga.h-Mask-ttyS0-and.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From b221223fa390b9266e72dd62295bbaada51e51c3 Mon Sep 17 00:00:00 2001
  2. From: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
  3. Date: Fri, 10 Nov 2023 14:50:42 +0800
  4. Subject: [PATCH] include: configs: starfive-dubhe-fpga.h: Mask ttyS0 and
  5. ttyhvc0
  6. Systemd getty-generator will automatic enable ttyS0 and ttyhvc0 console
  7. during startup, which causes multiple undesirable login prompts.
  8. This patch mask both ttyS0 and ttyhvc0 getty service in kernel bootarg
  9. cmdline, since only ttySIF0 console is used.
  10. Signed-off-by: Ji Sheng Teoh <jisheng.teoh@starfivetech.com>
  11. ---
  12. include/configs/starfive-dubhe-fpga.h | 5 ++++-
  13. 1 file changed, 4 insertions(+), 1 deletion(-)
  14. diff --git a/include/configs/starfive-dubhe-fpga.h b/include/configs/starfive-dubhe-fpga.h
  15. index 05ac969383..c77a199404 100644
  16. --- a/include/configs/starfive-dubhe-fpga.h
  17. +++ b/include/configs/starfive-dubhe-fpga.h
  18. @@ -14,12 +14,15 @@
  19. "console=ttySIF0,115200 earlycon=sbi\0" \
  20. "set_ip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:" \
  21. "${gatewayip}:${netmask}:${hostname}:eth0:off\0" \
  22. + "mask_tty=setenv bootargs ${bootargs} " \
  23. + "systemd.mask=serial-getty@ttyS0.service " \
  24. + "systemd.mask=serial-getty@hvc0.service\0" \
  25. "bootargs_nfs=setenv bootargs root=/dev/nfs rw rootwait " \
  26. "nfsroot=${serverip}:${rootpath},rw,tcp,v3," \
  27. "hard,sec=sys,local_lock=none," \
  28. "rsize=65536,wsize=65536," \
  29. "timeo=600,retrans=5\0" \
  30. - "nfs_boot=run bootargs_nfs set_tty set_ip;" \
  31. + "nfs_boot=run bootargs_nfs set_tty set_ip mask_tty;" \
  32. "run tftp_boot;\0"
  33. #endif /* __CONFIG_H */
  34. --
  35. 2.25.1