From owner-freebsd-arm@freebsd.org Thu Mar 7 17:44:37 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B2E5150DB14 for ; Thu, 7 Mar 2019 17:44:37 +0000 (UTC) (envelope-from nmingotti@gmail.com) Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 228ED6A941; Thu, 7 Mar 2019 17:44:36 +0000 (UTC) (envelope-from nmingotti@gmail.com) Received: by mail-pg1-x542.google.com with SMTP id e17so11831701pgd.2; Thu, 07 Mar 2019 09:44:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=78e24mZe3s7BJrzplK0JZ/XBXz7Xmx6T17xvYZlP98Q=; b=U6qJ8tKJ1tDzhw8sexwl3gtfWLTOxAAKp5Ase4GzUfs0I2GzT0AdSvnVf4ZaPp9Avq K/ltLtPH6g8Y6Ze8pMMfHj87xWhskwgvqJTxwyQlFtdlQD6Eeba9tibtGAaRQWsbBxXx I0LEq0QuTYWHcG7+occAP1tF4C2pTUiJgMNjnU38HCCW8maupyxml40KCT2ri5Mt8XDT 2Nj2xTCys3yNqLRxMDpCymuRzCxe0OTF5gEBD+L3pSQbbTCVJKMCZRkZtW/gnqg5jXoC EcJAz/ly9y5caf6KCgbc1k3fPqeCVbvHoqom78qzqZSQtsASHI+xbp7hVSop1e4V/56a haMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=78e24mZe3s7BJrzplK0JZ/XBXz7Xmx6T17xvYZlP98Q=; b=ZLoOkVWPTRdv/THIWjslq6a28C6ky3X3guo1/NMg8UHv89uxVUmVRfmcZdgA6v/BM5 ri49WToH3b2c0E7kQRlDftiWi/aH2Bq9qhulPZfYvmgMf8icQPKWKobYDuqUWa093Tdv aOkVWHjuQy3wt6UH9wJiCOuGHCtRX2RYllun51Oj5a8dp5prXH2EBFOh5LXFXrmDpevw KbqWkTs7tX1srd9QhM4CZbHPEm62FtVFP51f2GqOhbx1hHDMf76C2ZJxSfp3VLV2WUm0 D/vBbvllwPeTVYuQ3MskAqOLu61aHqf8ey1UADnSSjYly1Ep9qW7oQ3Ut9OeFllqSNwA zUCA== X-Gm-Message-State: APjAAAW7W/kzJ5Bom/uW1mwMqD0hALRInvByb8EVWWN5yx5SUkz3ji96 INZ1dA/jxivaSGg5w1rIgVp0QOYq X-Google-Smtp-Source: APXvYqyGd+gJhGc93Go8S1Ud4cTg5Zf+rv9+yroTy7zbaSiJjIns6FTnYGU/Smkrj0FqZbzdsWZywA== X-Received: by 2002:a62:3990:: with SMTP id u16mr13925103pfj.80.1551980674362; Thu, 07 Mar 2019 09:44:34 -0800 (PST) Received: from [10.0.2.15] (lcls-pc94808.slac.stanford.edu. [134.79.72.78]) by smtp.gmail.com with ESMTPSA id f125sm12253506pfc.91.2019.03.07.09.44.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Mar 2019 09:44:33 -0800 (PST) Subject: Re: Editing on the serial console To: Warner Losh , bob prohaska Cc: freebsd-arm@freebsd.org, Konstantin Belousov References: <20190307035427.GA42903@www.zefox.net> <30423F14-4038-4656-83FC-14DE0943B26B@dons.net.au> <20190307101011.GH2492@kib.kiev.ua> <20190307164119.GA43724@www.zefox.net> From: Nicola Mingotti Message-ID: Date: Thu, 7 Mar 2019 09:44:32 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 228ED6A941 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=U6qJ8tKJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of nmingotti@gmail.com designates 2607:f8b0:4864:20::542 as permitted sender) smtp.mailfrom=nmingotti@gmail.com X-Spamd-Result: default: False [-4.38 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.71)[-0.714,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-0.66)[ip: (1.54), ipnet: 2607:f8b0::/32(-2.72), asn: 15169(-2.05), country: US(-0.07)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Mar 2019 17:44:37 -0000 On 3/7/19 8:51 AM, Warner Losh wrote: > On Thu, Mar 7, 2019, 8:42 AM bob prohaska wrote: > >> On Thu, Mar 07, 2019 at 12:10:11PM +0200, Konstantin Belousov wrote: >>> On Thu, Mar 07, 2019 at 05:08:07PM +1030, O'Connor, Daniel wrote: >>>>> On 7 Mar 2019, at 14:24, bob prohaska wrote: >>>>> >>>>> Editing files in single-user mode on the serial console >>>>> is non-trivial. Both vi and ee have problems displaying >>>>> the file, ed doesn't really try so it works but isn't >>>>> much fun. Is there a better option? When the machine >>>>> boots single-user it reports "can't read /etc/termcap", >>>>> is something misconfigured? >>>> /etc/termcap is a symlink to /usr/share/misc/termcap - if you mount >> /usr (read only is fine) then it should work. >>>> ie since you are in single user mode only / has been mounted. >>>> >>>> If / and /usr are the same FS them something else is wrong :) >>> There is /etc/termcap.small, and I remember our libcurses uses TERMCAP >>> env variable to point to the termcap file. >> It never occurred to me that /etc/termcap might actually live elsewhere. >> That's almost certainly the problem. Would there be any drawback to >> simply moving the file back to /etc ? >> > On your system? None at all. I'd copy it, though. In the base system it is > where it is so new entries get reflected right after install world w/o > needing to run mergemaster. > > Warner > > > Thanks to everybody, When it all fails you can try "ed", the grandpa of all editors. It is line oriented, it works under the most disgraceful conditions. I think I had to use it maximum 3 times in my lifetime. bye Nicola