Skip to main content

Enable the hardware serial port on Raspberry Pi

This quick quide will help you enable the hardware serial port on a Raspberry Pi device. You'll use the raspi-config cli tool to achieve this. Once done, the serial port will be available on the device at /dev/ttyS0.

  1. Use the terminal on your Raspberry Pi to run the following command:

    sudo raspi-config
  2. Select the Interface Options menu item.

    Interface Options

  3. Select the Serial Port option.

    Serial Port

  4. In the first dialog, select the No option, as the login shell is not needed.

    No Login Shell

  5. In the second dialog, select the Yes option to enable the hardware serial port.

    Enable Serial Port

  6. The confirmation screen should show the login shell disabled and the serial interface enabled.

    Confirmation

  7. Back in the raspi-config menu, select the Finish option to exit the utility.

    Finish

  8. Reboot the device using:

    sudo reboot

Once the device has rebooted, the serial port should be available on the device at /dev/ttyS0. This path should be used when configuring the Passed devices option in the logiccloud setup script.