Differences

This shows you the differences between two versions of the page.

Link to this comparison view

raspberry_boards:serial_modification [2015/10/17 18:27]
admin created
raspberry_boards:serial_modification [2016/07/10 20:09] (current)
admin
Line 1: Line 1:
----- +==== Serial modification ​====
-**Serial modification** +
-----+
  
 For using the serial line of the Raspberry Pi you have to make some small modifications (just if you hadn't run the alamode setup): For using the serial line of the Raspberry Pi you have to make some small modifications (just if you hadn't run the alamode setup):
Line 7: Line 5:
 In the file: /​boot/​cmdline.txt\\ In the file: /​boot/​cmdline.txt\\
 change:\\ change:\\
-''​dwc_otg.lpm_enable=0 console=ttyAMA0,​11520 kgdboc=ttyAMA0,​115200 console=tty1 root=/​dev/​mmcblk0p2 rootfstype=ext4 rootwait''​\\+  ​dwc_otg.lpm_enable=0 console=ttyAMA0,​11520 kgdboc=ttyAMA0,​115200 console=tty1 root=/​dev/​mmcblk0p2 rootfstype=ext4 rootwait
 to:\\ to:\\
-''​dwc_otg.lpm_enable=0 console=tty1 root=/​dev/​mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait''​+  ​dwc_otg.lpm_enable=0 console=tty1 root=/​dev/​mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
  
 And in the file: /​etc/​inittab\\ And in the file: /​etc/​inittab\\
 comment out:\\ comment out:\\
-''​2:​23:​respawn:/​sbin/​getty -L ttyAMA0 115200 vt100''​\\+  ​2:​23:​respawn:/​sbin/​getty -L ttyAMA0 115200 vt100
 to: \\ to: \\
-''​#​2:​23:​respawn:/​sbin/​getty -L ttyAMA0 115200 vt100''​\\+  ​#​2:​23:​respawn:/​sbin/​getty -L ttyAMA0 115200 vt100
  
 Because the Arduino IDE is not able to find the tty connection of the serial port (ttyAMA0) you have to mirror it to ttyS0. That is to be done with a file in: /​etc/​udev/​rules.d\\ Because the Arduino IDE is not able to find the tty connection of the serial port (ttyAMA0) you have to mirror it to ttyS0. That is to be done with a file in: /​etc/​udev/​rules.d\\
 then name it (the number is according to the order in which the rules were loaded):\\ then name it (the number is according to the order in which the rules were loaded):\\
-''​85-paperduinopi.rules''​\\+  ​85-paperduinopi.rules
 and put in the following line:\\ and put in the following line:\\
-''​KERNEL=="​ttyAMA0",​ SYMLINK+="​ttyS0",​GROUP="​dialout",​MODE:​=0666''​+  ​KERNEL=="​ttyAMA0",​ SYMLINK+="​ttyS0",​GROUP="​dialout",​MODE:​=0666
  
 More informations:​\\ More informations:​\\