Re: [beagleboard] Re: Trying to use ttyO0 but I can't disable the console login.
For those that still need to use ttyO0 for their purpose and not as login console (I won't ask you why, in my case I simply need 5 uarts) the only thing I had to do on my setup (beagle bone black, with debian-9.5-iot-armhf-2018-08-30) to enable ttyO0 is disable the serial-getty@ttyO0.service as suggested but also the same service on another port serial-getty@ttyS0.service. Then with: systemctl mask serial-getty@ttyO0.service systemctl mask serial-getty@ttyS0.service you are ready to go and use ttyO0 for your business.. Il giorno venerdì 12 settembre 2014 02:00:49 UTC+2, jgold ha scritto: > > I found the answer here; > http://stackoverflow.com/questions/21596384/cannot-disable-systemd-serial-getty-service > > My port is at ttyO0. so in my case I entered " systemctl mask > serial-getty@ttyO0.service. I was able to confirm the device name by > typing "systemctl --full". My device was in the list. > > Once I typed the command above and rebooted, I could use the serial port > in my program. > > On Thursday, September 11, 2014 4:42:31 PM UTC-7, William Hermans wrote: >> >> ttyo0 has to be disabled in uEnv.txt, and also the board device tree file >> I believe ( could be wrong on the last part ). Also, systemd may have a >> service profile for it. I have not looked, and currently am not running >> systemd. Maybe I'll check later once I get this rootfs working good, and >> backed up. >> >> On Thu, Sep 11, 2014 at 3:02 PM, Lee Crocker wrote: >> >>> Some reason you can't just use one of the other UARTs? It's very handy >>> to have a serial console for debugging. >>> >>> >>> On Thursday, September 11, 2014 10:29:48 AM UTC-7, jgold wrote: I've got a RS232 micro cape http://www.logicsupply.com/ components/beaglebone/capes/cbb-ttl-232/ that I need to use as a serial port. The problem is that by default /dev/ttyO0 is setup as a login console. I need to disable that so that I can use the port for my own purposes. I've found instructions for how to do it on Rasbian but I can't find anything for the Beaglebone. I found a line in /etc/inittab that looked like it was starting a getty session on /dev/ttyO0 and I commented it out but after a reboot, the login is still there. I found some references to inittab being obsolete because systemd doesn't use it but I can't find anything to configure systemd so it doesn't use ttyO0. Can anyone point me in the right direction? >>> -- >>> For more options, visit http://beagleboard.org/discuss >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "BeagleBoard" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to beagleboard...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/01b99975-beb7-40af-9661-496db13d0aae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Re: Trying to use ttyO0 but I can't disable the console login.
Interesting subject, in my case I need the Pins used by UART 0 for something else. In the file https://github.com/jadonk/cape-firmware/blob/master/arch/arm/boot/dts/am335x-bone-common.dtsi There is a reference to UART 0 : uart0 { pinctrl-names = default; pinctrl-0 = uart0_pins; status = okay;}; If i'm not wrong, to disable uart 0 on boot I just need to remove status = okay; I heard that you need also to disable a service : systemctl mask serial-getty@ttyAMA0.service but I think that this service should be disable at the boot : I discovered on internet ( http://www.digi.com/support/kbase/kbaseresultdetl?id=3606), that you need also to disable it in the kernel with : CONFIG_SERIAL_CORE_CONSOLE=n in the /boot/uboot/uEnv.txt file, there is this line : console=ttyO0,115200n8 is it ok to use console=none ? am I missing something ? does the service serial-getty@ttyAMA0.service still working with that ? Thank you, On Fri, Sep 12, 2014 at 2:00 AM, jgold j...@goldthwaites.com wrote: I found the answer here; http://stackoverflow.com/questions/21596384/cannot-disable-systemd-serial-getty-service My port is at ttyO0. so in my case I entered systemctl mask serial-getty@ttyO0.service. I was able to confirm the device name by typing systemctl --full. My device was in the list. Once I typed the command above and rebooted, I could use the serial port in my program. On Thursday, September 11, 2014 4:42:31 PM UTC-7, William Hermans wrote: ttyo0 has to be disabled in uEnv.txt, and also the board device tree file I believe ( could be wrong on the last part ). Also, systemd may have a service profile for it. I have not looked, and currently am not running systemd. Maybe I'll check later once I get this rootfs working good, and backed up. On Thu, Sep 11, 2014 at 3:02 PM, Lee Crocker l...@ansync.com wrote: Some reason you can't just use one of the other UARTs? It's very handy to have a serial console for debugging. On Thursday, September 11, 2014 10:29:48 AM UTC-7, jgold wrote: I've got a RS232 micro cape http://www.logicsupply.com/com ponents/beaglebone/capes/cbb-ttl-232/ that I need to use as a serial port. The problem is that by default /dev/ttyO0 is setup as a login console. I need to disable that so that I can use the port for my own purposes. I've found instructions for how to do it on Rasbian but I can't find anything for the Beaglebone. I found a line in /etc/inittab that looked like it was starting a getty session on /dev/ttyO0 and I commented it out but after a reboot, the login is still there. I found some references to inittab being obsolete because systemd doesn't use it but I can't find anything to configure systemd so it doesn't use ttyO0. Can anyone point me in the right direction? -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Trying to use ttyO0 but I can't disable the console login.
Some reason you can't just use one of the other UARTs? It's very handy to have a serial console for debugging. On Thursday, September 11, 2014 10:29:48 AM UTC-7, jgold wrote: I've got a RS232 micro cape http://www.logicsupply.com/components/beaglebone/capes/cbb-ttl-232/ that I need to use as a serial port. The problem is that by default /dev/ttyO0 is setup as a login console. I need to disable that so that I can use the port for my own purposes. I've found instructions for how to do it on Rasbian but I can't find anything for the Beaglebone. I found a line in /etc/inittab that looked like it was starting a getty session on /dev/ttyO0 and I commented it out but after a reboot, the login is still there. I found some references to inittab being obsolete because systemd doesn't use it but I can't find anything to configure systemd so it doesn't use ttyO0. Can anyone point me in the right direction? -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Re: Trying to use ttyO0 but I can't disable the console login.
ttyo0 has to be disabled in uEnv.txt, and also the board device tree file I believe ( could be wrong on the last part ). Also, systemd may have a service profile for it. I have not looked, and currently am not running systemd. Maybe I'll check later once I get this rootfs working good, and backed up. On Thu, Sep 11, 2014 at 3:02 PM, Lee Crocker l...@ansync.com wrote: Some reason you can't just use one of the other UARTs? It's very handy to have a serial console for debugging. On Thursday, September 11, 2014 10:29:48 AM UTC-7, jgold wrote: I've got a RS232 micro cape http://www.logicsupply.com/ components/beaglebone/capes/cbb-ttl-232/ that I need to use as a serial port. The problem is that by default /dev/ttyO0 is setup as a login console. I need to disable that so that I can use the port for my own purposes. I've found instructions for how to do it on Rasbian but I can't find anything for the Beaglebone. I found a line in /etc/inittab that looked like it was starting a getty session on /dev/ttyO0 and I commented it out but after a reboot, the login is still there. I found some references to inittab being obsolete because systemd doesn't use it but I can't find anything to configure systemd so it doesn't use ttyO0. Can anyone point me in the right direction? -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] Re: Trying to use ttyO0 but I can't disable the console login.
The micro cape I purchased can be either UART0 or UART4 but to change it you have to solder some bridges across some little bitty pads. It looked too delicate for my fat fingers so with this setup, I'm kinda stuck with UART0. On Thursday, September 11, 2014 3:02:34 PM UTC-7, Lee Crocker wrote: Some reason you can't just use one of the other UARTs? It's very handy to have a serial console for debugging. On Thursday, September 11, 2014 10:29:48 AM UTC-7, jgold wrote: I've got a RS232 micro cape http://www.logicsupply.com/components/beaglebone/capes/cbb-ttl-232/ that I need to use as a serial port. The problem is that by default /dev/ttyO0 is setup as a login console. I need to disable that so that I can use the port for my own purposes. I've found instructions for how to do it on Rasbian but I can't find anything for the Beaglebone. I found a line in /etc/inittab that looked like it was starting a getty session on /dev/ttyO0 and I commented it out but after a reboot, the login is still there. I found some references to inittab being obsolete because systemd doesn't use it but I can't find anything to configure systemd so it doesn't use ttyO0. Can anyone point me in the right direction? -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Re: Trying to use ttyO0 but I can't disable the console login.
I found the answer here; http://stackoverflow.com/questions/21596384/cannot-disable-systemd-serial-getty-service My port is at ttyO0. so in my case I entered systemctl mask serial-getty@ttyO0.service. I was able to confirm the device name by typing systemctl --full. My device was in the list. Once I typed the command above and rebooted, I could use the serial port in my program. On Thursday, September 11, 2014 4:42:31 PM UTC-7, William Hermans wrote: ttyo0 has to be disabled in uEnv.txt, and also the board device tree file I believe ( could be wrong on the last part ). Also, systemd may have a service profile for it. I have not looked, and currently am not running systemd. Maybe I'll check later once I get this rootfs working good, and backed up. On Thu, Sep 11, 2014 at 3:02 PM, Lee Crocker l...@ansync.com javascript: wrote: Some reason you can't just use one of the other UARTs? It's very handy to have a serial console for debugging. On Thursday, September 11, 2014 10:29:48 AM UTC-7, jgold wrote: I've got a RS232 micro cape http://www.logicsupply.com/ components/beaglebone/capes/cbb-ttl-232/ that I need to use as a serial port. The problem is that by default /dev/ttyO0 is setup as a login console. I need to disable that so that I can use the port for my own purposes. I've found instructions for how to do it on Rasbian but I can't find anything for the Beaglebone. I found a line in /etc/inittab that looked like it was starting a getty session on /dev/ttyO0 and I commented it out but after a reboot, the login is still there. I found some references to inittab being obsolete because systemd doesn't use it but I can't find anything to configure systemd so it doesn't use ttyO0. Can anyone point me in the right direction? -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.