From owner-freebsd-embedded@FreeBSD.ORG Sun Jul 1 23:32:38 2007 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4DC4A16A41F for ; Sun, 1 Jul 2007 23:32:38 +0000 (UTC) (envelope-from henrik@brixandersen.dk) Received: from solow.pil.dk (relay.pil.dk [195.41.47.164]) by mx1.freebsd.org (Postfix) with ESMTP id 12F2A13C44C for ; Sun, 1 Jul 2007 23:32:37 +0000 (UTC) (envelope-from henrik@brixandersen.dk) Received: from tirith.brixandersen.dk (osgiliath.brixandersen.dk [87.53.223.189]) by solow.pil.dk (Postfix) with ESMTP id 103D61CC0CC for ; Mon, 2 Jul 2007 01:32:37 +0200 (CEST) Received: by tirith.brixandersen.dk (Postfix, from userid 1001) id 26CC8B83A; Mon, 2 Jul 2007 01:32:36 +0200 (CEST) Date: Mon, 2 Jul 2007 01:32:35 +0200 From: Henrik Brix Andersen To: freebsd-embedded@freebsd.org Message-ID: <20070701233235.GA875@tirith.brixandersen.dk> Mail-Followup-To: freebsd-embedded@freebsd.org References: <4640DA7C.3090508@miralink.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline In-Reply-To: <4640DA7C.3090508@miralink.com> X-PGP-Key: http://www.brixandersen.dk/files/HenrikBrixAndersen.asc User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: [nanobsd] Build failure on RELENG_6 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: Sun, 01 Jul 2007 23:32:38 -0000 --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 08, 2007 at 01:15:56PM -0700, Sean Bruno wrote: > While attempting to build nanobsd on RELENG_6, I am getting a build failu= re=20 > in install_world that doesn't occur outside of nanobsd. Any ideas? >=20 > =3D=3D=3D> usr.bin/lex/lib (install) > install -C -o root -g wheel -m 444 libln_p.a /var/tmp/obj/_.w/usr/lib > /var/tmp/obj/_.w/usr/lib/libl.a -> /var/tmp/obj/_.w/usr/lib/libln.a > ln: /var/tmp/obj/_.w/usr/lib/libln.a: No such file or directory > *** Error code 1 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 I have just submitted a patch for fixing this issue - see bin/114200 [1]. Regards, Brix [1]: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D114200 --=20 Henrik Brix Andersen --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: GnuPG signed iD8DBQFGiDmTv+Q4flTiePgRAv+gAJ9d+8VPS/Fxh15xeIycjD1X2hUtPQCdGFvI ahV3p1qEPfhCe2djRnZLd8s= =pKBA -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN-- From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 2 01:02:22 2007 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C1BA316A421; Mon, 2 Jul 2007 01:02:22 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 7D79613C4B0; Mon, 2 Jul 2007 01:02:22 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l6210sCj003347; Sun, 1 Jul 2007 19:00:54 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 01 Jul 2007 19:01:35 -0600 (MDT) Message-Id: <20070701.190135.-1435633623.imp@bsdimp.com> To: henrik@brixandersen.dk From: "M. Warner Losh" In-Reply-To: <20070701233235.GA875@tirith.brixandersen.dk> References: <4640DA7C.3090508@miralink.com> <20070701233235.GA875@tirith.brixandersen.dk> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 01 Jul 2007 19:00:55 -0600 (MDT) Cc: freebsd-embedded@freebsd.org, bug-followup@freebsd.org Subject: Re: [nanobsd] Build failure on RELENG_6 bin/11420 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, 02 Jul 2007 01:02:22 -0000 In message: <20070701233235.GA875@tirith.brixandersen.dk> Henrik Brix Andersen writes: : On Tue, May 08, 2007 at 01:15:56PM -0700, Sean Bruno wrote: : > While attempting to build nanobsd on RELENG_6, I am getting a build failure : > in install_world that doesn't occur outside of nanobsd. Any ideas? : > : > ===> usr.bin/lex/lib (install) : > install -C -o root -g wheel -m 444 libln_p.a /var/tmp/obj/_.w/usr/lib : > /var/tmp/obj/_.w/usr/lib/libl.a -> /var/tmp/obj/_.w/usr/lib/libln.a : > ln: /var/tmp/obj/_.w/usr/lib/libln.a: No such file or directory : > *** Error code 1 : > 1 error : > *** Error code 2 : > 1 error : > *** Error code 2 : > 1 error : > *** Error code 2 : > 1 error : > *** Error code 2 : > 1 error : > *** Error code 2 : > 1 error : > *** Error code 2 : : I have just submitted a patch for fixing this issue - see bin/114200 [1]. : : Regards, : Brix : : [1]: http://www.freebsd.org/cgi/query-pr.cgi?pr=114200 This patch is incorrect. +.if !defined(NO_INSTALLLIB) should be +.if ${MK_INSTALLIB} != "no" Warner From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 2 08:48:00 2007 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1DF8916A468 for ; Mon, 2 Jul 2007 08:48:00 +0000 (UTC) (envelope-from henrik@brixandersen.dk) Received: from solow.pil.dk (relay.pil.dk [195.41.47.164]) by mx1.freebsd.org (Postfix) with ESMTP id D36A413C489 for ; Mon, 2 Jul 2007 08:47:59 +0000 (UTC) (envelope-from henrik@brixandersen.dk) Received: from tirith.brixandersen.dk (osgiliath.brixandersen.dk [87.53.223.189]) by solow.pil.dk (Postfix) with ESMTP id 5750F1CC0DE; Mon, 2 Jul 2007 10:47:58 +0200 (CEST) Received: by tirith.brixandersen.dk (Postfix, from userid 1001) id 7481BB840; Mon, 2 Jul 2007 10:47:57 +0200 (CEST) Date: Mon, 2 Jul 2007 10:47:57 +0200 From: Henrik Brix Andersen To: "M. Warner Losh" Message-ID: <20070702084757.GA8274@tirith.brixandersen.dk> Mail-Followup-To: "M. Warner Losh" , freebsd-embedded@freebsd.org, bug-followup@freebsd.org References: <4640DA7C.3090508@miralink.com> <20070701233235.GA875@tirith.brixandersen.dk> <20070701.190135.-1435633623.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline In-Reply-To: <20070701.190135.-1435633623.imp@bsdimp.com> X-PGP-Key: http://www.brixandersen.dk/files/HenrikBrixAndersen.asc User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-embedded@freebsd.org, bug-followup@freebsd.org Subject: Re: [nanobsd] Build failure on RELENG_6 bin/11420 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, 02 Jul 2007 08:48:00 -0000 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 01, 2007 at 07:01:35PM -0600, M. Warner Losh wrote: > In message: <20070701233235.GA875@tirith.brixandersen.dk> > Henrik Brix Andersen writes: =2E.. > : [1]: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D114200 >=20 > This patch is incorrect. >=20 > +.if !defined(NO_INSTALLLIB) >=20 > should be >=20 > +.if ${MK_INSTALLIB} !=3D "no" Oh - thanks for catching this. I guess the same change should be done in lib/ncurses/ncurses/Makefile, then? Here's an updated patch: --- usr.bin/lex/lib/Makefile.orig 2007-07-02 01:06:20.000000000 +0200 +++ usr.bin/lex/lib/Makefile 2007-07-02 10:41:47.000000000 +0200 @@ -6,8 +6,10 @@ SRCS=3D libmain.c libyywrap.c NO_PIC=3D =20 +.if ${MK_INSTALLLIB} !=3D "no" LINKS=3D ${LIBDIR}/libln.a ${LIBDIR}/libl.a LINKS+=3D ${LIBDIR}/libln.a ${LIBDIR}/libfl.a +.endif =20 .if ${MK_PROFILE} !=3D "no" LINKS+=3D ${LIBDIR}/libln_p.a ${LIBDIR}/libl_p.a And for good meassure - a patch for lib/ncurses/ncurses/Makefile: --- lib/ncurses/ncurses/Makefile.orig 2007-07-02 10:43:17.000000000 +0200 +++ lib/ncurses/ncurses/Makefile 2007-07-02 10:44:14.000000000 +0200 @@ -280,7 +280,7 @@ INCSLINKS=3D curses.h ${INCLUDEDIR}/ncurses.h .endif =20 -.if !defined(NO_INSTALLLIB) +.if ${MK_INSTALLLIB} !=3D "no" SYMLINKS+=3D libncurses${LIB_SUFFIX}.a ${LIBDIR}/libcurses${LIB_SUFFIX}.a SYMLINKS+=3D libncurses${LIB_SUFFIX}.a ${LIBDIR}/libtermcap${LIB_SUFFIX}.a SYMLINKS+=3D libncurses${LIB_SUFFIX}.a ${LIBDIR}/libtermlib${LIB_SUFFIX}.a --=20 Henrik Brix Andersen --gKMricLos+KVdGMg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: GnuPG signed iD8DBQFGiLu8v+Q4flTiePgRAn6uAKC4sRTpWXoE63jcSmoC0RrV3V20TgCgxn2z MiBRBbKxkj13Kh0brMjeYtM= =Z8wV -----END PGP SIGNATURE----- --gKMricLos+KVdGMg-- From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 2 11:08:31 2007 Return-Path: X-Original-To: freebsd-embedded@FreeBSD.org Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CA85716A41F for ; Mon, 2 Jul 2007 11:08:31 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id B42A113C4C3 for ; Mon, 2 Jul 2007 11:08:31 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l62B8Vpc082612 for ; Mon, 2 Jul 2007 11:08:31 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l62B8U7d082607 for freebsd-embedded@FreeBSD.org; Mon, 2 Jul 2007 11:08:30 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 2 Jul 2007 11:08:30 GMT Message-Id: <200707021108.l62B8U7d082607@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 you 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, 02 Jul 2007 11:08:31 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/15876 embedded [picobsd] PicoBSD message of the day problems o misc/28255 embedded [picobsd] picobsd documentation still references old . o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c f misc/52255 embedded [picobsd] picobsd build script fails under FreeBSD 5.0 o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/101228 embedded [nanobsd] [patch] Two more entries for FlashDevice.sub 6 problems total. From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 2 13:47:42 2007 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C2E2F16A468; Mon, 2 Jul 2007 13:47:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 727D713C44C; Mon, 2 Jul 2007 13:47:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l62Dkcr8014425; Mon, 2 Jul 2007 07:46:39 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 02 Jul 2007 07:47:21 -0600 (MDT) Message-Id: <20070702.074721.148284252.imp@bsdimp.com> To: henrik@brixandersen.dk From: "M. Warner Losh" In-Reply-To: <20070702084757.GA8274@tirith.brixandersen.dk> References: <20070701233235.GA875@tirith.brixandersen.dk> <20070701.190135.-1435633623.imp@bsdimp.com> <20070702084757.GA8274@tirith.brixandersen.dk> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Mon, 02 Jul 2007 07:46:39 -0600 (MDT) Cc: freebsd-embedded@freebsd.org, bug-followup@freebsd.org Subject: Re: bin/11420 [nanobsd] Build failure on RELENG_6 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, 02 Jul 2007 13:47:42 -0000 In message: <20070702084757.GA8274@tirith.brixandersen.dk> Henrik Brix Andersen writes: : On Sun, Jul 01, 2007 at 07:01:35PM -0600, M. Warner Losh wrote: : > In message: <20070701233235.GA875@tirith.brixandersen.dk> : > Henrik Brix Andersen writes: : ... : > : [1]: http://www.freebsd.org/cgi/query-pr.cgi?pr=114200 : > : > This patch is incorrect. : > : > +.if !defined(NO_INSTALLLIB) : > : > should be : > : > +.if ${MK_INSTALLIB} != "no" : : Oh - thanks for catching this. I guess the same change should be done : in lib/ncurses/ncurses/Makefile, then? I belive so. I've CC'd ru@ to make sure. Warner : Here's an updated patch: : : --- usr.bin/lex/lib/Makefile.orig 2007-07-02 01:06:20.000000000 +0200 : +++ usr.bin/lex/lib/Makefile 2007-07-02 10:41:47.000000000 +0200 : @@ -6,8 +6,10 @@ : SRCS= libmain.c libyywrap.c : NO_PIC= : : +.if ${MK_INSTALLLIB} != "no" : LINKS= ${LIBDIR}/libln.a ${LIBDIR}/libl.a : LINKS+= ${LIBDIR}/libln.a ${LIBDIR}/libfl.a : +.endif : : .if ${MK_PROFILE} != "no" : LINKS+= ${LIBDIR}/libln_p.a ${LIBDIR}/libl_p.a : : : And for good meassure - a patch for lib/ncurses/ncurses/Makefile: : : --- lib/ncurses/ncurses/Makefile.orig 2007-07-02 10:43:17.000000000 +0200 : +++ lib/ncurses/ncurses/Makefile 2007-07-02 10:44:14.000000000 +0200 : @@ -280,7 +280,7 @@ : INCSLINKS= curses.h ${INCLUDEDIR}/ncurses.h : .endif : : -.if !defined(NO_INSTALLLIB) : +.if ${MK_INSTALLLIB} != "no" : SYMLINKS+= libncurses${LIB_SUFFIX}.a ${LIBDIR}/libcurses${LIB_SUFFIX}.a : SYMLINKS+= libncurses${LIB_SUFFIX}.a ${LIBDIR}/libtermcap${LIB_SUFFIX}.a : SYMLINKS+= libncurses${LIB_SUFFIX}.a ${LIBDIR}/libtermlib${LIB_SUFFIX}.a : : : -- : Henrik Brix Andersen From owner-freebsd-embedded@FreeBSD.ORG Wed Jul 4 17:33:33 2007 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7608A16A46D for ; Wed, 4 Jul 2007 17:33:33 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 4299813C4CA for ; Wed, 4 Jul 2007 17:33:33 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l64HBYAb077481 for ; Wed, 4 Jul 2007 13:11:34 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id l64HBYKj022173 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 4 Jul 2007 13:11:34 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200707041711.l64HBYKj022173@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 04 Jul 2007 13:10:52 -0400 To: freebsd-embedded@freebsd.org From: Mike Tancsa Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Strange nanobsd issue 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, 04 Jul 2007 17:33:33 -0000 I ran into a rather strange problem I dont understand. With my nanobsd image, if I comment out hint.sio.0.flags="0x10" or hint.uart.0.flags="0x10" from /boot/device.hints I get the RAM disks mounted twice ?! eg. # df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 245239 98076 127544 43% / devfs 1 1 0 100% /dev /dev/md0 4526 1784 2380 43% /etc /dev/md1 27990 124 25628 0% /var /dev/md2 4526 1788 2376 43% /etc /dev/md3 27990 436 25316 2% /var /boot.config is empty and /boot/loader.conf has hw.ata.ata_dma=0 hw.ata.atapi_dma=0 beastie_disable="YES" # Turn the beastie boot menu on and off #comconsole_speed="19200" #console="nullconsole" autoboot_delay="4 having nullconsole doesnt seem to matter any. The device.hints modification seems to be the single thing that effects this behavior. ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike From owner-freebsd-embedded@FreeBSD.ORG Thu Jul 5 20:12:34 2007 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6E3AB16A468 for ; Thu, 5 Jul 2007 20:12:34 +0000 (UTC) (envelope-from lab@mailgate.gta.com) Received: from mailgate.gta.com (mailgate.gta.com [199.120.225.20]) by mx1.freebsd.org (Postfix) with SMTP id 0763C13C447 for ; Thu, 5 Jul 2007 20:12:33 +0000 (UTC) (envelope-from lab@mailgate.gta.com) Received: (qmail 74328 invoked by uid 1000); 5 Jul 2007 19:45:52 -0000 Date: Thu, 5 Jul 2007 15:45:52 -0400 From: Larry Baird To: freebsd-embedded@freebsd.org Message-ID: <20070705154552.A71825@gta.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: Live lock with FreeBSD 6.2 and WRAP boards 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: Thu, 05 Jul 2007 20:12:34 -0000 First some history, we have been building firewalls based upon FreeBSD 4.x for several years. A few months back we switched to FreeBSD 6.x. Our software runs on a number of different hardware platforms. At the low end we are using WRAP boards (http://www.pcengines.ch/wrap.htm). As part of the QA process, manufacturing uses iperf during burnin. This worked great for FreeBSD 4.x based products. With 6.x, some of the WRAP based products would reboot during the testing. It was found that the the boxes had become so live locked that the watchdog timer wasn't getted tickled. For what its worth, watchdog is set to 32 seconds, One small change to the sis driver has helped a lot with this problem. Old code for sis_intr() began as below: SIS_LOCK(sc); #ifdef DEVICE_POLLING if (ifp->if_capenable & IFCAP_POLLING) { SIS_UNLOCK(sc); return; } #endif #endif We changed this to: #ifdef DEVICE_POLLING if (ifp->if_capenable & IFCAP_POLLING) { return; } #endif SIS_LOCK(sc); The 6.2 boxes are still a lot less reponsive than the 4.x boxes under load, but the removal of the lock/unlock in the polling interrupt path keeps them from falling over. The best I can tell, the only problem with removing the locking is that if polling was changed on an interface, a few packets might be processed incorrectly. Since the enabling/disabling of polling happens so seldom (for us never) the performance trade off is well worth it. Any thoughts on this change? Larry -- ------------------------------------------------------------------------ Larry Baird | http://www.gta.com Global Technology Associates, Inc. | Orlando, FL Email: lab@gta.com | TEL 407-380-0220, FAX 407-380-6080