From owner-freebsd-ppc@FreeBSD.ORG Mon Jul 21 11:07:01 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 02139106566C for ; Mon, 21 Jul 2008 11:07:01 +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 D502D8FC1F for ; Mon, 21 Jul 2008 11:07:00 +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 m6LB70jS031971 for ; Mon, 21 Jul 2008 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6LB704f031967 for freebsd-ppc@FreeBSD.org; Mon, 21 Jul 2008 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Jul 2008 11:07:00 GMT Message-Id: <200807211107.m6LB704f031967@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, 21 Jul 2008 11:07:01 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o power/93203 ppc FreeBSD PPC Can't Write to Partitions. a 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 Jul 21 12:29:59 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 EE643106567B for ; Mon, 21 Jul 2008 12:29:59 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id AAD858FC20 for ; Mon, 21 Jul 2008 12:29:59 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id m6LCTwRn029151; Mon, 21 Jul 2008 06:29:58 -0600 Message-ID: <48848144.5040609@semihalf.com> Date: Mon, 21 Jul 2008 14:29:56 +0200 From: Rafal Jaworowski Organization: Semihalf MIME-Version: 1.0 To: Nathan Whitehorn References: <48824C5A.2010805@freebsd.org> In-Reply-To: <48824C5A.2010805@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Single user mode on G5! 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, 21 Jul 2008 12:30:00 -0000 Nathan Whitehorn wrote: > Patches at http://banshee.uchicago.edu/~nwhitehorn/g5.diff. Beware that > kernels with INVARIANTS enabled do not run on G5s because of some issues > writing to the console in early boot and that the patch breaks building > loader, and thus world. These should be easy to fix, and will be fixed > once the system is working. Fantastic news, congratulations! I have one very general comment regarding naming scheme, which isn't even strictly related to your G5 work but the existing G3/4 port too. There is the 'OEA' prefix used, which came from NetBSD, but it seems rather unfortunate to me: Operating Environment Architecure is a generic term for certain layer in PowerPC definition nomenclature, and each implementation variant of the CPU has actually its own OEA defined... I think it would be better to change it to something more meaningful. Rafal From owner-freebsd-ppc@FreeBSD.ORG Mon Jul 21 15:43:03 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 E12421065671 for ; Mon, 21 Jul 2008 15:43:03 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (ice.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id A5BFF8FC1D for ; Mon, 21 Jul 2008 15:43:03 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 7BEBE86DC0 for ; Mon, 21 Jul 2008 10:13:45 -0500 (CDT) Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (ice.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 18010-02 for ; Mon, 21 Jul 2008 10:13:44 -0500 (CDT) Received: from wanderer.tachypleus.net (i3-dhcp-172-16-223-188.icecube.wisc.edu [172.16.223.188]) by mail.icecube.wisc.edu (Postfix) with ESMTP id AF44286CCB for ; Mon, 21 Jul 2008 10:13:44 -0500 (CDT) Message-ID: <4884A7A6.9050806@freebsd.org> Date: Mon, 21 Jul 2008 10:13:42 -0500 From: Nathan Whitehorn User-Agent: Thunderbird 2.0.0.14 (X11/20080609) MIME-Version: 1.0 To: freebsd-ppc@freebsd.org References: <48824C5A.2010805@freebsd.org> <48848144.5040609@semihalf.com> In-Reply-To: <48848144.5040609@semihalf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ice.icecube.wisc.edu Subject: Re: Single user mode on G5! 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, 21 Jul 2008 15:43:04 -0000 Rafal Jaworowski wrote: > Nathan Whitehorn wrote: > >> Patches at http://banshee.uchicago.edu/~nwhitehorn/g5.diff. Beware that >> kernels with INVARIANTS enabled do not run on G5s because of some issues >> writing to the console in early boot and that the patch breaks building >> loader, and thus world. These should be easy to fix, and will be fixed >> once the system is working. >> > > Fantastic news, congratulations! > > I have one very general comment regarding naming scheme, which isn't even > strictly related to your G5 work but the existing G3/4 port too. There is the > 'OEA' prefix used, which came from NetBSD, but it seems rather unfortunate to > me: Operating Environment Architecure is a generic term for certain layer in > PowerPC definition nomenclature, and each implementation variant of the CPU > has actually its own OEA defined... I think it would be better to change it to > something more meaningful. > > Rafal > How about aim(64)? It's the name of the directory for the Book-S support anyway. We should probably also start thinking about a full 64-bit port soon. With support for the 64-bit MMU stuff required for bridge mode, we should end up with a lot of shared code. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Mon Jul 21 23:08:32 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 7E1FD106567F for ; Mon, 21 Jul 2008 23:08:32 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id 4D5F88FC2D for ; Mon, 21 Jul 2008 23:08:32 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) 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 <0K4D00113PM7OA00@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Mon, 21 Jul 2008 18:08:31 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-99-153-133-60.dsl.mdsnwi.sbcglobal.net [99.153.133.60]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) with ESMTPSA id <0K4D00A2CPLHPO80@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Mon, 21 Jul 2008 18:08:05 -0500 (CDT) Date: Mon, 21 Jul 2008 18:10:36 -0500 From: Nathan Whitehorn To: freebsd-ppc@freebsd.org Message-id: <4885176C.8000206@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=99.153.133.60 X-Spam-PmxInfo: Server=avs-12, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.7.21.225514, SenderIP=99.153.133.60 User-Agent: Thunderbird 2.0.0.14 (X11/20080628) Subject: G5 boots multi-user! 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, 21 Jul 2008 23:08:32 -0000 There appears to be a bug in NFS not using using copyin() to get the hostname from its arguments when a mount is being updating. Fixing that with an #if 0 sledgehammer produces the following patch: http://people.freebsd.org/~nwhitehorn/nfs_vfsops.diff Combine that with the main G5 patch: http://people.freebsd.org/~nwhitehorn/g5.diff This produces a system that will boot multiuser on my iMac G5. It still has plenty of bugs, to whit: 1) The system is extremely slow. Measured CPU clock speed is 50 MHz, which is about what it feels like. I think it is in a low-power mode, but IBM docs say it can only run at 1800 and 900 MHz. So this is probably an inefficiency in the MMU module. 2) There remain several nasty panics. The system is not especially stable yet. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 22 03:08:48 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 BC9AB1065672; Tue, 22 Jul 2008 03: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 8D1578FC1E; Tue, 22 Jul 2008 03:08:48 +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.2/8.14.2) with ESMTP id m6M38lHP007346; Mon, 21 Jul 2008 23:08:47 -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 m6M38kwK054835; Mon, 21 Jul 2008 23:08:46 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 9F01273039; Mon, 21 Jul 2008 23:08:46 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20080722030846.9F01273039@freebsd-current.sentex.ca> Date: Mon, 21 Jul 2008 23:08:46 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on clamscanner2 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 205.211.164.50 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: Tue, 22 Jul 2008 03:08:49 -0000 TB --- 2008-07-22 01:52:32 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-07-22 01:52:32 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2008-07-22 01:52:32 - cleaning the object tree TB --- 2008-07-22 01:52:59 - cvsupping the source tree TB --- 2008-07-22 01:52:59 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2008-07-22 01:53:08 - building world (CFLAGS=-O -pipe) TB --- 2008-07-22 01:53:08 - cd /src TB --- 2008-07-22 01:53:08 - /usr/bin/make -B buildworld >>> World build started on Tue Jul 22 01:53:10 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 Tue Jul 22 03:02:40 UTC 2008 TB --- 2008-07-22 03:02:40 - generating LINT kernel config TB --- 2008-07-22 03:02:40 - cd /src/sys/powerpc/conf TB --- 2008-07-22 03:02:40 - /usr/bin/make -B LINT TB --- 2008-07-22 03:02:40 - building LINT kernel (COPTFLAGS=) TB --- 2008-07-22 03:02:40 - cd /src TB --- 2008-07-22 03:02:40 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Tue Jul 22 03:02:40 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 -fstack-protector -Werror /src/sys/netinet/ip_id.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 -fstack-protector -Werror /src/sys/netinet/in_mcast.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 -fstack-protector -Werror /src/sys/netinet/in_pcb.c cc1: warnings being treated as errors /src/sys/netinet/in_pcb.c: In function 'inp_4tuple_get': /src/sys/netinet/in_pcb.c:1306: warning: passing argument 1 of '_rw_assert' discards qualifiers from pointer target type /src/sys/netinet/in_pcb.c:1307: error: incompatible types in assignment /src/sys/netinet/in_pcb.c:1308: error: incompatible types in assignment *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-07-22 03:08:46 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-07-22 03:08:46 - ERROR: failed to build lint kernel TB --- 2008-07-22 03:08:46 - tinderbox aborted TB --- 3343.91 user 402.12 system 4574.12 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 22 06:13:42 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 D4C34106568F for ; Tue, 22 Jul 2008 06:13:42 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id 6EBF28FC28 for ; Tue, 22 Jul 2008 06:13:42 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1107658fgb.35 for ; Mon, 21 Jul 2008 23:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=TJUG2dBcMgTK8LMtUzECRhv9nlzLf01gtOg6xR2NJFw=; b=Mk5/DE+7pJPrqIb5/9pPRD3f/z3xS/UMp9nzU9vGfGrRab3M5QWhC0IMdTq5kvd08T y5xKzr1vUgU+2GSC7MXEltMDF3mOR+g+eWwZebwS1WJTPjW+bw1SujiK/n7RONSlbAjk b9NPv/kryroRUzmaGkcGWLgVU0WpiF53KvBqQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=IiOfuxvyis5QxDTaFNQ0N+OzdAZfaza1grOEVqD5h7hWa4wwjZmHdJWtTbR9xuzW12 aSwLBTtwFzHBjg3J9FrPul/POFU9FAuIaPOFRaxtGbuuJsmMa1cPCpNl29v2ukMINJE4 Ut5Pkr5ZBlElYq1q1d+QL72wkJFh12eE3m5mM= Received: by 10.86.82.6 with SMTP id f6mr6004509fgb.73.1216707220900; Mon, 21 Jul 2008 23:13:40 -0700 (PDT) Received: by 10.86.51.1 with HTTP; Mon, 21 Jul 2008 23:13:40 -0700 (PDT) Message-ID: <7d6fde3d0807212313j73919327s3e8c8fdb9ef56a01@mail.gmail.com> Date: Mon, 21 Jul 2008 23:13:40 -0700 From: "Garrett Cooper" To: "Nathan Whitehorn" In-Reply-To: <4885176C.8000206@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4885176C.8000206@freebsd.org> Cc: freebsd-ppc@freebsd.org Subject: Re: G5 boots multi-user! 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: Tue, 22 Jul 2008 06:13:42 -0000 On Mon, Jul 21, 2008 at 4:10 PM, Nathan Whitehorn wrote: > There appears to be a bug in NFS not using using copyin() to get the > hostname from its arguments when a mount is being updating. Fixing that with > an #if 0 sledgehammer produces the following patch: > > http://people.freebsd.org/~nwhitehorn/nfs_vfsops.diff > > Combine that with the main G5 patch: > > http://people.freebsd.org/~nwhitehorn/g5.diff > > This produces a system that will boot multiuser on my iMac G5. It still has > plenty of bugs, to whit: > > 1) The system is extremely slow. Measured CPU clock speed is 50 MHz, which > is about what it feels like. I think it is in a low-power mode, but IBM docs > say it can only run at 1800 and 900 MHz. So this is probably an inefficiency > in the MMU module. > > 2) There remain several nasty panics. The system is not especially stable > yet. > -Nathan Nathan, Let me know if / when you need to test out some changes on a Powermac G5 UP system. Cheers, -Garrett From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 22 12:29:12 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 553AB1065674; Tue, 22 Jul 2008 12:29:12 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 3D8A88FC16; Tue, 22 Jul 2008 12:29:12 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id m6MCTAWf024424; Tue, 22 Jul 2008 06:29:11 -0600 Message-ID: <4885D290.20406@semihalf.com> Date: Tue, 22 Jul 2008 14:29:04 +0200 From: Rafal Jaworowski Organization: Semihalf MIME-Version: 1.0 To: Nathan Whitehorn References: <48824C5A.2010805@freebsd.org> <48848144.5040609@semihalf.com> <4884A7A6.9050806@freebsd.org> In-Reply-To: <4884A7A6.9050806@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Single user mode on G5! 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: Tue, 22 Jul 2008 12:29:12 -0000 >> I have one very general comment regarding naming scheme, which isn't even >> strictly related to your G5 work but the existing G3/4 port too. There >> is the >> 'OEA' prefix used, which came from NetBSD, but it seems rather >> unfortunate to >> me: Operating Environment Architecure is a generic term for certain >> layer in >> PowerPC definition nomenclature, and each implementation variant of >> the CPU >> has actually its own OEA defined... I think it would be better to >> change it to >> something more meaningful. >> >> Rafal >> > How about aim(64)? It's the name of the directory for the Book-S support > anyway. We should probably also start thinking about a full 64-bit port > soon. With support for the 64-bit MMU stuff required for bridge mode, we > should end up with a lot of shared code. Sounds good. Rafal From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 22 13:32:24 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 01C451065686 for ; Tue, 22 Jul 2008 13:32:24 +0000 (UTC) (envelope-from nse@delfi-konsult.com) Received: from perseus.delfi-konsult.com (smtp.hoerhavegaard.dk [87.58.191.122]) by mx1.freebsd.org (Postfix) with ESMTP id B417A8FC47 for ; Tue, 22 Jul 2008 13:32:23 +0000 (UTC) (envelope-from nse@delfi-konsult.com) Received: from [127.0.0.1] (localhost [127.0.0.1]) by perseus.delfi-konsult.com (Postfix) with ESMTP id E28235E80B for ; Tue, 22 Jul 2008 15:32:20 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <0BD193D4-542E-45F3-81F3-C40231534F36@delfi-konsult.com> Content-Transfer-Encoding: 7bit From: "Niels S. Eliasen" X-Custom-Header: Yo! this is my X-Face Date: Tue, 22 Jul 2008 15:32:10 +0200 To: freebsd-ppc@freebsd.org X-Mailer: Apple Mail (2.753.1) Subject: gtk2 compilation error... 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: Tue, 22 Jul 2008 13:32:24 -0000 Hi guys Anyone knows how to fix this ?? > creating gtk-update-icon-cache > gmake[3]: Leaving directory `/usr/ports/x11-toolkits/gtk20/work/gtk > +-2.12.11/gtk > ' > GDK_PIXBUF_MODULE_FILE=../gdk-pixbuf/gdk-pixbuf.loaders ./gtk- > update-icon-cache > --force --ignore-theme-index \ > --source builtin_icons stock-icons > > gtkbuiltincache.h.tmp && > \ > mv gtkbuiltincache.h.tmp gtkbuiltincache.h > gtk-update-icon-cache: The generated cache was invalid. > gmake[2]: *** [gtkbuiltincache.h] Error 1 > gmake[2]: Leaving directory `/usr/ports/x11-toolkits/gtk20/work/gtk > +-2.12.11/gtk > ' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/usr/ports/x11-toolkits/gtk20/work/gtk > +-2.12.11' > gmake: *** [all] Error 2 > *** Error code 2 > > Stop in /usr/ports/x11-toolkits/gtk20. > regards niels From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 22 14:53:13 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 31E2D1065673; Tue, 22 Jul 2008 14:53:13 +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 ED7478FC1B; Tue, 22 Jul 2008 14:53:12 +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 m6MErAqj073165; Tue, 22 Jul 2008 10:53:10 -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 m6MErAOO090077; Tue, 22 Jul 2008 10:53:10 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 19E5C73039; Tue, 22 Jul 2008 10:53:10 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20080722145310.19E5C73039@freebsd-current.sentex.ca> Date: Tue, 22 Jul 2008 10:53:10 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on clamscanner3 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 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: Tue, 22 Jul 2008 14:53:13 -0000 TB --- 2008-07-22 14:52:36 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-07-22 14:52:36 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2008-07-22 14:52:36 - cleaning the object tree TB --- 2008-07-22 14:53:02 - cvsupping the source tree TB --- 2008-07-22 14:53:02 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2008-07-22 14:53:09 - building world (CFLAGS=-O -pipe) TB --- 2008-07-22 14:53:09 - cd /src TB --- 2008-07-22 14:53:09 - /usr/bin/make -B buildworld TB --- 2008-07-22 14:53:09 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-07-22 14:53:09 - ERROR: failed to build world TB --- 2008-07-22 14:53:09 - tinderbox aborted TB --- 2.15 user 3.09 system 33.89 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 22 23:23:39 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 376F01065679 for ; Tue, 22 Jul 2008 23:23:39 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id 1907E8FC25 for ; Tue, 22 Jul 2008 23:23:38 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) id <0K4F00200KZE6A00@smtpauth2.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Tue, 22 Jul 2008 18:23:38 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-99-153-133-60.dsl.mdsnwi.sbcglobal.net [99.153.133.60]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) with ESMTPSA id <0K4F00JO4KZDRR20@smtpauth2.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Tue, 22 Jul 2008 18:23:37 -0500 (CDT) Date: Tue, 22 Jul 2008 18:26:08 -0500 From: Nathan Whitehorn In-reply-to: <4885176C.8000206@freebsd.org> To: freebsd-ppc@freebsd.org Message-id: <48866C90.2010800@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=99.153.133.60 X-Spam-PmxInfo: Server=avs-7, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.7.22.231354, SenderIP=99.153.133.60 References: <4885176C.8000206@freebsd.org> User-Agent: Thunderbird 2.0.0.14 (X11/20080628) Subject: Re: G5 boots multi-user! 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: Tue, 22 Jul 2008 23:23:39 -0000 I've fixed the crashing bugs and some issues with TLB invalidation, and my G5 now runs stably. I can build ports, etc., and it is reasonably fast. Updated patch here: http://people.freebsd.org/~nwhitehorn/g5.diff Known bugs: 1. World builds are broken due to changes to CACHELINESIZE, so build world first. 2. ATA controller does not work on my iMac because of a bug with the controller's interrupt property. 3. The patch touches some things it shouldn't in the MI UMA allocator that require a better solution. Seems mostly harmless, though. 4. The patch touches some things it shouldn't in the NFS client to fix the bug mentioned in my last email. This breaks NFS locking. 5. No thermal or fan control. 6. No SMP. 7. CPC 945 (PCI Express) systems are untested. 8. /dev/mem does not work, so no X. Aside from that, any single CPU G5 machine with AGP (single CPU Powermac G5s and iMacs) should work without noticeable problems aside from the broken NFS locking. Please let me know if this isn't true. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Wed Jul 23 16:05:51 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 1F7B21065676; Wed, 23 Jul 2008 16:05:51 +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 D1C0D8FC0C; Wed, 23 Jul 2008 16:05:50 +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.2/8.14.2) with ESMTP id m6NG5nQ0050738; Wed, 23 Jul 2008 12:05:49 -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 m6NG5mfO022853; Wed, 23 Jul 2008 12:05:48 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id CA4E073039; Wed, 23 Jul 2008 12:05:48 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20080723160548.CA4E073039@freebsd-current.sentex.ca> Date: Wed, 23 Jul 2008 12:05:48 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on clamscanner1 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.64 on 205.211.164.50 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: Wed, 23 Jul 2008 16:05:51 -0000 TB --- 2008-07-23 15:06:05 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-07-23 15:06:05 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2008-07-23 15:06:06 - cleaning the object tree TB --- 2008-07-23 15:06:33 - cvsupping the source tree TB --- 2008-07-23 15:06:33 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2008-07-23 15:06:41 - building world (CFLAGS=-O -pipe) TB --- 2008-07-23 15:06:41 - cd /src TB --- 2008-07-23 15:06:41 - /usr/bin/make -B buildworld >>> World build started on Wed Jul 23 15:06:44 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 [...] In file included from /src/sbin/ipf/ipresend/../../../contrib/ipfilter/ipsend/sock.c:81: /obj/powerpc/src/tmp/usr/include/string.h:81: error: conflicting types for 'strdup' /src/sbin/ipf/ipresend/../../../sys/sys/libkern.h:109: error: previous declaration of 'strdup' was here In file included from /src/sbin/ipf/ipresend/../../../contrib/ipfilter/ipsend/sock.c:82: /obj/powerpc/src/tmp/usr/include/stdlib.h:163: error: conflicting types for 'setenv' /src/sbin/ipf/ipresend/../../../sys/sys/systm.h:239: error: previous declaration of 'setenv' was here /obj/powerpc/src/tmp/usr/include/stdlib.h:201: error: conflicting types for 'random' /src/sbin/ipf/ipresend/../../../sys/sys/libkern.h:99: error: previous declaration of 'random' was here *** Error code 1 Stop in /src/sbin/ipf/ipresend. *** Error code 1 Stop in /src/sbin/ipf. *** Error code 1 Stop in /src/sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-07-23 16:05:48 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-07-23 16:05:48 - ERROR: failed to build world TB --- 2008-07-23 16:05:48 - tinderbox aborted TB --- 2623.82 user 321.73 system 3582.79 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Wed Jul 23 19:02:03 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 927391065671; Wed, 23 Jul 2008 19:02:03 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from smtp5.server.rpi.edu (smtp5.server.rpi.edu [128.113.2.225]) by mx1.freebsd.org (Postfix) with ESMTP id 4C3628FC0C; Wed, 23 Jul 2008 19:02:03 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp5.server.rpi.edu (8.13.1/8.13.1) with ESMTP id m6NHnX6O023837; Wed, 23 Jul 2008 13:49:34 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <48866C90.2010800@freebsd.org> References: <4885176C.8000206@freebsd.org> <48866C90.2010800@freebsd.org> Date: Wed, 23 Jul 2008 13:49:32 -0400 To: Nathan Whitehorn , freebsd-ppc@FreeBSD.org From: Garance A Drosehn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Bayes-Prob: 0.0001 (Score 0) X-RPI-SA-Score: 0.10 () [Hold at 20.00] COMBINED_FROM X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.225 Cc: Subject: Re: G5 boots multi-user! 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, 23 Jul 2008 19:02:03 -0000 At 6:26 PM -0500 7/22/08, Nathan Whitehorn wrote: >I've fixed the crashing bugs and some issues with TLB invalidation, >and my G5 now runs stably. I can build ports, etc., and it is >reasonably fast. Updated patch here: > >http://people.freebsd.org/~nwhitehorn/g5.diff > >Known bugs: >1. World builds are broken due to changes to CACHELINESIZE, > so build world first. I don't understand what you mean by this... Or does this mean one has to do a cross-build (from a different platform) for 'make buildworld'? >Aside from that, any single CPU G5 machine with AGP (single CPU >Powermac G5s and iMacs) should work without noticeable problems >aside from the broken NFS locking. Please let me know if this isn't >true. I can't easily test this right now, but this is very encouraging progress! The guy down the hall from me will probably be unhappy though. I was going to give him my old G5, but if FreeBSD runs on that then I'd much rather use that than my Mac mini! -- Garance Alistair Drosehn = drosehn@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA From owner-freebsd-ppc@FreeBSD.ORG Wed Jul 23 19:05:30 2008 Return-Path: Delivered-To: freebsd-ppc@FreeBSD.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 9D4871065678; Wed, 23 Jul 2008 19:05:30 +0000 (UTC) Date: Wed, 23 Jul 2008 19:05:30 +0000 From: Alexey Dokuchaev To: Garance A Drosehn Message-ID: <20080723190530.GA32613@FreeBSD.org> References: <4885176C.8000206@freebsd.org> <48866C90.2010800@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: Nathan Whitehorn , freebsd-ppc@FreeBSD.org Subject: Re: G5 boots multi-user! 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, 23 Jul 2008 19:05:30 -0000 On Wed, Jul 23, 2008 at 01:49:32PM -0400, Garance A Drosehn wrote: > At 6:26 PM -0500 7/22/08, Nathan Whitehorn wrote: > >Aside from that, any single CPU G5 machine with AGP (single CPU > >Powermac G5s and iMacs) should work without noticeable problems > >aside from the broken NFS locking. Please let me know if this isn't > >true. > > I can't easily test this right now, but this is very encouraging > progress! The guy down the hall from me will probably be unhappy > though. I was going to give him my old G5, but if FreeBSD runs > on that then I'd much rather use that than my Mac mini! Hahaha, now this is pretty funny. :-) ./danfe From owner-freebsd-ppc@FreeBSD.ORG Wed Jul 23 19:14:43 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 466BD1065673 for ; Wed, 23 Jul 2008 19:14:43 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (ice.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id 1DE3E8FC1F for ; Wed, 23 Jul 2008 19:14:42 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 520A586D86; Wed, 23 Jul 2008 14:14:42 -0500 (CDT) Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (ice.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 26769-01; Wed, 23 Jul 2008 14:14:41 -0500 (CDT) Received: from wanderer.tachypleus.net (i3-dhcp-172-16-223-188.icecube.wisc.edu [172.16.223.188]) by mail.icecube.wisc.edu (Postfix) with ESMTP id A2B8C86CCB; Wed, 23 Jul 2008 14:14:41 -0500 (CDT) Message-ID: <4887831E.2000806@freebsd.org> Date: Wed, 23 Jul 2008 14:14:38 -0500 From: Nathan Whitehorn User-Agent: Thunderbird 2.0.0.14 (X11/20080609) MIME-Version: 1.0 To: Garance A Drosehn References: <4885176C.8000206@freebsd.org> <48866C90.2010800@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ice.icecube.wisc.edu Cc: freebsd-ppc@FreeBSD.org Subject: Re: G5 boots multi-user! 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, 23 Jul 2008 19:14:43 -0000 Garance A Drosehn wrote: > At 6:26 PM -0500 7/22/08, Nathan Whitehorn wrote: >> I've fixed the crashing bugs and some issues with TLB invalidation, >> and my G5 now runs stably. I can build ports, etc., and it is >> reasonably fast. Updated patch here: >> >> http://people.freebsd.org/~nwhitehorn/g5.diff >> >> Known bugs: >> 1. World builds are broken due to changes to CACHELINESIZE, >> so build world first. > > I don't understand what you mean by this... Or does this mean one has > to do a cross-build (from a different platform) for 'make buildworld'? You just have to have built a world before applying the patch, since loader wants CACHELINESIZE defined for standalone executables, and it varies depending on CPU model. Any PowerPC world that was built without applying the patch will work fine on G5. >> Aside from that, any single CPU G5 machine with AGP (single CPU >> Powermac G5s and iMacs) should work without noticeable problems aside >> from the broken NFS locking. Please let me know if this isn't true. > > I can't easily test this right now, but this is very encouraging > progress! The guy down the hall from me will probably be unhappy > though. I was going to give him my old G5, but if FreeBSD runs > on that then I'd much rather use that than my Mac mini! Oh well :P Assuming it's a dual-CPU machine, it will take a little more time before that is supported at all, and any G5 will be very loud because we don't have fan control yet. It will also be a while until X is supported because we no longer have a direct physical memory mappping. I'm going to have a stab at SMP support before the week is out. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Wed Jul 23 22:49:56 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 0ACBC1065693 for ; Wed, 23 Jul 2008 22:49:56 +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 A274D8FC9E for ; Wed, 23 Jul 2008 22:49:55 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m6NMlSel033926 for ; Wed, 23 Jul 2008 16:47:29 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 23 Jul 2008 16:47:41 -0600 (MDT) Message-Id: <20080723.164741.163264646.imp@bsdimp.com> To: powerpc@freebsd.org From: "M. Warner Losh" 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: Subject: Device trees 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, 23 Jul 2008 22:49:56 -0000 Does FreeBSD/powerpc on the MPC85xx machine use the fake device open firmware tree stuff from uboot (aka dts in the linux kernel sources)? Warner From owner-freebsd-ppc@FreeBSD.ORG Wed Jul 23 23:42: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 60CC11065675 for ; Wed, 23 Jul 2008 23:42:25 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (rafe.jeamland.net [203.20.99.33]) by mx1.freebsd.org (Postfix) with ESMTP id 1B2368FC1D for ; Wed, 23 Jul 2008 23:42:25 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (localhost [127.0.0.1]) by mail.jeamland.net (Postfix) with ESMTP id 774C21CD33; Thu, 24 Jul 2008 09:22:56 +1000 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on rafe.jeamland.net X-Spam-Level: X-Spam-Status: No, score=-6.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from urtzweil.jeamland.net (ppp154-45.static.internode.on.net [150.101.154.45]) by mail.jeamland.net (Postfix) with ESMTPSA id 4BD181CD2A; Thu, 24 Jul 2008 09:22:56 +1000 (EST) Message-Id: From: Benno Rice To: M. Warner Losh In-Reply-To: <20080723.164741.163264646.imp@bsdimp.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Thu, 24 Jul 2008 09:22:38 +1000 References: <20080723.164741.163264646.imp@bsdimp.com> X-Mailer: Apple Mail (2.926) X-Virus-Scanned: ClamAV using ClamSMTP at rafe.jeamland.net Cc: powerpc@freebsd.org Subject: Re: Device trees 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, 23 Jul 2008 23:42:25 -0000 On 24/07/2008, at 8:47 AM, M. Warner Losh wrote: > Does FreeBSD/powerpc on the MPC85xx machine use the fake device open > firmware tree stuff from uboot (aka dts in the linux kernel sources)? I've got a machine (Mikrotik RouterBOARD 333, uses MPC8321) that has this. I've been working with one of the dtc developers to port their code over to FreeBSD. I'm trying to hide it underneath our existing OpenFirmware stuff. I've got a few more bugs to get out of it but I can probably send you some patches early next week... -- Benno Rice benno@jeamland.net From owner-freebsd-ppc@FreeBSD.ORG Thu Jul 24 01:25:05 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 9FFF7106564A for ; Thu, 24 Jul 2008 01:25:05 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id 63B368FC08 for ; Thu, 24 Jul 2008 01:25:05 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) id <0K4H00F00IHS6C00@smtpauth2.wiscmail.wisc.edu> for powerpc@freebsd.org; Wed, 23 Jul 2008 19:25:04 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-99-153-133-60.dsl.mdsnwi.sbcglobal.net [99.153.133.60]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K4H003BOIHRBE20@smtpauth2.wiscmail.wisc.edu> for powerpc@freebsd.org; Wed, 23 Jul 2008 19:25:03 -0500 (CDT) Date: Wed, 23 Jul 2008 19:27:36 -0500 From: Nathan Whitehorn In-reply-to: To: powerpc@freebsd.org Message-id: <4887CC78.8040707@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=99.153.133.60 X-Spam-PmxInfo: Server=avs-9, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.7.23.234900, SenderIP=99.153.133.60 References: <20080723.164741.163264646.imp@bsdimp.com> User-Agent: Thunderbird 2.0.0.14 (X11/20080628) Cc: Subject: Re: Device trees 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: Thu, 24 Jul 2008 01:25:05 -0000 Benno Rice wrote: > > On 24/07/2008, at 8:47 AM, M. Warner Losh wrote: > >> Does FreeBSD/powerpc on the MPC85xx machine use the fake device open >> firmware tree stuff from uboot (aka dts in the linux kernel sources)? > > I've got a machine (Mikrotik RouterBOARD 333, uses MPC8321) that has > this. I've been working with one of the dtc developers to port their > code over to FreeBSD. I'm trying to hide it underneath our existing > OpenFirmware stuff. I've got a few more bugs to get out of it but I can > probably send you some patches early next week... > Can you use this to abstract real OF too? We don't support real mode Open Firmware and IBM is shipping new systems with a very basic firmware that runs only in real mode (this includes the Bimini 970MP dev board, apparently, as well as their Cell blades). The easiest course seems to be just to pretend it's a flattened device tree if we can support that. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Thu Jul 24 01:30:02 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 9C4AD1065674 for ; Thu, 24 Jul 2008 01:30:02 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (rafe.jeamland.net [203.20.99.33]) by mx1.freebsd.org (Postfix) with ESMTP id 46FBD8FC19 for ; Thu, 24 Jul 2008 01:30:02 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (localhost [127.0.0.1]) by mail.jeamland.net (Postfix) with ESMTP id 5594D1CC48; Thu, 24 Jul 2008 11:29:56 +1000 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on rafe.jeamland.net X-Spam-Level: X-Spam-Status: No, score=-6.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from urtzweil.jeamland.net (ppp154-45.static.internode.on.net [150.101.154.45]) by mail.jeamland.net (Postfix) with ESMTPSA id 03E201CC07; Thu, 24 Jul 2008 11:29:55 +1000 (EST) Message-Id: <3008B18B-DC6F-4E33-939E-169484B6EEFE@jeamland.net> From: Benno Rice To: Nathan Whitehorn In-Reply-To: <4887CC78.8040707@freebsd.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Thu, 24 Jul 2008 11:29:38 +1000 References: <20080723.164741.163264646.imp@bsdimp.com> <4887CC78.8040707@freebsd.org> X-Mailer: Apple Mail (2.926) X-Virus-Scanned: ClamAV using ClamSMTP at rafe.jeamland.net Cc: powerpc@freebsd.org Subject: Re: Device trees 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: Thu, 24 Jul 2008 01:30:02 -0000 On 24/07/2008, at 10:27 AM, Nathan Whitehorn wrote: > Benno Rice wrote: >> On 24/07/2008, at 8:47 AM, M. Warner Losh wrote: >>> Does FreeBSD/powerpc on the MPC85xx machine use the fake device open >>> firmware tree stuff from uboot (aka dts in the linux kernel >>> sources)? >> I've got a machine (Mikrotik RouterBOARD 333, uses MPC8321) that >> has this. I've been working with one of the dtc developers to port >> their code over to FreeBSD. I'm trying to hide it underneath our >> existing OpenFirmware stuff. I've got a few more bugs to get out >> of it but I can probably send you some patches early next week... > > > Can you use this to abstract real OF too? We don't support real mode > Open Firmware and IBM is shipping new systems with a very basic > firmware that runs only in real mode (this includes the Bimini 970MP > dev board, apparently, as well as their Cell blades). The easiest > course seems to be just to pretend it's a flattened device tree if > we can support that. My plan (assuming some measure of available time) was to actually get loader to handle turning OpenFirmware device data into an FDT which could be handed to FreeBSD as part of the loader metadata. On platforms like the Mikrotik where all we get is an FDT, if we have loader it can just pass it through or if we're not using loader we can have a hook that shunts the data into the right place. Does that sound workable? -- Benno Rice benno@jeamland.net From owner-freebsd-ppc@FreeBSD.ORG Thu Jul 24 02:19:30 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 5FB6E1065677 for ; Thu, 24 Jul 2008 02:19:30 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout022.mac.com (asmtpout022.mac.com [17.148.16.97]) by mx1.freebsd.org (Postfix) with ESMTP id 389D98FC12 for ; Thu, 24 Jul 2008 02:19:30 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed Received: from [192.168.1.102] (209-128-86-226.bayarea.net [209.128.86.226]) by asmtp022.mac.com (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K4H00E4BJ6IOX00@asmtp022.mac.com> for powerpc@freebsd.org; Wed, 23 Jul 2008 17:39:54 -0700 (PDT) Sender: xcllnt@mac.com Message-id: <106CEF8A-EA8A-48BC-BAF7-B9C112F58A92@mac.com> From: Marcel Moolenaar To: "M. Warner Losh" In-reply-to: <20080723.164741.163264646.imp@bsdimp.com> Date: Wed, 23 Jul 2008 17:39:53 -0700 References: <20080723.164741.163264646.imp@bsdimp.com> X-Mailer: Apple Mail (2.928.1) Cc: powerpc@freebsd.org Subject: Re: Device trees 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: Thu, 24 Jul 2008 02:19:30 -0000 On Jul 23, 2008, at 3:47 PM, M. Warner Losh wrote: > Does FreeBSD/powerpc on the MPC85xx machine use the fake device open > firmware tree stuff from uboot (aka dts in the linux kernel sources)? No, it doesn't. -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Thu Jul 24 03:41:32 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 4FE781065676 for ; Thu, 24 Jul 2008 03:41:32 +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 EC37A8FC1A for ; Thu, 24 Jul 2008 03:41:31 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m6O3c4OS036400; Wed, 23 Jul 2008 21:38:07 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 23 Jul 2008 21:38:17 -0600 (MDT) Message-Id: <20080723.213817.1661913390.imp@bsdimp.com> To: benno@jeamland.net From: "M. Warner Losh" In-Reply-To: References: <20080723.164741.163264646.imp@bsdimp.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: powerpc@freebsd.org Subject: Re: Device trees 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: Thu, 24 Jul 2008 03:41:32 -0000 In message: Benno Rice writes: : : On 24/07/2008, at 8:47 AM, M. Warner Losh wrote: : : > Does FreeBSD/powerpc on the MPC85xx machine use the fake device open : > firmware tree stuff from uboot (aka dts in the linux kernel sources)? : : I've got a machine (Mikrotik RouterBOARD 333, uses MPC8321) that has : this. I've been working with one of the dtc developers to port their : code over to FreeBSD. Cool! : I'm trying to hide it underneath our existing : OpenFirmware stuff. I've got a few more bugs to get out of it but I : can probably send you some patches early next week... That's basically what Linux does. They force the boot loader to pass in all kinds of information about the system. This makes a lot of sense, I think. Are you booting /boot/loader? Or directly booting the kernel from uboot? In message: <106CEF8A-EA8A-48BC-BAF7-B9C112F58A92@mac.com> Marcel Moolenaar writes: : No, it doesn't. Is there any reason it doesn't? Having looked at the dtc stuff, it seems to have all the requirements of device enumeration that we talked about at BSDcan... Warner From owner-freebsd-ppc@FreeBSD.ORG Thu Jul 24 03:59:12 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 A0C1C1065670 for ; Thu, 24 Jul 2008 03:59:12 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (rafe.jeamland.net [203.20.99.33]) by mx1.freebsd.org (Postfix) with ESMTP id 443F18FC0C for ; Thu, 24 Jul 2008 03:59:12 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (localhost [127.0.0.1]) by mail.jeamland.net (Postfix) with ESMTP id B0F1E1CC48; Thu, 24 Jul 2008 13:59:00 +1000 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on rafe.jeamland.net X-Spam-Level: X-Spam-Status: No, score=-6.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from urtzweil.jeamland.net (ppp154-45.static.internode.on.net [150.101.154.45]) by mail.jeamland.net (Postfix) with ESMTPSA id 471821CC07; Thu, 24 Jul 2008 13:59:00 +1000 (EST) Message-Id: <4C17792D-C96D-461C-A85A-BDF599CAD628@jeamland.net> From: Benno Rice To: M. Warner Losh In-Reply-To: <20080723.213817.1661913390.imp@bsdimp.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Thu, 24 Jul 2008 13:58:42 +1000 References: <20080723.164741.163264646.imp@bsdimp.com> <20080723.213817.1661913390.imp@bsdimp.com> X-Mailer: Apple Mail (2.926) X-Virus-Scanned: ClamAV using ClamSMTP at rafe.jeamland.net Cc: powerpc@FreeBSD.org Subject: Re: Device trees 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: Thu, 24 Jul 2008 03:59:12 -0000 On 24/07/2008, at 1:38 PM, M. Warner Losh wrote: > In message: > Benno Rice writes: > : > : On 24/07/2008, at 8:47 AM, M. Warner Losh wrote: > : > : > Does FreeBSD/powerpc on the MPC85xx machine use the fake device > open > : > firmware tree stuff from uboot (aka dts in the linux kernel > sources)? > : > : I've got a machine (Mikrotik RouterBOARD 333, uses MPC8321) that has > : this. I've been working with one of the dtc developers to port > their > : code over to FreeBSD. > > Cool! > > : I'm trying to hide it underneath our existing > : OpenFirmware stuff. I've got a few more bugs to get out of it but I > : can probably send you some patches early next week... > > That's basically what Linux does. They force the boot loader to pass > in all kinds of information about the system. This makes a lot of > sense, I think. > > Are you booting /boot/loader? Or directly booting the kernel from > uboot? s/uboot/RouterBOOT/ =) Directly booting. RouterBOOT supports netbooting but doesn't provide hooks that loader can use to do anything itself. It also only supports yaffs2 as a local boot filesystem. I'm going to look into porting yaffs2 at some point. The only thing RouterBOOT hands us is a pointer to a flattened device tree a-la what uboot hands to Linux so I need to be able to handle it to get things like memory sizes/locations, SoC base addresses and where the hell my console is. =) -- Benno Rice benno@jeamland.net From owner-freebsd-ppc@FreeBSD.ORG Thu Jul 24 12:17:39 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 D4058106567F for ; Thu, 24 Jul 2008 12:17:39 +0000 (UTC) (envelope-from philip.s.schulz@googlemail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by mx1.freebsd.org (Postfix) with ESMTP id 9077F8FC19 for ; Thu, 24 Jul 2008 12:17:39 +0000 (UTC) (envelope-from philip.s.schulz@googlemail.com) Received: by an-out-0708.google.com with SMTP id b33so962557ana.13 for ; Thu, 24 Jul 2008 05:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=8oiekoNPu0RRdZzzra+Iubgx8sAz97vE/8cqWOv5D7E=; b=VeIhnlh+KHbDqi3045F9pjxP8VvUxO5NwhHn9aXzhuzelfAO8BtXf4CGIBurRTr1nc eESGBnZMMyGl/7cO0Sx4MGsuWHVtWNerWeBjWq/zjdhLmnO3D1pH7tLC7ZTkBVdEo/Al 7OEB2Tp4bkNhP0qWowgzsTSTB9al8F+eO9D4A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=cxTh3EgIx1gcO7oMVdTd6ucD+ch+6w3UkXw1Sq1BU25HyXYkLTRAAw0asWD1Dz/v3P 0O4b3fdv9hQMPKRaefdyq7/cmNUQ5UBcZuqcvAOeEE5QzSHwWuTzN8CyDidMhFgNTWYX gtuNty1iqn8GNWs2unWoEbgpuyrRPKQrAbLD4= Received: by 10.100.140.15 with SMTP id n15mr317716and.110.1216900294062; Thu, 24 Jul 2008 04:51:34 -0700 (PDT) Received: by 10.100.121.14 with HTTP; Thu, 24 Jul 2008 04:51:33 -0700 (PDT) Message-ID: <1c66db910807240451n5c181956rfe82b2ba4e80c5ae@mail.gmail.com> Date: Thu, 24 Jul 2008 13:51:33 +0200 From: "Philip Schulz" To: "M. Warner Losh" In-Reply-To: <20080723.213817.1661913390.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080723.164741.163264646.imp@bsdimp.com> <20080723.213817.1661913390.imp@bsdimp.com> Cc: powerpc@freebsd.org Subject: Re: Device trees 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: Thu, 24 Jul 2008 12:17:40 -0000 2008/7/24 M. Warner Losh : > In message: > Benno Rice writes: > : > : On 24/07/2008, at 8:47 AM, M. Warner Losh wrote: > : > : > Does FreeBSD/powerpc on the MPC85xx machine use the fake device open > : > firmware tree stuff from uboot (aka dts in the linux kernel sources)? > : > : I've got a machine (Mikrotik RouterBOARD 333, uses MPC8321) that has > : this. I've been working with one of the dtc developers to port their > : code over to FreeBSD. > > Cool! > > : I'm trying to hide it underneath our existing > : OpenFirmware stuff. I've got a few more bugs to get out of it but I > : can probably send you some patches early next week... > > That's basically what Linux does. They force the boot loader to pass > in all kinds of information about the system. This makes a lot of > sense, I think. > Unless I misunderstood what you guys said, I think it should be done the other way around. It's my understanding that Linux always uses the FDT internally. If it finds that it's being booted from a full Open Firmware implementation with device tree, it will first parse the device tree and convert it to an FDT. That way, Linux doesn't have to do any client interface calls once it's past the device tree parsing stage. I think that's good, see below. > Are you booting /boot/loader? Or directly booting the kernel from > uboot? > > In message: <106CEF8A-EA8A-48BC-BAF7-B9C112F58A92@mac.com> > Marcel Moolenaar writes: > : No, it doesn't. > > Is there any reason it doesn't? Having looked at the dtc stuff, it > seems to have all the requirements of device enumeration that we > talked about at BSDcan... > Don't know what happened at BSDcan, but... Since the FDT encodes pretty much all information the full device tree does, but doesn't provide the methods, I don't see a problem with device enumeration in FreeBSD. I.e. all devices that appear in the full device tree would also appear in the FDT, but you can't use their methods. So while this may be a problem for the FreeBSD loader, it certainly shouldn't be for the kernel. I personally think that the Linux design makes a lot of sense and I think that you should hide the real Open Firmware device tree behind the flattened device tree (FDT). From my point of view, doing so will prepare and strengthen FreeBSD on the embedded PowerPC front and also, as Nathan noted, simplify ports to other PowerPC-based platforms. Regards, Philip From owner-freebsd-ppc@FreeBSD.ORG Thu Jul 24 13:00: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 EFE4C106567D for ; Thu, 24 Jul 2008 13:00:08 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id BA7CB8FC12 for ; Thu, 24 Jul 2008 13:00:08 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id m6OCk8k0019020; Thu, 24 Jul 2008 06:46:09 -0600 Received: from [77.113.186.154] (apn-77-113-186-154.gprs.plus.pl [77.113.186.154]) by mail.semihalf.com (Postfix) with ESMTP id 2C21F142DD; Thu, 24 Jul 2008 14:50:28 +0200 (CEST) Message-ID: <4888798B.2050903@semihalf.com> Date: Thu, 24 Jul 2008 14:46:03 +0200 From: Rafal Jaworowski Organization: Semihalf MIME-Version: 1.0 To: "M. Warner Losh" References: <20080723.164741.163264646.imp@bsdimp.com> <20080723.213817.1661913390.imp@bsdimp.com> In-Reply-To: <20080723.213817.1661913390.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: powerpc@freebsd.org Subject: Re: Device trees 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: Thu, 24 Jul 2008 13:00:09 -0000 M. Warner Losh wrote: > In message: <106CEF8A-EA8A-48BC-BAF7-B9C112F58A92@mac.com> > Marcel Moolenaar writes: > : No, it doesn't. > > Is there any reason it doesn't? Having looked at the dtc stuff, it > seems to have all the requirements of device enumeration that we > talked about at BSDcan... At the time FreeBSD/MPC85xx was developed the flattened device tree concept was only getting momentum on Linux, so it was very much fluctuating. But the main reason was it's quite a bit of work to put everything together and it wasn't a critical item for the port. FDT is more or less what we discussed in May, and I think it was mentioned as one of the possible ways to go. Please note however the FDT infrastructure is quite heavy and getting it right needs to account for the non-code dependencies and elements too: - adopting external (GPL) tools, or providing our own - working out DTS layouts, OF bindings definitions and conventions (and their further maintenance) so that they can be used on architectures other that PowerPC (as having a modern device resources representation accross different architectures in FreeBSD was very important aspect of our discussions) Rafal From owner-freebsd-ppc@FreeBSD.ORG Thu Jul 24 16:45:08 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 08718106564A for ; Thu, 24 Jul 2008 16:45:08 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (ice.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id C8E738FC2F for ; Thu, 24 Jul 2008 16:45:07 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id EBED786DC0; Thu, 24 Jul 2008 11:25:50 -0500 (CDT) Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (ice.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 17819-06; Thu, 24 Jul 2008 11:25:50 -0500 (CDT) Received: from wanderer.tachypleus.net (i3-dhcp-172-16-223-188.icecube.wisc.edu [172.16.223.188]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 5274586D63; Thu, 24 Jul 2008 11:25:50 -0500 (CDT) Message-ID: <4888AD0A.4020001@freebsd.org> Date: Thu, 24 Jul 2008 11:25:46 -0500 From: Nathan Whitehorn User-Agent: Thunderbird 2.0.0.14 (X11/20080609) MIME-Version: 1.0 To: Benno Rice References: <20080723.164741.163264646.imp@bsdimp.com> <4887CC78.8040707@freebsd.org> <3008B18B-DC6F-4E33-939E-169484B6EEFE@jeamland.net> In-Reply-To: <3008B18B-DC6F-4E33-939E-169484B6EEFE@jeamland.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ice.icecube.wisc.edu Cc: powerpc@freebsd.org Subject: Re: Device trees 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: Thu, 24 Jul 2008 16:45:08 -0000 Benno Rice wrote: > > On 24/07/2008, at 10:27 AM, Nathan Whitehorn wrote: > >> Benno Rice wrote: >>> On 24/07/2008, at 8:47 AM, M. Warner Losh wrote: >>>> Does FreeBSD/powerpc on the MPC85xx machine use the fake device open >>>> firmware tree stuff from uboot (aka dts in the linux kernel sources)? >>> I've got a machine (Mikrotik RouterBOARD 333, uses MPC8321) that has >>> this. I've been working with one of the dtc developers to port >>> their code over to FreeBSD. I'm trying to hide it underneath our >>> existing OpenFirmware stuff. I've got a few more bugs to get out of >>> it but I can probably send you some patches early next week... >> >> >> Can you use this to abstract real OF too? We don't support real mode >> Open Firmware and IBM is shipping new systems with a very basic >> firmware that runs only in real mode (this includes the Bimini 970MP >> dev board, apparently, as well as their Cell blades). The easiest >> course seems to be just to pretend it's a flattened device tree if we >> can support that. > > My plan (assuming some measure of available time) was to actually get > loader to handle turning OpenFirmware device data into an FDT which > could be handed to FreeBSD as part of the loader metadata. On > platforms like the Mikrotik where all we get is an FDT, if we have > loader it can just pass it through or if we're not using loader we can > have a hook that shunts the data into the right place. > > Does that sound workable? > It would be nice not to require loader at all and support direct loading of the kernel. We already support this, and it is handy on systems with low-featured firmware that doesn't allow loader to easily load more files. I think the best way forward is to support some kind of pluggable Open Firmware implementation. On systems with nonexistent/bad firmware, we can supply a fake interpreter with a very limited vocabulary to OF_init (I'm assuming this is what you are doing with the Microtik board) that either uses a passed-in FDT or generates one from the real-mode firmware early in the boot process. But I don't think we should turn everything into an FDT: we gain some real advantages on systems with decent firmware implementations from being able to use them, like RTC and power management support. It would be silly to throw that away and I believe the existing architecture is flexible enough to support runtime switching between implementations. Also, while I'm sending email to everyone, I'll give my apparently daily update on G5 support. We're self-hosting! This means that my patches (http://people.freebsd.org/~nwhitehorn/g5.diff, as before) fix building PPC world and that the system is now stable enough to build that world itself. The NFS bug has now been fixed in HEAD (thanks to dfr). You still can't build a kernel with INVARIANTS. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Thu Jul 24 23:20:56 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 CEEF110656D1 for ; Thu, 24 Jul 2008 23:20:56 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (rafe.jeamland.net [203.20.99.33]) by mx1.freebsd.org (Postfix) with ESMTP id 903818FC08 for ; Thu, 24 Jul 2008 23:20:56 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (localhost [127.0.0.1]) by mail.jeamland.net (Postfix) with ESMTP id C3C351CC48; Fri, 25 Jul 2008 09:20:49 +1000 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on rafe.jeamland.net X-Spam-Level: X-Spam-Status: No, score=-6.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from urtzweil.jeamland.net (ppp154-45.static.internode.on.net [150.101.154.45]) by mail.jeamland.net (Postfix) with ESMTPSA id 553991CC07; Fri, 25 Jul 2008 09:20:49 +1000 (EST) Message-Id: <6618A7BB-08EA-4963-94B8-560F48DE29A3@jeamland.net> From: Benno Rice To: Rafal Jaworowski In-Reply-To: <4888798B.2050903@semihalf.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Fri, 25 Jul 2008 09:20:30 +1000 References: <20080723.164741.163264646.imp@bsdimp.com> <20080723.213817.1661913390.imp@bsdimp.com> <4888798B.2050903@semihalf.com> X-Mailer: Apple Mail (2.926) X-Virus-Scanned: ClamAV using ClamSMTP at rafe.jeamland.net Cc: powerpc@freebsd.org, "M. Warner Losh" Subject: Re: Device trees 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: Thu, 24 Jul 2008 23:20:56 -0000 On 24/07/2008, at 10:46 PM, Rafal Jaworowski wrote: > M. Warner Losh wrote: >> In message: <106CEF8A-EA8A-48BC-BAF7-B9C112F58A92@mac.com> >> Marcel Moolenaar writes: >> : No, it doesn't. >> >> Is there any reason it doesn't? Having looked at the dtc stuff, it >> seems to have all the requirements of device enumeration that we >> talked about at BSDcan... > > At the time FreeBSD/MPC85xx was developed the flattened device tree > concept > was only getting momentum on Linux, so it was very much fluctuating. > But the > main reason was it's quite a bit of work to put everything together > and it > wasn't a critical item for the port. > > FDT is more or less what we discussed in May, and I think it was > mentioned as > one of the possible ways to go. Please note however the FDT > infrastructure is > quite heavy and getting it right needs to account for the non-code > dependencies and elements too: > > - adopting external (GPL) tools, or providing our own The libfdt part of dtc is dual licensed. One of the developers has also given me a lot of assistance in making it work in our kernel code. (I'm using it in some code I've got here) The userland parts are GPL but we can reimplement those if we really want. > - working out DTS layouts, OF bindings definitions and conventions > (and their > further maintenance) so that they can be used on architectures other > that > PowerPC (as having a modern device resources representation accross > different > architectures in FreeBSD was very important aspect of our discussions) We could open up a dialogue with the dtc developers if you think that'd help. My contact seemed very keen to have the code be used in FreeBSD. -- Benno Rice benno@jeamland.net From owner-freebsd-ppc@FreeBSD.ORG Fri Jul 25 06:26:48 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 C52051065677 for ; Fri, 25 Jul 2008 06:26:48 +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 7952B8FC12 for ; Fri, 25 Jul 2008 06:26:48 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m6P6Pc7Z060323; Fri, 25 Jul 2008 00:25:38 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 25 Jul 2008 00:25:50 -0600 (MDT) Message-Id: <20080725.002550.-1558769372.imp@bsdimp.com> To: pczanik@fang.fa.gau.hu From: "M. Warner Losh" In-Reply-To: <48896F25.6060204@fang.fa.gau.hu> References: <4888798B.2050903@semihalf.com> <6618A7BB-08EA-4963-94B8-560F48DE29A3@jeamland.net> <48896F25.6060204@fang.fa.gau.hu> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: powerpc@freebsd.org Subject: Re: Device trees 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: Fri, 25 Jul 2008 06:26:48 -0000 In message: <48896F25.6060204@fang.fa.gau.hu> Peter Czanik writes: : Helo, : = : Benno Rice =EDrta: : >> - working out DTS layouts, OF bindings definitions and conventions= = : >> (and their : >> further maintenance) so that they can be used on architectures oth= er = : >> that : >> PowerPC (as having a modern device resources representation accros= s = : >> different : >> architectures in FreeBSD was very important aspect of our discussi= ons) : > : > We could open up a dialogue with the dtc developers if you think = : > that'd help. My contact seemed very keen to have the code be used = in = : > FreeBSD. : The Linux guys just announced on the linuxppc-dev mailing list, that = a = : new device-tree specific mailing list was created. Please see = : http://ozlabs.org/pipermail/linuxppc-dev/2008-July/060558.html Thanks! I think this would be totally cool. Having a standardized resource description language between Linux and FreeBSD would make it faster/easier to import board support from Linux into FreeBSD :-) Warner From owner-freebsd-ppc@FreeBSD.ORG Fri Jul 25 06:28:13 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 6A17A106566C for ; Fri, 25 Jul 2008 06:28:13 +0000 (UTC) (envelope-from pczanik@fang.fa.gau.hu) Received: from b.relay.invitel.net (b.relay.invitel.net [62.77.203.4]) by mx1.freebsd.org (Postfix) with ESMTP id 18D288FC0A for ; Fri, 25 Jul 2008 06:28:13 +0000 (UTC) (envelope-from pczanik@fang.fa.gau.hu) Received: from mail.invitel.hu (mail.invitel.hu [213.163.59.4]) by b.relay.invitel.net (Invitel Core SMTP Transmitter) with ESMTP id 5900D31A430 for ; Fri, 25 Jul 2008 08:18:52 +0200 (CEST) Received: from [192.168.2.179] ([87.97.5.235]) by mail.invitel.hu (Invitel Messaging Server) with ESMTPA id <0K4J00H14TJFRE10@invitel.hu> for powerpc@freebsd.org; Fri, 25 Jul 2008 08:18:52 +0200 (CEST) Date: Fri, 25 Jul 2008 08:17:41 +0200 From: Peter Czanik In-reply-to: <4888798B.2050903@semihalf.com> To: Rafal Jaworowski Message-id: <48897005.6030400@fang.fa.gau.hu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 8BIT References: <20080723.164741.163264646.imp@bsdimp.com> <20080723.213817.1661913390.imp@bsdimp.com> <4888798B.2050903@semihalf.com> User-Agent: Thunderbird 2.0.0.12 (X11/20071114) Cc: powerpc@freebsd.org, "M. Warner Losh" Subject: Re: Device trees 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: Fri, 25 Jul 2008 06:28:13 -0000 Hello, Rafal Jaworowski írta: > At the time FreeBSD/MPC85xx was developed Which MPC85xx board is supported? And to what level? Bye, CzP From owner-freebsd-ppc@FreeBSD.ORG Fri Jul 25 06:39:40 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 D39C61065671 for ; Fri, 25 Jul 2008 06:39:40 +0000 (UTC) (envelope-from pczanik@fang.fa.gau.hu) Received: from a.relay.invitel.net (a.relay.invitel.net [62.77.203.3]) by mx1.freebsd.org (Postfix) with ESMTP id 80B198FC14 for ; Fri, 25 Jul 2008 06:39:40 +0000 (UTC) (envelope-from pczanik@fang.fa.gau.hu) Received: from mail.invitel.hu (mail.invitel.hu [213.163.59.4]) by a.relay.invitel.net (Invitel Core SMTP Transmitter) with ESMTP id 69D8F11A063 for ; Fri, 25 Jul 2008 08:15:08 +0200 (CEST) Received: from [192.168.2.179] ([87.97.5.235]) by mail.invitel.hu (Invitel Messaging Server) with ESMTPA id <0K4J00H6MTD7RA00@invitel.hu> for powerpc@freebsd.org; Fri, 25 Jul 2008 08:15:08 +0200 (CEST) Date: Fri, 25 Jul 2008 08:13:57 +0200 From: Peter Czanik In-reply-to: <6618A7BB-08EA-4963-94B8-560F48DE29A3@jeamland.net> To: Benno Rice Message-id: <48896F25.6060204@fang.fa.gau.hu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 8BIT References: <20080723.164741.163264646.imp@bsdimp.com> <20080723.213817.1661913390.imp@bsdimp.com> <4888798B.2050903@semihalf.com> <6618A7BB-08EA-4963-94B8-560F48DE29A3@jeamland.net> User-Agent: Thunderbird 2.0.0.12 (X11/20071114) Cc: powerpc@freebsd.org, "M. Warner Losh" Subject: Re: Device trees 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: Fri, 25 Jul 2008 06:39:40 -0000 Helo, Benno Rice írta: >> - working out DTS layouts, OF bindings definitions and conventions >> (and their >> further maintenance) so that they can be used on architectures other >> that >> PowerPC (as having a modern device resources representation accross >> different >> architectures in FreeBSD was very important aspect of our discussions) > > We could open up a dialogue with the dtc developers if you think > that'd help. My contact seemed very keen to have the code be used in > FreeBSD. The Linux guys just announced on the linuxppc-dev mailing list, that a new device-tree specific mailing list was created. Please see http://ozlabs.org/pipermail/linuxppc-dev/2008-July/060558.html Bye, CzP From owner-freebsd-ppc@FreeBSD.ORG Fri Jul 25 07:59:57 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 EE4411065670; Fri, 25 Jul 2008 07:59:57 +0000 (UTC) (envelope-from pczanik@fang.fa.gau.hu) Received: from a.relay.invitel.net (a.relay.invitel.net [62.77.203.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9F5DD8FC1F; Fri, 25 Jul 2008 07:59:57 +0000 (UTC) (envelope-from pczanik@fang.fa.gau.hu) Received: from mail.invitel.hu (mail.invitel.hu [213.163.59.4]) by a.relay.invitel.net (Invitel Core SMTP Transmitter) with ESMTP id D856D11A56C; Fri, 25 Jul 2008 09:43:48 +0200 (CEST) Received: from [192.168.2.179] ([87.97.5.235]) by mail.invitel.hu (Invitel Messaging Server) with ESMTPA id <0K4J00HAIXH0UB10@invitel.hu>; Fri, 25 Jul 2008 09:43:48 +0200 (CEST) Date: Fri, 25 Jul 2008 09:42:37 +0200 From: Peter Czanik In-reply-to: <481781FC.7030108@semihalf.com> To: vi0@freebsd.org Message-id: <488983ED.4060801@fang.fa.gau.hu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 8BIT References: <481781FC.7030108@semihalf.com> User-Agent: Thunderbird 2.0.0.12 (X11/20071114) Cc: ppc@freebsd.org Subject: Re: Efika port: Re to Sam Xia's chip question 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: Fri, 25 Jul 2008 07:59:58 -0000 Hello, Przemek Witaszczyk írta: > Also, you can check my GSoC FreeBSD wiki from time to time: > > http://wiki.freebsd.org/PrzemekWitaszczyk > Any news? The wiki was not updated for more than a month... Bye, CzP (who would like to run FreeBSD on his EFIKA server instead of Linux...) From owner-freebsd-ppc@FreeBSD.ORG Fri Jul 25 08:31:14 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 9D51C106566C for ; Fri, 25 Jul 2008 08:31:14 +0000 (UTC) (envelope-from neko@genesi-usa.com) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.230]) by mx1.freebsd.org (Postfix) with ESMTP id 1FD928FC0A for ; Fri, 25 Jul 2008 08:31:13 +0000 (UTC) (envelope-from neko@genesi-usa.com) Received: by hu-out-0506.google.com with SMTP id 34so288939hue.8 for ; Fri, 25 Jul 2008 01:31:12 -0700 (PDT) Received: by 10.210.104.20 with SMTP id b20mr1573138ebc.149.1216973740252; Fri, 25 Jul 2008 01:15:40 -0700 (PDT) Received: from ?192.168.1.98? ( [92.237.58.95]) by mx.google.com with ESMTPS id u14sm13776315gvf.6.2008.07.25.01.15.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 25 Jul 2008 01:15:39 -0700 (PDT) Message-ID: <48898BA7.8090508@genesi-usa.com> Date: Fri, 25 Jul 2008 09:15:35 +0100 From: Matt Sealey User-Agent: Thunderbird 2.0.0.17pre (Windows/20080724) MIME-Version: 1.0 To: Philip Schulz References: <20080723.164741.163264646.imp@bsdimp.com> <20080723.213817.1661913390.imp@bsdimp.com> <1c66db910807240451n5c181956rfe82b2ba4e80c5ae@mail.gmail.com> In-Reply-To: <1c66db910807240451n5c181956rfe82b2ba4e80c5ae@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: Matt Sealey Cc: powerpc@freebsd.org, "M. Warner Losh" Subject: Re: Device trees 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: Fri, 25 Jul 2008 08:31:14 -0000 Philip Schulz wrote: > > Unless I misunderstood what you guys said, I think it should be done > the other way around. > > It's my understanding that Linux always uses the FDT internally. If it > finds that it's being booted from a full Open Firmware implementation > with device tree, it will first parse the device tree and convert it > to an FDT. That way, Linux doesn't have to do any client interface > calls once it's past the device tree parsing stage. I think that's > good, see below. It would be more correct to say that both device tree implementations are parsed and pushed into a single internal device tree representation. The only difference is OpenFirmware implementations had this done anyway (since quiesce is called and the OF is killed, they need a copy of the DT) and in a flattened device tree, a text representation is compiled and this binary blob is attached to the kernel either manually or by boot firmware. I would definitely suggest a similar route; using the CIF to access the device drivers hardly ever works properly, and it's slow (horrible calling convention) and cannot support interrupts (everything must be polled, through that horrible calling convention). There is little point keeping anything but RTAS around (RTAS is important :) -- Matt Sealey Genesi, Manager, Developer Relations From owner-freebsd-ppc@FreeBSD.ORG Fri Jul 25 14:33:57 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 B2BD4106566B for ; Fri, 25 Jul 2008 14:33:57 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 5458C8FC1F for ; Fri, 25 Jul 2008 14:33:55 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id m6PEWoFn009054; Fri, 25 Jul 2008 08:32:50 -0600 Message-ID: <4889E411.1060205@semihalf.com> Date: Fri, 25 Jul 2008 16:32:49 +0200 From: Rafal Jaworowski Organization: Semihalf MIME-Version: 1.0 To: Peter Czanik References: <20080723.164741.163264646.imp@bsdimp.com> <20080723.213817.1661913390.imp@bsdimp.com> <4888798B.2050903@semihalf.com> <48897005.6030400@fang.fa.gau.hu> In-Reply-To: <48897005.6030400@fang.fa.gau.hu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: powerpc@freebsd.org, "M. Warner Losh" Subject: Re: Device trees 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: Fri, 25 Jul 2008 14:33:57 -0000 Peter Czanik wrote: > Rafal Jaworowski írta: >> At the time FreeBSD/MPC85xx was developed > Which MPC85xx board is supported? And to what level? Freescale dev systems (CDS, DS), different chip variations (both e500 core v1 and v2 work). A better picture of supported functionality would give the sys/powerpc/conf/MPC85XX kernel config file (CURRENT); in short, almost all of the SOC functionality is supported, but some peripherals from Arcadia motherboard still require work, which means: only NFS-mounted root fs at the moment. Rafal