Main Menu

search

You are here

Disable rPi console serial

[last updated: 2022-10-06]
go to: rPi serial page
-----

  • to disable default console serial:
    • $ sudo raspi-config
        Actual wording of menu options may be different on different models/software versions.
        Select whatever is closest.
      • select: Interfacing options - configure connection to peripherals
      • select: Serial - Enable/Disable shell & kernel
      • prompt: Would you like a login shell to be accessible over serial? - No -
      • prompt: Would you like the serial port hardware to be enabled? - Yes -
      • message: The serial login shell is disabled
        The serial interface is enabled
      • click OK, then Finish, then reboot

    ----------------------------------------------------


    Useful commands:

  • Find available serial ports:
    $ dmesg | grep tty
    produces this output:
    • [... ...] kernel ...
    • [... ...] console [tty1] enabled
    • [... ...] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
    • [... ...] console [ttyAMA0] enabled

  • After disabling default console serial:
    • Being a fumbling newbie, best guess is that what this does is disable the serial signal that goes out the micro-USB port where power is connected?
    • Now doing:
      $ dmesg | grep tty
      produces:
      • [... ...] kernel ...
      • [... ...] console [tty1] enabled
      • [... ...] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2

  • What serial port to use:
    • In the /dev directory, there are 64 entries starting with 'tty':
      tty, then tty0 - tty63, then ttyAMA0, then ttyprint [or something...]
    • so it appears that /dev/AMA0 is a serial device defined on the system...

.

.

.

eof