From owner-freebsd-arm@freebsd.org Thu Mar 7 10:10:40 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 5C7251528670 for ; Thu, 7 Mar 2019 10:10:40 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CD02174DEC for ; Thu, 7 Mar 2019 10:10:39 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x27AACY7027419 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 7 Mar 2019 12:10:15 +0200 (EET) (envelope-from kib@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x27AACY7027419 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x27AAB6N027391; Thu, 7 Mar 2019 12:10:11 +0200 (EET) (envelope-from kib@freebsd.org) X-Authentication-Warning: tom.home: kostik set sender to kib@freebsd.org using -f Date: Thu, 7 Mar 2019 12:10:11 +0200 From: Konstantin Belousov To: "O'Connor, Daniel" Cc: bob prohaska , freebsd-arm@freebsd.org Subject: Re: Editing on the serial console Message-ID: <20190307101011.GH2492@kib.kiev.ua> References: <20190307035427.GA42903@www.zefox.net> <30423F14-4038-4656-83FC-14DE0943B26B@dons.net.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30423F14-4038-4656-83FC-14DE0943B26B@dons.net.au> User-Agent: Mutt/1.11.3 (2019-02-01) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home 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 10:10:40 -0000 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.