{"action":"opened","issue":{"url":"https://api.github.com/repos/openbmc/obmc-console/issues/5","repository_url":"https://api.github.com/repos/openbmc/obmc-console","labels_url":"https://api.github.com/repos/openbmc/obmc-console/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/openbmc/obmc-console/issues/5/comments","events_url":"https://api.github.com/repos/openbmc/obmc-console/issues/5/events","html_url":"https://github.com/openbmc/obmc-console/issues/5","id":177546605,"number":5,"title":"obmc-console-server cannot be ran used with udev rules.","user":{"login":"williamspatrick","id":105009,"avatar_url":"https://avatars.githubusercontent.com/u/105009?v=3","gravatar_id":"","url":"https://api.github.com/users/williamspatrick","html_url":"https://github.com/williamspatrick","followers_url":"https://api.github.com/users/williamspatrick/followers","following_url":"https://api.github.com/users/williamspatrick/following{/other_user}","gists_url":"https://api.github.com/users/williamspatrick/gists{/gist_id}","starred_url":"https://api.github.com/users/williamspatrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williamspatrick/subscriptions","organizations_url":"https://api.github.com/users/williamspatrick/orgs","repos_url":"https://api.github.com/users/williamspatrick/repos","events_url":"https://api.github.com/users/williamspatrick/events{/privacy}","received_events_url":"https://api.github.com/users/williamspatrick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-17T00:52:49Z","updated_at":"2016-09-17T00:52:49Z","closed_at":null,"body":"In openbmc/openbmc#528 it was proposed to use a udev rule to populate a device entry like /dev/ttyVUART0, which is symlink to /dev/ttyS0 (or similar).  This allows userspace applications, like obmc-console-server, to in theory be started with a logical name rather than a dynamically allocated device name.\r\n\r\nUnfortunately, the current obmc-console-server code expects a sysfs name rather than a dev name:\r\nhttps://github.com/openbmc/obmc-console/blob/master/console-server.c#L95\r\n\r\nThere is also a 'todo' in the code along these lines:\r\nhttps://github.com/openbmc/obmc-console/blob/master/console-server.c#L114\r\n\r\nIn order to get console server to work with a dev entry I had to do a fairly hacky systemd unit file change:\r\n`ExecStart=/bin/sh -c 'realpath /dev/ttyVUART0 | xargs basename | xargs {sbindir}/obmc-console-server'`\r\n\r\nWould like obmc-console-server enhanced to support simply 'obmc-console-server ttyVUART0' or similar."}}
{"actor":{"display_login":"williamspatrick"}}