From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 79CAE3B2C0 for ; Sat, 23 Apr 2016 05:52:38 -0400 (EDT) Received: by mail-ig0-x22b.google.com with SMTP id bi2so31985998igb.0 for ; Sat, 23 Apr 2016 02:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=SXGRbT7RFI0w4Va/PJv6Y9CY2+kcA8BwpqOW2KYI0I8=; b=sOgZzdKO07FCrurFd1Per0fr6OViOqqRv9cemrU2xFCKZAtYaA4AS1M16YPPXvY97O f6gZ5jA2cAgfzxGPdZwqyL2Ab1IKnPLxP86zGhsgwgx7P9kgTn9VPTgkYLf4r2E2TFcn iGmjtQBFDkz9/ojwiLaHDwApcPekZwsD2zZ85sawb4ZGZ07jW+Oh+m+Emstqa1eYiOI5 ApZFaWcPFnzy0upJGLBVo74ykxYj0SeVtrR6OoieGVSIh+GSJQ+ScgZP36ba05JuujXO A7FvZrMIzl+0MqXhlqQoP2R5hi4JWfTIj8wa4k/LKfPiITEGgvaFLPer1SH5Mxx4uFjW kYgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=SXGRbT7RFI0w4Va/PJv6Y9CY2+kcA8BwpqOW2KYI0I8=; b=GwmZ7rOo0wtJKQ56rnCzJFc38wvPYde0Ym4XG7zemCddxoY+ajE6srjwO/o1Kov3Xr mXjU8sJ6SpeniieXF8jgdhEXYX1wYzCvJcHYhBfYV70OmxCF46YjOKt00+gxWdDJSObL ttnpSd4DvtTtR8EPA453Zy2Wo7Qx9MDcV/Ik6gQv6Xe80fFFFuhdLSCRIQIm10m5FY5o chSKigXqcnFzxSd+fK60XL8zZXSyUnmY5Jb3dQXgxS52rU/xGcIteRTxFaFatnZX2bWI OFj66gKfzC57jDbxzOjQA1TZTJhtkqke30BNErnSn0tqx4FkKD5vLd13H2N0DBgdG5e9 h6qQ== X-Gm-Message-State: AOPr4FVzgJLOXe71h6pgEzW40ZPkJRRczrAW8oS/5vpKero4NF2AighVNGskGspX+NjwcI88XZUEsZCSAJtXvQ== MIME-Version: 1.0 X-Received: by 10.50.132.36 with SMTP id or4mr1773400igb.23.1461405158032; Sat, 23 Apr 2016 02:52:38 -0700 (PDT) Received: by 10.50.114.38 with HTTP; Sat, 23 Apr 2016 02:52:37 -0700 (PDT) In-Reply-To: References: <20160420055843.GA9772@radio2.ebirdie> Date: Sat, 23 Apr 2016 10:52:37 +0100 Message-ID: From: Alan Jenkins To: Dave Taht Cc: "Luis E. Garcia" , "cerowrt-devel@lists.bufferbloat.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [Cerowrt-devel] trying a pcengines box X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2016 09:52:38 -0000 On 23/04/2016, Dave Taht wrote: > I have it built and running 16.04 off of the msata card now. :woot: > > last major trick - always install openssl-server before rebooting. > > (I haven't figured out how to make systemd do a serial console either, yet). Huh, it's supposed to just work, following the kernel settings. pasting from Google cache, as Poetterings blog is down - To make use of a serial console, just use console=ttyS0 on the kernel command line, and systemd will automatically start a getty on it for you." By default systemd will instantiate one serial-getty@.service on the main kernel[4] console, if it is not a virtual terminal This logic is implemented in a generator called systemd-getty-generator that is run early at boot and pulls in the necessary services depending on the execution environment. sometimes there's the need to manually configure a serial getty, for example, if more than one serial login prompt is needed or the kernel console should be redirected to a different terminal than the login prompt. To facilitate this it is sufficient to instantiate serial-getty@.service once for each serial port you want it to run on[7]: # systemctl enable serial-getty@ttyS2.service # systemctl start serial-getty@ttyS2.service Sometimes, there's the need to configure the login prompt in even more detail. For example, if the default baud rate configured by the kernel is not correct or other agetty parameters need to be changed. In such a case simply copy the default unit template to /etc/systemd/system and edit it there: # cp /usr/lib/systemd/system/serial-getty@.service /etc/systemd/system/serial-getty@ttyS2.service # vi /etc/systemd/system/serial-getty@ttyS2.service .... now make your changes to the agetty command line ... # ln -s /etc/systemd/system/serial-getty@ttyS2.service /etc/systemd/system/getty.target.wants/ # systemctl daemon-reload # systemctl start serial-getty@ttyS2.service This creates a unit file that is specific to serial port ttyS2, so that you can make specific changes to this port and this port only. [7] Note that this systemctl enable syntax only works with systemd 188 and newer (i.e. F18). On older versions use ln -s /usr/lib/systemd/system/serial-getty@.service /etc/systemd/system/getty.target.wants/serial-getty@ttyS2.service ; systemctl daemon-reload instead.