From owner-freebsd-embedded@FreeBSD.ORG Sun Aug 11 13:25:45 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7F198A74; Sun, 11 Aug 2013 13:25:45 +0000 (UTC) (envelope-from mack@macktronics.com) Received: from borg.macktronics.com (borg.macktronics.com [209.181.253.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5058F2546; Sun, 11 Aug 2013 13:25:44 +0000 (UTC) Received: from olive.macktronics.com (olive.macktronics.com [209.181.253.67]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by borg.macktronics.com (Postfix) with ESMTPS id 930D8AEE; Sun, 11 Aug 2013 08:25:43 -0500 (CDT) Date: Sun, 11 Aug 2013 08:25:42 -0500 (CDT) From: Dan Mack To: Glen Barber Subject: Re: nanobsd-built system doesn't have SVN revision in "uname" (and it looks like regression) In-Reply-To: <20130810182459.GF2432@glenbarber.us> Message-ID: References: <383656436.20130810150849@serebryakov.spb.ru> <37152758.20130810151846@serebryakov.spb.ru> <602958881.20130810180203@serebryakov.spb.ru> <20130810141324.GD2432@glenbarber.us> <529930061.20130810191339@serebryakov.spb.ru> <20130810181152.GE2432@glenbarber.us> <20130810182459.GF2432@glenbarber.us> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Lev Serebryakov , freebsd-embedded@freebsd.org, freebsd-current@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Aug 2013 13:25:45 -0000 There's still one problem left ... the svnliteversion test fails because you are not in the correct directory. This is the patch that worked for me ... root@olive:/usr/src # svnlite diff sys/conf/newvers.sh Index: sys/conf/newvers.sh =================================================================== --- sys/conf/newvers.sh (revision 254187) +++ sys/conf/newvers.sh (working copy) @@ -105,7 +105,7 @@ done if [ -z "${svnversion}" ] && [ -x /usr/bin/svnliteversion ] ; then - /usr/bin/svnliteversion $(basename ${0}) >/dev/null 2>&1 + cd ${SYSDIR}/conf && /usr/bin/svnliteversion $(basename ${0}) >/dev/null 2>&1 if [ $? -eq 0 ]; then svnversion=/usr/bin/svnliteversion else On Sat, 10 Aug 2013, Glen Barber wrote: > On Sat, Aug 10, 2013 at 02:11:52PM -0400, Glen Barber wrote: >> On Sat, Aug 10, 2013 at 01:09:20PM -0500, Dan Mack wrote: >>> It looks like you are doing the first [! -z '"${svnversion}"' ] >>> before $svnversion is being set. In the old version, this was >>> being set via: >>> >>> if [ -x /usr/bin/svnliteversion ] ; then >>> svnversion=/usr/bin/svnliteversion >>> fi >>> >>> But I'm not sure if that's intentional or not ... >>> >> >> Ugh. No, this was not intentional. I'll have this fixed shortly. >> > > Fixed in r254184. The problem is that I was evaluating ${svnversion} > being set before looking for /usr/bin/svnliteversion; however when > _running_ /usr/bin/svnliteversion, it was being run as > /usr/bin/svnversion by mistake. > > Thank you for the reports, and Dan, thank you for your help. > > Glen > > dan -- Dan Mack From owner-freebsd-embedded@FreeBSD.ORG Sun Aug 11 13:57:50 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 82C58211; Sun, 11 Aug 2013 13:57:50 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from mail0.glenbarber.us (mail0.glenbarber.us [IPv6:2607:fc50:1:2300:1001:1001:1001:face]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 52445267F; Sun, 11 Aug 2013 13:57:50 +0000 (UTC) Received: from glenbarber.us (nucleus.glenbarber.us [IPv6:2001:470:8:1205:2:2:ff:29]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gjb) by mail0.glenbarber.us (Postfix) with ESMTPSA id CE7A9DE71; Sun, 11 Aug 2013 13:57:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.8.3 mail0.glenbarber.us CE7A9DE71 Authentication-Results: mail0.glenbarber.us; dkim=none reason="no signature"; dkim-adsp=none Date: Sun, 11 Aug 2013 09:57:46 -0400 From: Glen Barber To: Dan Mack Subject: Re: nanobsd-built system doesn't have SVN revision in "uname" (and it looks like regression) Message-ID: <20130811135746.GI2432@glenbarber.us> References: <37152758.20130810151846@serebryakov.spb.ru> <602958881.20130810180203@serebryakov.spb.ru> <20130810141324.GD2432@glenbarber.us> <529930061.20130810191339@serebryakov.spb.ru> <20130810181152.GE2432@glenbarber.us> <20130810182459.GF2432@glenbarber.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="STPqjqpCrtky8aYs" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Lev Serebryakov , freebsd-embedded@freebsd.org, freebsd-current@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Aug 2013 13:57:50 -0000 --STPqjqpCrtky8aYs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 11, 2013 at 08:25:42AM -0500, Dan Mack wrote: >=20 > There's still one problem left ... the svnliteversion test fails > because you are not in the correct directory. This is the patch that > worked for me ... >=20 Yep, you are correct. Although, rather than cd(1) to the SYSDIR directory, I think using realpath(1) is better, because that will use the full path to the newvers.sh script. Please try r254217, which should *finally* do the right thing. Glen --STPqjqpCrtky8aYs Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iQEcBAEBCAAGBQJSB5haAAoJEFJPDDeguUajMYoH/A2KW3FwM3qh4FdshGW2ltJG WU3jjQvFwUyoP9OZQlOmp3XPQKl3DXkTodN7yNl+HNXKdSuTfCdySqcKQ0LP2lne kbfQtHHdQkn8jFpDaveGGbissbE4t00GeNM4kxn8AzZrY7zENCE5uGR9KiMtpsWH oh3wrdCH3zTclHYYRc1RkwFIeNQVPYtGNe68NFJ2mux8gWGCbdXE0c2wnWhgCYmL q7ECDLDV5P6F1AiEztUyXFPiqaQNceg8aa0HBE0DNegYI3henT0I3FpoXKpXMhd+ yibSlF0Si/E0RWISWGTBxA9g/iKhknB7OEl2lPDduigQ711Q8jmHuj/7RuywXsI= =pCC0 -----END PGP SIGNATURE----- --STPqjqpCrtky8aYs-- From owner-freebsd-embedded@FreeBSD.ORG Sun Aug 11 14:00:58 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 33EFE36B; Sun, 11 Aug 2013 14:00:58 +0000 (UTC) (envelope-from mack@macktronics.com) Received: from borg.macktronics.com (borg.macktronics.com [209.181.253.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 04B2526BF; Sun, 11 Aug 2013 14:00:57 +0000 (UTC) Received: from olive.macktronics.com (olive.macktronics.com [209.181.253.67]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by borg.macktronics.com (Postfix) with ESMTPS id E6005AFA; Sun, 11 Aug 2013 09:00:56 -0500 (CDT) Date: Sun, 11 Aug 2013 09:00:56 -0500 (CDT) From: Dan Mack To: Glen Barber Subject: Re: nanobsd-built system doesn't have SVN revision in "uname" (and it looks like regression) In-Reply-To: <20130811135746.GI2432@glenbarber.us> Message-ID: References: <37152758.20130810151846@serebryakov.spb.ru> <602958881.20130810180203@serebryakov.spb.ru> <20130810141324.GD2432@glenbarber.us> <529930061.20130810191339@serebryakov.spb.ru> <20130810181152.GE2432@glenbarber.us> <20130810182459.GF2432@glenbarber.us> <20130811135746.GI2432@glenbarber.us> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Lev Serebryakov , freebsd-embedded@freebsd.org, freebsd-current@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Aug 2013 14:00:58 -0000 Yeah, I agree with avoiding the 'cd' as well. I'll give it a try shortly. Dan On Sun, 11 Aug 2013, Glen Barber wrote: > On Sun, Aug 11, 2013 at 08:25:42AM -0500, Dan Mack wrote: >> >> There's still one problem left ... the svnliteversion test fails >> because you are not in the correct directory. This is the patch that >> worked for me ... >> > > Yep, you are correct. Although, rather than cd(1) to the SYSDIR > directory, I think using realpath(1) is better, because that will use > the full path to the newvers.sh script. > > Please try r254217, which should *finally* do the right thing. > > Glen > > dan -- Dan Mack From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 12 11:06:43 2013 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 59E18AD5 for ; Mon, 12 Aug 2013 11:06:43 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 45BC32134 for ; Mon, 12 Aug 2013 11:06:43 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7CB6hlE084979 for ; Mon, 12 Aug 2013 11:06:43 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7CB6gxl084977 for freebsd-embedded@FreeBSD.org; Mon, 12 Aug 2013 11:06:42 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Aug 2013 11:06:42 GMT Message-Id: <201308121106.r7CB6gxl084977@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 11:06:43 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/177878 embedded [rtl8366rb] [patch] Update rtl8366rb switch driver to o bin/177873 embedded [patch] etherswitchcfg(): Change the per port vlangrou o bin/177872 embedded [patch] etherswitchcfg(8) crashes if called with no ar o bin/177871 embedded [patch] etherswitchcfg(8): uninitialized variable whil o kern/172968 embedded [arge] probe/attach occasionally fails to find a PHY o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c 7 problems total. From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 12 12:34:08 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 66262ECD; Mon, 12 Aug 2013 12:34:08 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-qa0-x22d.google.com (mail-qa0-x22d.google.com [IPv6:2607:f8b0:400d:c00::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 075B929D9; Mon, 12 Aug 2013 12:34:07 +0000 (UTC) Received: by mail-qa0-f45.google.com with SMTP id l18so971640qak.11 for ; Mon, 12 Aug 2013 05:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=BldTW6L/GZ0xQXogqhnhXQpJSrLV38cgM+PkUXWA/BQ=; b=xwYhAmYwZoco+yyCLHc0Xy9l0onNmiEfsdfP9mVkrCKArda8qiD1jAUE6vfkqh47qG 9zlFJAprA/2zVwc5GiGOJhgk0cs9iVTv97Az3ijsl5iJQc9mPcflszbT+py2GOfDIjZJ 9z9uHKPSgldgfgxcxxXfEEnopQ5WboJIbgNlOY5aBAOT7WXjOYj79UuGCCyLEZUrfbTe KkXHFuwXqC2DrfMPQIUhyBXJKBoSfiDWnyj8nfBwsMI680dxW2vu0WX+Kup3rWEIpTin SxVDTLkCLaojleyzeotsT6CmI45x5qYHvTsQRam6RIAIbu+CWVlN1O79A5jnbi7pL/Kc PhGg== MIME-Version: 1.0 X-Received: by 10.224.93.19 with SMTP id t19mr24294914qam.32.1376310847172; Mon, 12 Aug 2013 05:34:07 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.49.70.225 with HTTP; Mon, 12 Aug 2013 05:34:07 -0700 (PDT) Date: Mon, 12 Aug 2013 14:34:07 +0200 X-Google-Sender-Auth: IZwsWNn6OwITa4H1hzKsvpE4o38 Message-ID: Subject: Installer on serial-console-only-embedded system From: CeDeROM To: freebsd-stable@freebsd.org, freebsd-embedded@freebsd.org, freebsd-sysinstall@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 12:34:08 -0000 Hello :-) With my friend Jacek we have tried to perform PXE installation of FreeBSD 9 on an i386 embedded system for one project. This required adding "-h" or "comconsole" to the /boot/loader.conf so the input-output is done with serial console port, not video console. However, after installation, on this embedded system with no video console, system seems to be configured to use videoconsole by default... Is it possible to add this nice feature to the new installer that would recognise if installation is done with serial-port-console and then setup the installed system to work with serial-port-console by default not the videoconsole? We could try it out on 9.2-RC2 if possible :-) Best regards! :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 12 13:00:31 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E811E79A; Mon, 12 Aug 2013 13:00:31 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-qa0-x230.google.com (mail-qa0-x230.google.com [IPv6:2607:f8b0:400d:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8852B2B99; Mon, 12 Aug 2013 13:00:31 +0000 (UTC) Received: by mail-qa0-f48.google.com with SMTP id o19so980134qap.7 for ; Mon, 12 Aug 2013 06:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=+6glWz1qo6besg4FZS9v9BhoKI/Ir3Ua+W5Mq0jWPos=; b=YAOhTs2zAatqGkhW6EKe55tEbLSvxiQyOYQtafoD3XeaaErCck8aa2fL3bvHSyi54N tI8KUdivvseayAn5gMCAZp0/2bQdQqSvhJBo2Sa541ti46lMJgrKWzWBKGjEXwFacF8M GWTYy3hXLtO6vwHXN9QLUhKopNqzMp5xaq5myMoJWW3mpUrVCAMpFkiIoSGEKWcDrrfx BCu8I7ZXGgUA9Qiw50DF0gbOJOk0d3oY0tKFbQEYz0yOUbqrKZL+cFAzax3O8vrWPflx IDo1sYaWXQv4XCT0j/tu8UhBogdJ8Oq7BbL4NelFcpfbYF91Mjio9giuOIMUnZe3HrEH ylXg== MIME-Version: 1.0 X-Received: by 10.224.11.136 with SMTP id t8mr24275267qat.65.1376312430204; Mon, 12 Aug 2013 06:00:30 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.49.70.225 with HTTP; Mon, 12 Aug 2013 06:00:30 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Aug 2013 15:00:30 +0200 X-Google-Sender-Auth: HSsBnbuxdlIRoSTe2-aTSuSi8OQ Message-ID: Subject: Re: Installer on serial-console-only-embedded system From: CeDeROM To: Michael Sierchio Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable@freebsd.org, freebsd-embedded@freebsd.org, freebsd-sysinstall@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 13:00:32 -0000 On Mon, Aug 12, 2013 at 2:56 PM, Michael Sierchio wrote: > You need to change /etc/ttys to turn off the virtual consoles and turn > on a serial terminal. > (..) Thank you Michael for the hint! Do you think it would be sensible to put that functionality into a new installer to detect this kind of configuration and apply it over fresh system during install (just as it detects and verifies some partitioning formats)? Best regards! :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 12 13:05:11 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5012F92E for ; Mon, 12 Aug 2013 13:05:11 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-oa0-f51.google.com (mail-oa0-f51.google.com [209.85.219.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1AB522BD9 for ; Mon, 12 Aug 2013 13:05:10 +0000 (UTC) Received: by mail-oa0-f51.google.com with SMTP id h1so9539520oag.38 for ; Mon, 12 Aug 2013 06:05:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=cQoK3XZjCVpsK2F0mckcuBGSmiawaPNZ5eTs6NRCMsU=; b=KqGLuGxxN7wxaoHvBlZfmngPZlwOIEhDTnCmTCehMLU5zctQDYMO3yyb1TZw5FcW7w a8Ejki85L+tGd+cZ002TvBxobl8DPdTyqIrfXsaTfmD5fJTgATJTyQc7Ji7DBzNIA2/P DyqaM2QGS8fFeDHR28P917nkHA2oKSBH/Pq1k2HmP5rLFthaBmLQKAgjFXU0embVV/hh ZqVvuivgXX9e4B6KXXOrgvDtKzZeGa+yGOKfgi8fzXHhn8Ci3HIJGxzojpHLHzc8S8PT PV0iebUNuVzQfgf3IagWLtS3Xl8gGHkOvTNmEeslcI9EBzBeFi01Gv3zaESoQ67RHpOz zu3w== X-Gm-Message-State: ALoCoQlVAHEIRUZ0hhoZrs1KkupqhqzZgtICgnx0BCQWHFBtTHpGXSCybLBWipPA79rO2WAhOkP3 MIME-Version: 1.0 X-Received: by 10.182.204.72 with SMTP id kw8mr1423653obc.54.1376312217932; Mon, 12 Aug 2013 05:56:57 -0700 (PDT) Received: by 10.60.21.69 with HTTP; Mon, 12 Aug 2013 05:56:57 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Aug 2013 08:56:57 -0400 Message-ID: Subject: Re: Installer on serial-console-only-embedded system From: Michael Sierchio To: CeDeROM Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable@freebsd.org, freebsd-embedded@freebsd.org, freebsd-sysinstall@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 13:05:11 -0000 You need to change /etc/ttys to turn off the virtual consoles and turn on a serial terminal. E.g., ttyv0 "/usr/libexec/getty Pc" xterm off secure # Virtual terminals ttyv1 "/usr/libexec/getty Pc" xterm off secure ttyv2 "/usr/libexec/getty Pc" xterm off secure ttyv3 "/usr/libexec/getty Pc" xterm off secure ttyv4 "/usr/libexec/getty Pc" xterm off secure ttyv5 "/usr/libexec/getty Pc" xterm off secure ttyv6 "/usr/libexec/getty Pc" xterm off secure ttyv7 "/usr/libexec/getty Pc" xterm off secure ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu0 "/usr/libexec/getty std.9600" dialup on secure ttyu1 "/usr/libexec/getty std.9600" dialup off secure ttyu2 "/usr/libexec/getty std.9600" dialup off secure ttyu3 "/usr/libexec/getty std.9600" dialup off secure # Dumb console dcons "/usr/libexec/getty std.9600" vt100 off secure On Mon, Aug 12, 2013 at 8:34 AM, CeDeROM wrote: > Hello :-) > > With my friend Jacek we have tried to perform PXE installation of > FreeBSD 9 on an i386 embedded system for one project. This required > adding "-h" or "comconsole" to the /boot/loader.conf so the > input-output is done with serial console port, not video console. > However, after installation, on this embedded system with no video > console, system seems to be configured to use videoconsole by > default... > > Is it possible to add this nice feature to the new installer that > would recognise if installation is done with serial-port-console and > then setup the installed system to work with serial-port-console by > default not the videoconsole? We could try it out on 9.2-RC2 if > possible :-) > > Best regards! :-) > Tomek > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org" From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 12 13:11:19 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 42850B77; Mon, 12 Aug 2013 13:11:19 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-qc0-x234.google.com (mail-qc0-x234.google.com [IPv6:2607:f8b0:400d:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D49592C68; Mon, 12 Aug 2013 13:11:18 +0000 (UTC) Received: by mail-qc0-f180.google.com with SMTP id j10so3382572qcx.11 for ; Mon, 12 Aug 2013 06:11:18 -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:content-type; bh=6+PtK++NRTaGo+wdSwD7zFAeGFHrk+Lf0rIAwSdveMA=; b=gyNesdyuK8h9vJBpPNyJ+Z4p34JayrnfT1oN+9fWJleM8Z66MaAyQLQhMKGpZWG7I/ /5KkdNHBErG/Y5Ajce9bsxF5C5sxuagLmpJ7+XwDmcORHGq19oq0OuDv0IHkY8nXxxC3 0iPAuow8sjSXkWKh6J+Stj9e4wMIYIrQdzxjKmB9J2uZaVEyB+bAqxp/PjUrbjEssd6h vrVCSVhPAoMxqkEDG5rwItTdTIcruwdbzRyYFu9c2HS9HKSpa2Q6MfQrJKngBIT3Y0aA q6ih0jg3lrqM1l8Wgq+uWk+57g4H/trDRGOZhDjfOaIgdJm6cMs1njEzPvwDZps8ACLO j7HQ== MIME-Version: 1.0 X-Received: by 10.224.67.8 with SMTP id p8mr24450058qai.5.1376313077956; Mon, 12 Aug 2013 06:11:17 -0700 (PDT) Received: by 10.224.5.195 with HTTP; Mon, 12 Aug 2013 06:11:17 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Aug 2013 16:11:17 +0300 Message-ID: Subject: Re: Installer on serial-console-only-embedded system From: Kimmo Paasiala To: CeDeROM Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable@freebsd.org, freebsd-embedded@freebsd.org, freebsd-sysinstall@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 13:11:19 -0000 On Mon, Aug 12, 2013 at 4:00 PM, CeDeROM wrote: > On Mon, Aug 12, 2013 at 2:56 PM, Michael Sierchio wrote: >> You need to change /etc/ttys to turn off the virtual consoles and turn >> on a serial terminal. >> (..) > > Thank you Michael for the hint! Do you think it would be sensible to > put that functionality into a new installer to detect this kind of > configuration and apply it over fresh system during install (just as > it detects and verifies some partitioning formats)? > > Best regards! :-) > Tomek > > -- You can easily detect that the system has a COM port. However, it is very hard to detect that there is a working terminal attached to the port. -Kimmo From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 12 13:25:44 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A3FBE2F6; Mon, 12 Aug 2013 13:25:44 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-qa0-x235.google.com (mail-qa0-x235.google.com [IPv6:2607:f8b0:400d:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 422572D74; Mon, 12 Aug 2013 13:25:44 +0000 (UTC) Received: by mail-qa0-f53.google.com with SMTP id hu14so1006225qab.12 for ; Mon, 12 Aug 2013 06:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=SZllKm5uMtz4nMbsgIdUMOwEdr5G2rTKEPbiBwA7mhg=; b=iWXyX2iNnJSxJqOllyATH/uaArv9bjc0996+F7B6q1/4rtHYvpoI3HR3hgIU2SYOx7 vjZyRoGIphbAdlh9rji1pmvkh2Wjtnmw3iahuNdGoHJtTjhePoq/aQfDwGgPhygt9Erz USXvdmg2KkWe3lvXy0b4tV31L49yFGoFdSAG938lMTMU5MMScZdwB/QZAcpJ5Wdn14V+ +aHecDTNUO4pKx3BqUUJl19n+be6nwEkxhClBT/F54pRtOBCo5vLQowR0lt80rhyucwb wU6ESB/8YIzq/BrMZjKEcTYH7cZJIswN9Z9EtY+S1eAexjsFrHn/Yaj2vp3L0dU9JZrn hfOg== MIME-Version: 1.0 X-Received: by 10.224.138.8 with SMTP id y8mr24838168qat.27.1376313943390; Mon, 12 Aug 2013 06:25:43 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.49.70.225 with HTTP; Mon, 12 Aug 2013 06:25:43 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Aug 2013 15:25:43 +0200 X-Google-Sender-Auth: gDjlsB3PAbycpX3QlyMMe35WytA Message-ID: Subject: Re: Installer on serial-console-only-embedded system From: CeDeROM To: Kimmo Paasiala Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable@freebsd.org, freebsd-embedded@freebsd.org, freebsd-sysinstall@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 13:25:44 -0000 On Mon, Aug 12, 2013 at 3:11 PM, Kimmo Paasiala wrote: > You can easily detect that the system has a COM port. However, it is > very hard to detect that there is a working terminal attached to the > port. > -Kimmo Hey Kimmo :-) Wouldn't "who" or "w" show that what terminal is user/installer running on? :-P Sorry I don't have that device for testing at hand, but try to verify that with some older hardware :-) Best regards! :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 12 13:53:19 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6ABAECE2; Mon, 12 Aug 2013 13:53:19 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 320B42F95; Mon, 12 Aug 2013 13:53:18 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.31]) by ltcfislmsgpa06.fnfis.com (8.14.5/8.14.5) with ESMTP id r7CDrHwM002146 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Mon, 12 Aug 2013 08:53:17 -0500 Received: from LTCFISWMSGMB21.FNFIS.com ([169.254.1.135]) by LTCFISWMSGHT03.FNFIS.com ([10.132.206.31]) with mapi id 14.02.0309.002; Mon, 12 Aug 2013 08:53:15 -0500 From: "Teske, Devin" To: Michael Sierchio Subject: Re: Installer on serial-console-only-embedded system Thread-Topic: Installer on serial-console-only-embedded system Thread-Index: AQHOl1hFZpi0NkgvikWRgwY4FEZv0pmR2/uAgAAPu4A= Date: Mon, 12 Aug 2013 13:53:15 +0000 Message-ID: <13CA24D6AB415D428143D44749F57D7202011A07@ltcfiswmsgmb21> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.132.253.126] Content-Type: text/plain; charset="us-ascii" Content-ID: <6083EE1D6B002F47906DD74073D92626@fisglobal.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794, 1.0.431, 0.0.0000 definitions=2013-08-12_03:2013-08-12,2013-08-12,1970-01-01 signatures=0 Cc: Devin Teske , "freebsd-sysinstall@freebsd.org" , freebsd-stable stable , "freebsd-embedded@freebsd.org" , CeDeROM X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Devin Teske List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 13:53:19 -0000 sysinstall had the ability to allow you to muck with /etc/ttys before reboo= ting to your installed OS. This functionality is coming back slowly. In 9.2-R you will be able to (somehow) bow out of the installation process = after it's complete (e.g., "Ctrl-C" ??) and then run bsdconfig -- invoking = the "TTYs" module, giving you a chance to change the settings before you re= boot from your newly installed system. Tighter Integration will follow in the years to come... but replacing a too= l that had a 15-year run which did _all_ of this stuff, is/was not an overn= ight project. Rather, it's a journey! --=20 Devin On Aug 12, 2013, at 5:56 AM, Michael Sierchio wrote: > You need to change /etc/ttys to turn off the virtual consoles and turn > on a serial terminal. > E.g., >=20 > ttyv0 "/usr/libexec/getty Pc" xterm off secure > # Virtual terminals > ttyv1 "/usr/libexec/getty Pc" xterm off secure > ttyv2 "/usr/libexec/getty Pc" xterm off secure > ttyv3 "/usr/libexec/getty Pc" xterm off secure > ttyv4 "/usr/libexec/getty Pc" xterm off secure > ttyv5 "/usr/libexec/getty Pc" xterm off secure > ttyv6 "/usr/libexec/getty Pc" xterm off secure > ttyv7 "/usr/libexec/getty Pc" xterm off secure > ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure > # Serial terminals > # The 'dialup' keyword identifies dialin lines to login, fingerd etc. > ttyu0 "/usr/libexec/getty std.9600" dialup on secure > ttyu1 "/usr/libexec/getty std.9600" dialup off secure > ttyu2 "/usr/libexec/getty std.9600" dialup off secure > ttyu3 "/usr/libexec/getty std.9600" dialup off secure > # Dumb console > dcons "/usr/libexec/getty std.9600" vt100 off secure >=20 > On Mon, Aug 12, 2013 at 8:34 AM, CeDeROM wrote: >> Hello :-) >>=20 >> With my friend Jacek we have tried to perform PXE installation of >> FreeBSD 9 on an i386 embedded system for one project. This required >> adding "-h" or "comconsole" to the /boot/loader.conf so the >> input-output is done with serial console port, not video console. >> However, after installation, on this embedded system with no video >> console, system seems to be configured to use videoconsole by >> default... >>=20 >> Is it possible to add this nice feature to the new installer that >> would recognise if installation is done with serial-port-console and >> then setup the installed system to work with serial-port-console by >> default not the videoconsole? We could try it out on 9.2-RC2 if >> possible :-) >>=20 >> Best regards! :-) >> Tomek >>=20 >> -- >> CeDeROM, SQ7MHZ, http://www.tomek.cedro.info >> _______________________________________________ >> freebsd-embedded@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded >> To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.o= rg" > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 12 17:06:27 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7BCCEDD5; Mon, 12 Aug 2013 17:06:27 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from mail.ambrisko.com (mail.ambrisko.com [70.91.206.90]) by mx1.freebsd.org (Postfix) with ESMTP id 4CB292D2F; Mon, 12 Aug 2013 17:06:27 +0000 (UTC) X-Ambrisko-Me: Yes Received: from server2.ambrisko.com (HELO internal.ambrisko.com) ([192.168.1.2]) by ironport.ambrisko.com with ESMTP; 12 Aug 2013 10:09:46 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by internal.ambrisko.com (8.14.4/8.14.4) with ESMTP id r7CH6KeC097350; Mon, 12 Aug 2013 10:06:20 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.14.4/8.14.4/Submit) id r7CH6KH6097348; Mon, 12 Aug 2013 10:06:20 -0700 (PDT) (envelope-from ambrisko) Date: Mon, 12 Aug 2013 10:06:20 -0700 From: Doug Ambrisko To: Devin Teske Subject: Re: Installer on serial-console-only-embedded system Message-ID: <20130812170620.GA79998@ambrisko.com> References: <13CA24D6AB415D428143D44749F57D7202011A07@ltcfiswmsgmb21> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13CA24D6AB415D428143D44749F57D7202011A07@ltcfiswmsgmb21> User-Agent: Mutt/1.4.2.3i Cc: freebsd-stable stable , CeDeROM , "freebsd-sysinstall@freebsd.org" , "freebsd-embedded@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 17:06:27 -0000 On Mon, Aug 12, 2013 at 01:53:15PM +0000, Teske, Devin wrote: | sysinstall had the ability to allow you to muck with /etc/ttys before | rebooting to your installed OS. | | This functionality is coming back slowly. | | In 9.2-R you will be able to (somehow) bow out of the installation process | after it's complete (e.g., "Ctrl-C" ??) and then run bsdconfig -- invoking | the "TTYs" module, giving you a chance to change the settings before you | reboot from your newly installed system. | | Tighter Integration will follow in the years to come... but replacing a | tool that had a 15-year run which did _all_ of this stuff, is/was not an | overnight project. Rather, it's a journey! I also had made changes to sysinstall that if it detected a boot with -h then it did the /etc/tty etc. changes automatically to the installed system. It would be good to see this come back. I'm not sure if Robert's official changes did that. It's fairly easy to check what the console device is and then do the right thing. Thanks, Doug A.