2015-08-08, 09:59
Howdy all.
Anyone know how to disable getty from taking over /dev/ttyAMA0?
I've an Arduino serial connected to the Raspberri PI GPIO serial (using a 4050 hex inverter) and hardware all working correctly BUT
When I use Arduino serial monitor to see what pi is sending, I get the "uncompressing kernel", but then the raspbmc login screen ... I can ignore it all but of course with getty taking over I can't send/monitor any data with minicom..
I am guessing I've still got getty automatically connecting to /dev/ttyAMA0
further digging:
This is despite inittab not having any ttyAMA0 entries, and/or boot/cmdfile.txt entries.
I can only assume that the kernel has been hard-coded for serial output??
Anyone know how to disable getty in this so I can use minicom to access the port?
Thanks in advance.
Mike
Anyone know how to disable getty from taking over /dev/ttyAMA0?
I've an Arduino serial connected to the Raspberri PI GPIO serial (using a 4050 hex inverter) and hardware all working correctly BUT
When I use Arduino serial monitor to see what pi is sending, I get the "uncompressing kernel", but then the raspbmc login screen ... I can ignore it all but of course with getty taking over I can't send/monitor any data with minicom..
I am guessing I've still got getty automatically connecting to /dev/ttyAMA0
further digging:
Code:
root@raspbmc:/# dmesg
Linux version 3.12.31 (root@raspbmcbb-legacy) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #2 PREEMPT Wed Oct 29 09:24:56 UTC 2014
...
Code:
root@raspbmc:/boot# ps -x |grep "ttyAMA0"
1849 ttyAMA0 Ss+ 0:00 /sbin/getty -L ttyAMA0 115200 vt100
1854 pts/1 S+ 0:00 grep ttyAMA0
This is despite inittab not having any ttyAMA0 entries, and/or boot/cmdfile.txt entries.
Code:
root@raspbmc:/boot# cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 noatime quiet rootwait loglevel=1 sdhci-bcm2708.enable_llm=1 dwc_otg.microframe_schedule=1 dwc_otg.fiq_fix_enable=0 dwc_otg.fiq_split_enable=0
I can only assume that the kernel has been hard-coded for serial output??
Anyone know how to disable getty in this so I can use minicom to access the port?
Thanks in advance.
Mike