0

I was following this tutorial: http://webiopi.trouch.com/Tutorial_Serial.html so I can make serial communication using the On-board serial UART

I couldn't find the file /etc/inittab, I skipped that step because I read that this file doesn't exist in Jessie.

Then I edited /boot/cmdline.txt and it says that I need to remove references to ttyAMA0.

This is what I find in that file:

dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

Should I erase the serial0? I got really confused by this and I'm not sure what to do.

goldilocks
  • 60,325
  • 17
  • 117
  • 234
Luz A
  • 57
  • 3
  • 15

1 Answers1

0

Firstly you should NOT edit /boot/cmdline.txt but make changes in raspi-config.

If you don't want to use the serial console you can remove it by either means.

You don't say which model Pi you are using. The Pi3 uses /dev/ttyAMA0 for Bluetooth and swaps the miniUART to the serial pins.

You can use /dev/ttyAMA0 on an older Pi or /dev/ttyS0 on Pi3. In the latest software there should be a /dev/serial0 which selects the appropriate device.

There appears to be some problems on the Pi3 with varying baudrate.

I modified the /boot/config.txt by adding the following line at the end:-

core_freq=250
Milliways
  • 62,573
  • 32
  • 113
  • 225