From owner-freebsd-ppc@FreeBSD.ORG Sun Mar 16 07:36:35 2008 Return-Path: Delivered-To: freebsd-ppc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34C3410656DD; Sun, 16 Mar 2008 07:36:35 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1F3308FC16; Sun, 16 Mar 2008 07:36:35 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2G7aYuJ024735; Sun, 16 Mar 2008 07:36:34 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2G7aYTi024731; Sun, 16 Mar 2008 07:36:34 GMT (envelope-from linimon) Date: Sun, 16 Mar 2008 07:36:34 GMT Message-Id: <200803160736.m2G7aYTi024731@freefall.freebsd.org> To: phillip-murphy@hotmail.com, linimon@FreeBSD.org, freebsd-ppc@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: powerpc/121407: [panic] Won't boot up; strange error message. X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2008 07:36:35 -0000 Synopsis: [panic] Won't boot up; strange error message. State-Changed-From-To: open->feedback State-Changed-By: linimon State-Changed-When: Sun Mar 16 07:35:45 UTC 2008 State-Changed-Why: Note that submitter has been asked for feedback. http://www.freebsd.org/cgi/query-pr.cgi?pr=121407 From owner-freebsd-ppc@FreeBSD.ORG Sun Mar 16 12:35:50 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50BF7106566B; Sun, 16 Mar 2008 12:35:50 +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 26DEF8FC13; Sun, 16 Mar 2008 12:35:50 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.2/8.14.2) with ESMTP id m2GCZnvw098723; Sun, 16 Mar 2008 08:35:49 -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.14.2/8.14.2) with ESMTP id m2GCZmMU038724; Sun, 16 Mar 2008 08:35:49 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 928B473039; Sun, 16 Mar 2008 07:35:48 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20080316123548.928B473039@freebsd-current.sentex.ca> Date: Sun, 16 Mar 2008 07:35:48 -0500 (EST) X-Virus-Scanned: ClamAV 0.92.1/6204/Tue Mar 11 16:43:31 2008 clamav-milter version 0.92.1 on clamscanner3 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2008 12:35:50 -0000 TB --- 2008-03-16 11:26:51 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-03-16 11:26:51 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2008-03-16 11:26:51 - cleaning the object tree TB --- 2008-03-16 11:27:17 - cvsupping the source tree TB --- 2008-03-16 11:27:17 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2008-03-16 11:27:27 - building world (CFLAGS=-O -pipe) TB --- 2008-03-16 11:27:27 - cd /src TB --- 2008-03-16 11:27:27 - /usr/bin/make -B buildworld >>> World build started on Sun Mar 16 11:27:28 UTC 2008 >>> 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 >>> World build completed on Sun Mar 16 12:31:04 UTC 2008 TB --- 2008-03-16 12:31:04 - generating LINT kernel config TB --- 2008-03-16 12:31:04 - cd /src/sys/powerpc/conf TB --- 2008-03-16 12:31:04 - /usr/bin/make -B LINT TB --- 2008-03-16 12:31:04 - building LINT kernel (COPTFLAGS=) TB --- 2008-03-16 12:31:04 - cd /src TB --- 2008-03-16 12:31:04 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Sun Mar 16 12:31:04 UTC 2008 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/fs/udf/udf_vfsops.c cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/fs/udf/udf_vnops.c cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/fs/unionfs/union_subr.c cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/fs/unionfs/union_vfsops.c cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/fs/unionfs/union_vnops.c cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/gdb/gdb_cons.c /src/sys/gdb/gdb_cons.c:131: error: expected ',' or ';' before 'static' /src/sys/gdb/gdb_cons.c:162: error: 'gdb_cnputc' undeclared here (not in a function) *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-03-16 12:35:48 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-03-16 12:35:48 - ERROR: failed to build lint kernel TB --- 2008-03-16 12:35:48 - tinderbox aborted TB --- 3014.38 user 358.38 system 4136.45 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Sun Mar 16 13:48:27 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D326F106566B for ; Sun, 16 Mar 2008 13:48:27 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id CB4778FC21 for ; Sun, 16 Mar 2008 13:48:27 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id CB87346C2B; Sun, 16 Mar 2008 09:28:31 -0400 (EDT) Date: Sun, 16 Mar 2008 13:28:31 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: FreeBSD Tinderbox In-Reply-To: <20080316123548.928B473039@freebsd-current.sentex.ca> Message-ID: <20080316132701.P83063@fledge.watson.org> References: <20080316123548.928B473039@freebsd-current.sentex.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: powerpc@freebsd.org, current@freebsd.org Subject: Re: [head tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2008 13:48:27 -0000 On Sun, 16 Mar 2008, FreeBSD Tinderbox wrote: > /src/sys/gdb/gdb_cons.c:131: error: expected ',' or ';' before 'static' > /src/sys/gdb/gdb_cons.c:162: error: 'gdb_cnputc' undeclared here (not in a function) > *** Error code 1 Sorry about that! This should now be fixed -- in my attempt to not commit sys/kernel.h as part of the same patch as the ;-adding sweep, I accidentally left the gdb sub-directory off the list of directories and files I did want to commit on the cvs commit command line. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-ppc@FreeBSD.ORG Sun Mar 16 17:45:40 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 015AF106567E for ; Sun, 16 Mar 2008 17:45:40 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from azure.onthenet.com.au (azure.OntheNet.com.au [203.13.68.11]) by mx1.freebsd.org (Postfix) with ESMTP id C49778FC28 for ; Sun, 16 Mar 2008 17:45:39 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by azure.onthenet.com.au (Postfix) with ESMTP id D6FAB12453; Mon, 17 Mar 2008 03:28:52 +1000 (EST) Received: from peter-grehans-power-mac-g5.local (dsl-63-249-90-35.cruzio.com [63.249.90.35]) by dommail.onthenet.com.au (MOS 3.7.5a-GA) with ESMTP id DRR17299 (AUTH peterg@ptree32.com.au); Mon, 17 Mar 2008 03:28:48 +1000 (EST) Message-ID: <47DD58CC.4010500@freebsd.org> Date: Sun, 16 Mar 2008 10:28:44 -0700 From: Peter Grehan User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: nse References: <16067217.post@talk.nabble.com> In-Reply-To: <16067217.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Subscribed to freebsd@freebsd.org.. but no mails? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2008 17:45:40 -0000 Hi Niels, Others have answered q 1-2, so: > 3. Any chance of getting Java 1.5(or newer) working? > (sofar it appears to be x86 or amd only) Landon Fuller has done a sparc64 port, so that could be used as the basis to get a ppc port going: http://landonf.bikemonkey.org/code/java/Porting_To_FreeBSD_Sparc.20080204.html later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Mon Mar 17 11:07:10 2008 Return-Path: Delivered-To: freebsd-ppc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D9FE106570E for ; Mon, 17 Mar 2008 11:07:10 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 84AD38FC17 for ; Mon, 17 Mar 2008 11:07:10 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2HB7AXe055204 for ; Mon, 17 Mar 2008 11:07:10 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2HB79IS055200 for freebsd-ppc@FreeBSD.org; Mon, 17 Mar 2008 11:07:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 17 Mar 2008 11:07:09 GMT Message-Id: <200803171107.m2HB79IS055200@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-ppc@FreeBSD.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2008 11:07:10 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o power/93203 ppc FreeBSD PPC Can't Write to Partitions. f power/121407 ppc [panic] Won't boot up; strange error message. 2 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o power/111296 ppc [kernel] [patch] [request] Support IMISS, DLMISS an DS o power/112435 ppc [nexus] [patch] Update nexus children to use ofw_bus f 2 problems total. From owner-freebsd-ppc@FreeBSD.ORG Mon Mar 17 15:30:04 2008 Return-Path: Delivered-To: freebsd-ppc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67126106566B for ; Mon, 17 Mar 2008 15:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 55AF58FC15 for ; Mon, 17 Mar 2008 15:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2HFU4WL079501 for ; Mon, 17 Mar 2008 15:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2HFU4wg079498; Mon, 17 Mar 2008 15:30:04 GMT (envelope-from gnats) Date: Mon, 17 Mar 2008 15:30:04 GMT Message-Id: <200803171530.m2HFU4wg079498@freefall.freebsd.org> To: freebsd-ppc@FreeBSD.org From: Peter Grehan Cc: Subject: Re: powerpc/121407: [panic] Won't boot up; strange error message. X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Peter Grehan List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2008 15:30:04 -0000 The following reply was made to PR powerpc/121407; it has been noted by GNATS. From: Peter Grehan To: bug-followup@FreeBSD.org, phillip-murphy@hotmail.com Cc: Subject: Re: powerpc/121407: [panic] Won't boot up; strange error message. Date: Mon, 17 Mar 2008 08:12:32 -0700 I have some more info on this. The PC that it fails at is in moea_bootstrap(), 4d3f98: 60 00 00 00 nop 4d3f9c: 60 00 00 00 nop 4d3fa0: 7d 30 83 a6 mtibatu 0,r9 4d3fa4: 7c 11 83 a6 mtibatl 0,r0 >>4d3fa8: 4c 00 01 2c isync 4d3fac: 7d 38 83 a6 mtdbatu 0,r9 4d3fb0: 7c 19 83 a6 mtdbatl 0,r0 4d3fb4: 4c 00 01 2c isync 4d3fb8: 3d 20 80 00 lis r9,-32768 4d3fbc: 61 29 1f fe ori r9,r9,8190 4d3fc0: 3c 00 80 00 lis r0,-32768 .. and this corresponds to RELENG_7 powerpc/powerpc/mmu_oea.c:moea_bootstrap() /* * Use an IBAT and a DBAT to map the bottom segment of memory * where we are. */ batu = BATU(0x00000000, BAT_BL_256M, BAT_Vs); batl = BATL(0x00000000, BAT_M, BAT_PP_RW); __asm (".balign 32; \n" "mtibatu 0,%0; mtibatl 0,%1; isync; \n" "mtdbatu 0,%0; mtdbatl 0,%1; isync" :: "r"(batu), "r"(batl)); The problem is that the instruction BAT register 0 is being updated underneath code that will then be mapped by it, resulting in races between the G3's instruction decoder, instruction pipe, and the registers being used for i-translation. I saw this problem on all G3's on 6.0, and fixed it after a lot of experiments by cache-aligning the instruction (the .balign directive, and the source of the nop's in the disassembly). 7.0 boots fine on my B&W G3, and 450MHz G3 iMac. However, it appears that there is at least one system out there that still has an issue with this code :( I'll try and fix this once and for all by disabling instruction translation around the IBAT update, and then re-enabling it. From owner-freebsd-ppc@FreeBSD.ORG Wed Mar 19 01:20:07 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61FB41065692 for ; Wed, 19 Mar 2008 01:20:07 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id 3EDAB8FC1A for ; Wed, 19 Mar 2008 01:20:06 +0000 (UTC) (envelope-from nathanw@uchicago.edu) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) id <0JXY00H02EDI5X00@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Tue, 18 Mar 2008 20:20:06 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-99-154-4-131.dsl.mdsnwi.sbcglobal.net [99.154.4.131]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) with ESMTPSA id <0JXY00A7SEDB3530@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Tue, 18 Mar 2008 20:19:59 -0500 (CDT) Date: Tue, 18 Mar 2008 20:23:47 -0500 From: Nathan Whitehorn To: freebsd-ppc@freebsd.org Message-id: <47E06B23.7060400@uchicago.edu> X-Spam-Report: AuthenticatedSender=yes, SenderIP=99.154.4.131 X-Spam-PmxInfo: Server=avs-7, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.3.18.175730, SenderIP=99.154.4.131 User-Agent: Thunderbird 2.0.0.12 (X11/20080302) Subject: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 01:20:07 -0000 Here is a first draft of a driver for the BMAC(+) built-in ethernet found at least on G3 macs. It is based on some earlier work by Peter Grehan, and some parts of it have been lifted from the FreeBSD gem driver. It works well on my 400 MHz blue & white G3, which has a BMAC+ controller. I'd appreciate testing on earlier machines, which have buggier controllers (early G3 iMacs especially). Source: http://home.physics.wisc.edu/~nwhitehorn/bm.tgz The source is set up to build a kernel module. I haven't tried any integration with the build system yet. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Wed Mar 19 17:35:31 2008 Return-Path: Delivered-To: ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FE011065670 for ; Wed, 19 Mar 2008 17:35:31 +0000 (UTC) (envelope-from sepotvin@FreeBSD.org) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 6022D8FC33 for ; Wed, 19 Mar 2008 17:35:31 +0000 (UTC) (envelope-from sepotvin@FreeBSD.org) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from [10.0.0.247] ([67.70.237.74]) by VL-MH-MR001.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTPA id <0JXZ00K3RKQS6RP0@VL-MH-MR001.ip.videotron.ca> for ppc@freebsd.org; Wed, 19 Mar 2008 12:35:17 -0400 (EDT) Message-id: <47E140C4.40808@FreeBSD.org> Date: Wed, 19 Mar 2008 12:35:16 -0400 From: "Stephane E. Potvin" Organization: FreeBSD User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) To: Marcel Moolenaar References: <7C24927F-A0C8-4EE8-BEB3-542D8B0DEDC2@mac.com> <47CC5C66.5060200@semihalf.com> In-reply-to: Cc: ppc@freebsd.org Subject: Re: Support for Freescale's MPC85xx has been committed. X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 17:35:31 -0000 Marcel Moolenaar wrote: > > On Mar 3, 2008, at 12:15 PM, Rafal Jaworowski wrote: > >> Marcel Moolenaar wrote: >>> All, >>> >>> Rafal committed the bulk of the support for Freescale's MPC85xx >>> processor. The core of which is the e500, a Book E implementation. >>> >>> Over the coming weeks we'll be polishing things up but we invite >>> everyone to start playing with it already. >>> >>> Have fun! >>> >> >> Oh yes, it was great fun bringing this to life (right Marcel?), so enjoy! > > Oh, yes... and there's more... > >> It still needs to be hooked to the build :) But I'm going to do it in >> a couple >> of minutes. > > Great. This evening I'll sync up the e500 tree and see what loose > ends we still have, but from the looks of it I can alraeady start > building work and kernel from CVS... > > And: we're just in time for the March snapshot too!!! > Just for the fun of it, I tried to run the loader on one of our TMG3200 (a custom board based on a MPC8349EA processor). And to my great surprise/pleasure it ran on the first try. Now I just need to find enough time to make the kernel also run... U-Boot 1.3.2-gb0a5ab63 (Mar 19 2008 - 11:17:26) MPC83XX Reset Status: Software Hard, External/Internal Soft, External/Internal Hard CPU: e300c1, MPC8349, Rev: 31 at 400 MHz, CSB: 266 MHz Board: TelcoBridges TMG3200 I2C: ready DRAM: 512 MB (DDR1, 64-bit, ECC on) FLASH: 128 MB In: serial Out: serial Err: serial Net: TSEC0, TSEC1 Hit any key to stop autoboot: 0 TMG3200> tftp $loadaddr ubldr Speed: 1000, full duplex Using TSEC0 device TFTP from server 10.0.0.153; our IP address is 10.0.1.250 Filename 'ubldr'. Load address: 0x200000 Loading: ############## done Bytes transferred = 200750 (3102e hex) TMG3200> bootelf $loadaddr Loading .text @ 0x00010074 (136016 bytes) Loading .rodata @ 0x000313c4 (4080 bytes) Loading .rodata.str1.4 @ 0x000323b4 (13363 bytes) Loading set_Xcommand_set @ 0x000357e8 (72 bytes) Loading .rodata.cst4 @ 0x00035830 (40 bytes) Loading .data @ 0x00036000 (5344 bytes) Loading .sdata @ 0x000374e0 (92 bytes) Clearing .sbss @ 0x00037540 (120 bytes) Clearing .bss @ 0x000375b8 (6920 bytes) ## Starting application at 0x00010074 ... Consoles: U-Boot console Compatible API signature found @1ffa0010 Number of U-Boot devices found 1 FreeBSD/powerpc U-Boot loader, Revision 0.6 (spotvin@yoda.telcobridges.com, Tue Mar 18 21:55:42 EDT 2008) Memory: 512MB FLASH: 128MB Loading /boot/defaults/loader.conf Unable to load a kernel! can't load 'kernel' Type '?' for a list of commands, 'help' for more detailed help. loader> Impressive work guys! Steph From owner-freebsd-ppc@FreeBSD.ORG Thu Mar 20 14:36:09 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2D071065674; Thu, 20 Mar 2008 14:36:08 +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 CFD668FC16; Thu, 20 Mar 2008 14:36:08 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.2/8.14.2) with ESMTP id m2KEa71v035504; Thu, 20 Mar 2008 10:36:07 -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.14.2/8.14.2) with ESMTP id m2KEa7qi016488; Thu, 20 Mar 2008 10:36:07 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 729CF73039; Thu, 20 Mar 2008 09:36:07 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20080320143607.729CF73039@freebsd-current.sentex.ca> Date: Thu, 20 Mar 2008 09:36:07 -0500 (EST) X-Virus-Scanned: ClamAV 0.92.1/6305/Wed Mar 19 03:32:53 2008 clamav-milter version 0.92.1 on clamscanner2 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 14:36:09 -0000 TB --- 2008-03-20 13:31:39 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-03-20 13:31:39 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2008-03-20 13:31:39 - cleaning the object tree TB --- 2008-03-20 13:32:04 - cvsupping the source tree TB --- 2008-03-20 13:32:04 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2008-03-20 13:32:10 - building world (CFLAGS=-O -pipe) TB --- 2008-03-20 13:32:10 - cd /src TB --- 2008-03-20 13:32:10 - /usr/bin/make -B buildworld >>> World build started on Thu Mar 20 13:32:12 UTC 2008 >>> 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 >>> World build completed on Thu Mar 20 14:32:59 UTC 2008 TB --- 2008-03-20 14:32:59 - generating LINT kernel config TB --- 2008-03-20 14:32:59 - cd /src/sys/powerpc/conf TB --- 2008-03-20 14:32:59 - /usr/bin/make -B LINT TB --- 2008-03-20 14:32:59 - building LINT kernel (COPTFLAGS=) TB --- 2008-03-20 14:32:59 - cd /src TB --- 2008-03-20 14:32:59 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Mar 20 14:32:59 UTC 2008 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/dev/ata/ata-pci.c cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/dev/ata/ata-queue.c cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/dev/ata/ata-raid.c cc1: warnings being treated as errors /src/sys/dev/ata/ata-raid.c: In function 'ata_raid_attach': /src/sys/dev/ata/ata-raid.c:202: warning: implicit declaration of function 'ata_unit2str' /src/sys/dev/ata/ata-raid.c:202: warning: nested extern declaration of 'ata_unit2str' /src/sys/dev/ata/ata-raid.c:203: warning: format '%s' expects type 'char *', but argument 4 has type 'int' *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-03-20 14:36:07 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-03-20 14:36:07 - ERROR: failed to build lint kernel TB --- 2008-03-20 14:36:07 - tinderbox aborted TB --- 2932.77 user 346.66 system 3868.16 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Thu Mar 20 19:22:25 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 087DD1065670; Thu, 20 Mar 2008 19:22: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 B4CF38FC21; Thu, 20 Mar 2008 19:22: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.14.2/8.14.2) with ESMTP id m2KJMOEL086399; Thu, 20 Mar 2008 15:22: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.14.2/8.14.2) with ESMTP id m2KJMNQY095447; Thu, 20 Mar 2008 15:22:24 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id B33CE73039; Thu, 20 Mar 2008 14:22:23 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20080320192223.B33CE73039@freebsd-current.sentex.ca> Date: Thu, 20 Mar 2008 14:22:23 -0500 (EST) X-Virus-Scanned: ClamAV version 0.92, clamav-milter version 0.92 on clamscanner1 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 19:22:25 -0000 TB --- 2008-03-20 18:17:22 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-03-20 18:17:22 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2008-03-20 18:17:22 - cleaning the object tree TB --- 2008-03-20 18:17:52 - cvsupping the source tree TB --- 2008-03-20 18:17:52 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2008-03-20 18:17:58 - building world (CFLAGS=-O -pipe) TB --- 2008-03-20 18:17:58 - cd /src TB --- 2008-03-20 18:17:58 - /usr/bin/make -B buildworld >>> World build started on Thu Mar 20 18:18:00 UTC 2008 >>> 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 >>> World build completed on Thu Mar 20 19:19:16 UTC 2008 TB --- 2008-03-20 19:19:16 - generating LINT kernel config TB --- 2008-03-20 19:19:16 - cd /src/sys/powerpc/conf TB --- 2008-03-20 19:19:16 - /usr/bin/make -B LINT TB --- 2008-03-20 19:19:16 - building LINT kernel (COPTFLAGS=) TB --- 2008-03-20 19:19:16 - cd /src TB --- 2008-03-20 19:19:16 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Mar 20 19:19:16 UTC 2008 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/dev/ata/ata-pci.c cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/dev/ata/ata-queue.c cc -c -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding -Werror /src/sys/dev/ata/ata-raid.c cc1: warnings being treated as errors /src/sys/dev/ata/ata-raid.c: In function 'ata_raid_attach': /src/sys/dev/ata/ata-raid.c:202: warning: implicit declaration of function 'ata_unit2str' /src/sys/dev/ata/ata-raid.c:202: warning: nested extern declaration of 'ata_unit2str' /src/sys/dev/ata/ata-raid.c:203: warning: format '%s' expects type 'char *', but argument 4 has type 'int' *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-03-20 19:22:23 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-03-20 19:22:23 - ERROR: failed to build lint kernel TB --- 2008-03-20 19:22:23 - tinderbox aborted TB --- 2931.70 user 344.62 system 3901.43 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full