From owner-freebsd-embedded@FreeBSD.ORG Mon Dec 8 11:06:53 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E85F01065676 for ; Mon, 8 Dec 2008 11:06:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D59838FC16 for ; Mon, 8 Dec 2008 11:06:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mB8B6rWi014218 for ; Mon, 8 Dec 2008 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mB8B6rWL014214 for freebsd-embedded@FreeBSD.org; Mon, 8 Dec 2008 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 8 Dec 2008 11:06:53 GMT Message-Id: <200812081106.mB8B6rWL014214@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 Cc: Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2008 11:06:54 -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/101228 embedded [nanobsd] [patch] Two more entries for FlashDevice.sub 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 o misc/15876 embedded [picobsd] PicoBSD message of the day problems 4 problems total. From owner-freebsd-embedded@FreeBSD.ORG Mon Dec 8 14:27:57 2008 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0847106564A; Mon, 8 Dec 2008 14:27:57 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 824168FC1D; Mon, 8 Dec 2008 14:27:57 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id mB8ERtd9006951; Mon, 8 Dec 2008 07:27:56 -0700 Message-ID: <493D2EE9.4060808@semihalf.com> Date: Mon, 08 Dec 2008 15:27:53 +0100 From: Rafal Jaworowski Organization: Semihalf MIME-Version: 1.0 To: Stanislav Sedov References: <493943FC.8080001@semihalf.com> <20081206171829.82f0618a.stas@FreeBSD.org> In-Reply-To: <20081206171829.82f0618a.stas@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: embedded@freebsd.org Subject: Re: i2c(8) diagnostic tool for review X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2008 14:27:57 -0000 Stanislav Sedov wrote: > On Fri, 05 Dec 2008 16:08:44 +0100 > Rafal Jaworowski mentioned: > >> This nice little program is helpful with inspecting an I2C bus, when bringing >> up a new system, or just for diagnostic purposes: >> http://people.freebsd.org/~raj/patches/misc/i2c.diff >> >> Note the patch extends the /dev/iicX interface with a ioctl for the 'repeated >> start' method. >> >> More detailed description of the tool is in the manual page: >> http://people.freebsd.org/~raj/patches/misc/i2c-man.txt >> >> Any comments welcome. >> > > Great! > I haven't tried the tool itself yet, but there're some comments for > the source itself. Hopefully, it'll be useful. Thanks a lot for the review and comments. We'll try to correct all identified issues. [...] >> +.if ${MACHINE_ARCH} == "arm" >> +_i2c= i2c >> +.endif > > It there any specific reason the utility is limited to arm? I2C interface > is generic enough, and I think the utility will be useful for other platforms > as well. It should work on any platform, actually it was also used on PowerPC MPC85XX without problems. It's only this current version of the patch that had build limited to ARM. Rafal From owner-freebsd-embedded@FreeBSD.ORG Tue Dec 9 18:11:44 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D33E106564A for ; Tue, 9 Dec 2008 18:11:44 +0000 (UTC) (envelope-from mah@jump-ing.de) Received: from mail.ud03.udmedia.de (ud03.udmedia.de [194.117.254.43]) by mx1.freebsd.org (Postfix) with ESMTP id BE7728FC17 for ; Tue, 9 Dec 2008 18:11:43 +0000 (UTC) (envelope-from mah@jump-ing.de) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud03.udmedia.de; h= mime-version:content-transfer-encoding:message-id:content-type: to:from:subject:date; q=dns/txt; s=beta; bh=saVxVNJnk68eNSerdbxN cIk89GA8ZXDUQM67Og5UURo=; b=RbzJfFZw4FggkrbD5eYfgnjDg7BthVweIZbt jPKPnTMmqszawyTuodlvDWTvE2FJ7ikVjI46zKmrGbmekhN02fIYmjPOzAX9Lsm6 f4tEpeNGLVP6khYo+ga+fdoMNanjwAPcAcYk0+iMP/VE7BN5BItid7a6xvIZwuiX s5vu7rE= Received: (qmail 1827 invoked from network); 9 Dec 2008 19:11:40 +0100 Received: from unknown (HELO ?10.0.0.50?) (ud03?291p1@78.42.215.201) by mail.ud03.udmedia.de with ESMTPA; 9 Dec 2008 19:11:40 +0100 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-embedded@freebsd.org From: Markus Hitter Date: Tue, 9 Dec 2008 19:11:29 +0100 X-Mailer: Apple Mail (2.753.1) Subject: How to notify for maintenance X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 18:11:44 -0000 Hello all, my TinyBSD box is running fine and for security reasons, I've removed (almost) everything executable. One of the few remainings is lighttpd, to make a web server. The small problem now is, this box needs some moderately complex maintenance from time to time which I want to do from the outside (another computer). Storing root keys and software to use it on the same computer running lighttpd doesn't make me feel good. The question is: How would I securely notify another computer to do this (automatic) maintenance? Whatever I think of, this requires at least an ssh certificate and is pretty universal allowing it to be used to trigger harmful things as well. Any insight to best practices is welcome. Thanks, Markus Hitter - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ From owner-freebsd-embedded@FreeBSD.ORG Tue Dec 9 20:29:01 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E364106564A for ; Tue, 9 Dec 2008 20:29:01 +0000 (UTC) (envelope-from brix@FreeBSD.org) Received: from solow.pil.dk (relay.pil.dk [195.41.47.164]) by mx1.freebsd.org (Postfix) with ESMTP id 5D7598FC1C for ; Tue, 9 Dec 2008 20:29:01 +0000 (UTC) (envelope-from brix@FreeBSD.org) Received: from tirith.brixandersen.dk (0x55534f5f.adsl.cybercity.dk [85.83.79.95]) by solow.pil.dk (Postfix) with ESMTPA id 4CF481CC1BA for ; Tue, 9 Dec 2008 21:09:32 +0100 (CET) Received: by tirith.brixandersen.dk (Postfix, from userid 1001) id B3AE01141D; Tue, 9 Dec 2008 21:09:30 +0100 (CET) Date: Tue, 9 Dec 2008 21:09:30 +0100 From: Henrik Brix Andersen To: freebsd-embedded@freebsd.org Message-ID: <20081209200929.GA42936@tirith.brixandersen.dk> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.brixandersen.dk/files/HenrikBrixAndersen.asc User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: How to notify for maintenance X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 20:29:01 -0000 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 09, 2008 at 07:11:29PM +0100, Markus Hitter wrote: > The small problem now is, this box needs some moderately complex =20 > maintenance from time to time which I want to do from the outside =20 > (another computer). Storing root keys and software to use it on the =20 > same computer running lighttpd doesn't make me feel good. >=20 > The question is: How would I securely notify another computer to do =20 > this (automatic) maintenance? Whatever I think of, this requires at =20 > least an ssh certificate and is pretty universal allowing it to be =20 > used to trigger harmful things as well. Turn the scenario the other way around and have the trusted 'remote' computer initiate the maintenance at given intervals? Brix --=20 Henrik Brix Andersen --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) Comment: GnuPG signed iEYEARECAAYFAkk+0HkACgkQv+Q4flTiePgYoQCgr8YEV4ImvZAGKmI/aTqhi3y4 vkwAn3eBGyQ/Niq3N9RKIt6kKtyAUvmd =kJiR -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh-- From owner-freebsd-embedded@FreeBSD.ORG Tue Dec 9 21:29:56 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49842106564A for ; Tue, 9 Dec 2008 21:29:56 +0000 (UTC) (envelope-from mah@jump-ing.de) Received: from mail.ud03.udmedia.de (ud03.udmedia.de [194.117.254.43]) by mx1.freebsd.org (Postfix) with ESMTP id A68F98FC18 for ; Tue, 9 Dec 2008 21:29:55 +0000 (UTC) (envelope-from mah@jump-ing.de) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud03.udmedia.de; h= in-reply-to:references:mime-version:content-type:message-id:cc: content-transfer-encoding:from:subject:date:to; q=dns/txt; s= beta; bh=Lv642FHUTnQX9l7px19LL6fxY4RLJkG57Y6icFeWc2w=; b=ckPfE5f JDoIj0lFn24gSAazbxggKphQyBPTF6y25l5+9tqFeS6HzyjW8m7vKc6bqGaON2+t gEuaH+er6voR8iwj8Bw2+kzTuxSvXVGqk16Gdd5q/8jpmHFG7qX+1Y/9rS/pQ2uY QriB4E7GiwFY4sIrvx1ybeidtGI5nX0eH3Vk= Received: (qmail 28667 invoked from network); 9 Dec 2008 22:29:53 +0100 Received: from unknown (HELO ?10.0.0.50?) (ud03?291p1@78.42.215.201) by mail.ud03.udmedia.de with ESMTPA; 9 Dec 2008 22:29:53 +0100 In-Reply-To: <20081209200929.GA42936@tirith.brixandersen.dk> References: <20081209200929.GA42936@tirith.brixandersen.dk> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <734FD4D0-D897-4742-B7A7-E4BA42AB39D7@jump-ing.de> Content-Transfer-Encoding: 7bit From: Markus Hitter Date: Tue, 9 Dec 2008 22:29:37 +0100 To: Henrik Brix Andersen X-Mailer: Apple Mail (2.753.1) Cc: freebsd-embedded@freebsd.org Subject: Re: How to notify for maintenance X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 21:29:56 -0000 Am 09.12.2008 um 21:09 schrieb Henrik Brix Andersen: > Turn the scenario the other way around and have the trusted 'remote' > computer initiate the maintenance at given intervals? The unfortunate thing I forgot is, the web server is the only one meant to run around the clock. All others go to sleep, but can be woken on demand (by a special network ping). MarKus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ From owner-freebsd-embedded@FreeBSD.ORG Tue Dec 9 21:50:55 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A7CD1065670 for ; Tue, 9 Dec 2008 21:50:55 +0000 (UTC) (envelope-from brix@FreeBSD.org) Received: from solow.pil.dk (relay.pil.dk [195.41.47.164]) by mx1.freebsd.org (Postfix) with ESMTP id 572AD8FC13 for ; Tue, 9 Dec 2008 21:50:55 +0000 (UTC) (envelope-from brix@FreeBSD.org) Received: from tirith.brixandersen.dk (0x55534f5f.adsl.cybercity.dk [85.83.79.95]) by solow.pil.dk (Postfix) with ESMTPA id 356831CC1B0 for ; Tue, 9 Dec 2008 22:50:54 +0100 (CET) Received: by tirith.brixandersen.dk (Postfix, from userid 1001) id C4EFB1141D; Tue, 9 Dec 2008 22:50:52 +0100 (CET) Date: Tue, 9 Dec 2008 22:50:52 +0100 From: Henrik Brix Andersen To: freebsd-embedded@freebsd.org Message-ID: <20081209215052.GC42936@tirith.brixandersen.dk> References: <20081209200929.GA42936@tirith.brixandersen.dk> <734FD4D0-D897-4742-B7A7-E4BA42AB39D7@jump-ing.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xo44VMWPx7vlQ2+2" Content-Disposition: inline In-Reply-To: <734FD4D0-D897-4742-B7A7-E4BA42AB39D7@jump-ing.de> X-PGP-Key: http://www.brixandersen.dk/files/HenrikBrixAndersen.asc User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: How to notify for maintenance X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 21:50:55 -0000 --xo44VMWPx7vlQ2+2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 09, 2008 at 10:29:37PM +0100, Markus Hitter wrote: > Am 09.12.2008 um 21:09 schrieb Henrik Brix Andersen: >=20 > > Turn the scenario the other way around and have the trusted 'remote' > > computer initiate the maintenance at given intervals? >=20 > The unfortunate thing I forgot is, the web server is the only one =20 > meant to run around the clock. All others go to sleep, but can be =20 > woken on demand (by a special network ping). How about making them wake-up on a timer event instead? Many BIOS'es support this. If this isn't good for you, you could perform the WoL as described above and still have the trusted, newly awakened host initiate the connection. Brix --=20 Henrik Brix Andersen --xo44VMWPx7vlQ2+2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) Comment: GnuPG signed iEYEARECAAYFAkk+6DsACgkQv+Q4flTiePgM4ACfUI8vWZUM3FdTro5VXbLhFzMx RDEAn1cfkA/u60+jpVhJhQhwEIMlFlaV =dBEK -----END PGP SIGNATURE----- --xo44VMWPx7vlQ2+2-- From owner-freebsd-embedded@FreeBSD.ORG Wed Dec 10 10:12:52 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C20B9106567C for ; Wed, 10 Dec 2008 10:12:52 +0000 (UTC) (envelope-from mah@jump-ing.de) Received: from mail.ud03.udmedia.de (ud03.udmedia.de [194.117.254.43]) by mx1.freebsd.org (Postfix) with ESMTP id 28CC98FC1E for ; Wed, 10 Dec 2008 10:12:51 +0000 (UTC) (envelope-from mah@jump-ing.de) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud03.udmedia.de; h= in-reply-to:references:mime-version:content-type:message-id:cc: content-transfer-encoding:from:subject:date:to; q=dns/txt; s= beta; bh=C5Dxi7uE0OEMQaKwN1Nj8YR+bxXvrEoSbPFuZsEG0Mc=; b=FEsjhP/ /PwAq+f6kotazkZTKHdT5Odc4w+TpL/A3s+jMGCKu0bPQ9/L7QO3ajl1KLzN4t5I 1rj3zsPJmqSzlq5mvFpKqo+5kTXv6iz5rk9q8+n11SbFwxHktYsNX1VWdVg7LGqG 2+cfUpNdtlqKXg7RT+UTCJc9T6NIyorVb1JE= Received: (qmail 7376 invoked from network); 10 Dec 2008 11:12:49 +0100 Received: from unknown (HELO ?10.0.0.50?) (ud03?291p1@78.42.215.201) by mail.ud03.udmedia.de with ESMTPA; 10 Dec 2008 11:12:49 +0100 In-Reply-To: <20081209215052.GC42936@tirith.brixandersen.dk> References: <20081209200929.GA42936@tirith.brixandersen.dk> <734FD4D0-D897-4742-B7A7-E4BA42AB39D7@jump-ing.de> <20081209215052.GC42936@tirith.brixandersen.dk> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Markus Hitter Date: Wed, 10 Dec 2008 11:12:51 +0100 To: Henrik Brix Andersen X-Mailer: Apple Mail (2.753.1) Cc: freebsd-embedded@freebsd.org Subject: Re: How to notify for maintenance X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2008 10:12:52 -0000 Am 09.12.2008 um 22:50 schrieb Henrik Brix Andersen: > you could perform the WoL as described > above and still have the trusted, newly awakened host initiate the > connection. This one sounds the best, I'll follow that path. Many thanks, Henrik :-) MarKus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ From owner-freebsd-embedded@FreeBSD.ORG Sat Dec 13 17:06:35 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E618D1065670 for ; Sat, 13 Dec 2008 17:06:35 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id A72338FC16 for ; Sat, 13 Dec 2008 17:06:35 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id F1A561E63E0 for ; Sat, 13 Dec 2008 12:06:34 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Sat, 13 Dec 2008 12:06:34 -0500 X-Sasl-enc: YXs6LY/87sshPugKydtYHnVlbeDur4zOY5aAMzg/4BsF 1229187994 Received: from anglepoise.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 743DBB4C1 for ; Sat, 13 Dec 2008 12:06:34 -0500 (EST) Message-ID: <4943EB97.40109@incunabulum.net> Date: Sat, 13 Dec 2008 17:06:31 +0000 From: Bruce Simpson User-Agent: Thunderbird 2.0.0.18 (X11/20081204) MIME-Version: 1.0 To: freebsd-embedded@FreeBSD.org Content-Type: multipart/mixed; boundary="------------000607000200010001050002" Cc: Subject: npe(4) closet cleaning X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2008 17:06:36 -0000 This is a multi-part message in MIME format. --------------000607000200010001050002 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, Here is a patch I found I needed with the Freecom FSG3 to get other PHY drivers to attach. I have not committed it because it's strictly development code at the moment. cheers BMS --------------000607000200010001050002 Content-Type: text/plain; name="npe.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="npe.diff" Index: sys/arm/xscale/ixp425/if_npe.c =================================================================== --- sys/arm/xscale/ixp425/if_npe.c (revision 186036) +++ sys/arm/xscale/ixp425/if_npe.c (working copy) @@ -83,6 +83,8 @@ #include #include +#include "miidevs.h" + #include #include "miibus_if.h" @@ -140,6 +142,9 @@ struct npestats *sc_stats; bus_dmamap_t sc_stats_map; bus_addr_t sc_stats_phys; /* phys addr of sc_stats */ + int sc_force_bmsr; + int sc_force_idr1; + int sc_force_idr2; }; /* @@ -244,6 +249,8 @@ static uint32_t npe_getimageid(struct npe_softc *); static int npe_setloopback(struct npe_softc *, int ena); #endif +static int npe_miibus_readreg(device_t dev, int phy, int reg); +static void npe_miibus_writereg(device_t dev, int phy, int reg, int data); /* NB: all tx done processing goes through one queue */ static int tx_doneqid = -1; @@ -733,6 +740,18 @@ if (!override_unit(dev, "phy", &sc->sc_phy, 0, MII_NPHY-1)) sc->sc_phy = npeconfig[unit].phy; + /* + * Allow PHY OUI/model and BMSR to be forced, as some boards have + * a PHY which does not have ID registers (e.g. the RTL8305SB + * on a Freecom FSG3). + */ + if (!override_unit(dev, "force_bmsr", &sc->sc_force_bmsr, 0, 0xFFFF)) + sc->sc_force_bmsr = 0; + if (!override_unit(dev, "force_idr1", &sc->sc_force_idr1, 0, 0xFFFF)) + sc->sc_force_idr1 = 0; + if (!override_unit(dev, "force_idr2", &sc->sc_force_idr2, 0, 0xFFFF)) + sc->sc_force_idr2 = 0; + KASSERT(npes[npeconfig[unit].npeid] == NULL, ("npe %u already setup", npeconfig[unit].npeid)); npes[npeconfig[unit].npeid] = sc; @@ -1598,6 +1617,14 @@ if (phy != sc->sc_phy) /* XXX no auto-detect */ return 0xffff; + + if (reg == MII_BMSR && sc->sc_force_bmsr != 0x0000) + return (sc->sc_force_bmsr); + if (reg == MII_PHYIDR1 && sc->sc_force_idr1 != 0x0000) + return (sc->sc_force_idr1); + if (reg == MII_PHYIDR2 && sc->sc_force_idr2 != 0x0000) + return (sc->sc_force_idr2); + v = (phy << NPE_MII_ADDR_SHL) | (reg << NPE_MII_REG_SHL) | NPE_MII_GO; npe_mii_mdio_write(sc, NPE_MAC_MDIO_CMD, v); @@ -1605,6 +1632,7 @@ v = npe_mii_mdio_read(sc, NPE_MAC_MDIO_STS); else v = 0xffff | NPE_MII_READ_FAIL; + return (v & NPE_MII_READ_FAIL) ? 0xffff : (v & 0xffff); #undef MAXTRIES } @@ -1617,6 +1645,7 @@ if (phy != sc->sc_phy) /* XXX */ return; + v = (phy << NPE_MII_ADDR_SHL) | (reg << NPE_MII_REG_SHL) | data | NPE_MII_WRITE | NPE_MII_GO; --------------000607000200010001050002-- From owner-freebsd-embedded@FreeBSD.ORG Sat Dec 13 17:11:04 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA7F81065673 for ; Sat, 13 Dec 2008 17:11:04 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id C009B8FC08 for ; Sat, 13 Dec 2008 17:11:04 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 7C9981E51A2 for ; Sat, 13 Dec 2008 12:11:04 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Sat, 13 Dec 2008 12:11:04 -0500 X-Sasl-enc: oh/wPqJ/5+Ksp3wc8/mabNUV7V8IAYV4fg0AXwLEqpdA 1229188264 Received: from anglepoise.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 0E3DF3A23F for ; Sat, 13 Dec 2008 12:11:03 -0500 (EST) Message-ID: <4943ECA5.6030203@incunabulum.net> Date: Sat, 13 Dec 2008 17:11:01 +0000 From: Bruce Simpson User-Agent: Thunderbird 2.0.0.18 (X11/20081204) MIME-Version: 1.0 To: freebsd-embedded@FreeBSD.org Content-Type: multipart/mixed; boundary="------------070206030508060602000706" Cc: Subject: ARM closet cleaning: static kenv X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2008 17:11:05 -0000 This is a multi-part message in MIME format. --------------070206030508060602000706 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit This is a patch for avila_machdep to tell it to use a statically compiled kenv vector. I found I needed it when hacking on the NSLU2. cheers BMS --------------070206030508060602000706 Content-Type: text/plain; name="arm-use-env.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="arm-use-env.diff" Index: sys/arm/xscale/ixp425/avila_machdep.c =================================================================== --- sys/arm/xscale/ixp425/avila_machdep.c (revision 186036) +++ sys/arm/xscale/ixp425/avila_machdep.c (working copy) @@ -259,6 +259,7 @@ vm_offset_t freemem_after; vm_offset_t lastaddr; uint32_t memsize; + char *p; set_cpufuncs(); lastaddr = fake_preload_metadata(); @@ -475,16 +476,29 @@ phys_avail[i++] = trunc_page(0x10000000 + memsize - 1); phys_avail[i++] = 0; phys_avail[i] = 0; - + + /* use static kernel environment if so configured */ + if (envmode == 1) + kern_envp = static_env; + + /* + * Catch case of boot_verbose set in environment. + */ + if ((p = getenv("boot_verbose")) != NULL) { + if (strcmp(p, "yes") == 0 || strcmp(p, "YES") == 0) { + boothowto |= RB_VERBOSE; + } + freeenv(p); + } + + if (boothowto & RB_VERBOSE) + bootverbose = 1; + /* Do basic tuning, hz etc */ init_param1(); init_param2(physmem); kdb_init(); - /* use static kernel environment if so configured */ - if (envmode == 1) - kern_envp = static_env; - return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP - sizeof(struct pcb))); } --------------070206030508060602000706-- From owner-freebsd-embedded@FreeBSD.ORG Sat Dec 13 17:12:48 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 608A6106564A for ; Sat, 13 Dec 2008 17:12:48 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 33CE78FC0C for ; Sat, 13 Dec 2008 17:12:48 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id E05401E60EB for ; Sat, 13 Dec 2008 12:12:47 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Sat, 13 Dec 2008 12:12:47 -0500 X-Sasl-enc: dWCkB9ZAFQ5a1db3JEg0tl1X7EFhXIf7GHhImbBzlozV 1229188367 Received: from anglepoise.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 560263A22A for ; Sat, 13 Dec 2008 12:12:47 -0500 (EST) Message-ID: <4943ED0C.4000006@incunabulum.net> Date: Sat, 13 Dec 2008 17:12:44 +0000 From: Bruce Simpson User-Agent: Thunderbird 2.0.0.18 (X11/20081204) MIME-Version: 1.0 To: freebsd-embedded@FreeBSD.org Content-Type: multipart/mixed; boundary="------------090401010106080503070502" Cc: Subject: ARM closet cleaning: Freecom FSG3 configs X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2008 17:12:48 -0000 This is a multi-part message in MIME format. --------------090401010106080503070502 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Here are the configs for the FSG3 I was hacking on, pulled from a temporary svn branch. cheers BMS --------------090401010106080503070502 Content-Type: text/plain; name="fsg3-kernel-configs.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fsg3-kernel-configs.diff" Index: sys/arm/conf/FSG3.hints =================================================================== --- sys/arm/conf/FSG3.hints (revision 0) +++ sys/arm/conf/FSG3.hints (revision 0) @@ -0,0 +1,49 @@ +# $FreeBSD$ + +# +# Device wiring for the Freecom FSG3 +# + +# DBGU is unit 0 +hint.uart.0.at="ixp0" +hint.uart.0.addr=0xc8000000 +hint.uart.0.irq=15 +hint.uart.0.flags=0x10 +# USART0 is unit 1 +hint.uart.1.at="ixp0" +hint.uart.1.addr=0xc8001000 +hint.uart.1.irq=13 + +# NPE Hardware Queue Manager +hint.ixpqmgr.0.at="ixp0" + +# NPE NIC's, requires ixpqmgr +hint.npe.0.at="ixp0" +hint.npe.0.mac="A" +hint.npe.0.mii="A" +hint.npe.0.phy=5 +# XXX BMSR for PHY 5 must always be forced. +# XXX Don't use the rlswitch shared driver +# for this side of the switch; use a different OUI. +hint.npe.0.force_bmsr=0x402C +hint.npe.0.force_idr1=0x000C +hint.npe.0.force_idr2=0xC851 + +hint.npe.1.at="ixp0" +hint.npe.1.mac="B" +hint.npe.1.mii="A" +hint.npe.1.phy=4 +# Realtek RTL8305SB (Rev 1) +# XXX BMSR must always be forced -- RTL8305SB has no ID registers. +hint.npe.1.force_bmsr=0x4024 +hint.npe.1.force_idr1=0x001C +hint.npe.1.force_idr2=0xC851 + +# RTC +hint.x1226rtc.0.at="iicbus0" +hint.x1226rtc.0.addr=0x6f + +#not yet +# Slug LED +# Slug button +# Slug Buzzer Index: sys/arm/conf/FSG3.env =================================================================== --- sys/arm/conf/FSG3.env (revision 0) +++ sys/arm/conf/FSG3.env (revision 0) @@ -0,0 +1 @@ +boot_verbose=YES Index: sys/arm/conf/FSG3 =================================================================== --- sys/arm/conf/FSG3 (revision 0) +++ sys/arm/conf/FSG3 (revision 0) @@ -0,0 +1,153 @@ +# FSG3 - kernel configuration file for FreeBSD/arm on Freecom FSG3. +# + +machine arm +ident FSG3 + +options PHYSADDR=0x10000000 +options KERNPHYSADDR=0x10200000 +options KERNVIRTADDR=0xc0200000 # Used in ldscript.arm +options FLASHADDR=0x50000000 +options LOADERRAMADDR=0x00000000 +options STARTUP_PAGETABLE_ADDR=0x10000000 + +# XXX 0x0 is not free in NSLU2 loader, but it *might* be free +# in the U-Boot loader. +# Allow 4MB (XXX) for kernel image. +# XXX Changing this appears to bloat the tramp, why? +#options FLASHADDR=0x01d00000 +#options LOADERRAMADDR=0x01d00000 + +include "../xscale/ixp425/std.avila" +#To statically compile in device wiring instead of /boot/device.hints +hints "FSG3.hints" #Default places to look for devices. + +# For some reason the kernel ain't bootp-ing. +#env "FSG3.env" # XXX set mountroot + +# XXX need tramp w/o symbols for <1MB +#makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols +makeoptions DEBUG=-g3 #Build kernel with gdb(1) debug symbols + +makeoptions CONF_CFLAGS=-mcpu=xscale +options HZ=100 +options DEVICE_POLLING + +# XXX +options VERBOSE_SYSINIT + +# Debugging for use in -current +options KDB +options GDB +options DDB #Enable the kernel debugger + +options ALT_BREAK_TO_DEBUGGER + +#options INVARIANTS #Enable calls of extra sanity checking +#options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS +#options WITNESS #Enable checks to detect deadlocks and cycles +#options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed +#options DIAGNOSTIC + +options SCHED_ULE #ULE scheduler +options INET #InterNETworking +#options INET6 #IPv6 communications protocols +options FFS #Berkeley Fast Filesystem +options SOFTUPDATES #Enable FFS soft updates support +options UFS_ACL #Support for access control lists +options UFS_DIRHASH #Improve performance on big directories +#options NFSCLIENT #Network Filesystem Client +#options NFSSERVER #Network Filesystem Server +#options NFSLOCKD #Network Lock Manager +#options NFS_ROOT #NFS usable as /, requires NFSCLIENT +#options MSDOSFS #MSDOS Filesystem +#options CD9660 #ISO 9660 Filesystem +#options PROCFS #Process filesystem (requires PSEUDOFS) +options PSEUDOFS #Pseudo-filesystem framework +options SCSI_DELAY=5000 #Delay (in ms) before probing SCSI +options KTRACE #ktrace(1) support +options SYSVSHM #SYSV-style shared memory +options SYSVMSG #SYSV-style message queues +options SYSVSEM #SYSV-style semaphores +options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions + +options MUTEX_NOINLINE #Mutex inlines are space hogs +options RWLOCK_NOINLINE #rwlock inlines are space hogs +options SX_NOINLINE #sx inliens are space hogs + +# XXX Until we can get disk drivers to attach above, +# we will need to attempt network boot. +options BOOTP +options BOOTP_NFSROOT +options BOOTP_NFSV3 +options BOOTP_WIRED_TO=npe0 +options BOOTP_COMPAT + +options NFSCLIENT #Network Filesystem Client +options NFSLOCKD #Network Lock Manager +options NFS_ROOT #NFS usable as /, requires NFSCLIENT + +#options GEOM_MBR +#options GEOM_PART_MBR + +device mem # Memory and kernel memory devices +device pci +device uart + +# I2C Bus +device iicbus +device iicbb +device iic + +device ixpiic # I2C bus glue +device ixpwdog # watchdog timer + +device x1226rtc # I2C real-time clock + +####### netwerk + +device npe # Network Processing Engine +device npe_fw +device firmware +device qmgr # Q Manager (required by npe) + +# XXX There is an RTL8305SB with 5 physical ports. Two are configured +# as miibus PHYs, however the SB rev does NOT have ID registers, and +# attempting to probe the BMSR seems to cause problems with the PHY. +# +# The rlswitch driver is written for the RTL8305SC, which is a totally +# different chip -- the vlan register setup is not the same. +# +# ukphy is part of mii, we use that for the first port, but reject any +# attempts to read or write PHY ID 5 (npe0). +# +device mii +device rlswitch + +device ether +device bpf + +device pty +device loop + +options XSCALE_CACHE_READ_WRITE_ALLOCATE +device md # XXX .ko candidate? +device random # Entropy device + +#options ARM_USE_SMALL_ALLOC + +# XXX only needed for bootstrap rootfs from usb +#device usb +#options USB_DEBUG # XXX not needed <1MB? +#device ohci +#device ehci +#device umass +#device scbus # SCSI bus (required for SCSI) +#device da # Direct Access (disks) + +# XXX PCI devices have not yet been configured, so +# the kernel never sees the onboard VIA VT6421A. +#device atacore +#device atapci +#device atavia +#device atadisk --------------090401010106080503070502-- From owner-freebsd-embedded@FreeBSD.ORG Sat Dec 13 21:30:02 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 023C2106567C; Sat, 13 Dec 2008 21:30:02 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id C6E8C8FC13; Sat, 13 Dec 2008 21:30:01 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 202631E746E; Sat, 13 Dec 2008 16:30:01 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Sat, 13 Dec 2008 16:30:01 -0500 X-Sasl-enc: NL0LUr5C35L5o1ZodZaCJLlC27/JP24lgvtG50VIH44s 1229203800 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 7B13418818; Sat, 13 Dec 2008 16:30:00 -0500 (EST) Message-ID: <49442957.9030300@incunabulum.net> Date: Sat, 13 Dec 2008 21:29:59 +0000 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.18 (X11/20081205) MIME-Version: 1.0 To: "M. Warner Losh" References: <491EE062.2070705@incunabulum.net> <20081115.100002.-1384053695.imp@bsdimp.com> In-Reply-To: <20081115.100002.-1384053695.imp@bsdimp.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org, freebsd-mips@freebsd.org Subject: Re: MIPS port repository question X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2008 21:30:02 -0000 M. Warner Losh wrote: > Most of the mips stuff has been pushed into the tree. The bleeding > edge stuff is still just in p4. I didn't merge your bfe(4) changes > into svn, but if you have something that's stable, there's no reason > not to do so. OK, it's still in p4 branch mips2. I committed the change there which lets the PHY for bfe(4) attach on the Sentry5. The Sentry5 machine itself is now with gonzo@. cheers BMS