From owner-freebsd-arm@FreeBSD.ORG Sun Jun 10 06:44:37 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 16F3D16A421 for ; Sun, 10 Jun 2007 06:44:37 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id CB2CB13C48C for ; Sun, 10 Jun 2007 06:44:36 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de ([195.225.132.203]) by localhost (liberty-mail [195.225.132.203]) (amavisd-new, port 10024) with ESMTP id 00339-09; Sun, 10 Jun 2007 08:44:31 +0200 (CEST) Received: from home.alpha-tierchen.de (port-212-202-170-5.dynamic.qsc.de [212.202.170.5]) by mail.liberty-hosting.de (Postfix) with ESMTP id 490AA15B6C3; Sun, 10 Jun 2007 08:44:31 +0200 (CEST) Received: from webmail.alpha-tierchen.de (localhost [127.0.0.1]) by home.alpha-tierchen.de (Postfix) with ESMTP id 1A5F245046; Sun, 10 Jun 2007 08:44:30 +0200 (CEST) Received: from 89.247.105.240 (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Sun, 10 Jun 2007 08:44:30 +0200 (CEST) Message-ID: <1161.89.247.105.240.1181457870.squirrel@webmail.alpha-tierchen.de> In-Reply-To: <20070609.094708.-2034663768.imp@bsdimp.com> References: <59832.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181391583.squirrel@webmail.alpha-tierchen.de> <20070609123941.GJ16463@cicely12.cicely.de> <51831.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181397815.squirrel@webmail.alpha-tierchen.de> <20070609.094708.-2034663768.imp@bsdimp.com> Date: Sun, 10 Jun 2007 08:44:30 +0200 (CEST) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: "M. Warner Losh" User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at mail.smartterra.de Cc: arm@freebsd.org, ticso@cicely.de Subject: Re: if_ate handles the bytes of the MAC address in a "wrong" order X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 06:44:37 -0000 > I think these patches are basically good. I gotta think about how I > wanna roll these into the kernel as I have units in the field that > upgrading their boot loader would be awkward... Maybe we need a kernel option for keeping backward compatibility. > Why do you look at all four SA registers, but only pick the first > non-zero one? Why is that going to he better than just looking at the > first one? Until FreeBSD can support muliple MAC addresses, I'm not > sure I see the point... You're right, adding multiple addresses would be perfect. I didn't take that into account, because I just wanted that the driver doesn't fail if the first register is empty, but one of the others isn't. That seems to be strange, but it is reality in my case. - Thus adding multiple addresses is the next task on my list. ;-) Regards Björn From owner-freebsd-arm@FreeBSD.ORG Sun Jun 10 10:56:09 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3CCDF16A400 for ; Sun, 10 Jun 2007 10:56:09 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id D819B13C45A for ; Sun, 10 Jun 2007 10:56:08 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l5AAu0pM023151; Sun, 10 Jun 2007 12:56:00 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l5AAtpxS012303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 10 Jun 2007 12:55:52 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l5AAtpWC035093; Sun, 10 Jun 2007 12:55:51 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l5AAtpiY035092; Sun, 10 Jun 2007 12:55:51 +0200 (CEST) (envelope-from ticso) Date: Sun, 10 Jun 2007 12:55:51 +0200 From: Bernd Walter To: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= Message-ID: <20070610105550.GQ16463@cicely12.cicely.de> References: <59832.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181391583.squirrel@webmail.alpha-tierchen.de> <20070609123941.GJ16463@cicely12.cicely.de> <51831.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181397815.squirrel@webmail.alpha-tierchen.de> <20070609.094708.-2034663768.imp@bsdimp.com> <1161.89.247.105.240.1181457870.squirrel@webmail.alpha-tierchen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1161.89.247.105.240.1181457870.squirrel@webmail.alpha-tierchen.de> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: arm@freebsd.org, ticso@cicely.de Subject: Re: if_ate handles the bytes of the MAC address in a "wrong" order X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 10:56:09 -0000 On Sun, Jun 10, 2007 at 08:44:30AM +0200, Björn König wrote: > > I think these patches are basically good. I gotta think about how I > > wanna roll these into the kernel as I have units in the field that > > upgrading their boot loader would be awkward... > > Maybe we need a kernel option for keeping backward compatibility. > > > Why do you look at all four SA registers, but only pick the first > > non-zero one? Why is that going to he better than just looking at the > > first one? Until FreeBSD can support muliple MAC addresses, I'm not > > sure I see the point... > > You're right, adding multiple addresses would be perfect. I didn't take > that into account, because I just wanted that the driver doesn't fail if > the first register is empty, but one of the others isn't. That seems to be > strange, but it is reality in my case. - Thus adding multiple addresses is > the next task on my list. ;-) This is more than just adding support into the driver. AFAIK the system has no support for multiple MAC yet. There are two points in the driver missing I know of. The first one is promiscuous support, this should be nothing more than adding the flag and seting the device bit. It wasn't on my list of things to do, because I have a switch soldered onboard, which have to be configured for promiscuous as well. The second one is add support for polling. Polling is a feature, which has showed positive effects on many small systems such as soekris. I asume polling support for ate to be a big win. Then tcpdump crashes with an unaligned fault when tracing ate - it does run when I trace ng interface. This is likely userland problem, but it is interesting that it doesn't happen with ng. Maybe just a matter of packets - who knows. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Sun Jun 10 20:47:27 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BC6AD16A46B for ; Sun, 10 Jun 2007 20:47:27 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id 50FEF13C45D for ; Sun, 10 Jun 2007 20:47:26 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de ([195.225.132.203]) by localhost (liberty-mail [195.225.132.203]) (amavisd-new, port 10024) with ESMTP id 64522-10 for ; Sun, 10 Jun 2007 22:47:21 +0200 (CEST) Received: from home.alpha-tierchen.de (port-212-202-170-5.dynamic.qsc.de [212.202.170.5]) by mail.liberty-hosting.de (Postfix) with ESMTP id E63761805BD for ; Sun, 10 Jun 2007 22:47:20 +0200 (CEST) Received: from webmail.alpha-tierchen.de (localhost [127.0.0.1]) by home.alpha-tierchen.de (Postfix) with ESMTP id EF2C145046 for ; Sun, 10 Jun 2007 22:47:17 +0200 (CEST) Received: from 2001:6f8:101e:0:20e:cff:fe6d:6adb (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Sun, 10 Jun 2007 22:47:17 +0200 (CEST) Message-ID: <62668.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181508437.squirrel@webmail.alpha-tierchen.de> In-Reply-To: <20070610105550.GQ16463@cicely12.cicely.de> References: <59832.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181391583.squirrel@webmail.alpha-tierchen.de> <20070609123941.GJ16463@cicely12.cicely.de> <51831.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181397815.squirrel@webmail.alpha-tierchen.de> <20070609.094708.-2034663768.imp@bsdimp.com> <1161.89.247.105.240.1181457870.squirrel@webmail.alpha-tierchen.de> <20070610105550.GQ16463@cicely12.cicely.de> Date: Sun, 10 Jun 2007 22:47:17 +0200 (CEST) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: arm@freebsd.org User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20070610224717_21390" X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at mail.smartterra.de Cc: Subject: Re: if_ate handles the bytes of the MAC address in a "wrong" order X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 20:47:27 -0000 ------=_20070610224717_21390 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Ok, this patch additionally adds the kernel option ATE_REVERSE_MAC that allows you to build a kernel that works with a version of the loader that uses the previous byte order. Björn ------=_20070610224717_21390 Content-Type: text/x-diff; name="ate.diff" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="ate.diff" --- src/sys/arm/at91/if_ate.c Sat Jun 9 15:50:50 2007 +++ src/sys/arm/at91/if_ate.c Sun Jun 10 22:06:49 2007 @@ -35,6 +35,10 @@ #include __FBSDID("$FreeBSD: src/sys/arm/at91/if_ate.c,v 1.19 2007/02/23 12:18:27 piso Exp $"); +#ifdef HAVE_KERNEL_OPTION_HEADERS +#include "opt_ate.h" +#endif + #include #include #include @@ -170,7 +174,7 @@ struct sysctl_ctx_list *sctx; struct sysctl_oid *soid; int err; - u_char eaddr[6]; + u_char eaddr[ETHER_ADDR_LEN]; sc->dev = dev; err = ate_activate(dev); @@ -587,24 +591,43 @@ static int ate_get_mac(struct ate_softc *sc, u_char *eaddr) { + bus_size_t sa_low_reg[] = { ETH_SA1L, ETH_SA2L, ETH_SA3L, ETH_SA4L }; + bus_size_t sa_high_reg[] = { ETH_SA1H, ETH_SA2H, ETH_SA3H, ETH_SA4H }; uint32_t low, high; + int i; /* * The boot loader setup the MAC with an address, if one is set in - * the loader. The TSC loader will also set the MAC address in a - * similar way. Grab the MAC address from the SA1[HL] registers. + * the loader. Grab one MAC address from the SA[1-4][HL] registers. + */ - low = RD4(sc, ETH_SA1L); - high = RD4(sc, ETH_SA1H); - if ((low | (high & 0xffff)) == 0) - return (ENXIO); - eaddr[0] = (high >> 8) & 0xff; - eaddr[1] = high & 0xff; - eaddr[2] = (low >> 24) & 0xff; - eaddr[3] = (low >> 16) & 0xff; - eaddr[4] = (low >> 8) & 0xff; - eaddr[5] = low & 0xff; - return (0); + for (i = 0; i < 4; i++) + { + low = RD4(sc, sa_low_reg[i]); + high = RD4(sc, sa_high_reg[i]); + if ((low | (high & 0xffff)) != 0) + { +#ifdef ATE_REVERSE_MAC + eaddr[0] = (high >> 8) & 0xff; + eaddr[1] = high & 0xff; + eaddr[2] = (low >> 24) & 0xff; + eaddr[3] = (low >> 16) & 0xff; + eaddr[4] = (low >> 8) & 0xff; + eaddr[5] = low & 0xff; +#else + + eaddr[0] = low & 0xff; + eaddr[1] = (low >> 8) & 0xff; + eaddr[2] = (low >> 16) & 0xff; + eaddr[3] = (low >> 24) & 0xff; + eaddr[4] = high & 0xff; + eaddr[5] = (high >> 8) & 0xff; +#endif + return (0); + } + } + + return (ENXIO); } static void --- src/sys/boot/arm/at91/libat91/emac_init.c Wed Dec 20 19:26:37 2006 +++ src/sys/boot/arm/at91/libat91/emac_init.c Sat Jun 9 15:55:23 2007 @@ -79,8 +79,8 @@ pPMC->PMC_PCER = ((unsigned) 1 << AT91C_ID_EMAC); memcpy(localMACAddr, mac, 6); - localMAClow = (mac[2] << 24) | (mac[3] << 16) | (mac[4] << 8) | mac[5]; - localMAChigh = (mac[0] << 8) | mac[1]; + localMAClow = (mac[3] << 24) | (mac[2] << 16) | (mac[1] << 8) | mac[0]; + localMAChigh = (mac[5] << 8) | mac[4]; localMACSet = 1; AT91C_BASE_PMC->PMC_PCER = 1u << AT91C_ID_EMAC; --- src/sys/conf/options.arm Mon Feb 19 02:03:07 2007 +++ src/sys/conf/options.arm Sun Jun 10 22:01:59 2007 @@ -24,3 +24,4 @@ AT91_BWCT opt_at91.h AT91_TSC opt_at91.h AT91_KWIKBYTE opt_at91.h +ATE_REVERSE_MAC opt_ate.h ------=_20070610224717_21390-- From owner-freebsd-arm@FreeBSD.ORG Tue Jun 12 09:57:12 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 731AF16A41F; Tue, 12 Jun 2007 09:57:12 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 22F9C13C504; Tue, 12 Jun 2007 09:57:12 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5C9vBES077137; Tue, 12 Jun 2007 05:57:11 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.8/8.13.8) with ESMTP id l5C9vB35057829; Tue, 12 Jun 2007 05:57:11 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id E57F773068; Tue, 12 Jun 2007 05:57:10 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070612095710.E57F773068@freebsd-current.sentex.ca> Date: Tue, 12 Jun 2007 05:57:10 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070108, clamav-milter version devel-111206 on clamscanner1 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 09:57:12 -0000 TB --- 2007-06-12 08:50:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-12 08:50:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-06-12 08:50:00 - cleaning the object tree TB --- 2007-06-12 08:50:22 - checking out the source tree TB --- 2007-06-12 08:50:22 - cd /tinderbox/HEAD/arm/arm TB --- 2007-06-12 08:50:23 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-12 09:01:22 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-12 09:01:22 - cd /src TB --- 2007-06-12 09:01:22 - /usr/bin/make -B buildworld >>> World build started on Tue Jun 12 09:01:23 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs -DRESCUE -Wno-pointer-sign -c /src/sbin/ifconfig/iflagg.c /src/sbin/ifconfig/iflagg.c: In function 'setlaggproto': /src/sbin/ifconfig/iflagg.c:69: error: 'struct lagg_protos' has no member named 'tpr_name' /src/sbin/ifconfig/iflagg.c:70: error: 'struct lagg_protos' has no member named 'tpr_proto' /src/sbin/ifconfig/iflagg.c: In function 'lagg_status': /src/sbin/ifconfig/iflagg.c:106: error: 'struct lagg_protos' has no member named 'tpr_proto' /src/sbin/ifconfig/iflagg.c:107: error: 'struct lagg_protos' has no member named 'tpr_name' /src/sbin/ifconfig/iflagg.c:126: error: 'struct lagg_protos' has no member named 'tpr_name' *** Error code 1 Stop in /src/sbin/ifconfig. *** Error code 1 Stop in /obj/arm/src/rescue/rescue. *** Error code 1 Stop in /src/rescue/rescue. *** Error code 1 Stop in /src/rescue. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-12 09:57:10 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-12 09:57:10 - ERROR: failed to build world TB --- 2007-06-12 09:57:10 - tinderbox aborted TB --- 0.56 user 1.70 system 4030.29 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Tue Jun 12 19:01:48 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD33C16A46F; Tue, 12 Jun 2007 19:01:48 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 6DBFC13C45B; Tue, 12 Jun 2007 19:01:48 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5CJ1li9070753; Tue, 12 Jun 2007 15:01:47 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.8/8.13.8) with ESMTP id l5CJ1lr9094128; Tue, 12 Jun 2007 15:01:47 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 4328B73068; Tue, 12 Jun 2007 15:01:47 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070612190147.4328B73068@freebsd-current.sentex.ca> Date: Tue, 12 Jun 2007 15:01:47 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070108, clamav-milter version devel-111206 on clamscanner1 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 19:01:48 -0000 TB --- 2007-06-12 18:40:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-12 18:40:01 - starting HEAD tinderbox run for arm/arm TB --- 2007-06-12 18:40:01 - cleaning the object tree TB --- 2007-06-12 18:40:21 - checking out the source tree TB --- 2007-06-12 18:40:21 - cd /tinderbox/HEAD/arm/arm TB --- 2007-06-12 18:40:21 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-12 18:51:23 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-12 18:51:23 - cd /src TB --- 2007-06-12 18:51:23 - /usr/bin/make -B buildworld >>> World build started on Tue Jun 12 18:51:25 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] cc -O2 -pipe -I/src/lib/libc/include -I/src/lib/libc/../../include -I/src/lib/libc/arm -DSOFTFLOAT -D__DBINTERFACE_PRIVATE -I/src/lib/libc/../../contrib/gdtoa -DINET6 -I/obj/arm/src/lib/libc -I/src/lib/libc/resolv -DPOSIX_MISTAKE -I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc -I/src/lib/libc/arm/softfloat -I/src/lib/libc/softfloat -DSOFTFLOAT_FOR_GCC -DYP -DNS_CACHING -DSYMBOL_VERSIONING -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libc/net/sockatmark.c cc -O2 -pipe -I/src/lib/libc/include -I/src/lib/libc/../../include -I/src/lib/libc/arm -DSOFTFLOAT -D__DBINTERFACE_PRIVATE -I/src/lib/libc/../../contrib/gdtoa -DINET6 -I/obj/arm/src/lib/libc -I/src/lib/libc/resolv -DPOSIX_MISTAKE -I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc -I/src/lib/libc/arm/softfloat -I/src/lib/libc/softfloat -DSOFTFLOAT_FOR_GCC -DYP -DNS_CACHING -DSYMBOL_VERSIONING -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libc/net/sourcefilter.c /src/lib/libc/net/sourcefilter.c: In function 'setsourcefilter': /src/lib/libc/net/sourcefilter.c:309: error: invalid type argument of '->' /src/lib/libc/net/sourcefilter.c:329: warning: implicit declaration of function 'setsockopt' /src/lib/libc/net/sourcefilter.c: In function 'getsourcefilter': /src/lib/libc/net/sourcefilter.c:370: error: invalid type argument of '->' /src/lib/libc/net/sourcefilter.c:397: warning: implicit declaration of function 'getsockopt' *** Error code 1 Stop in /src/lib/libc. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-12 19:01:46 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-12 19:01:46 - ERROR: failed to build world TB --- 2007-06-12 19:01:46 - tinderbox aborted TB --- 0.55 user 1.67 system 1305.70 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Tue Jun 12 21:26:14 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AE02716A46F; Tue, 12 Jun 2007 21:26:14 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 5E97513C4BD; Tue, 12 Jun 2007 21:26:14 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5CLQDYF091105; Tue, 12 Jun 2007 17:26:13 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5CLQD9n048815; Tue, 12 Jun 2007 17:26:13 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 60EED73068; Tue, 12 Jun 2007 17:26:13 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070612212613.60EED73068@freebsd-current.sentex.ca> Date: Tue, 12 Jun 2007 17:26:13 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070102, clamav-milter version devel-111206 on clamscanner3 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 21:26:14 -0000 TB --- 2007-06-12 20:40:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-12 20:40:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-06-12 20:40:00 - cleaning the object tree TB --- 2007-06-12 20:40:13 - checking out the source tree TB --- 2007-06-12 20:40:13 - cd /tinderbox/HEAD/arm/arm TB --- 2007-06-12 20:40:13 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-12 20:51:11 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-12 20:51:11 - cd /src TB --- 2007-06-12 20:51:11 - /usr/bin/make -B buildworld >>> World build started on Tue Jun 12 20:51:12 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] gzip -cn /src/lib/libc/net/inet6_rthdr_space.3 > inet6_rthdr_space.3.gz gzip -cn /src/lib/libc/net/linkaddr.3 > linkaddr.3.gz gzip -cn /src/lib/libc/net/nsdispatch.3 > nsdispatch.3.gz gzip -cn /src/lib/libc/net/rcmd.3 > rcmd.3.gz gzip -cn /src/lib/libc/net/rcmdsh.3 > rcmdsh.3.gz gzip -cn /src/lib/libc/net/resolver.3 > resolver.3.gz gzip -cn /src/lib/libc/net/sockatmark.3 > sockatmark.3.gz make: don't know how to make setsourcefilter.3. Stop *** Error code 2 Stop in /src/lib. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-12 21:26:13 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-12 21:26:13 - ERROR: failed to build world TB --- 2007-06-12 21:26:13 - tinderbox aborted TB --- 0.18 user 0.43 system 2772.80 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Wed Jun 13 03:36:28 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 962BE16A469 for ; Wed, 13 Jun 2007 03:36:28 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id 568D613C455 for ; Wed, 13 Jun 2007 03:36:28 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de ([195.225.132.203]) by localhost (liberty-mail [195.225.132.203]) (amavisd-new, port 10024) with ESMTP id 68509-10 for ; Wed, 13 Jun 2007 05:36:25 +0200 (CEST) Received: from home.alpha-tierchen.de (port-212-202-170-5.dynamic.qsc.de [212.202.170.5]) by mail.liberty-hosting.de (Postfix) with ESMTP id 517B418107C for ; Wed, 13 Jun 2007 05:36:24 +0200 (CEST) Received: from webmail.alpha-tierchen.de (localhost [127.0.0.1]) by home.alpha-tierchen.de (Postfix) with ESMTP id A032E45046 for ; Wed, 13 Jun 2007 05:36:23 +0200 (CEST) Received: from 2001:6f8:101e:0:20e:cff:fe6d:6adb (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Wed, 13 Jun 2007 05:36:23 +0200 (CEST) Message-ID: <55286.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181705783.squirrel@webmail.alpha-tierchen.de> Date: Wed, 13 Jun 2007 05:36:23 +0200 (CEST) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: arm@freebsd.org User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at mail.smartterra.de Cc: Subject: main clock frequency X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 03:36:28 -0000 Hello, in at91_pmc_attach you're assume a certain main clock frequency. Isn't it reasonable to read this value from the main clock frequency register if it is available? I mean something like uint32_t mcfr = RD4(pmc_softc, CKGR_MCFR); if (mcfr & CKGR_MCFR_MAINRDY) at91_pmc_init_clock(pmc_softc, (mcfr & CKGR_MCFR_MAINF_MASK) * 32768 / 16); else /* fallback or error */ Björn From owner-freebsd-arm@FreeBSD.ORG Wed Jun 13 03:56:44 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A5B1F16A46B for ; Wed, 13 Jun 2007 03:56:44 +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 5FFEF13C45E for ; Wed, 13 Jun 2007 03:56:44 +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 l5D3s430068939; Tue, 12 Jun 2007 21:54:04 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 12 Jun 2007 21:54:30 -0600 (MDT) Message-Id: <20070612.215430.-365729166.imp@bsdimp.com> To: bkoenig@alpha-tierchen.de From: "M. Warner Losh" In-Reply-To: <55286.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181705783.squirrel@webmail.alpha-tierchen.de> References: <55286.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181705783.squirrel@webmail.alpha-tierchen.de> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 12 Jun 2007 21:54:04 -0600 (MDT) Cc: arm@freebsd.org Subject: Re: main clock frequency X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 03:56:44 -0000 In message: <55286.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181705783.squirre= l@webmail.alpha-tierchen.de> Bj=F6rn_K=F6nig writes: : Hello, : = : in at91_pmc_attach you're assume a certain main clock frequency. Isn'= t it : reasonable to read this value from the main clock frequency register = if it : is available? : = : I mean something like : = : uint32_t mcfr =3D RD4(pmc_softc, CKGR_MCFR); : if (mcfr & CKGR_MCFR_MAINRDY) : at91_pmc_init_clock(pmc_softc, (mcfr & CKGR_MCFR_MAINF_MASK) * 3276= 8 / 16); : else : /* fallback or error */ Yes. I think that's reasonable. I didn't do it because I didn't think of it at the time I wrote the code. Warner From owner-freebsd-arm@FreeBSD.ORG Wed Jun 13 08:10:32 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28CC016A46D for ; Wed, 13 Jun 2007 08:10:32 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id D8CB213C4AE for ; Wed, 13 Jun 2007 08:10:31 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de ([195.225.132.203]) by localhost (liberty-mail [195.225.132.203]) (amavisd-new, port 10024) with ESMTP id 88315-03; Wed, 13 Jun 2007 10:10:28 +0200 (CEST) Received: from home.alpha-tierchen.de (port-212-202-170-5.dynamic.qsc.de [212.202.170.5]) by mail.liberty-hosting.de (Postfix) with ESMTP id 4A06F18138D; Wed, 13 Jun 2007 10:10:28 +0200 (CEST) Received: from webmail.alpha-tierchen.de (localhost [127.0.0.1]) by home.alpha-tierchen.de (Postfix) with ESMTP id 1C0CA45046; Wed, 13 Jun 2007 10:10:24 +0200 (CEST) Received: from 2001:6f8:101e:0:20e:cff:fe6d:6adb (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Wed, 13 Jun 2007 10:10:24 +0200 (CEST) Message-ID: <57472.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181722224.squirrel@webmail.alpha-tierchen.de> In-Reply-To: <20070612.215430.-365729166.imp@bsdimp.com> References: <55286.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181705783.squirrel@webmail.alpha-tierchen.de> <20070612.215430.-365729166.imp@bsdimp.com> Date: Wed, 13 Jun 2007 10:10:24 +0200 (CEST) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: "M. Warner Losh" User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20070613101024_45905" X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at mail.smartterra.de Cc: arm@freebsd.org Subject: Re: main clock frequency X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 08:10:32 -0000 ------=_20070613101024_45905 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit So this is my patch. It would be interesting for me to know the effective main clock values for 10.0 Hz and 16.0 Hz oscillators. My board uses a 18.432 Hz oscillator. Currently I'm working on changing the PCK and MCK on-the-fly via sysctl MIB which basically works well for me. Björn ------=_20070613101024_45905 Content-Type: text/x-diff; name="at91_pmc.c.diff" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="at91_pmc.c.diff" --- src/sys/arm/at91/at91_pmc.c.orig Wed Jun 13 09:39:36 2007 +++ src/sys/arm/at91/at91_pmc.c Wed Jun 13 09:54:18 2007 @@ -394,16 +394,18 @@ at91_pmc_attach(device_t dev) { int err; + uint32_t mcfr; pmc_softc = device_get_softc(dev); pmc_softc->dev = dev; if ((err = at91_pmc_activate(dev)) != 0) return err; -#if defined(AT91_TSC) | defined (AT91_BWCT) - at91_pmc_init_clock(pmc_softc, 16000000); -#else - at91_pmc_init_clock(pmc_softc, 10000000); -#endif + + mcfr = RD4(pmc_softc, CKGR_MCFR); + if (mcfr & CKGR_MCFR_MAINRDY == 0) + return (ENXIO); + + at91_pmc_init_clock(pmc_softc, (mcfr & CKGR_MCFR_MAINF_MASK) * 32768 / 16); return (0); } ------=_20070613101024_45905-- From owner-freebsd-arm@FreeBSD.ORG Wed Jun 13 10:25:43 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5A39E16A46B for ; Wed, 13 Jun 2007 10:25:43 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id DE1BB13C44C for ; Wed, 13 Jun 2007 10:25:42 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l5DAPaCf006912; Wed, 13 Jun 2007 12:25:36 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l5DAPSHF039892 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Jun 2007 12:25:29 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l5DAPScN046024; Wed, 13 Jun 2007 12:25:28 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l5DAPSDO046023; Wed, 13 Jun 2007 12:25:28 +0200 (CEST) (envelope-from ticso) Date: Wed, 13 Jun 2007 12:25:28 +0200 From: Bernd Walter To: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= Message-ID: <20070613102527.GO42538@cicely12.cicely.de> References: <55286.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181705783.squirrel@webmail.alpha-tierchen.de> <20070612.215430.-365729166.imp@bsdimp.com> <57472.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181722224.squirrel@webmail.alpha-tierchen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <57472.2001:6f8:101e:0:20e:cff:fe6d:6adb.1181722224.squirrel@webmail.alpha-tierchen.de> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: arm@freebsd.org Subject: Re: main clock frequency X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 10:25:43 -0000 On Wed, Jun 13, 2007 at 10:10:24AM +0200, Björn König wrote: > So this is my patch. > > It would be interesting for me to know the effective main clock values for > 10.0 Hz and 16.0 Hz oscillators. My board uses a 18.432 Hz oscillator. Unfortunately I'm out of time, but will put some tests on my todo list. A wrong value here only hurts setting up the PLLB for USB. > Currently I'm working on changing the PCK and MCK on-the-fly via sysctl > MIB which basically works well for me. Basicly this sounds intersting. It might be interesting to switch PCK to 32kHz on idle, which should be faster than waiting for PLL to setup. I'm not shure about the possible PLL range anyway, since it requires external components based on the intended frequency. I'm a bit concerned about MCK since this also influences timing critical devices, such as UART rate, SDRAM recharge rate and even timing for custom hardware, e.g. motors on PWM. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Wed Jun 13 18:17:19 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 424F016A46B; Wed, 13 Jun 2007 18:17:19 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id E655013C483; Wed, 13 Jun 2007 18:17:18 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5DIHIcG095015; Wed, 13 Jun 2007 14:17:18 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.8/8.13.8) with ESMTP id l5DIHIjL012508; Wed, 13 Jun 2007 14:17:18 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 8343E73068; Wed, 13 Jun 2007 14:17:17 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070613181717.8343E73068@freebsd-current.sentex.ca> Date: Wed, 13 Jun 2007 14:17:17 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070108, clamav-milter version devel-111206 on clamscanner3 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 18:17:19 -0000 TB --- 2007-06-13 17:10:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-13 17:10:01 - starting HEAD tinderbox run for arm/arm TB --- 2007-06-13 17:10:01 - cleaning the object tree TB --- 2007-06-13 17:10:22 - checking out the source tree TB --- 2007-06-13 17:10:22 - cd /tinderbox/HEAD/arm/arm TB --- 2007-06-13 17:10:22 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-13 17:21:24 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-13 17:21:24 - cd /src TB --- 2007-06-13 17:21:24 - /usr/bin/make -B buildworld >>> World build started on Wed Jun 13 17:21:25 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs -DRESCUE -Wno-pointer-sign -c /src/sbin/ifconfig/ifgroup.c cc -O2 -pipe -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs -DRESCUE -Wno-pointer-sign -c /src/sbin/ifconfig/ifpfsync.c cc -O2 -pipe -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs -DRESCUE -Wno-pointer-sign -c /src/sbin/ifconfig/ifbridge.c cc -O2 -pipe -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs -DRESCUE -Wno-pointer-sign -c /src/sbin/ifconfig/iflagg.c cc -O2 -pipe -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs -DRESCUE -Wno-pointer-sign -c /src/sbin/ifconfig/af_ipx.c /src/sbin/ifconfig/af_ipx.c: In function 'ipx_postproc': /src/sbin/ifconfig/af_ipx.c:101: error: storage size of 'rq' isn't known /src/sbin/ifconfig/af_ipx.c:101: warning: unused variable 'rq' *** Error code 1 Stop in /src/sbin/ifconfig. *** Error code 1 Stop in /obj/arm/src/rescue/rescue. *** Error code 1 Stop in /src/rescue/rescue. *** Error code 1 Stop in /src/rescue. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-13 18:17:17 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-13 18:17:17 - ERROR: failed to build world TB --- 2007-06-13 18:17:17 - tinderbox aborted TB --- 0.57 user 1.70 system 4035.95 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Fri Jun 15 11:46:34 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D0F3E16A473; Fri, 15 Jun 2007 11:46:34 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 8189913C44C; Fri, 15 Jun 2007 11:46:34 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5FBkYmU039160; Fri, 15 Jun 2007 07:46:34 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.8/8.13.8) with ESMTP id l5FBkYiQ025223; Fri, 15 Jun 2007 07:46:34 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 72C9973068; Fri, 15 Jun 2007 07:46:33 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070615114633.72C9973068@freebsd-current.sentex.ca> Date: Fri, 15 Jun 2007 07:46:33 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070108, clamav-milter version devel-111206 on news X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 11:46:34 -0000 TB --- 2007-06-15 10:45:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-15 10:45:01 - starting HEAD tinderbox run for arm/arm TB --- 2007-06-15 10:45:01 - cleaning the object tree TB --- 2007-06-15 10:45:22 - checking out the source tree TB --- 2007-06-15 10:45:22 - cd /tinderbox/HEAD/arm/arm TB --- 2007-06-15 10:45:22 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-15 10:56:24 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-15 10:56:24 - cd /src TB --- 2007-06-15 10:56:24 - /usr/bin/make -B buildworld >>> World build started on Fri Jun 15 10:56:26 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -Wall -Wstrict-prototypes -o dialog dialog.o -ldialog -lncurses gzip -cn /src/gnu/usr.bin/dialog/dialog.1 > dialog.1.gz ===> gnu/usr.bin/dialog/TESTS (all) ===> gnu/usr.bin/diff (all) cc -O2 -pipe -funsigned-char -I/obj/arm/src/tmp/usr/include/gnu -I/src/gnu/usr.bin/diff/../../../contrib/diff -I/src/gnu/usr.bin/diff/../../../contrib/diff/src -I/src/gnu/usr.bin/diff/../../../contrib/diff/lib -DHAVE_CONFIG_H -DPR_PROGRAM=\"/usr/bin/pr\" -c /src/gnu/usr.bin/diff/../../../contrib/diff/src/analyze.c cc -O2 -pipe -funsigned-char -I/obj/arm/src/tmp/usr/include/gnu -I/src/gnu/usr.bin/diff/../../../contrib/diff -I/src/gnu/usr.bin/diff/../../../contrib/diff/src -I/src/gnu/usr.bin/diff/../../../contrib/diff/lib -DHAVE_CONFIG_H -DPR_PROGRAM=\"/usr/bin/pr\" -c context.c context.c: In function 'print_context_label': context.c:64: error: size of array 'a' is negative *** Error code 1 Stop in /src/gnu/usr.bin/diff. *** Error code 1 Stop in /src/gnu/usr.bin. *** Error code 1 Stop in /src/gnu. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-15 11:46:33 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-15 11:46:33 - ERROR: failed to build world TB --- 2007-06-15 11:46:33 - tinderbox aborted TB --- 0.50 user 1.74 system 3692.01 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Fri Jun 15 20:32:12 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1201016A469; Fri, 15 Jun 2007 20:32:12 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id B671813C484; Fri, 15 Jun 2007 20:32:11 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5FKWBHU017049; Fri, 15 Jun 2007 16:32:11 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5FKWAm1042175; Fri, 15 Jun 2007 16:32:10 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id A5B2773068; Fri, 15 Jun 2007 16:32:10 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070615203210.A5B2773068@freebsd-current.sentex.ca> Date: Fri, 15 Jun 2007 16:32:10 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070102, clamav-milter version devel-111206 on clamscanner3 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 20:32:12 -0000 TB --- 2007-06-15 19:30:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-15 19:30:01 - starting HEAD tinderbox run for arm/arm TB --- 2007-06-15 19:30:01 - cleaning the object tree TB --- 2007-06-15 19:30:20 - checking out the source tree TB --- 2007-06-15 19:30:20 - cd /tinderbox/HEAD/arm/arm TB --- 2007-06-15 19:30:20 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-15 19:41:33 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-15 19:41:33 - cd /src TB --- 2007-06-15 19:41:33 - /usr/bin/make -B buildworld >>> World build started on Fri Jun 15 19:41:34 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -Wall -Wstrict-prototypes -o dialog dialog.o -ldialog -lncurses gzip -cn /src/gnu/usr.bin/dialog/dialog.1 > dialog.1.gz ===> gnu/usr.bin/dialog/TESTS (all) ===> gnu/usr.bin/diff (all) cc -O2 -pipe -funsigned-char -I/obj/arm/src/tmp/usr/include/gnu -I/src/gnu/usr.bin/diff/../../../contrib/diff -I/src/gnu/usr.bin/diff/../../../contrib/diff/src -I/src/gnu/usr.bin/diff/../../../contrib/diff/lib -DHAVE_CONFIG_H -DPR_PROGRAM=\"/usr/bin/pr\" -c /src/gnu/usr.bin/diff/../../../contrib/diff/src/analyze.c cc -O2 -pipe -funsigned-char -I/obj/arm/src/tmp/usr/include/gnu -I/src/gnu/usr.bin/diff/../../../contrib/diff -I/src/gnu/usr.bin/diff/../../../contrib/diff/src -I/src/gnu/usr.bin/diff/../../../contrib/diff/lib -DHAVE_CONFIG_H -DPR_PROGRAM=\"/usr/bin/pr\" -c context.c context.c: In function 'print_context_label': context.c:64: error: size of array 'a' is negative *** Error code 1 Stop in /src/gnu/usr.bin/diff. *** Error code 1 Stop in /src/gnu/usr.bin. *** Error code 1 Stop in /src/gnu. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-15 20:32:10 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-15 20:32:10 - ERROR: failed to build world TB --- 2007-06-15 20:32:10 - tinderbox aborted TB --- 0.30 user 1.37 system 3729.26 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Fri Jun 15 21:03:28 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7245616A41F for ; Fri, 15 Jun 2007 21:03:28 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [146.64.24.58]) by mx1.freebsd.org (Postfix) with ESMTP id 1FD5813C44C for ; Fri, 15 Jun 2007 21:03:26 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id 3EE7533CD1; Fri, 15 Jun 2007 23:03:25 +0200 (SAST) Date: Fri, 15 Jun 2007 23:03:25 +0200 From: John Hay To: freebsd-arm@freebsd.org Message-ID: <20070615210325.GA1007@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: more hints for avila X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 21:03:28 -0000 Hi, This is my latest code to move enough of the ixp425/avila stuff into hints, so that I can get the Pronghorn metro boards to work just by changing the hints file. So what do you guys think? John -- John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org Index: conf/AVILA.hints =================================================================== RCS file: /home/ncvs/src/sys/arm/conf/AVILA.hints,v retrieving revision 1.2 diff -u -r1.2 AVILA.hints --- conf/AVILA.hints 29 May 2007 18:10:42 -0000 1.2 +++ conf/AVILA.hints 5 Jun 2007 18:43:53 -0000 @@ -20,12 +20,32 @@ hint.npe.0.at="ixp0" hint.npe.1.at="ixp0" +# PCI controller +#hint.pcib.0.at="ixp0" +hint.pcib.0.reset=13 +hint.pcib.0.clk=14 +hint.pcib.0.clk66en=-1 +hint.pcib.0.slottop=32 +hint.pcislot.0.irq=28 +hint.pcislot.1.irq=27 +hint.pcislot.2.irq=26 +hint.pcislot.3.irq=25 + # CF IDE controller hint.ata_avila.0.at="ixp0" # LED connected to gpio hint.led_avila.0.at="ixp0" +# CLK device +#hint.ixpclk.0.at="ixp0" +hint.ixpclk.0.freq=66666600 + +# IIC controller +#hint.ixpiic.0.at="ixp0" +hint.ixpiic.0.scl=6 +hint.ixpiic.0.sda=7 + # Analog Devices AD7418 temperature sensor hint.ad7418.0.at="iicbus0" hint.ad7418.0.addr=0x50 Index: xscale/ixp425/ixdp425_pci.c =================================================================== RCS file: /home/ncvs/src/sys/arm/xscale/ixp425/ixdp425_pci.c,v retrieving revision 1.1 diff -u -r1.1 ixdp425_pci.c --- xscale/ixp425/ixdp425_pci.c 19 Nov 2006 23:55:23 -0000 1.1 +++ xscale/ixp425/ixdp425_pci.c 5 Jun 2007 18:46:52 -0000 @@ -56,59 +56,78 @@ { struct ixp425_softc *sc = device_get_softc(device_get_parent(dev)); struct ixppcib_softc *pci_sc = device_get_softc(dev); - uint32_t reg; + const char *dname; + int dunit; + uint32_t inta, intb, intc, intd, reg; + uint32_t resetpin, clkpin, clk66pin; + + dname = device_get_name(dev); + dunit = device_get_unit(dev); + resource_int_value(dname , dunit, "reset", &resetpin); + resource_int_value(dname , dunit, "clk", &clkpin); + resource_int_value(dname , dunit, "clk66en", &clk66pin); + resource_int_value("pcislot", 0, "irq", &inta); + resource_int_value("pcislot", 1, "irq", &intb); + resource_int_value("pcislot", 2, "irq", &intc); + resource_int_value("pcislot", 3, "irq", &intd); - /* PCI Reset Assert */ reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPOUTR); - reg &= ~(1U << GPIO_PCI_RESET); - GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPOUTR, reg & ~(1U << GPIO_PCI_RESET)); + reg &= ~(1U << resetpin); + GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPOUTR, reg); /* PCI Clock Disable */ reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPCLKR); reg &= ~GPCLKR_MUX14; GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPCLKR, reg & ~GPCLKR_MUX14); + /* Not all support 66MHz pci clock. */ + if (clk66pin != -1) { + reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPOUTR); + reg &= ~(1U << clk66pin); + GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPOUTR, reg); + } + /* * set GPIO Direction - * Output: PCI_CLK, PCI_RESET + * Output: (PCI_CLK66_EN), PCI_CLK, PCI_RESET * Input: PCI_INTA, PCI_INTB, PCI_INTC, PCI_INTD */ reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPOER); - reg &= ~(1U << GPIO_PCI_CLK); - reg &= ~(1U << GPIO_PCI_RESET); - reg |= ((1U << GPIO_PCI_INTA) | (1U << GPIO_PCI_INTB) | - (1U << GPIO_PCI_INTC) | (1U << GPIO_PCI_INTD)); + if (clk66pin != -1) + reg &= ~(1U << clk66pin); + reg &= ~(1U << clkpin); + reg &= ~(1U << resetpin); + reg |= ((1U << inta) | (1U << intb) | (1U << intc) | (1U << intd)); GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPOER, reg); /* * Set GPIO interrupt type * PCI_INT_A, PCI_INTB, PCI_INT_C, PCI_INT_D: Active Low */ - reg = GPIO_CONF_READ_4(sc, GPIO_TYPE_REG(GPIO_PCI_INTA)); - reg &= ~GPIO_TYPE(GPIO_PCI_INTA, GPIO_TYPE_MASK); - reg |= GPIO_TYPE(GPIO_PCI_INTA, GPIO_TYPE_ACT_LOW); - GPIO_CONF_WRITE_4(sc, GPIO_TYPE_REG(GPIO_PCI_INTA), reg); - - reg = GPIO_CONF_READ_4(sc, GPIO_TYPE_REG(GPIO_PCI_INTB)); - reg &= ~GPIO_TYPE(GPIO_PCI_INTB, GPIO_TYPE_MASK); - reg |= GPIO_TYPE(GPIO_PCI_INTB, GPIO_TYPE_ACT_LOW); - GPIO_CONF_WRITE_4(sc, GPIO_TYPE_REG(GPIO_PCI_INTB), reg); - - reg = GPIO_CONF_READ_4(sc, GPIO_TYPE_REG(GPIO_PCI_INTC)); - reg &= ~GPIO_TYPE(GPIO_PCI_INTC, GPIO_TYPE_MASK); - reg |= GPIO_TYPE(GPIO_PCI_INTC, GPIO_TYPE_ACT_LOW); - GPIO_CONF_WRITE_4(sc, GPIO_TYPE_REG(GPIO_PCI_INTC), reg); - - reg = GPIO_CONF_READ_4(sc, GPIO_TYPE_REG(GPIO_PCI_INTD)); - reg &= ~GPIO_TYPE(GPIO_PCI_INTD, GPIO_TYPE_MASK); - reg |= GPIO_TYPE(GPIO_PCI_INTD, GPIO_TYPE_ACT_LOW); - GPIO_CONF_WRITE_4(sc, GPIO_TYPE_REG(GPIO_PCI_INTD), reg); + reg = GPIO_CONF_READ_4(sc, GPIO_TYPE_REG(inta)); + reg &= ~GPIO_TYPE(inta, GPIO_TYPE_MASK); + reg |= GPIO_TYPE(inta, GPIO_TYPE_ACT_LOW); + GPIO_CONF_WRITE_4(sc, GPIO_TYPE_REG(inta), reg); + + reg = GPIO_CONF_READ_4(sc, GPIO_TYPE_REG(intb)); + reg &= ~GPIO_TYPE(intb, GPIO_TYPE_MASK); + reg |= GPIO_TYPE(intb, GPIO_TYPE_ACT_LOW); + GPIO_CONF_WRITE_4(sc, GPIO_TYPE_REG(intb), reg); + + reg = GPIO_CONF_READ_4(sc, GPIO_TYPE_REG(intc)); + reg &= ~GPIO_TYPE(intc, GPIO_TYPE_MASK); + reg |= GPIO_TYPE(intc, GPIO_TYPE_ACT_LOW); + GPIO_CONF_WRITE_4(sc, GPIO_TYPE_REG(intc), reg); + + reg = GPIO_CONF_READ_4(sc, GPIO_TYPE_REG(intd)); + reg &= ~GPIO_TYPE(intd, GPIO_TYPE_MASK); + reg |= GPIO_TYPE(intd, GPIO_TYPE_ACT_LOW); + GPIO_CONF_WRITE_4(sc, GPIO_TYPE_REG(intd), reg); /* clear ISR */ GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPISR, - (1U << GPIO_PCI_INTA) | (1U << GPIO_PCI_INTB) | - (1U << GPIO_PCI_INTC) | (1U << GPIO_PCI_INTD)); + (1U << inta) | (1U << intb) | (1U << intc) | (1U << intd)); /* wait 1ms to satisfy "minimum reset assertion time" of the PCI spec */ DELAY(1000); @@ -119,7 +138,7 @@ /* PCI Clock Enable */ reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPCLKR); reg |= GPCLKR_MUX14; - GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPCLKR, reg | GPCLKR_MUX14); + GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPCLKR, reg); /* * wait 100us to satisfy "minimum reset assertion time from clock stable @@ -128,14 +147,21 @@ DELAY(100); /* PCI Reset deassert */ reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPOUTR); - reg |= 1U << GPIO_PCI_RESET; - GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPOUTR, reg | (1U << GPIO_PCI_RESET)); + reg |= 1U << resetpin; + GPIO_CONF_WRITE_4(sc, IXP425_GPIO_GPOUTR, reg); pci_sc->sc_irq_rman.rm_type = RMAN_ARRAY; pci_sc->sc_irq_rman.rm_descr = "IXP425 PCI IRQs"; - CTASSERT(PCI_INT_D < PCI_INT_A); - /* XXX this overlaps the irq's setup in ixp425_attach */ + /* + * XXX this overlaps the irq's setup in ixp425_attach + * + * PCI irq's on the Pronghorn are not consecutive, so do + * them one at a time. + */ if (rman_init(&pci_sc->sc_irq_rman) != 0 || - rman_manage_region(&pci_sc->sc_irq_rman, PCI_INT_D, PCI_INT_A) != 0) + rman_manage_region(&pci_sc->sc_irq_rman, inta, inta) != 0 || + rman_manage_region(&pci_sc->sc_irq_rman, intb, intb) != 0 || + rman_manage_region(&pci_sc->sc_irq_rman, intc, intc) != 0 || + rman_manage_region(&pci_sc->sc_irq_rman, intd, intd) != 0) panic("ixp425_md_attach: failed to set up IRQ rman"); } @@ -145,23 +171,38 @@ int ixp425_md_route_interrupt(device_t bridge, device_t device, int pin) { - static int ixp425_pci_table[IXP425_MAX_DEV][IXP425_MAX_LINE] = - { - {PCI_INT_A, PCI_INT_B, PCI_INT_C, PCI_INT_D}, - {PCI_INT_B, PCI_INT_C, PCI_INT_D, PCI_INT_A}, - {PCI_INT_C, PCI_INT_D, PCI_INT_A, PCI_INT_B}, - {PCI_INT_D, PCI_INT_A, PCI_INT_B, PCI_INT_C}, - }; - int dev; - + static int ixp425_pci_table[IXP425_MAX_DEV][IXP425_MAX_LINE]; + static int table_filled = 0; + int di, dev, li; + + if (table_filled == 0) { + resource_int_value("pcislot", 0, "irq", &di); + ixp425_pci_table[0][0] = di; + resource_int_value("pcislot", 1, "irq", &di); + ixp425_pci_table[0][1] = di; + resource_int_value("pcislot", 2, "irq", &di); + ixp425_pci_table[0][2] = di; + resource_int_value("pcislot", 3, "irq", &di); + ixp425_pci_table[0][3] = di; + if (bootverbose) + device_printf(bridge, "irq list a %d, b %d, c %d, d %d\n", + ixp425_pci_table[0][0], ixp425_pci_table[0][1], + ixp425_pci_table[0][2], ixp425_pci_table[0][3]); + for (di = 1; di < IXP425_MAX_DEV; di++) + for (li = 0; li < IXP425_MAX_LINE; li++) + ixp425_pci_table[di][li] = + ixp425_pci_table[0][(di + li) % + IXP425_MAX_LINE]; + table_filled = 1; + } dev = pci_get_slot(device); if (bootverbose) device_printf(bridge, "routing pin %d for %s\n", pin, device_get_nameunit(device)); if (pin >= 1 && pin <= IXP425_MAX_LINE && - dev >= 1 && dev <= IXP425_MAX_DEV) { + dev >= 1 && dev <= IXP425_MAX_DEV) return (ixp425_pci_table[dev - 1][pin - 1]); - } else + else printf("ixppcib: no mapping for %d/%d/%d\n", pci_get_bus(device), dev, pci_get_function(device)); Index: xscale/ixp425/ixp425_iic.c =================================================================== RCS file: /home/ncvs/src/sys/arm/xscale/ixp425/ixp425_iic.c,v retrieving revision 1.1 diff -u -r1.1 ixp425_iic.c --- xscale/ixp425/ixp425_iic.c 19 Nov 2006 23:55:23 -0000 1.1 +++ xscale/ixp425/ixp425_iic.c 28 May 2007 19:36:47 -0000 @@ -61,6 +61,8 @@ device_t sc_dev; bus_space_tag_t sc_iot; bus_space_handle_t sc_gpio_ioh; + uint32_t sc_scl_bit; + uint32_t sc_sda_bit; device_t iicbb; }; @@ -79,17 +81,25 @@ { struct ixpiic_softc *sc = device_get_softc(dev); struct ixp425_softc *sa = device_get_softc(device_get_parent(dev)); + const char *dname; + int dunit; ixpiic_sc = sc; sc->sc_dev = dev; sc->sc_iot = sa->sc_iot; sc->sc_gpio_ioh = sa->sc_gpio_ioh; + dname = device_get_name(dev); + dunit = device_get_unit(dev); + resource_int_value(dname, dunit, "scl", &sc->sc_scl_bit); + sc->sc_scl_bit = 1U << sc->sc_scl_bit; + resource_int_value(dname, dunit, "sda", &sc->sc_sda_bit); + sc->sc_sda_bit = 1U << sc->sc_sda_bit; GPIO_CONF_SET(sc, IXP425_GPIO_GPOER, - GPIO_I2C_SCL_BIT | GPIO_I2C_SDA_BIT); + sc->sc_scl_bit | sc->sc_sda_bit); GPIO_CONF_CLR(sc, IXP425_GPIO_GPOUTR, - GPIO_I2C_SCL_BIT | GPIO_I2C_SDA_BIT); + sc->sc_scl_bit | sc->sc_sda_bit); /* add generic bit-banging code */ if ((sc->iicbb = device_add_child(dev, "iicbb", -1)) == NULL) @@ -113,10 +123,10 @@ struct ixpiic_softc *sc = ixpiic_sc; uint32_t reg; - GPIO_CONF_SET(sc, IXP425_GPIO_GPOER, GPIO_I2C_SCL_BIT); + GPIO_CONF_SET(sc, IXP425_GPIO_GPOER, sc->sc_scl_bit); reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPINR); - return (reg & GPIO_I2C_SCL_BIT); + return (reg & sc->sc_scl_bit); } static int @@ -125,10 +135,10 @@ struct ixpiic_softc *sc = ixpiic_sc; uint32_t reg; - GPIO_CONF_SET(sc, IXP425_GPIO_GPOER, GPIO_I2C_SDA_BIT); + GPIO_CONF_SET(sc, IXP425_GPIO_GPOER, sc->sc_sda_bit); reg = GPIO_CONF_READ_4(sc, IXP425_GPIO_GPINR); - return (reg & GPIO_I2C_SDA_BIT); + return (reg & sc->sc_sda_bit); } static void @@ -136,11 +146,11 @@ { struct ixpiic_softc *sc = ixpiic_sc; - GPIO_CONF_CLR(sc, IXP425_GPIO_GPOUTR, GPIO_I2C_SDA_BIT); + GPIO_CONF_CLR(sc, IXP425_GPIO_GPOUTR, sc->sc_sda_bit); if (val) - GPIO_CONF_SET(sc, IXP425_GPIO_GPOER, GPIO_I2C_SDA_BIT); + GPIO_CONF_SET(sc, IXP425_GPIO_GPOER, sc->sc_sda_bit); else - GPIO_CONF_CLR(sc, IXP425_GPIO_GPOER, GPIO_I2C_SDA_BIT); + GPIO_CONF_CLR(sc, IXP425_GPIO_GPOER, sc->sc_sda_bit); DELAY(I2C_DELAY); } @@ -149,11 +159,11 @@ { struct ixpiic_softc *sc = ixpiic_sc; - GPIO_CONF_CLR(sc, IXP425_GPIO_GPOUTR, GPIO_I2C_SCL_BIT); + GPIO_CONF_CLR(sc, IXP425_GPIO_GPOUTR, sc->sc_scl_bit); if (val) - GPIO_CONF_SET(sc, IXP425_GPIO_GPOER, GPIO_I2C_SCL_BIT); + GPIO_CONF_SET(sc, IXP425_GPIO_GPOER, sc->sc_scl_bit); else - GPIO_CONF_CLR(sc, IXP425_GPIO_GPOER, GPIO_I2C_SCL_BIT); + GPIO_CONF_CLR(sc, IXP425_GPIO_GPOER, sc->sc_scl_bit); DELAY(I2C_DELAY); } Index: xscale/ixp425/ixp425_pci.c =================================================================== RCS file: /home/ncvs/src/sys/arm/xscale/ixp425/ixp425_pci.c,v retrieving revision 1.4 diff -u -r1.4 ixp425_pci.c --- xscale/ixp425/ixp425_pci.c 6 Mar 2007 10:58:22 -0000 1.4 +++ xscale/ixp425/ixp425_pci.c 28 May 2007 19:43:51 -0000 @@ -109,6 +109,8 @@ { int rid; struct ixppcib_softc *sc; + const char *dname; + int dunit; sc = device_get_softc(dev); @@ -213,6 +215,10 @@ IXPPCIB_WRITE_CONF(sc, PCIR_COMMAND, PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN); + dname = device_get_name(dev); + dunit = device_get_unit(dev); + resource_int_value(dname, dunit, "slottop", &sc->sc_slot_top); + /* * Wait some more to ensure PCI devices have stabilised. */ @@ -355,8 +361,9 @@ slot &= 0x1f; func &= 0x07; /* configuration type 0 */ - PCI_CSR_WRITE_4(sc, PCI_NP_AD, (1U << (32 - slot)) | - (func << 8) | (reg & ~3)); + PCI_CSR_WRITE_4(sc, PCI_NP_AD, + (1U << (sc->sc_slot_top - slot)) | + (func << 8) | (reg & ~3)); } } else { /* configuration type 1 */ Index: xscale/ixp425/ixp425_timer.c =================================================================== RCS file: /home/ncvs/src/sys/arm/xscale/ixp425/ixp425_timer.c,v retrieving revision 1.2 diff -u -r1.2 ixp425_timer.c --- xscale/ixp425/ixp425_timer.c 23 Feb 2007 12:18:28 -0000 1.2 +++ xscale/ixp425/ixp425_timer.c 5 Jun 2007 20:07:09 -0000 @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -55,7 +56,9 @@ #include #include +static uint32_t ixp425_freq; static uint32_t counts_per_hz; +static uint32_t counts_per_usec = 66; /* callback functions for intr_functions */ int ixpclk_intr(void *); @@ -68,13 +71,7 @@ }; static unsigned ixp425_timer_get_timecount(struct timecounter *tc); - -#ifndef IXP425_CLOCK_FREQ -#define COUNTS_PER_SEC 66666600 /* 66MHz */ -#else -#define COUNTS_PER_SEC IXP425_CLOCK_FREQ -#endif -#define COUNTS_PER_USEC ((COUNTS_PER_SEC / 1000000) + 1) +static int sysctl_machdep_ixp425_freq(SYSCTL_HANDLER_ARGS); static struct ixpclk_softc *ixpclk_sc = NULL; @@ -85,7 +82,7 @@ ixp425_timer_get_timecount, /* get_timecount */ NULL, /* no poll_pps */ ~0u, /* counter_mask */ - COUNTS_PER_SEC, /* frequency */ + 0, /* frequency */ "IXP425 Timer", /* name */ 1000, /* quality */ }; @@ -150,11 +147,18 @@ struct ixpclk_softc* sc = ixpclk_sc; struct resource *irq; device_t dev = sc->sc_dev; + const char *dname; u_int oldirqstate; - int rid = 0; + int dunit, rid = 0; void *ihl; - if (hz < 50 || COUNTS_PER_SEC % hz) { + dname = device_get_name(dev); + dunit = device_get_unit(dev); + resource_int_value(dname, dunit, "freq", &ixp425_freq); + ixp425_timer_timecounter.tc_frequency = ixp425_freq; + counts_per_usec = ((ixp425_freq / 1000000) + 1); + + if (hz < 50 || ixp425_freq % hz) { printf("Cannot get %d Hz clock; using 100 Hz\n", hz); hz = 100; } @@ -192,7 +196,7 @@ OST_WARM_RESET | OST_WDOG_INT | OST_TS_INT | OST_TIM1_INT | OST_TIM0_INT); - counts_per_hz = COUNTS_PER_SEC / hz; + counts_per_hz = ixp425_freq / hz; /* reload value & Timer enable */ bus_space_write_4(sc->sc_iot, sc->sc_ioh, IXP425_OST_TIM0_RELOAD, @@ -224,10 +228,10 @@ * near that length of time and if they are, they should be hung * out to dry. */ - if (n >= (0x80000000U / COUNTS_PER_USEC)) - usecs = (0x80000000U / COUNTS_PER_USEC) - 1; + if (n >= (0x80000000U / counts_per_usec)) + usecs = (0x80000000U / counts_per_usec) - 1; else - usecs = n * COUNTS_PER_USEC; + usecs = n * counts_per_usec; /* Note: Timestamp timer counts *up*, unlike the other timers */ first = GET_TS_VALUE(); @@ -266,3 +270,33 @@ cpu_stopprofclock(void) { } + +static int +sysctl_machdep_ixp425_freq(SYSCTL_HANDLER_ARGS) +{ + struct ixpclk_softc* sc = ixpclk_sc; + int error; + uint32_t freq; + + if (ixp425_timer_timecounter.tc_frequency == 0) + return (EOPNOTSUPP); + freq = ixp425_freq; + error = sysctl_handle_int(oidp, &freq, 0, req); + if (error == 0 && req->newptr != NULL) { + ixp425_freq = freq; + ixp425_timer_timecounter.tc_frequency = ixp425_freq; + + counts_per_hz = ixp425_freq / hz; + counts_per_usec = ((ixp425_freq / 1000000) + 1); + + /* reload value & Timer enable */ + bus_space_write_4(sc->sc_iot, sc->sc_ioh, + IXP425_OST_TIM0_RELOAD, + (counts_per_hz & TIMERRELOAD_MASK) | OST_TIMER_EN); + + } + return (error); +} + +SYSCTL_PROC(_machdep, OID_AUTO, ixp425_freq, CTLTYPE_INT | CTLFLAG_RW, + 0, sizeof(u_int), sysctl_machdep_ixp425_freq, "IU", ""); Index: xscale/ixp425/ixp425var.h =================================================================== RCS file: /home/ncvs/src/sys/arm/xscale/ixp425/ixp425var.h,v retrieving revision 1.4 diff -u -r1.4 ixp425var.h --- xscale/ixp425/ixp425var.h 29 May 2007 18:10:42 -0000 1.4 +++ xscale/ixp425/ixp425var.h 29 May 2007 19:37:42 -0000 @@ -75,6 +75,8 @@ struct bus_space sc_pci_memt; struct bus_space sc_pci_iot; bus_dma_tag_t sc_dmat; + + u_int sc_slot_top; /* Where to start the search */ }; #define EXP_BUS_WRITE_4(sc, reg, data) \ From owner-freebsd-arm@FreeBSD.ORG Sat Jun 16 05:17:12 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7A1BF16A400; Sat, 16 Jun 2007 05:17:12 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 3F4DC13C448; Sat, 16 Jun 2007 05:17:12 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5G5HBFu040509; Sat, 16 Jun 2007 01:17:11 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.8/8.13.8) with ESMTP id l5G5HBAY055015; Sat, 16 Jun 2007 01:17:11 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id D3D5673068; Sat, 16 Jun 2007 01:17:10 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070616051710.D3D5673068@freebsd-current.sentex.ca> Date: Sat, 16 Jun 2007 01:17:10 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070108, clamav-milter version devel-111206 on clamscanner2 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 05:17:12 -0000 TB --- 2007-06-16 04:15:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-16 04:15:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-06-16 04:15:00 - cleaning the object tree TB --- 2007-06-16 04:15:19 - checking out the source tree TB --- 2007-06-16 04:15:19 - cd /tinderbox/HEAD/arm/arm TB --- 2007-06-16 04:15:19 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-16 04:26:40 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-16 04:26:40 - cd /src TB --- 2007-06-16 04:26:40 - /usr/bin/make -B buildworld >>> World build started on Sat Jun 16 04:26:42 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -Wall -Wstrict-prototypes -o dialog dialog.o -ldialog -lncurses gzip -cn /src/gnu/usr.bin/dialog/dialog.1 > dialog.1.gz ===> gnu/usr.bin/dialog/TESTS (all) ===> gnu/usr.bin/diff (all) cc -O2 -pipe -funsigned-char -I/obj/arm/src/tmp/usr/include/gnu -I/src/gnu/usr.bin/diff/../../../contrib/diff -I/src/gnu/usr.bin/diff/../../../contrib/diff/src -I/src/gnu/usr.bin/diff/../../../contrib/diff/lib -DHAVE_CONFIG_H -DPR_PROGRAM=\"/usr/bin/pr\" -c /src/gnu/usr.bin/diff/../../../contrib/diff/src/analyze.c cc -O2 -pipe -funsigned-char -I/obj/arm/src/tmp/usr/include/gnu -I/src/gnu/usr.bin/diff/../../../contrib/diff -I/src/gnu/usr.bin/diff/../../../contrib/diff/src -I/src/gnu/usr.bin/diff/../../../contrib/diff/lib -DHAVE_CONFIG_H -DPR_PROGRAM=\"/usr/bin/pr\" -c context.c context.c: In function 'print_context_label': context.c:64: error: size of array 'a' is negative *** Error code 1 Stop in /src/gnu/usr.bin/diff. *** Error code 1 Stop in /src/gnu/usr.bin. *** Error code 1 Stop in /src/gnu. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-16 05:17:10 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-16 05:17:10 - ERROR: failed to build world TB --- 2007-06-16 05:17:10 - tinderbox aborted TB --- 0.41 user 1.26 system 3729.96 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Sat Jun 16 14:17:32 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6CD4616A468; Sat, 16 Jun 2007 14:17:32 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 1B9A013C457; Sat, 16 Jun 2007 14:17:31 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5GEHVpv062397; Sat, 16 Jun 2007 10:17:31 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.8/8.13.8) with ESMTP id l5GEHVBo058657; Sat, 16 Jun 2007 10:17:31 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 26DF873068; Sat, 16 Jun 2007 10:17:30 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070616141731.26DF873068@freebsd-current.sentex.ca> Date: Sat, 16 Jun 2007 10:17:30 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070108, clamav-milter version devel-111206 on news X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 14:17:32 -0000 TB --- 2007-06-16 13:15:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-16 13:15:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-06-16 13:15:00 - cleaning the object tree TB --- 2007-06-16 13:15:18 - checking out the source tree TB --- 2007-06-16 13:15:18 - cd /tinderbox/HEAD/arm/arm TB --- 2007-06-16 13:15:18 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-16 13:26:47 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-16 13:26:47 - cd /src TB --- 2007-06-16 13:26:47 - /usr/bin/make -B buildworld >>> World build started on Sat Jun 16 13:26:49 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -Wall -Wstrict-prototypes -o dialog dialog.o -ldialog -lncurses gzip -cn /src/gnu/usr.bin/dialog/dialog.1 > dialog.1.gz ===> gnu/usr.bin/dialog/TESTS (all) ===> gnu/usr.bin/diff (all) cc -O2 -pipe -funsigned-char -I/obj/arm/src/tmp/usr/include/gnu -I/src/gnu/usr.bin/diff/../../../contrib/diff -I/src/gnu/usr.bin/diff/../../../contrib/diff/src -I/src/gnu/usr.bin/diff/../../../contrib/diff/lib -DHAVE_CONFIG_H -DPR_PROGRAM=\"/usr/bin/pr\" -c /src/gnu/usr.bin/diff/../../../contrib/diff/src/analyze.c cc -O2 -pipe -funsigned-char -I/obj/arm/src/tmp/usr/include/gnu -I/src/gnu/usr.bin/diff/../../../contrib/diff -I/src/gnu/usr.bin/diff/../../../contrib/diff/src -I/src/gnu/usr.bin/diff/../../../contrib/diff/lib -DHAVE_CONFIG_H -DPR_PROGRAM=\"/usr/bin/pr\" -c context.c context.c: In function 'print_context_label': context.c:64: error: size of array 'a' is negative *** Error code 1 Stop in /src/gnu/usr.bin/diff. *** Error code 1 Stop in /src/gnu/usr.bin. *** Error code 1 Stop in /src/gnu. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-16 14:17:30 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-16 14:17:30 - ERROR: failed to build world TB --- 2007-06-16 14:17:30 - tinderbox aborted TB --- 0.35 user 1.32 system 3749.91 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Sat Jun 16 23:02:25 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1CDC016A400; Sat, 16 Jun 2007 23:02:25 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id BE67413C468; Sat, 16 Jun 2007 23:02:24 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5GN2Oh2082744; Sat, 16 Jun 2007 19:02:24 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.8/8.13.8) with ESMTP id l5GN2OWM021722; Sat, 16 Jun 2007 19:02:24 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id ADBD773068; Sat, 16 Jun 2007 19:02:23 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070616230223.ADBD773068@freebsd-current.sentex.ca> Date: Sat, 16 Jun 2007 19:02:23 -0400 (EDT) X-Virus-Scanned: ClamAV version devel-20070102, clamav-milter version devel-111206 on clamscanner5 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2007 23:02:25 -0000 TB --- 2007-06-16 22:00:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-06-16 22:00:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-06-16 22:00:00 - cleaning the object tree TB --- 2007-06-16 22:00:17 - checking out the source tree TB --- 2007-06-16 22:00:17 - cd /tinderbox/HEAD/arm/arm TB --- 2007-06-16 22:00:17 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-06-16 22:11:29 - building world (CFLAGS=-O2 -pipe) TB --- 2007-06-16 22:11:29 - cd /src TB --- 2007-06-16 22:11:29 - /usr/bin/make -B buildworld >>> World build started on Sat Jun 16 22:11:30 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -Wall -Wstrict-prototypes -o dialog dialog.o -ldialog -lncurses gzip -cn /src/gnu/usr.bin/dialog/dialog.1 > dialog.1.gz ===> gnu/usr.bin/dialog/TESTS (all) ===> gnu/usr.bin/diff (all) cc -O2 -pipe -funsigned-char -I/obj/arm/src/tmp/usr/include/gnu -I/src/gnu/usr.bin/diff/../../../contrib/diff -I/src/gnu/usr.bin/diff/../../../contrib/diff/src -I/src/gnu/usr.bin/diff/../../../contrib/diff/lib -DHAVE_CONFIG_H -DPR_PROGRAM=\"/usr/bin/pr\" -c /src/gnu/usr.bin/diff/../../../contrib/diff/src/analyze.c cc -O2 -pipe -funsigned-char -I/obj/arm/src/tmp/usr/include/gnu -I/src/gnu/usr.bin/diff/../../../contrib/diff -I/src/gnu/usr.bin/diff/../../../contrib/diff/src -I/src/gnu/usr.bin/diff/../../../contrib/diff/lib -DHAVE_CONFIG_H -DPR_PROGRAM=\"/usr/bin/pr\" -c context.c context.c: In function 'print_context_label': context.c:64: error: size of array 'a' is negative *** Error code 1 Stop in /src/gnu/usr.bin/diff. *** Error code 1 Stop in /src/gnu/usr.bin. *** Error code 1 Stop in /src/gnu. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-06-16 23:02:23 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-06-16 23:02:23 - ERROR: failed to build world TB --- 2007-06-16 23:02:23 - tinderbox aborted TB --- 0.38 user 1.27 system 3742.94 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full