From owner-freebsd-ppc@FreeBSD.ORG Sun Aug 23 17:35:48 2009 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 706821065690; Sun, 23 Aug 2009 17:35:48 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout023.mac.com (asmtpout023.mac.com [17.148.16.98]) by mx1.freebsd.org (Postfix) with ESMTP id 5992A8FC24; Sun, 23 Aug 2009 17:35:48 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii; format=flowed Received: from macbook-pro.lan.xcllnt.net (mail.xcllnt.net [75.101.29.67]) by asmtp023.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KOU00LQHBJNR650@asmtp023.mac.com>; Sun, 23 Aug 2009 10:35:48 -0700 (PDT) From: Marcel Moolenaar In-reply-to: <84BEFCFB-4E8E-4483-95D4-0D570663E3EF@mac.com> Date: Sun, 23 Aug 2009 10:35:47 -0700 Message-id: References: <84BEFCFB-4E8E-4483-95D4-0D570663E3EF@mac.com> To: FreeBSD-IA64 Mailing List , FreeBSD PowerPC ML X-Mailer: Apple Mail (2.1074) Cc: Subject: 8.0-BETA3 *is* available [was: No 8.0-BETA3 for ia64 & 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, 23 Aug 2009 17:35:48 -0000 On Jul 31, 2009, at 11:10 AM, Marcel Moolenaar wrote: > I'm on vacation for the next 10 days and that's right at the time > of BETA3 unfortunately. So there will be no BETA3 for ia64 and > powerpc (unless someone steps up). 8.0-BETA3 got delayed until after my vacation, so I made them. Look for them on your favorite mirror! FYI, -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Mon Aug 24 11:07:02 2009 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 2C0C11065690 for ; Mon, 24 Aug 2009 11:07:02 +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 1ABF38FC41 for ; Mon, 24 Aug 2009 11:07:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7OB71CZ048693 for ; Mon, 24 Aug 2009 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7OB71wK048689 for freebsd-ppc@FreeBSD.org; Mon, 24 Aug 2009 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 24 Aug 2009 11:07:01 GMT Message-Id: <200908241107.n7OB71wK048689@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, 24 Aug 2009 11:07:02 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o power/135576 ppc gdb cannot debug threaded programs on ppc o power/133503 ppc [sound] Sound stutter after switching ttys o power/133383 ppc firefox thr_kill crash with heavy vm load o power/133382 ppc [install] Installer gets signal 11 o power/131548 ppc ofw_syscons no longer supports 32-bit framebuffer a power/121407 ppc [panic] Won't boot up; strange error message. o power/111296 ppc [kernel] [patch] [request] Support IMISS, DLMISS an DS o power/93203 ppc FreeBSD PPC Can't Write to Partitions. 8 problems total. From owner-freebsd-ppc@FreeBSD.ORG Mon Aug 24 16:38:22 2009 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 76925106568C for ; Mon, 24 Aug 2009 16:38:22 +0000 (UTC) (envelope-from axel@axel.truedestiny.net) Received: from axel.truedestiny.net (tunnel3416.ipv6.xs4all.nl [IPv6:2001:888:10:d58::2]) by mx1.freebsd.org (Postfix) with ESMTP id 399B68FC13 for ; Mon, 24 Aug 2009 16:38:22 +0000 (UTC) Received: from [10.0.0.10] (ceridwen.thuis.net [10.0.0.10]) by axel.truedestiny.net (Postfix) with ESMTP id C43CE5413 for ; Mon, 24 Aug 2009 18:38:20 +0200 (CEST) From: Axel Scheepers To: freebsd-ppc@freebsd.org Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-IQWkordQm7woSXLS92Vj" Date: Mon, 24 Aug 2009 18:38:20 +0200 Message-Id: <1251131900.42823.38.camel@ceridwen.thuis.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Subject: Turn off backlight on iBook X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: axel@axel.truedestiny.net List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2009 16:38:22 -0000 --=-IQWkordQm7woSXLS92Vj Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi List, Sorry for asking but I can't seem to find where and how I can turn off the backlight for my iBook, is this possible with FreeBSD? Thanks, Kind regards, Axel Scheepers --=-IQWkordQm7woSXLS92Vj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkqSwfwACgkQvOFCXiGjP+BqPACdFJRm9qtxzIG9fQiapL/YIy3F LuMAn3x2mgfUusAtarHXViUVWI6Z83tx =PxT2 -----END PGP SIGNATURE----- --=-IQWkordQm7woSXLS92Vj-- From owner-freebsd-ppc@FreeBSD.ORG Wed Aug 26 10:48:08 2009 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 6845A106568E for ; Wed, 26 Aug 2009 10:48:08 +0000 (UTC) (envelope-from nse@delfi-konsult.com) Received: from munin.delfi-konsult.com (smtp.hoerhavegaard.dk [87.58.191.122]) by mx1.freebsd.org (Postfix) with ESMTP id 1E6A08FC19 for ; Wed, 26 Aug 2009 10:48:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by munin.delfi-konsult.com (iRedMail) with ESMTP id 30C199F2E for ; Wed, 26 Aug 2009 12:39:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at delfi-konsult.com Received: from munin.delfi-konsult.com ([127.0.0.1]) by localhost (munin.delfi-konsult.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rFcZSDzztqVP for ; Wed, 26 Aug 2009 12:39:45 +0200 (CEST) Received: from jfin-lx.mbholding.intra (unknown [213.61.87.197]) by munin.delfi-konsult.com (iRedMail) with ESMTPSA id 521039EA8 for ; Wed, 26 Aug 2009 12:39:45 +0200 (CEST) Message-Id: <813C88C5-70D6-4B1B-AD4B-7EE55AD68F52@delfi-konsult.com> From: "Niels S. Eliasen" To: freebsd-ppc@freebsd.org X-Custom-Header: Yo! this is my X-Face Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Wed, 26 Aug 2009 12:39:39 +0200 X-Mailer: Apple Mail (2.936) Subject: gjournal on gmirror..... 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, 26 Aug 2009 10:48:08 -0000 hi guys is there a cookbook somewhere for getting gjournal running a gmirror setup ?? Having burnt myself pretty badly on such a setup... I would like to find something... or someone ....who has done this previously... in order not to burn myself in the future ;-) While we are at the worst-case scenario anyhow..... ... How do I build a rescue cd .?? as there is no rescue-disk for macppc .... kind regards nse "Ach, crivens, what a wee snotter....." Quote from "The Wee Free Men" by Terry Pratchett From owner-freebsd-ppc@FreeBSD.ORG Fri Aug 28 19:27:30 2009 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 2B2CC106566C for ; Fri, 28 Aug 2009 19:27:30 +0000 (UTC) (envelope-from Daan@vehosting.nl) Received: from VM01.VEHosting.nl (unknown [IPv6:2001:470:1f14:32d::1:140]) by mx1.freebsd.org (Postfix) with ESMTP id E23968FC1E for ; Fri, 28 Aug 2009 19:27:29 +0000 (UTC) Received: from [192.168.45.11] (129-251.ftth.onsbrabantnet.nl [88.159.251.129] (may be forged)) (authenticated bits=0) by VM01.VEHosting.nl (8.14.3/8.13.8) with ESMTP id n7SJRTJW019876; Fri, 28 Aug 2009 21:27:29 +0200 (CEST) (envelope-from Daan@vehosting.nl) From: Daan Vreeken Organization: VEHosting.nl To: freebsd-ppc@freebsd.org Date: Fri, 28 Aug 2009 21:27:28 +0200 User-Agent: KMail/1.9.10 References: <35914876-0CFF-427B-8F80-B1BEEA5A7A18@semihalf.com> <20090523172128.2e0a3f2b@fubar.geek.nz> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200908282127.28482.Daan@vehosting.nl> x-ve-auth-version: mi-1.0.3 2008-05-30 - Copyright (c) 2008 - Daan Vreeken - VEHosting x-ve-auth: authenticated as 'pa4dan' on VM01.VEHosting.nl Cc: Michal Mazur , Andrew Turner , Hans Petter Selasky Subject: Re: FreeBSD/powerpc on MPC5200 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, 28 Aug 2009 19:27:30 -0000 Hi Rafal (and the list), On Sunday 24 May 2009 21:15:44 Rafal Jaworowski wrote: > On 2009-05-23, at 07:21, Andrew Turner wrote: > > On Fri, 22 May 2009 12:21:01 +0200 > > > > Rafal Jaworowski wrote: > >> On 2009-05-11, at 15:15, Peter Czanik wrote: > >>> Rafal Jaworowski =EDrta: > >>>> I'd like to let people know that FreeBSD/powerpc is now able to > >>>> boot into single user on the Freescale MPC5200 system-on-chip > >>>> (EFIKA board). The environment is very simplistic: RAM disk based > >>>> root fs, as > >>>> there's no peripherals drivers besides serial console and the > >>>> built- in > >>>> PIC. See this log: http://people.freebsd.org/~raj/logs/efika.log > >>> > >>> Wow, great news! Two questions: > >>> - are there any plans to support additional devices? > >> > >> We don't have immediate plans for other devices drivers, but this > >> basic support will be merged into SVN, and it would be greatly > >> welcome to see people help with remaining items. > > > > Is there a patch available? I would like to get back to working on the > > EFIKA. > > Preliminary diff against 2009.04.06 HEAD is here: > http://people.freebsd.org/~raj/patches/powerpc/efika.diff > > Comments or questions welcome. Some bits need to be streamlined so > that all AIM/OF variations work together, and the code has to be > rebased against up-to-date HEAD. I have downloaded your diff and succesfully patched it to -HEAD (checked ou= t=20 on 2009-08-25). Right now I'm looking into getting the USB controller working. (That would= =20 allow me to use network & disks all in one go.) I have written the OHCI attachment code (inspired by a mix of Warner's atme= l=20 version, mpc5xxx/ic.c and uart_dev_psc.c) and gotten it to succesfully atta= ch=20 to the OHCI controller when booting the Efika board. USB is not (yet) working correctly. Near the end of ohci_init(), the board= =20 seems to halt completely for about 30 seconds and after that, the OHCI=20 controller sets the 'unrecoverable error' flag. A complete dmesg dump can be found here : http://vehosting.nl/pub_diffs/efika-daan-2009-08-28-ohci_attaching_but_fail= ing.txt The kernel that produced this can be downloaded here : http://vehosting.nl/pub_diffs/efika-daan-2009-08-28-ohci_attaching_but_fail= ing.kernel The files I added/changed to get the attachment of the OHCI controller=20 to 'work' can be found here : http://vehosting.nl/pub_diffs/efika-daan-2009-08-28_changed_files.tar.gz (Warning : Ugly! and full of printf's for now!) (I could have missed one, let me know if you can't get it to work.) The above dmesg shows a number of printf's I've added to ohci.c . My mutila= ted=20 version can be found here : http://vehosting.nl/pub_diffs/efika-daan-2009-08-28_ohci.c As you can see, I printf() the interrupt status register at various points= =20 during ohci_init(). The 'unrecoverable error' flag gets set just a couple o= f=20 miliseconds after the following command has been executed : /* And finally start it! */ OWRITE4(sc, OHCI_CONTROL, ctl); After that OWRITE4(), the board sits for about 30 seconds and then continue= s.=20 I'm just guessing what's going on here, but could it be that (one of?) the= =20 endpoint lists isn't properly setup and that the OHCI controller keeps the= =20 CPU from accessing memory while it's racing through memory following=20 corrupt/invalid 'next' pointers? Regards, =2D-=20 Daan Vreeken VEHosting http://VEHosting.nl tel: +31-(0)40-7113050 / +31-(0)6-46210825 KvK nr: 17174380 From owner-freebsd-ppc@FreeBSD.ORG Fri Aug 28 20:46:16 2009 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 2CB4B106566C for ; Fri, 28 Aug 2009 20:46:16 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.tele2.se [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 821D28FC08 for ; Fri, 28 Aug 2009 20:46:15 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=oCJs8q-oAAAA:8 a=6I5d2MoRAAAA:8 a=X9rCK6l3AAAA:8 a=OtmVtXIxIRdPCXlza8QA:9 a=46GkfkVBVSYD_RyVJUN6nbbyGZUA:4 a=jj60i5uE5qAA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe13.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 913059384; Fri, 28 Aug 2009 21:46:12 +0200 From: Hans Petter Selasky To: Daan Vreeken Date: Fri, 28 Aug 2009 21:46:27 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA2; KDE/4.2.4; i386; ; ) References: <35914876-0CFF-427B-8F80-B1BEEA5A7A18@semihalf.com> <200908282127.28482.Daan@vehosting.nl> In-Reply-To: <200908282127.28482.Daan@vehosting.nl> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpO< =?iso-8859-1?q?Q0yAl=7E=3F=60=27F=3FjDVb=5DE6TQ7=27=23h-VlLs=7Dk/=0A=09?=(yxg(p!IL.`#ng"%`BMrham7%UK,}VH\wUOm=^>wEEQ+KWt[{J#x6ow~JO:,zwp.(t; @ =?iso-8859-1?q?Aq=0A=09=3A4=3A=26nFCgDb8=5B3oIeTb=5E=27?=",; u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200908282146.28715.hselasky@c2i.net> Cc: Michal Mazur , Andrew Turner , freebsd-ppc@freebsd.org Subject: Re: FreeBSD/powerpc on MPC5200 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, 28 Aug 2009 20:46:16 -0000 On Friday 28 August 2009 21:27:28 Daan Vreeken wrote: > Hi Rafal (and the list), > > On Sunday 24 May 2009 21:15:44 Rafal Jaworowski wrote: > > On 2009-05-23, at 07:21, Andrew Turner wrote: > > > On Fri, 22 May 2009 12:21:01 +0200 > > > > > > Rafal Jaworowski wrote: > > >> On 2009-05-11, at 15:15, Peter Czanik wrote: > > >>> Rafal Jaworowski =EDrta: > > >>>> I'd like to let people know that FreeBSD/powerpc is now able to > > >>>> boot into single user on the Freescale MPC5200 system-on-chip > > >>>> (EFIKA board). The environment is very simplistic: RAM disk based > > >>>> root fs, as > > >>>> there's no peripherals drivers besides serial console and the > > >>>> built- in > > >>>> PIC. See this log: http://people.freebsd.org/~raj/logs/efika.log > > >>> > > >>> Wow, great news! Two questions: > > >>> - are there any plans to support additional devices? > > >> > > >> We don't have immediate plans for other devices drivers, but this > > >> basic support will be merged into SVN, and it would be greatly > > >> welcome to see people help with remaining items. > > > > > > Is there a patch available? I would like to get back to working on the > > > EFIKA. > > > > Preliminary diff against 2009.04.06 HEAD is here: > > http://people.freebsd.org/~raj/patches/powerpc/efika.diff > > > > Comments or questions welcome. Some bits need to be streamlined so > > that all AIM/OF variations work together, and the code has to be > > rebased against up-to-date HEAD. > > I have downloaded your diff and succesfully patched it to -HEAD (checked > out on 2009-08-25). > Right now I'm looking into getting the USB controller working. (That would > allow me to use network & disks all in one go.) > > I have written the OHCI attachment code (inspired by a mix of Warner's > atmel version, mpc5xxx/ic.c and uart_dev_psc.c) and gotten it to > succesfully attach to the OHCI controller when booting the Efika board. > USB is not (yet) working correctly. Near the end of ohci_init(), the board > seems to halt completely for about 30 seconds and after that, the OHCI > controller sets the 'unrecoverable error' flag. > > A complete dmesg dump can be found here : > http://vehosting.nl/pub_diffs/efika-daan-2009-08-28-ohci_attaching_but_fa= il >ing.txt The kernel that produced this can be downloaded here : > http://vehosting.nl/pub_diffs/efika-daan-2009-08-28-ohci_attaching_but_fa= il >ing.kernel > > The files I added/changed to get the attachment of the OHCI controller > to 'work' can be found here : > http://vehosting.nl/pub_diffs/efika-daan-2009-08-28_changed_files.tar.gz > (Warning : Ugly! and full of printf's for now!) > (I could have missed one, let me know if you can't get it to work.) > > The above dmesg shows a number of printf's I've added to ohci.c . My > mutilated version can be found here : > http://vehosting.nl/pub_diffs/efika-daan-2009-08-28_ohci.c > > As you can see, I printf() the interrupt status register at various points > during ohci_init(). The 'unrecoverable error' flag gets set just a couple > of miliseconds after the following command has been executed : > > /* And finally start it! */ > OWRITE4(sc, OHCI_CONTROL, ctl); > > After that OWRITE4(), the board sits for about 30 seconds and then > continues. I'm just guessing what's going on here, but could it be that > (one of?) the endpoint lists isn't properly setup and that the OHCI > controller keeps the CPU from accessing memory while it's racing through > memory following corrupt/invalid 'next' pointers? Maybe busdma is not computing correct physical addresses for the kernel=20 virtual memory loaded into DMA. =2D-HPS From owner-freebsd-ppc@FreeBSD.ORG Sat Aug 29 00:25:59 2009 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 AED281065673 for ; Sat, 29 Aug 2009 00:25:59 +0000 (UTC) (envelope-from Daan@vehosting.nl) Received: from VM01.VEHosting.nl (unknown [IPv6:2001:470:1f14:32d::1:140]) by mx1.freebsd.org (Postfix) with ESMTP id 49C638FC1B for ; Sat, 29 Aug 2009 00:25:59 +0000 (UTC) Received: from [192.168.45.11] (129-251.ftth.onsbrabantnet.nl [88.159.251.129] (may be forged)) (authenticated bits=0) by VM01.VEHosting.nl (8.14.3/8.13.8) with ESMTP id n7T0Q0Z3026348; Sat, 29 Aug 2009 02:26:00 +0200 (CEST) (envelope-from Daan@vehosting.nl) From: Daan Vreeken Organization: VEHosting.nl To: freebsd-ppc@freebsd.org Date: Sat, 29 Aug 2009 02:25:58 +0200 User-Agent: KMail/1.9.10 References: <35914876-0CFF-427B-8F80-B1BEEA5A7A18@semihalf.com> <200908282127.28482.Daan@vehosting.nl> <200908282146.28715.hselasky@c2i.net> In-Reply-To: <200908282146.28715.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200908290225.59094.Daan@vehosting.nl> x-ve-auth-version: mi-1.0.3 2008-05-30 - Copyright (c) 2008 - Daan Vreeken - VEHosting x-ve-auth: authenticated as 'pa4dan' on VM01.VEHosting.nl Cc: Michal Mazur , Andrew Turner , Hans Petter Selasky Subject: Re: FreeBSD/powerpc on MPC5200 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: Sat, 29 Aug 2009 00:25:59 -0000 Hi, On Friday 28 August 2009 21:46:27 Hans Petter Selasky wrote: > On Friday 28 August 2009 21:27:28 Daan Vreeken wrote: > > Hi Rafal (and the list), > > > > On Sunday 24 May 2009 21:15:44 Rafal Jaworowski wrote: > > > On 2009-05-23, at 07:21, Andrew Turner wrote: > > > > On Fri, 22 May 2009 12:21:01 +0200 > > > > > > > > Rafal Jaworowski wrote: > > > >> On 2009-05-11, at 15:15, Peter Czanik wrote: > > > >>> Rafal Jaworowski =EDrta: > > > >>>> I'd like to let people know that FreeBSD/powerpc is now able to > > > >>>> boot into single user on the Freescale MPC5200 system-on-chip > > > >>>> (EFIKA board). The environment is very simplistic: RAM disk based > > > >>>> root fs, as > > > >>>> there's no peripherals drivers besides serial console and the > > > >>>> built- in > > > >>>> PIC. See this log: http://people.freebsd.org/~raj/logs/efika.log > > > >>> > > > >>> Wow, great news! Two questions: > > > >>> - are there any plans to support additional devices? > > > >> > > > >> We don't have immediate plans for other devices drivers, but this > > > >> basic support will be merged into SVN, and it would be greatly > > > >> welcome to see people help with remaining items. > > > > > > > > Is there a patch available? I would like to get back to working on > > > > the EFIKA. > > > > > > Preliminary diff against 2009.04.06 HEAD is here: > > > http://people.freebsd.org/~raj/patches/powerpc/efika.diff > > > > > > Comments or questions welcome. Some bits need to be streamlined so > > > that all AIM/OF variations work together, and the code has to be > > > rebased against up-to-date HEAD. > > > > I have downloaded your diff and succesfully patched it to -HEAD (checked > > out on 2009-08-25). > > Right now I'm looking into getting the USB controller working. (That > > would allow me to use network & disks all in one go.) > > > > I have written the OHCI attachment code (inspired by a mix of Warner's > > atmel version, mpc5xxx/ic.c and uart_dev_psc.c) and gotten it to > > succesfully attach to the OHCI controller when booting the Efika board. > > USB is not (yet) working correctly. Near the end of ohci_init(), the > > board seems to halt completely for about 30 seconds and after that, the > > OHCI controller sets the 'unrecoverable error' flag. > > > > A complete dmesg dump can be found here : > > http://vehosting.nl/pub_diffs/efika-daan-2009-08-28-ohci_attaching_but_= fa > >il ing.txt The kernel that produced this can be downloaded here : > > http://vehosting.nl/pub_diffs/efika-daan-2009-08-28-ohci_attaching_but_= fa > >il ing.kernel > > > > The files I added/changed to get the attachment of the OHCI controller > > to 'work' can be found here : > > http://vehosting.nl/pub_diffs/efika-daan-2009-08-28_changed_files.tar.gz > > (Warning : Ugly! and full of printf's for now!) > > (I could have missed one, let me know if you can't get it to work.) > > > > The above dmesg shows a number of printf's I've added to ohci.c . My > > mutilated version can be found here : > > http://vehosting.nl/pub_diffs/efika-daan-2009-08-28_ohci.c > > > > As you can see, I printf() the interrupt status register at various > > points during ohci_init(). The 'unrecoverable error' flag gets set just= a > > couple of miliseconds after the following command has been executed : > > > > /* And finally start it! */ > > OWRITE4(sc, OHCI_CONTROL, ctl); > > > > After that OWRITE4(), the board sits for about 30 seconds and then > > continues. I'm just guessing what's going on here, but could it be that > > (one of?) the endpoint lists isn't properly setup and that the OHCI > > controller keeps the CPU from accessing memory while it's racing through > > memory following corrupt/invalid 'next' pointers? > > Maybe busdma is not computing correct physical addresses for the kernel > virtual memory loaded into DMA. Sounds plausible. ohci_dumpregs() shows the following : ohci_dumpregs:584: ohci_dumpregs: rev=3D0x00000010 control=3D0x000000bf command=3D0x00000000 ohci_dumpregs:588: intrstat=3D0x00000054 intre=3D0x8000005a intrd=3D0x80000= 05a ohci_dumpregs:592: hcca=3D0x01c12a00 percur=3D0x0017c500 ctrlhd=3D0x01c20880 ohci_dumpregs:596: ctrlcur=3D0x00000000 bulkhd=3D0x01c20800 bulkcur=3D0x000= 00000 ohci_dumpregs:600: done=3D0x00000000 fmival=3D0xa7782edf fmrem=3D0x8000151b ohci_dumpregs:604: fmnum=3D0x0000fe72 perst=3D0x00002a2f lsthrs=3D0x00000628 ohci_dumpregs:608: desca=3D0x02001202 descb=3D0x00000000 stat=3D0x00000000 ohci_dumpregs:611: port1=3D0x00010301 port2=3D0x00010101 ohci_dumpregs:617: HCCA: frame_number=3D0x35fe0000 done_head=3D0x00000000 In ohci_init() I've added a printf() directly after the following two lines= : usbd_get_page(&sc->sc_hw.hcca_pc, 0, &buf_res); sc->sc_hcca_p =3D buf_res.buffer; that prints the virtual and physical address of the HCCA : printf("hcca: buf_res.buffer=3D%p, buf_res.physaddr=3D%x\n", buf_res.buffer, buf_res.physaddr); This gives the following line in the dmesg output : hcca: buf_res.buffer=3D0x1c12a00, buf_res.physaddr=3D1c12a00 = =20 I'm not a powerpc VM guru, but it looks as if the virtual and physical addr= ess=20 are the same. Are they mapped 1:1 or is there something going wrong? Anyone? Regards =2D-=20 Daan Vreeken VEHosting http://VEHosting.nl tel: +31-(0)40-7113050 / +31-(0)6-46210825 KvK nr: 17174380