From owner-freebsd-arm@FreeBSD.ORG Sun Dec 16 00:09:10 2007 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEF3A16A417; Sun, 16 Dec 2007 00:09:10 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id A033713C45B; Sun, 16 Dec 2007 00:09:10 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.14.1/8.13.8) with ESMTP id lBG0993q035873; Sat, 15 Dec 2007 19:09:10 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.1/8.14.1) with ESMTP id lBG099gY013777; Sat, 15 Dec 2007 19:09:09 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 5C5C073039; Sat, 15 Dec 2007 19:09:09 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20071216000909.5C5C073039@freebsd-current.sentex.ca> Date: Sat, 15 Dec 2007 19:09:09 -0500 (EST) X-Virus-Scanned: ClamAV version 0.91.1, clamav-milter version 0.91.1 on clamscanner4 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: Sun, 16 Dec 2007 00:09:11 -0000 TB --- 2007-12-15 23:55:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-12-15 23:55:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-12-15 23:55:00 - cleaning the object tree TB --- 2007-12-15 23:55:27 - cvsupping the source tree TB --- 2007-12-15 23:55:27 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2007-12-15 23:55:35 - building world (CFLAGS=-O -pipe) TB --- 2007-12-15 23:55:35 - cd /src TB --- 2007-12-15 23:55:35 - /usr/bin/make -B buildworld >>> World build started on Sat Dec 15 23:55:37 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 [...] ln -fs /obj/arm/src/tmp/lib/libkiconv.so.3 /obj/arm/src/tmp/usr/lib/libkiconv.so ===> lib/libkvm (obj,depend,all,install) rm -f .depend mkdep -f .depend -a -DLIBC_SCCS -I/src/lib/libkvm /src/lib/libkvm/kvm.c /src/lib/libkvm/kvm_arm.c /src/lib/libkvm/kvm_file.c /src/lib/libkvm/kvm_getloadavg.c /src/lib/libkvm/kvm_getswapinfo.c /src/lib/libkvm/kvm_proc.c cc -O -pipe -DLIBC_SCCS -I/src/lib/libkvm -c /src/lib/libkvm/kvm.c In file included from /obj/arm/src/tmp/usr/include/sys/user.h:49, from /src/lib/libkvm/kvm.c:44: /obj/arm/src/tmp/usr/include/sys/proc.h:302: error: array type has incomplete element type *** Error code 1 Stop in /src/lib/libkvm. *** 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-12-16 00:09:09 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-12-16 00:09:09 - ERROR: failed to build world TB --- 2007-12-16 00:09:09 - tinderbox aborted TB --- 606.91 user 79.84 system 848.45 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Sun Dec 16 00:22:34 2007 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B618416A419; Sun, 16 Dec 2007 00:22:34 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from webaccess-cl.virtdom.com (webaccess-cl.virtdom.com [216.240.101.25]) by mx1.freebsd.org (Postfix) with ESMTP id 714C313C468; Sun, 16 Dec 2007 00:22:34 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from [192.168.1.107] (cpe-24-94-75-93.hawaii.res.rr.com [24.94.75.93]) (authenticated bits=0) by webaccess-cl.virtdom.com (8.13.6/8.13.6) with ESMTP id lBG0MTLf078982; Sat, 15 Dec 2007 19:22:31 -0500 (EST) (envelope-from jroberson@chesapeake.net) Date: Sat, 15 Dec 2007 14:24:17 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: FreeBSD Tinderbox In-Reply-To: <20071216000909.5C5C073039@freebsd-current.sentex.ca> Message-ID: <20071215142413.X922@desktop> References: <20071216000909.5C5C073039@freebsd-current.sentex.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: arm@freebsd.org, current@freebsd.org Subject: Re: [head tinderbox] failure on arm/arm 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, 16 Dec 2007 00:22:34 -0000 My fault, will be fixed in a moment. On Sat, 15 Dec 2007, FreeBSD Tinderbox wrote: > TB --- 2007-12-15 23:55:00 - tinderbox 2.3 running on freebsd-current.sentex.ca > TB --- 2007-12-15 23:55:00 - starting HEAD tinderbox run for arm/arm > TB --- 2007-12-15 23:55:00 - cleaning the object tree > TB --- 2007-12-15 23:55:27 - cvsupping the source tree > TB --- 2007-12-15 23:55:27 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile > TB --- 2007-12-15 23:55:35 - building world (CFLAGS=-O -pipe) > TB --- 2007-12-15 23:55:35 - cd /src > TB --- 2007-12-15 23:55:35 - /usr/bin/make -B buildworld >>>> World build started on Sat Dec 15 23:55:37 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 > [...] > ln -fs /obj/arm/src/tmp/lib/libkiconv.so.3 /obj/arm/src/tmp/usr/lib/libkiconv.so > ===> lib/libkvm (obj,depend,all,install) > rm -f .depend > mkdep -f .depend -a -DLIBC_SCCS -I/src/lib/libkvm /src/lib/libkvm/kvm.c /src/lib/libkvm/kvm_arm.c /src/lib/libkvm/kvm_file.c /src/lib/libkvm/kvm_getloadavg.c /src/lib/libkvm/kvm_getswapinfo.c /src/lib/libkvm/kvm_proc.c > cc -O -pipe -DLIBC_SCCS -I/src/lib/libkvm -c /src/lib/libkvm/kvm.c > In file included from /obj/arm/src/tmp/usr/include/sys/user.h:49, > from /src/lib/libkvm/kvm.c:44: > /obj/arm/src/tmp/usr/include/sys/proc.h:302: error: array type has incomplete element type > *** Error code 1 > > Stop in /src/lib/libkvm. > *** 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-12-16 00:09:09 - WARNING: /usr/bin/make returned exit code 1 > TB --- 2007-12-16 00:09:09 - ERROR: failed to build world > TB --- 2007-12-16 00:09:09 - tinderbox aborted > TB --- 606.91 user 79.84 system 848.45 real > > > http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From owner-freebsd-arm@FreeBSD.ORG Sun Dec 16 01:05:37 2007 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA7B616A419; Sun, 16 Dec 2007 01:05:37 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from smtp.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id 7FB3513C45B; Sun, 16 Dec 2007 01:05:37 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from [78.110.49.49] (helo=quasar.ht-systems.ru) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1J3hLd-0007vG-2K; Sun, 16 Dec 2007 03:27:13 +0300 Received: by quasar.ht-systems.ru (Postfix, from userid 1024) id 03E7C7D24FB; Sun, 16 Dec 2007 03:27:12 +0300 (MSK) Date: Sun, 16 Dec 2007 03:27:11 +0300 From: Stanislav Sedov To: Jeff Roberson Message-ID: <20071216002711.GE27843@dracon.ht-systems.ru> References: <20071216000909.5C5C073039@freebsd-current.sentex.ca> <20071215142413.X922@desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071215142413.X922@desktop> Organization: The FreeBSD Project X-Voice: +7 916 849 20 23 X-XMPP: ssedov@jabber.ru X-Yahoo: stanislav_sedov X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-University: MEPhI X-Mailer: carrier-pigeon X-Operating-System: FreeBSD quasar.ht-systems.ru 7.0-BETA2 FreeBSD 7.0-BETA2 Cc: arm@freebsd.org, FreeBSD Tinderbox , current@freebsd.org Subject: Re: [head tinderbox] failure on arm/arm 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, 16 Dec 2007 01:05:37 -0000 On Sat, Dec 15, 2007 at 02:24:17PM -1000 Jeff Roberson mentioned: > My fault, will be fixed in a moment. > Thanks! -- Stanislav Sedov ST4096-RIPE From owner-freebsd-arm@FreeBSD.ORG Sun Dec 16 01:08:48 2007 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E92F916A419; Sun, 16 Dec 2007 01:08:48 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id 9D03913C44B; Sun, 16 Dec 2007 01:08:48 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.14.1/8.13.8) with ESMTP id lBG18meq038807; Sat, 15 Dec 2007 20:08:48 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.1/8.14.1) with ESMTP id lBG18m38037066; Sat, 15 Dec 2007 20:08:48 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id B71A173039; Sat, 15 Dec 2007 20:08:47 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20071216010847.B71A173039@freebsd-current.sentex.ca> Date: Sat, 15 Dec 2007 20:08:47 -0500 (EST) X-Virus-Scanned: ClamAV version 0.91.1, clamav-milter version 0.91.1 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: Sun, 16 Dec 2007 01:08:49 -0000 TB --- 2007-12-16 00:55:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-12-16 00:55:01 - starting HEAD tinderbox run for arm/arm TB --- 2007-12-16 00:55:01 - cleaning the object tree TB --- 2007-12-16 00:55:19 - cvsupping the source tree TB --- 2007-12-16 00:55:19 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2007-12-16 00:55:26 - building world (CFLAGS=-O -pipe) TB --- 2007-12-16 00:55:26 - cd /src TB --- 2007-12-16 00:55:26 - /usr/bin/make -B buildworld >>> World build started on Sun Dec 16 00:55:27 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 [...] ln -fs /obj/arm/src/tmp/lib/libkiconv.so.3 /obj/arm/src/tmp/usr/lib/libkiconv.so ===> lib/libkvm (obj,depend,all,install) rm -f .depend mkdep -f .depend -a -DLIBC_SCCS -I/src/lib/libkvm /src/lib/libkvm/kvm.c /src/lib/libkvm/kvm_arm.c /src/lib/libkvm/kvm_file.c /src/lib/libkvm/kvm_getloadavg.c /src/lib/libkvm/kvm_getswapinfo.c /src/lib/libkvm/kvm_proc.c cc -O -pipe -DLIBC_SCCS -I/src/lib/libkvm -c /src/lib/libkvm/kvm.c In file included from /obj/arm/src/tmp/usr/include/sys/user.h:49, from /src/lib/libkvm/kvm.c:44: /obj/arm/src/tmp/usr/include/sys/proc.h:302: error: array type has incomplete element type *** Error code 1 Stop in /src/lib/libkvm. *** 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-12-16 01:08:47 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-12-16 01:08:47 - ERROR: failed to build world TB --- 2007-12-16 01:08:47 - tinderbox aborted TB --- 605.45 user 80.06 system 826.62 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Sun Dec 16 15:34:42 2007 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D99316A419; Sun, 16 Dec 2007 15:34:42 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id 3BFE813C465; Sun, 16 Dec 2007 15:34:42 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by smarthost2.sentex.ca (8.14.1/8.13.8) with ESMTP id lBGFYfA4079751; Sun, 16 Dec 2007 10:34:41 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.1/8.14.1) with ESMTP id lBGFYfmM083226; Sun, 16 Dec 2007 10:34:41 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 54E9873039; Sun, 16 Dec 2007 10:34:41 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20071216153441.54E9873039@freebsd-current.sentex.ca> Date: Sun, 16 Dec 2007 10:34:41 -0500 (EST) X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 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: Sun, 16 Dec 2007 15:34:42 -0000 TB --- 2007-12-16 15:00:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-12-16 15:00:01 - starting HEAD tinderbox run for arm/arm TB --- 2007-12-16 15:00:01 - cleaning the object tree TB --- 2007-12-16 15:00:28 - cvsupping the source tree TB --- 2007-12-16 15:00:28 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2007-12-16 15:00:35 - building world (CFLAGS=-O -pipe) TB --- 2007-12-16 15:00:35 - cd /src TB --- 2007-12-16 15:00:35 - /usr/bin/make -B buildworld >>> World build started on Sun Dec 16 15:00:37 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 -O -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -o mkdir mkdir.o gzip -cn /src/bin/mkdir/mkdir.1 > mkdir.1.gz ===> bin/mv (all) cc -O -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c /src/bin/mv/mv.c cc1: warnings being treated as errors /src/bin/mv/mv.c: In function 'copy': /src/bin/mv/mv.c:361: warning: variable 'rval' might be clobbered by 'longjmp' or 'vfork' /src/bin/mv/mv.c:361: warning: variable 'i' might be clobbered by 'longjmp' or 'vfork' *** Error code 1 Stop in /src/bin/mv. *** Error code 1 Stop in /src/bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-12-16 15:34:41 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-12-16 15:34:41 - ERROR: failed to build world TB --- 2007-12-16 15:34:41 - tinderbox aborted TB --- 1538.95 user 227.89 system 2080.27 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Sun Dec 16 18:04:38 2007 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1986516A420; Sun, 16 Dec 2007 18:04:38 +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 A8B0613C448; Sun, 16 Dec 2007 18:04:37 +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 lBGI4brN052179; Sun, 16 Dec 2007 13:04:37 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.1/8.14.1) with ESMTP id lBGI4bH9044584; Sun, 16 Dec 2007 13:04:37 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id DC6B273039; Sun, 16 Dec 2007 13:04:36 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20071216180436.DC6B273039@freebsd-current.sentex.ca> Date: Sun, 16 Dec 2007 13:04:36 -0500 (EST) X-Virus-Scanned: ClamAV version 0.91.1, clamav-milter version 0.91.1 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: Sun, 16 Dec 2007 18:04:38 -0000 TB --- 2007-12-16 17:30:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-12-16 17:30:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-12-16 17:30:00 - cleaning the object tree TB --- 2007-12-16 17:30:23 - cvsupping the source tree TB --- 2007-12-16 17:30:23 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2007-12-16 17:30:31 - building world (CFLAGS=-O -pipe) TB --- 2007-12-16 17:30:31 - cd /src TB --- 2007-12-16 17:30:31 - /usr/bin/make -B buildworld >>> World build started on Sun Dec 16 17:30:33 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 -O -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -o mkdir mkdir.o gzip -cn /src/bin/mkdir/mkdir.1 > mkdir.1.gz ===> bin/mv (all) cc -O -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c /src/bin/mv/mv.c cc1: warnings being treated as errors /src/bin/mv/mv.c: In function 'copy': /src/bin/mv/mv.c:361: warning: variable 'rval' might be clobbered by 'longjmp' or 'vfork' /src/bin/mv/mv.c:361: warning: variable 'i' might be clobbered by 'longjmp' or 'vfork' *** Error code 1 Stop in /src/bin/mv. *** Error code 1 Stop in /src/bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-12-16 18:04:36 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-12-16 18:04:36 - ERROR: failed to build world TB --- 2007-12-16 18:04:36 - tinderbox aborted TB --- 1536.82 user 230.52 system 2076.09 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Mon Dec 17 21:21:23 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB3E616A417 for ; Mon, 17 Dec 2007 21:21:23 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by mx1.freebsd.org (Postfix) with ESMTP id 3D4CA13C455 for ; Mon, 17 Dec 2007 21:21:23 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from localhost (unknown [127.0.0.1]) by mail.semihalf.com (Postfix) with ESMTP id EF4571448C; Mon, 17 Dec 2007 22:25:06 +0100 (CET) Received: from mail.semihalf.com ([127.0.0.1]) by localhost (mail.semihalf.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07542-02; Mon, 17 Dec 2007 22:25:05 +0100 (CET) Received: from [77.113.50.146] (apn-77-113-50-146.gprs.plus.pl [77.113.50.146]) by mail.semihalf.com (Postfix) with ESMTP id 30D95145AB; Mon, 17 Dec 2007 22:25:04 +0100 (CET) Message-ID: <4766E845.50304@semihalf.com> Date: Mon, 17 Dec 2007 22:21:09 +0100 From: Rafal Jaworowski MIME-Version: 1.0 To: Stanislav Sedov References: <20071213222654.GE17356@dracon.ht-systems.ru> <20071214090128.GM31230@cicely12.cicely.de> <20071214115226.0b2cb7e2@peedub.jennejohn.org> <20071214.062511.74732956.imp@bsdimp.com> <20071214153201.18c4c5ea@peedub.jennejohn.org> <47629E53.30404@semihalf.com> <20071214190825.GG17356@dracon.ht-systems.ru> In-Reply-To: <20071214190825.GG17356@dracon.ht-systems.ru> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at semihalf.com Cc: freebsd-arm@freebsd.org Subject: Re: MMC cards support 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: Mon, 17 Dec 2007 21:21:23 -0000 Stanislav Sedov wrote: > On Fri, Dec 14, 2007 at 04:16:35PM +0100 Rafal Jaworowski mentioned: >> We're probably getting a bit OT here, but just to clarify U-Boot networking >> model of operation that was mentioned: MAC address is usually programmed by a >> U-Boot network controller driver into relevant h/w registers upon every >> network access, so provided a given interface was used at least once in U-Boot >> (whatever net command), it should have the MAC addresss programmed correctly >> when running in the kernel. Otherwise it is left untouched, which happens in >> most of the cases with multiple integrated controllers -- usually only the >> first one gets ever used, others are left unconfigured... >> > > Well, I downloaded the entire kernel via tftp, so the controller was probably > configured correctly. Probably, u-boot resets it after transfer (have not checked > this yet). > Typically U-Boot would not reset the MAC address, at least I'm not aware of any net driver there that would do so. I had a look at AT91 net driver and the whole picture is quite confusing: - U-Boot net driver programs the address into EMAC_SA2L/EMAC_SA2H - FreeBSD/arm tries to retrieve it from ETH_SA1L/ETH_SA1H I don't know AT91 family, so am not sure which one should be used and where the above disconnect comes from (some byte ordering confusion?), but this might be the direct cause of your troubles.. > The idea of bd_t support looks promising anyway, especially if we'll continue our > expansion in the embedded world (almost all powerpc and arm embedded boards are > moving toward using u-boot exclusively). This way we'll get a good cooperation > with another projects. I'll look into this after I get ate0 and usb working. > Well, the bd_t struct is very much platform/architecture dependent, even within the same arch it can vary *a lot* depending on family member (see the PowerPC version of bd_t), so it does not provide a uniform interface. For this reason (among others) we came up with this new API that was mentioned in one of the previous emails. So far it has been integrated with embedded FreeBSD/powerpc running off U-Boot, but is designed and implemented so it can be used with ARM, MIPS etc. with minimal effort: only a lowest layer glue is dependent on the arch. If you're interested in details, the FreeBSD-U-Boot interface topic is just being discussed on the u-boot-users ML. Rafal From owner-freebsd-arm@FreeBSD.ORG Mon Dec 17 21:40:47 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CAE5C16A46C; Mon, 17 Dec 2007 21:40:47 +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 96ECC13C4D1; Mon, 17 Dec 2007 21:40:47 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.14.1) with ESMTP id lBHLbphk073476; Mon, 17 Dec 2007 14:37:51 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 17 Dec 2007 14:40:00 -0700 (MST) Message-Id: <20071217.144000.31317558.imp@bsdimp.com> To: raj@semihalf.com From: "M. Warner Losh" In-Reply-To: <4766E845.50304@semihalf.com> References: <47629E53.30404@semihalf.com> <20071214190825.GG17356@dracon.ht-systems.ru> <4766E845.50304@semihalf.com> 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 Cc: freebsd-arm@freebsd.org Subject: Re: MMC cards support 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: Mon, 17 Dec 2007 21:40:47 -0000 In message: <4766E845.50304@semihalf.com> Rafal Jaworowski writes: : Stanislav Sedov wrote: : > On Fri, Dec 14, 2007 at 04:16:35PM +0100 Rafal Jaworowski mentioned: : >> We're probably getting a bit OT here, but just to clarify U-Boot networking : >> model of operation that was mentioned: MAC address is usually programmed by a : >> U-Boot network controller driver into relevant h/w registers upon every : >> network access, so provided a given interface was used at least once in U-Boot : >> (whatever net command), it should have the MAC addresss programmed correctly : >> when running in the kernel. Otherwise it is left untouched, which happens in : >> most of the cases with multiple integrated controllers -- usually only the : >> first one gets ever used, others are left unconfigured... : >> : > : > Well, I downloaded the entire kernel via tftp, so the controller was probably : > configured correctly. Probably, u-boot resets it after transfer (have not checked : > this yet). : > : : Typically U-Boot would not reset the MAC address, at least I'm not aware of : any net driver there that would do so. I had a look at AT91 net driver and the : whole picture is quite confusing: : : - U-Boot net driver programs the address into EMAC_SA2L/EMAC_SA2H : - FreeBSD/arm tries to retrieve it from ETH_SA1L/ETH_SA1H : : I don't know AT91 family, so am not sure which one should be used and where : the above disconnect comes from (some byte ordering confusion?), but this : might be the direct cause of your troubles.. Hmmm, We got a patch to look at all the SAxL/H pairs for an address. I thought it was crazy to do that, but if uboot does this for some reason, then I'll be the first to admit that I was wrong and add the extra bits back. Warner From owner-freebsd-arm@FreeBSD.ORG Mon Dec 17 21:42:55 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7382816A417; Mon, 17 Dec 2007 21:42:55 +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 0CD0813C47E; Mon, 17 Dec 2007 21:42:54 +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 lBHLgqBp017396; Mon, 17 Dec 2007 22:42:52 +0100 (CET) (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 lBHLgl1h044867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 Dec 2007 22:42:47 +0100 (CET) (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 lBHLglaZ057184; Mon, 17 Dec 2007 22:42:47 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id lBHLgkP9057183; Mon, 17 Dec 2007 22:42:46 +0100 (CET) (envelope-from ticso) Date: Mon, 17 Dec 2007 22:42:46 +0100 From: Bernd Walter To: Rafal Jaworowski Message-ID: <20071217214246.GV51627@cicely12.cicely.de> References: <20071213222654.GE17356@dracon.ht-systems.ru> <20071214090128.GM31230@cicely12.cicely.de> <20071214115226.0b2cb7e2@peedub.jennejohn.org> <20071214.062511.74732956.imp@bsdimp.com> <20071214153201.18c4c5ea@peedub.jennejohn.org> <47629E53.30404@semihalf.com> <20071214190825.GG17356@dracon.ht-systems.ru> <4766E845.50304@semihalf.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4766E845.50304@semihalf.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.129, 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: freebsd-arm@freebsd.org Subject: Re: MMC cards support 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: Mon, 17 Dec 2007 21:42:55 -0000 On Mon, Dec 17, 2007 at 10:21:09PM +0100, Rafal Jaworowski wrote: > Stanislav Sedov wrote: > > On Fri, Dec 14, 2007 at 04:16:35PM +0100 Rafal Jaworowski mentioned: > >> We're probably getting a bit OT here, but just to clarify U-Boot networking > >> model of operation that was mentioned: MAC address is usually programmed by a > >> U-Boot network controller driver into relevant h/w registers upon every > >> network access, so provided a given interface was used at least once in U-Boot > >> (whatever net command), it should have the MAC addresss programmed correctly > >> when running in the kernel. Otherwise it is left untouched, which happens in > >> most of the cases with multiple integrated controllers -- usually only the > >> first one gets ever used, others are left unconfigured... > >> > > > > Well, I downloaded the entire kernel via tftp, so the controller was probably > > configured correctly. Probably, u-boot resets it after transfer (have not checked > > this yet). > > > > Typically U-Boot would not reset the MAC address, at least I'm not aware of > any net driver there that would do so. I had a look at AT91 net driver and the > whole picture is quite confusing: > > - U-Boot net driver programs the address into EMAC_SA2L/EMAC_SA2H > - FreeBSD/arm tries to retrieve it from ETH_SA1L/ETH_SA1H > > I don't know AT91 family, so am not sure which one should be used and where > the above disconnect comes from (some byte ordering confusion?), but this > might be the direct cause of your troubles.. The Interface has support for multiple MAC addresses so there is more than one register set, which are technically identic. Normaly one would assume that you start filling the lowest numbered registers, but you say that u-boot uses the second. I personally find it confusing to use the second of four sets. -- 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 Mon Dec 17 21:58:21 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FBDD16A473 for ; Mon, 17 Dec 2007 21:58:21 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from smtp.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id 288CA13C458 for ; Mon, 17 Dec 2007 21:58:20 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from [78.110.49.49] (helo=quasar.ht-systems.ru) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1J4Nyc-0002Vt-0Z; Tue, 18 Dec 2007 00:58:18 +0300 Received: by quasar.ht-systems.ru (Postfix, from userid 1024) id E57877D2803; Tue, 18 Dec 2007 00:58:16 +0300 (MSK) Date: Tue, 18 Dec 2007 00:58:16 +0300 From: Stanislav Sedov To: "M. Warner Losh" Message-ID: <20071217215816.GE86893@dracon.ht-systems.ru> References: <47629E53.30404@semihalf.com> <20071214190825.GG17356@dracon.ht-systems.ru> <4766E845.50304@semihalf.com> <20071217.144000.31317558.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071217.144000.31317558.imp@bsdimp.com> Organization: The FreeBSD Project X-Voice: +7 916 849 20 23 X-XMPP: ssedov@jabber.ru X-Yahoo: stanislav_sedov X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-University: MEPhI X-Mailer: carrier-pigeon X-Operating-System: FreeBSD quasar.ht-systems.ru 7.0-BETA2 FreeBSD 7.0-BETA2 Cc: freebsd-arm@freebsd.org Subject: Re: MMC cards support 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: Mon, 17 Dec 2007 21:58:21 -0000 On Mon, Dec 17, 2007 at 02:40:00PM -0700 M. Warner Losh mentioned: > > Hmmm, We got a patch to look at all the SAxL/H pairs for an address. > I thought it was crazy to do that, but if uboot does this for some > reason, then I'll be the first to admit that I was wrong and add the > extra bits back. > Probably we can look MAC in higher registers, if lower didn't contained valid one. I need to check if u-boot really does this first, though. -- Stanislav Sedov ST4096-RIPE From owner-freebsd-arm@FreeBSD.ORG Tue Dec 18 09:15:33 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7938316A41A for ; Tue, 18 Dec 2007 09:15:33 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3196113C50B for ; Tue, 18 Dec 2007 09:15:32 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from webmail.alpha-tierchen.de (port-212-202-40-215.dynamic.qsc.de [212.202.40.215]) by mx01.qsc.de (Postfix) with ESMTP id 23411C822A; Tue, 18 Dec 2007 10:15:30 +0100 (CET) Received: from 192.168.1.2 (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Tue, 18 Dec 2007 10:13:56 +0100 (CET) Message-ID: <63996.192.168.1.2.1197969236.squirrel@webmail.alpha-tierchen.de> Date: Tue, 18 Dec 2007 10:13:56 +0100 (CET) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: "Stanislav Sedov" User-Agent: SquirrelMail/1.4.11 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-arm@freebsd.org Subject: Re: MMC cards support 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: Tue, 18 Dec 2007 09:15:33 -0000 > On Mon, Dec 17, 2007 at 02:40:00PM -0700 M. Warner Losh mentioned: >> >> Hmmm, We got a patch to look at all the SAxL/H pairs for an address. >> I thought it was crazy to do that, but if uboot does this for some >> reason, then I'll be the first to admit that I was wrong and add the >> extra bits back. >> > Probably we can look MAC in higher registers, if lower didn't contained > valid one. > > I need to check if u-boot really does this first, though. u-boot definitely uses the second register set. I wrote a patch a few months ago and sent it to this mailing list because I had exactly the same problem. It changes ate_get_mac so that it probes all four register sets beginning at the first and it stops if the MAC is != 0. Björn From owner-freebsd-arm@FreeBSD.ORG Tue Dec 18 10:11:15 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B03316A41B; Tue, 18 Dec 2007 10:11:15 +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 B975E13C43E; Tue, 18 Dec 2007 10:11:14 +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 lBIABCeW041411; Tue, 18 Dec 2007 11:11:12 +0100 (CET) (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 lBIAB7XE051190 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 18 Dec 2007 11:11:08 +0100 (CET) (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 lBIAB7wm059628; Tue, 18 Dec 2007 11:11:07 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id lBIAB7JE059627; Tue, 18 Dec 2007 11:11:07 +0100 (CET) (envelope-from ticso) Date: Tue, 18 Dec 2007 11:11:07 +0100 From: Bernd Walter To: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= Message-ID: <20071218101106.GD51627@cicely12.cicely.de> References: <63996.192.168.1.2.1197969236.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: <63996.192.168.1.2.1197969236.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.3 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.129, 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: freebsd-arm@freebsd.org Subject: Re: MMC cards support 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: Tue, 18 Dec 2007 10:11:15 -0000 On Tue, Dec 18, 2007 at 10:13:56AM +0100, Björn König wrote: > > On Mon, Dec 17, 2007 at 02:40:00PM -0700 M. Warner Losh mentioned: > >> > >> Hmmm, We got a patch to look at all the SAxL/H pairs for an address. > >> I thought it was crazy to do that, but if uboot does this for some > >> reason, then I'll be the first to admit that I was wrong and add the > >> extra bits back. > >> > > Probably we can look MAC in higher registers, if lower didn't contained > > valid one. > > > > I need to check if u-boot really does this first, though. > > u-boot definitely uses the second register set. I wrote a patch a few > months ago and sent it to this mailing list because I had exactly the same > problem. It changes ate_get_mac so that it probes all four register sets > beginning at the first and it stops if the MAC is != 0. Don't remember the patch, but whoever is commiting this should please keep in mind that the driver should relocate the MAC into the first register set and wipe out the other sets, otherwise we end with two configured MAC if the MAC is changed via ifconfig into the first set. -- 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 Tue Dec 18 10:55:58 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3426016A421 for ; Tue, 18 Dec 2007 10:55:58 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 187FF13C4F2 for ; Tue, 18 Dec 2007 10:55:57 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from webmail.alpha-tierchen.de (port-212-202-40-215.dynamic.qsc.de [212.202.40.215]) by mx01.qsc.de (Postfix) with ESMTP id E0EE2C837B; Tue, 18 Dec 2007 11:55:54 +0100 (CET) Received: from 192.168.1.2 (SquirrelMail authenticated user bkoenig) by webmail.alpha-tierchen.de with HTTP; Tue, 18 Dec 2007 11:54:20 +0100 (CET) Message-ID: <51020.192.168.1.2.1197975260.squirrel@webmail.alpha-tierchen.de> Date: Tue, 18 Dec 2007 11:54:20 +0100 (CET) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= To: ticso@cicely.de User-Agent: SquirrelMail/1.4.11 MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20071218115420_50511" X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-arm@freebsd.org Subject: Re: MMC cards support 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: Tue, 18 Dec 2007 10:55:58 -0000 ------=_20071218115420_50511 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Bernd Walter wrote: > Don't remember the patch, but whoever is commiting this should please > keep in mind that the driver should relocate the MAC into the first > register set and wipe out the other sets, otherwise we end with two > configured MAC if the MAC is changed via ifconfig into the first set. Here it is. I picked up your thoughts and added appropriate code quickly. Björn ------=_20071218115420_50511 Content-Type: application/octet-stream; name="src-sys-arm-at91-if_ate.c.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="src-sys-arm-at91-if_ate.c.diff" LS0tIHNyYy9zeXMvYXJtL2F0OTEvaWZfYXRlLmMub3JpZwkyMDA3LTEyLTAyIDE1OjE5OjM3LjAw MDAwMDAwMCArMDEwMAorKysgc3JjL3N5cy9hcm0vYXQ5MS9pZl9hdGUuYwkyMDA3LTEyLTE4IDEx OjUxOjA3LjAwMDAwMDAwMCArMDEwMApAQCAtMTcwLDcgKzE3MCw3IEBACiAJc3RydWN0IHN5c2N0 bF9jdHhfbGlzdCAqc2N0eDsKIAlzdHJ1Y3Qgc3lzY3RsX29pZCAqc29pZDsKIAlpbnQgZXJyOwot CXVfY2hhciBlYWRkcls2XTsKKwl1X2NoYXIgZWFkZHJbRVRIRVJfQUREUl9MRU5dOwogCiAJc2Mt PmRldiA9IGRldjsKIAllcnIgPSBhdGVfYWN0aXZhdGUoZGV2KTsKQEAgLTU4NiwyNCArNTg2LDM4 IEBACiBzdGF0aWMgaW50CiBhdGVfZ2V0X21hYyhzdHJ1Y3QgYXRlX3NvZnRjICpzYywgdV9jaGFy ICplYWRkcikKIHsKKwlidXNfc2l6ZV90IHNhX2xvd19yZWdbXSA9IHsgRVRIX1NBMUwsIEVUSF9T QTJMLCBFVEhfU0EzTCwgRVRIX1NBNEwgfTsKKwlidXNfc2l6ZV90IHNhX2hpZ2hfcmVnW10gPSB7 IEVUSF9TQTFILCBFVEhfU0EySCwgRVRIX1NBM0gsIEVUSF9TQTRIIH07CiAJdWludDMyX3QgbG93 LCBoaWdoOworCWludCBpOwogCiAJLyoKIAkgKiBUaGUgYm9vdCBsb2FkZXIgc2V0dXAgdGhlIE1B QyB3aXRoIGFuIGFkZHJlc3MsIGlmIG9uZSBpcyBzZXQgaW4KLQkgKiB0aGUgbG9hZGVyLiAgVGhl IFRTQyBsb2FkZXIgd2lsbCBhbHNvIHNldCB0aGUgTUFDIGFkZHJlc3MgaW4gYQotCSAqIHNpbWls YXIgd2F5LiAgR3JhYiB0aGUgTUFDIGFkZHJlc3MgZnJvbSB0aGUgU0ExW0hMXSByZWdpc3RlcnMu CisJICogdGhlIGxvYWRlci4gR3JhYiBvbmUgTUFDIGFkZHJlc3MgZnJvbSB0aGUgU0FbMS00XVtI TF0gcmVnaXN0ZXJzLgogCSAqLwotCWxvdyA9IFJENChzYywgRVRIX1NBMUwpOwotCWhpZ2ggPSAg UkQ0KHNjLCBFVEhfU0ExSCk7Ci0JaWYgKChsb3cgfCAoaGlnaCAmIDB4ZmZmZikpID09IDApCi0J CXJldHVybiAoRU5YSU8pOwotCWVhZGRyWzBdID0gbG93ICYgMHhmZjsKLQllYWRkclsxXSA9IChs b3cgPj4gOCkgJiAweGZmOwotCWVhZGRyWzJdID0gKGxvdyA+PiAxNikgJiAweGZmOwotCWVhZGRy WzNdID0gKGxvdyA+PiAyNCkgJiAweGZmOwotCWVhZGRyWzRdID0gaGlnaCAmIDB4ZmY7Ci0JZWFk ZHJbNV0gPSAoaGlnaCA+PiA4KSAmIDB4ZmY7Ci0JcmV0dXJuICgwKTsKKwlmb3IgKGkgPSAwOyBp IDwgNDsgaSsrKSB7CisJCWxvdyA9IFJENChzYywgc2FfbG93X3JlZ1tpXSk7CisJCWhpZ2ggPSBS RDQoc2MsIHNhX2hpZ2hfcmVnW2ldKTsKKwkJaWYgKChsb3cgfCAoaGlnaCAmIDB4ZmZmZikpICE9 IDApIHsKKwkJCWVhZGRyWzBdID0gbG93ICYgMHhmZjsKKwkJCWVhZGRyWzFdID0gKGxvdyA+PiA4 KSAmIDB4ZmY7CisJCQllYWRkclsyXSA9IChsb3cgPj4gMTYpICYgMHhmZjsKKwkJCWVhZGRyWzNd ID0gKGxvdyA+PiAyNCkgJiAweGZmOworCQkJZWFkZHJbNF0gPSBoaWdoICYgMHhmZjsKKwkJCWVh ZGRyWzVdID0gKGhpZ2ggPj4gOCkgJiAweGZmOworCQkJaWYgKGkgPiAwKSB7CisJCQkJV1I0KHNj LCBzYV9sb3dfcmVnWzBdLCBsb3cpOworCQkJCVdSNChzYywgc2FfaGlnaF9yZWdbMF0sIGhpZ2gp OworCQkJfQorCQkJZm9yIChpID0gMTsgaSA8IDQ7IGkrKykgeworCQkJCVdSNChzYywgc2FfbG93 X3JlZ1tpXSwgMCk7CisJCQkJV1I0KHNjLCBzYV9oaWdoX3JlZ1tpXSwgMCk7CisJCQl9CisJCQly ZXR1cm4gKDApOworCQl9CisJfQorCisJcmV0dXJuIChFTlhJTyk7CiB9CiAKIHN0YXRpYyB2b2lk Cg== ------=_20071218115420_50511-- From owner-freebsd-arm@FreeBSD.ORG Tue Dec 18 11:25:14 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C76A16A417 for ; Tue, 18 Dec 2007 11:25:14 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from smtp.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id C19ED13C44B for ; Tue, 18 Dec 2007 11:25:13 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from [78.110.49.49] (helo=quasar.ht-systems.ru) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1J4aZT-0003PW-KK; Tue, 18 Dec 2007 14:25:11 +0300 Received: by quasar.ht-systems.ru (Postfix, from userid 1024) id 7B9C97D2803; Tue, 18 Dec 2007 14:25:10 +0300 (MSK) Date: Tue, 18 Dec 2007 14:25:10 +0300 From: Stanislav Sedov To: Bj?rn K?nig Message-ID: <20071218112510.GA31735@dracon.ht-systems.ru> References: <51020.192.168.1.2.1197975260.squirrel@webmail.alpha-tierchen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51020.192.168.1.2.1197975260.squirrel@webmail.alpha-tierchen.de> Organization: The FreeBSD Project X-Voice: +7 916 849 20 23 X-XMPP: ssedov@jabber.ru X-Yahoo: stanislav_sedov X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-University: MEPhI X-Mailer: carrier-pigeon X-Operating-System: FreeBSD quasar.ht-systems.ru 7.0-BETA2 FreeBSD 7.0-BETA2 Cc: freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: MMC cards support 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: Tue, 18 Dec 2007 11:25:14 -0000 On Tue, Dec 18, 2007 at 11:54:20AM +0100 Bj?rn K?nig mentioned: > > Here it is. I picked up your thoughts and added appropriate code quickly. > Looks fine to me. -- Stanislav Sedov ST4096-RIPE From owner-freebsd-arm@FreeBSD.ORG Fri Dec 21 16:02:01 2007 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1265D16A418; Fri, 21 Dec 2007 16:02:01 +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 B335913C448; Fri, 21 Dec 2007 16:02:00 +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 lBLG1xCK003951; Fri, 21 Dec 2007 11:01:59 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.1/8.14.1) with ESMTP id lBLG1xwq046672; Fri, 21 Dec 2007 11:01:59 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 7018D73039; Fri, 21 Dec 2007 11:01:29 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20071221160129.7018D73039@freebsd-current.sentex.ca> Date: Fri, 21 Dec 2007 11:01:29 -0500 (EST) X-Virus-Scanned: ClamAV version 0.91.1, clamav-milter version 0.91.1 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: Fri, 21 Dec 2007 16:02:01 -0000 TB --- 2007-12-21 15:05:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-12-21 15:05:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-12-21 15:05:00 - cleaning the object tree TB --- 2007-12-21 15:05:26 - cvsupping the source tree TB --- 2007-12-21 15:05:26 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2007-12-21 15:05:38 - building world (CFLAGS=-O -pipe) TB --- 2007-12-21 15:05:38 - cd /src TB --- 2007-12-21 15:05:38 - /usr/bin/make -B buildworld >>> World build started on Fri Dec 21 15:05:41 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 [...] ===> usr.sbin/ppp (all) cc -O -pipe -DNOI4B -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/ppp/acf.c cc -O -pipe -DNOI4B -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/ppp/arp.c cc -O -pipe -DNOI4B -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/ppp/async.c cc -O -pipe -DNOI4B -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/ppp/auth.c cc1: warnings being treated as errors /src/usr.sbin/ppp/auth.c: In function 'auth_CheckPasswd': /src/usr.sbin/ppp/auth.c:145: warning: initialization discards qualifiers from pointer target type *** Error code 1 Stop in /src/usr.sbin/ppp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-12-21 16:01:28 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-12-21 16:01:28 - ERROR: failed to build world TB --- 2007-12-21 16:01:28 - tinderbox aborted TB --- 2612.74 user 319.59 system 3388.04 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Fri Dec 21 20:01:12 2007 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 197B116A46C; Fri, 21 Dec 2007 20:01:12 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id B8D2713C478; Fri, 21 Dec 2007 20:01:11 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.14.1/8.13.8) with ESMTP id lBLK1BZT010817; Fri, 21 Dec 2007 15:01:11 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.1/8.14.1) with ESMTP id lBLK1AFB053246; Fri, 21 Dec 2007 15:01:11 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 0EE7E73039; Fri, 21 Dec 2007 15:01:09 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20071221200110.0EE7E73039@freebsd-current.sentex.ca> Date: Fri, 21 Dec 2007 15:01:09 -0500 (EST) X-Virus-Scanned: ClamAV version 0.91.1, clamav-milter version 0.91.1 on clamscanner4 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, 21 Dec 2007 20:01:12 -0000 TB --- 2007-12-21 19:05:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-12-21 19:05:01 - starting HEAD tinderbox run for arm/arm TB --- 2007-12-21 19:05:01 - cleaning the object tree TB --- 2007-12-21 19:05:23 - cvsupping the source tree TB --- 2007-12-21 19:05:23 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/arm/arm/supfile TB --- 2007-12-21 19:05:32 - building world (CFLAGS=-O -pipe) TB --- 2007-12-21 19:05:32 - cd /src TB --- 2007-12-21 19:05:32 - /usr/bin/make -B buildworld >>> World build started on Fri Dec 21 19:05: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 [...] ===> usr.sbin/ppp (all) cc -O -pipe -DNOI4B -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/ppp/acf.c cc -O -pipe -DNOI4B -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/ppp/arp.c cc -O -pipe -DNOI4B -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/ppp/async.c cc -O -pipe -DNOI4B -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/ppp/auth.c cc1: warnings being treated as errors /src/usr.sbin/ppp/auth.c: In function 'auth_CheckPasswd': /src/usr.sbin/ppp/auth.c:145: warning: initialization discards qualifiers from pointer target type *** Error code 1 Stop in /src/usr.sbin/ppp. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-12-21 20:01:09 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-12-21 20:01:09 - ERROR: failed to build world TB --- 2007-12-21 20:01:09 - tinderbox aborted TB --- 2610.64 user 322.45 system 3368.67 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Fri Dec 21 21:45:03 2007 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA24616A41A for ; Fri, 21 Dec 2007 21:45:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 41F4B13C46B for ; Fri, 21 Dec 2007 21:45:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8q) with ESMTP id 225475449-1834499 for ; Fri, 21 Dec 2007 16:27:05 -0500 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id lBLLSphS089941 for ; Fri, 21 Dec 2007 16:28:52 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: arm@freebsd.org Date: Fri, 21 Dec 2007 16:08:16 -0500 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Disposition: inline X-Length: 1130 X-UID: 7 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200712211608.16557.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 21 Dec 2007 16:28:52 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/5211/Fri Dec 21 14:05:46 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Subject: Only set bus tag/handles in activate_resource() methods 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, 21 Dec 2007 21:45:03 -0000 This patch (untested) tries to fix an issue on arm I fixed on the ACPI-using platforms a while back. It fixes the top-level bus drivers to activate resources (assign bus tags and handles so you can use bus_space_*()) in bus_activate_resource() methods instead of in bus_alloc_resource(). This is important for any drivers that want do what ACPI does: allocate a resource and then subdivide it to hand it out to child devices. A driver that does this can still pass the bus_activate_resource() request up the tree to actually get bus_space properly set up with this fix. Note that i80321_pci still has a hack to deal with the variant base address for the PCI memory region, but the rest of the drivers should be correct now. Please test, thanks. --- //depot/vendor/freebsd/src/sys/arm/arm/nexus.c 2007/02/23 12:24:01 +++ //depot/user/jhb/acpipci/arm/arm/nexus.c 2007/03/05 17:04:36 @@ -206,6 +206,8 @@ struct rman *rm; int needactivate = flags & RF_ACTIVE; + flags &= ~RF_ACTIVE; + switch (type) { case SYS_RES_MEMORY: rm = &mem_rman; @@ -220,8 +222,6 @@ return 0; rman_set_rid(rv, *rid); - rman_set_bustag(rv, (void*)ARM_BUS_SPACE_MEM); - rman_set_bushandle(rv, rman_get_start(rv)); if (needactivate) { if (bus_activate_resource(child, type, *rid, rv)) { @@ -241,7 +241,7 @@ /* * If this is a memory resource, map it into the kernel. */ - if (rman_get_bustag(r) == (void*)ARM_BUS_SPACE_MEM) { + if (type == SYS_RES_MEMORY) { caddr_t vaddr = 0; u_int32_t paddr; u_int32_t psize; @@ -252,6 +252,7 @@ poffs = paddr - trunc_page(paddr); vaddr = (caddr_t) pmap_mapdev(paddr-poffs, psize+poffs) + poffs; rman_set_virtual(r, vaddr); + rman_set_bustag(r, (void*)ARM_BUS_SPACE_MEM); rman_set_bushandle(r, (bus_space_handle_t) vaddr); } return (rman_activate_resource(r)); --- //depot/vendor/freebsd/src/sys/arm/at91/at91.c 2007/12/19 17:36:50 +++ //depot/user/jhb/acpipci/arm/at91/at91.c 2007/12/20 18:42:26 @@ -511,11 +511,14 @@ struct resource_list_entry *rle; struct at91_ivar *ivar = device_get_ivars(child); struct resource_list *rl = &ivar->resources; + int needactivate = flags & RF_ACTIVE; if (device_get_parent(child) != dev) return (BUS_ALLOC_RESOURCE(device_get_parent(dev), child, type, rid, start, end, count, flags)); + flags &= ~RF_ACTIVE; + rle = resource_list_find(rl, type, *rid); if (rle == NULL) return (NULL); @@ -541,8 +544,6 @@ #endif rle->res = rman_reserve_resource(&sc->sc_mem_rman, start, end, count, flags, child); - rman_set_bustag(rle->res, &at91_bs_tag); - rman_set_bushandle(rle->res, start); break; } if (rle->res) { @@ -550,6 +551,12 @@ rle->end = rman_get_end(rle->res); rle->count = count; rman_set_rid(rle->res, *rid); + if (needactivate) { + if (bus_activate_resource(child, type, *rid, rv)) { + rman_release_resource(rv); + return (NULL); + } + } } return (rle->res); } @@ -576,6 +583,11 @@ rle = resource_list_find(rl, type, rid); if (rle == NULL) return (EINVAL); + if (rman_get_flags(r) & RF_ACTIVE) { + int error = bus_deactivate_resource(child, type, rid, r); + if (error) + return (error); + } rman_release_resource(r); rle->res = NULL; return (0); @@ -615,15 +627,19 @@ #if 0 u_long p; int error; +#endif if (type == SYS_RES_MEMORY) { + rman_set_bustag(r, &at91_bs_tag); + rman_set_bushandle(r, start); +#if 0 error = bus_space_map(rman_get_bustag(r), rman_get_bushandle(r), rman_get_size(r), 0, &p); if (error) return (error); rman_set_bushandle(r, p); +#endif } -#endif return (rman_activate_resource(r)); } --- //depot/vendor/freebsd/src/sys/arm/xscale/i80321/i80321_pci.c 2007/09/30 11:08:30 +++ //depot/user/jhb/acpipci/arm/xscale/i80321/i80321_pci.c 2007/12/20 23:43:49 @@ -283,8 +283,7 @@ struct i80321_pci_softc *sc = device_get_softc(bus); struct resource *rv; struct rman *rm; - bus_space_tag_t bt = NULL; - bus_space_handle_t bh = 0; + bus_handle_t bh = 0; switch (type) { case SYS_RES_IRQ: @@ -292,7 +291,6 @@ break; case SYS_RES_MEMORY: rm = &sc->sc_mem_rman; - bt = sc->sc_pcimem; bh = (start >= 0x80000000 && start < 0x84000000) ? 0x80000000 : sc->sc_mem; start &= (0x1000000 - 1); @@ -300,8 +298,6 @@ break; case SYS_RES_IOPORT: rm = &sc->sc_io_rman; - bt = sc->sc_pciio; - bh = sc->sc_io; if (start < sc->sc_io) { start = start - 0x90000000 + sc->sc_io; end = end - 0x90000000 + sc->sc_io; @@ -311,21 +307,22 @@ return (NULL); } - rv = rman_reserve_resource(rm, start, end, count, flags, child); + rv = rman_reserve_resource(rm, start, end, count, flags & ~RF_ACTIVE, + child); if (rv == NULL) return (NULL); rman_set_rid(rv, *rid); - if (type != SYS_RES_IRQ) { - if (type == SYS_RES_MEMORY) - bh += (rman_get_start(rv)); - rman_set_bustag(rv, bt); + if (type == SYS_RES_MEMORY) + /* + * XXX: This isn't quite right but we don't have a better way + * to pass this on to our activate_resource() routine. + */ rman_set_bushandle(rv, bh); - if (flags & RF_ACTIVE) { - if (bus_activate_resource(child, type, *rid, rv)) { - rman_release_resource(rv); - return (NULL); - } - } + if (flags & RF_ACTIVE) { + if (bus_activate_resource(child, type, *rid, rv)) { + rman_release_resource(rv); + return (NULL); + } } return (rv); } @@ -334,16 +331,27 @@ i80321_pci_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) { + struct i80321_pci_softc *sc = device_get_softc(bus); u_long p; int error; - - if (type == SYS_RES_MEMORY) { - error = bus_space_map(rman_get_bustag(r), - rman_get_bushandle(r), rman_get_size(r), 0, &p); + + switch (type) { + case SYS_RES_MEMORY: + /* + * XXX: We rely on having the bushandle initially set to the + * start of the PCI memio window above. + */ + error = bus_space_map(sc->sc_pcimem, rman_get_bushandle(r) + + rman_get_start(r), rman_get_size(r), 0, &p); if (error) return (error); + rman_set_bustag(r, sc->sc_pcimem); rman_set_bushandle(r, p); - + break; + case SYS_RES_IOPORT: + rman_set_bustag(r, sc->sc_pciio); + rman_set_bushandle(r, sc->sc_io); + break; } return (rman_activate_resource(r)); } --- //depot/vendor/freebsd/src/sys/arm/xscale/i80321/obio.c 2007/07/27 14:57:30 +++ //depot/user/jhb/acpipci/arm/xscale/i80321/obio.c 2007/09/24 17:24:13 @@ -98,8 +98,6 @@ { struct resource *rv; struct rman *rm; - bus_space_tag_t bt = NULL; - bus_space_handle_t bh = 0; struct obio_softc *sc = device_get_softc(bus); switch (type) { @@ -110,24 +108,24 @@ return (NULL); case SYS_RES_IOPORT: rm = &sc->oba_rman; - bt = sc->oba_st; - bh = sc->oba_addr; - start = bh; + start = sc->oba_addr; break; default: return (NULL); } - - rv = rman_reserve_resource(rm, start, end, count, flags, child); + rv = rman_reserve_resource(rm, start, end, count, flags & ~RF_ACTIVE, + child); if (rv == NULL) return (NULL); - if (type == SYS_RES_IRQ) - return (rv); rman_set_rid(rv, *rid); - rman_set_bustag(rv, bt); - rman_set_bushandle(rv, bh); + if (flags & RF_ACTIVE) { + if (bus_activate_resource(child, type, *rid, rv)) { + rman_release_resource(rv); + return (NULL); + } + } return (rv); } @@ -136,8 +134,15 @@ obio_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) { - return (0); + struct obio_softc *sc = device_get_softc(bus); + + if (type == SYS_RES_IOPORT) { + rman_set_bustag(r, sc->oba_st); + rman_set_bushandle(r, sc->oba_addr); + } + return (rman_activate_resource(r)); } + static device_method_t obio_methods[] = { DEVMETHOD(device_probe, obio_probe), DEVMETHOD(device_attach, obio_attach), --- //depot/vendor/freebsd/src/sys/arm/xscale/i8134x/i81342_pci.c 2007/09/30 11:08:30 +++ //depot/user/jhb/acpipci/arm/xscale/i8134x/i81342_pci.c 2007/12/20 23:44:30 @@ -334,8 +334,7 @@ struct i81342_pci_softc *sc = device_get_softc(bus); struct resource *rv; struct rman *rm; - bus_space_tag_t bt = NULL; - bus_space_handle_t bh = 0; + u_long off; switch (type) { case SYS_RES_IRQ: @@ -343,41 +342,30 @@ break; case SYS_RES_MEMORY: rm = &sc->sc_mem_rman; - bt = &sc->sc_pcimem; - bh = 0; break; case SYS_RES_IOPORT: rm = &sc->sc_io_rman; - bt = &sc->sc_pciio; - bh = sc->sc_is_atux ? IOP34X_PCIX_OIOBAR_VADDR : + off = sc->sc_is_atux ? IOP34X_PCIX_OIOBAR_VADDR : IOP34X_PCIE_OIOBAR_VADDR; - start += bh; - end += bh; + start += off; + end += off; break; default: return (NULL); } - rv = rman_reserve_resource(rm, start, end, count, flags, child); + rv = rman_reserve_resource(rm, start, end, count, flags & ~RF_ACTIVE, + child); if (rv == NULL) return (NULL); rman_set_rid(rv, *rid); - if (type != SYS_RES_IRQ) { - if (type == SYS_RES_MEMORY) - bh += (rman_get_start(rv)); - rman_set_bustag(rv, bt); - rman_set_bushandle(rv, bh); - if (flags & RF_ACTIVE) { - if (bus_activate_resource(child, type, *rid, rv)) { - rman_release_resource(rv); - return (NULL); - } - } - } + if (flags & RF_ACTIVE) { + if (bus_activate_resource(child, type, *rid, rv)) { + rman_release_resource(rv); + return (NULL); + } + } return (rv); - - - return (NULL); } static int @@ -386,14 +374,23 @@ { u_long p; int error; - - if (type == SYS_RES_MEMORY) { - error = bus_space_map(rman_get_bustag(r), - rman_get_bushandle(r), rman_get_size(r), 0, &p); + + switch (type) { + case SYS_RES_MEMORY: + error = bus_space_map(&sc->sc_pcimem, rman_get_start(r), + rman_get_size(r), 0, &p); if (error) return (error); + rman_set_bustag(r, &sc->sc_pcimem); rman_set_bushandle(r, p); - + break; + case SYS_RES_IOPORT: + rman_set_bus_tag(r, &sc->sc_pciio); + if (sc->sc_is_atux) + rman_set_bushandle(r, IOP34X_PCIX_OIOBAR_VADDR); + else + rman_set_bushandle(r, IOP34X_PCIE_OIOBAR_VADDR); + break; } return (rman_activate_resource(r)); } --- //depot/vendor/freebsd/src/sys/arm/xscale/i8134x/obio.c 2007/07/27 14:57:30 +++ //depot/user/jhb/acpipci/arm/xscale/i8134x/obio.c 2007/12/20 23:44:30 @@ -93,8 +93,6 @@ { struct resource *rv; struct rman *rm; - bus_space_tag_t bt = NULL; - bus_space_handle_t bh = 0; struct obio_softc *sc = device_get_softc(bus); int unit = device_get_unit(child); @@ -110,14 +108,11 @@ return (NULL); case SYS_RES_IOPORT: rm = &sc->oba_rman; - bt = sc->oba_st; if (unit == 0) { - bh = IOP34X_UART0_VADDR; - start = bh; + start = IOP34X_UART0_VADDR; end = IOP34X_UART1_VADDR; } else { - bh = IOP34X_UART1_VADDR; - start = bh; + start = IOP34X_UART1_VADDR; end = start + 0x40; } break; @@ -126,15 +121,18 @@ } - rv = rman_reserve_resource(rm, start, end, count, flags, child); + rv = rman_reserve_resource(rm, start, end, count, flags & ~RF_ACTIVE, + child); if (rv == NULL) return (NULL); - if (type == SYS_RES_IRQ) - return (rv); rman_set_rid(rv, *rid); - rman_set_bustag(rv, bt); - rman_set_bushandle(rv, bh); - + if (flags & RF_ACTIVE) { + if (bus_activate_resource(child, type, *rid, rv)) { + rman_release_resource(rv); + return (NULL); + } + } + return (rv); } @@ -143,8 +141,16 @@ obio_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) { - return (0); + + switch (type) { + case SYS_RES_IOPORT: + rman_set_bustag(r, sc->oba_st); + rman_set_bushandle(r, rman_get_start(r)); + break; + } + return (rman_activate_resource(r)); } + static device_method_t obio_methods[] = { DEVMETHOD(device_probe, obio_probe), DEVMETHOD(device_attach, obio_attach), --- //depot/vendor/freebsd/src/sys/arm/xscale/ixp425/ixp425.c 2007/05/29 18:18:31 +++ //depot/user/jhb/acpipci/arm/xscale/ixp425/ixp425.c 2007/09/24 17:24:13 @@ -319,7 +319,7 @@ struct ixp425_softc *sc = device_get_softc(dev); struct rman *rmanp; struct resource *rv; - uint32_t vbase, addr; + uint32_t addr; int irq; switch (type) { @@ -329,7 +329,7 @@ if (BUS_READ_IVAR(dev, child, IXP425_IVAR_IRQ, &irq) == 0) start = end = irq; rv = rman_reserve_resource(rmanp, start, end, count, - flags, child); + flags & ~RF_ACTIVE, child); if (rv != NULL) rman_set_rid(rv, *rid); break; @@ -344,21 +344,45 @@ if (getvbase(start, end - start, &vbase)) return NULL; rv = rman_reserve_resource(rmanp, start, end, count, - flags, child); - if (rv != NULL) { + flags & ~RF_ACTIVE, child); + if (rv != NULL) rman_set_rid(rv, *rid); - if (strcmp(device_get_name(child), "uart") == 0) - rman_set_bustag(rv, &ixp425_a4x_bs_tag); - else - rman_set_bustag(rv, sc->sc_iot); - rman_set_bushandle(rv, vbase); - } break; default: rv = NULL; break; } - return rv; + + if (rv != NULL && flags & RF_ACTIVE) { + if (bus_activate_resource(child, type, *rid, rv)) { + rman_release_resource(rv); + return (NULL); + } + } + + return (rv); +} + +static int +ixp425_activate_resource(device_t dev, device_t child, int type, int rid, + struct resource *r) +{ + struct ixp425_softc *sc = device_get_softc(dev); + int error; + uint32_t vbase; + + if (type == SYS_RES_MEMORY) { + error = getvbase(rman_get_start(r), rman_get_size(r), &vbase); + if (error) + return (error); + if (strcmp(device_get_name(child), "uart") == 0) + rman_set_bustag(rv, &ixp425_a4x_bs_tag); + else + rman_set_bustag(rv, sc->sc_iot); + rman_set_bushandle(rv, vbase); + } + + return (rman_activate_resource(r)); } static int @@ -409,6 +433,7 @@ DEVMETHOD(bus_read_ivar, ixp425_read_ivar), DEVMETHOD(bus_alloc_resource, ixp425_alloc_resource), + DEVMETHOD(bus_activate_resource, ixp425_activate_resource), DEVMETHOD(bus_setup_intr, ixp425_setup_intr), DEVMETHOD(bus_teardown_intr, ixp425_teardown_intr), --- //depot/vendor/freebsd/src/sys/arm/xscale/ixp425/ixp425_pci.c 2007/09/30 11:08:30 +++ //depot/user/jhb/acpipci/arm/xscale/ixp425/ixp425_pci.c 2007/10/08 16:52:09 @@ -279,12 +279,10 @@ ixppcib_alloc_resource(device_t bus, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) { - bus_space_tag_t tag; struct ixppcib_softc *sc = device_get_softc(bus); struct rman *rmanp; struct resource *rv; - tag = NULL; /* shut up stupid gcc */ rv = NULL; switch (type) { case SYS_RES_IRQ: @@ -293,28 +291,25 @@ case SYS_RES_IOPORT: rmanp = &sc->sc_io_rman; - tag = &sc->sc_pci_iot; break; case SYS_RES_MEMORY: rmanp = &sc->sc_mem_rman; - tag = &sc->sc_pci_memt; break; default: return (rv); } - rv = rman_reserve_resource(rmanp, start, end, count, flags, child); - if (rv != NULL) { - rman_set_rid(rv, *rid); - if (type == SYS_RES_IOPORT) { - rman_set_bustag(rv, tag); - rman_set_bushandle(rv, rman_get_start(rv)); - } else if (type == SYS_RES_MEMORY) { - rman_set_bustag(rv, tag); - rman_set_bushandle(rv, rman_get_bushandle(sc->sc_mem) + - (rman_get_start(rv) - IXP425_PCI_MEM_HWBASE)); + rv = rman_reserve_resource(rmanp, start, end, count, flags & ~RF_ACTIVE, + child); + if (rv == NULL) + return (NULL); + rman_set_rid(rv, *rid); + if (flags & RF_ACTIVE) { + if (bus_activate_resource(child, type, *rid, rv)) { + rman_release_resource(rv); + return (NULL); } } @@ -325,9 +320,21 @@ ixppcib_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) { + struct ixppcib_softc *sc = device_get_softc(bus); - device_printf(bus, "%s called activate_resource\n", device_get_nameunit(child)); - return (ENXIO); + switch (type) { + case SYS_RES_IOPORT: + rman_set_bustag(r, &sc->sc_pci_iot); + rman_set_bushandle(r, rman_get_start(r)); + break; + case SYS_RES_MEMORY: + rman_set_bustag(r, &sc->sc_pci_memt); + rman_set_bushandle(r, rman_get_bushandle(sc->sc_mem) + + (rman_get_start(r) - IXP425_PCI_MEM_HWBASE)); + break; + } + + return (rman_activate_resource(r)); } static int -- John Baldwin