From owner-freebsd-arm@freebsd.org Thu Mar 7 16:41: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 99769150801A for ; Thu, 7 Mar 2019 16:41:37 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F4EF8E253; Thu, 7 Mar 2019 16:41:36 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id x27GfKKe046567 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 7 Mar 2019 08:41:21 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id x27GfKSY046566; Thu, 7 Mar 2019 08:41:20 -0800 (PST) (envelope-from fbsd) Date: Thu, 7 Mar 2019 08:41:19 -0800 From: bob prohaska To: Konstantin Belousov Cc: "O'Connor, Daniel" , freebsd-arm@freebsd.org Subject: Re: Editing on the serial console Message-ID: <20190307164119.GA43724@www.zefox.net> References: <20190307035427.GA42903@www.zefox.net> <30423F14-4038-4656-83FC-14DE0943B26B@dons.net.au> <20190307101011.GH2492@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190307101011.GH2492@kib.kiev.ua> User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 0F4EF8E253 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.96 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.959,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,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 16:41:37 -0000 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 ? Thanks to everybody, bob prohaska