FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 10-24-2011, 04:54 PM
Kevin Martin
 
Default usb serial console and systemd?

I can't seem to get systemd to spawn a getty on a USB tty. Here's what I've done:

# ln -sf /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyUSB0.service
# systemctl daemon-reload
# systemctl start getty@ttyUSB0.service

When I look at the gettys that are running, all I see are:

root 1153 1 0 Oct22 tty6 00:00:00 /sbin/agetty tty6 38400
root 1154 1 0 Oct22 tty4 00:00:00 /sbin/agetty tty4 38400
root 1155 1 0 Oct22 tty5 00:00:00 /sbin/agetty tty5 38400
root 1156 1 0 Oct22 tty3 00:00:00 /sbin/agetty tty3 38400
root 1157 1 0 Oct22 tty2 00:00:00 /sbin/agetty tty2 38400


I *do* have a ttyUSB0:

[27151.541139] usb 1-1.2: pl2303 converter now attached to ttyUSB0


But can't seem to get a getty. What have I missed (sure was easier under inittab)? Oh, and where do you set the speed, vt, etc. for the getty under systemd?



--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 10-25-2011, 01:21 PM
Kevin Martin
 
Default usb serial console and systemd?

On 10/24/2011 11:54 AM, Kevin Martin wrote:
> I can't seem to get systemd to spawn a getty on a USB tty. Here's what I've done:
>
> # ln -sf /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyUSB0.service
> # systemctl daemon-reload
> # systemctl start getty@ttyUSB0.service
>
> When I look at the gettys that are running, all I see are:
>
> root 1153 1 0 Oct22 tty6 00:00:00 /sbin/agetty tty6 38400
> root 1154 1 0 Oct22 tty4 00:00:00 /sbin/agetty tty4 38400
> root 1155 1 0 Oct22 tty5 00:00:00 /sbin/agetty tty5 38400
> root 1156 1 0 Oct22 tty3 00:00:00 /sbin/agetty tty3 38400
> root 1157 1 0 Oct22 tty2 00:00:00 /sbin/agetty tty2 38400
>
>
> I *do* have a ttyUSB0:
>
> [27151.541139] usb 1-1.2: pl2303 converter now attached to ttyUSB0
>
>
> But can't seem to get a getty. What have I missed (sure was easier under inittab)? Oh, and where do you set the speed, vt, etc. for the getty under systemd?
>
>
>
Interesting. After my machine hung again and I had to hard reboot, the getty for ttyUSB0 now starts. I'm still not sure where to
enable different speed settings, tell it to run a vt100, as the systemd documentation is fairly confusing IMO. But I'll keep
looking. If anybody knows this off the top of their heads, please share it here.

Thanks.

Kevin Martin
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 04:48 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org