From owner-freebsd-ppc@freebsd.org Mon Nov 2 15:25:46 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4ED6CA03267 for ; Mon, 2 Nov 2015 15:25:46 +0000 (UTC) (envelope-from hamiltcl@verizon.net) Received: from vms173025pub.verizon.net (vms173025pub.verizon.net [206.46.173.25]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 27324159A; Mon, 2 Nov 2015 15:25:45 +0000 (UTC) (envelope-from hamiltcl@verizon.net) Received: from lenoil1 ([96.255.168.17]) by vms173025.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0NX7005DL1HVMMD0@vms173025.mailsrvcs.net>; Mon, 02 Nov 2015 09:25:09 -0600 (CST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=Nc0brD34 c=1 sm=1 tr=0 a=TXQDfM1T7tsaHFmtCUVSow==:117 a=o1OHuDzbAAAA:8 a=oR5dmqMzAAAA:8 a=qtqOOiqGOCEA:10 a=DAwyPP_o2Byb1YXLmDAA:9 a=6I5d2MoRAAAA:8 a=1XWaLZrsAAAA:8 a=7JZgkrlwmgOfvKVNcNAA:9 a=CjuIK1q_8ugA:10 a=w-ak978TGoUXCcWceoEA:9 From: "Curtis Hamilton" To: "'Andreas Tobler'" , "'Steve Wills'" , "'Justin Hibbits'" Cc: "'FreeBSD PowerPC ML'" References: <002a01d11001$a4b126e0$ee1374a0$@verizon.net> <003701d1102a$ee366c70$caa34550$@verizon.net> <00f701d1129c$b82b0400$28810c00$@verizon.net> <563370BF.8010602@FreeBSD.org> <012c01d11328$caef1220$60cd3660$@verizon.net> <5633D743.9070002@fgznet.ch> <5633E35A.50402@fgznet.ch> <5635458E.2070700@fgznet.ch> In-reply-to: <5635458E.2070700@fgznet.ch> Subject: RE: OpenJDK for PowerPC64 Date: Mon, 02 Nov 2015 10:25:04 -0500 Message-id: <018b01d11582$a7300950$f5901bf0$@verizon.net> MIME-version: 1.0 Content-type: multipart/mixed; boundary="----=_NextPart_000_018C_01D11558.BE6042E0" X-Mailer: Microsoft Outlook 15.0 Thread-index: AQKRkMsb+GvouUjCqm4Yxd05iNTYtAHpldllAV94MsUBawMSHgIHk2b5Ak5uG5sCFhOKpAJFjLidATxg7hwBEmTV6pyKOyqg Content-language: en-us X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 15:25:46 -0000 This is a multipart message in MIME format. ------=_NextPart_000_018C_01D11558.BE6042E0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Attached are the instructions for setting up a bootstrap for building OpenJDK on FreeBSD. In an earlier email I provided the build script used to build the BSD-Port mercurial, using the bootstrap setup in the instructions. Let me know if you have questions. -Curtis -----Original Message----- From: Andreas Tobler [mailto:andreast-list@fgznet.ch] Sent: Saturday, October 31, 2015 6:50 PM To: Curtis Hamilton ; 'Steve Wills' ; 'Justin Hibbits' Cc: 'FreeBSD PowerPC ML' Subject: Re: OpenJDK for PowerPC64 On 30.10.15 22:38, Andreas Tobler wrote: > On 30.10.15 21:46, Andreas Tobler wrote: >> On 30.10.15 16:36, Curtis Hamilton wrote: >>> Steve, >>> >>> I'll work on the patch. In the meantime, if you'd like to give them >>> a try, I've built OpenJDK7/8 Zero VM for powerpc64. It's available >>> at the below >>> URL: >>> >>> https://drive.google.com/folderview?id=0Bz7VO-WP3rlpM3BabUd6ejlya3c& >>> usp=shar >>> ing >> >> Do you need 32-bit powerpc stuff to bootstrap OpenJDK? >> >> If not, you can speed up the gcc build with the attached patch. >> It gives you the possibility to choose java for powerpc64 and to >> disable/enable multilibs for powerpc64. >> >> I just successfully built the gcc5-devel on my quad, including >> multilibs) >> >> The other versions are part of my todo, after fixing gcc trunk.... >> >> The multilib switch is part of John Merino's work. Here I have to apologize, it's the work from Julio Merino. I seem to mix John Marino and Julio Merino, sorry. >> I recommend to use a compiler as new as possible, although, not the >> 6.0-devel since it is broken, at least for me. >> >> You can use USES_GCC = 5.2 in the ports Makefile to say which gcc >> compiler you wan to use. > > I just noticed some weird stuff with gcc5-devel, Try to use the gcc49, > the patch applies there too. I'll run some tests on gcc49 during the night. The gcc49 and below are not usable due to the fact that they do not install properly. The reason is the multilib part for soft-float which is not working properly. But this part is not needed. > The gcc5-devel part I solve later. It is solved, patch pending for gcc trunk and gcc-5. A leftover from adding PIE support. My fault, but I do not run all combinations of bootstrapping all the time since the machine is very power hungry... Attached the patch I used to build a gcc-49 with multilib and java support. Hth, Andreas Btw, it would be great if you (@Curtis) could describe how you did the OpenJDK bootstrap. ------=_NextPart_000_018C_01D11558.BE6042E0 Content-Type: application/octet-stream; name="Bootstrap Setup Instructions" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Bootstrap Setup Instructions" This information is a compilation from numerous sources, but inspired by = the work of the Icedtea Team. After several failed attempts, with = varying results, to build the Icedtea Zero VM on FreeBSD 10=0A= =0A= Hardware: Apple PowerMac G5, 5GB RAM, 1TB Harddrive=0A= =0A= Software: FreeBSD 10.2, GCC5 w/GCJ=0A= =0A= To create a JDK bootstrap you need GCC with GCJ (Java) build. I = recommend GCC47, =0A= but any version at gcc45 or above should work. At the command prompt:=0A= =0A= Create bootstrap structure:=0A= =0A= mkdir -p /usr/local/bootstrap-openjdk/bin=0A= mkdir -p /usr/local/bootstrap-openjdk/lib=0A= mkdir -p /usr/local/bootstrap-openjdk/jre/lib=0A= mkdir -p /usr/local/bootstrap-openjdk/jre/lib/security=0A= =0A= Create symbolic links for java executables:=0A= =0A= cd /usr/local/bootstrap-openjdk=0A= ln -s /usr/local/bin/gcj5 javac=0A= ln -s /usr/local/bin/gij5 java=0A= ln -s /usr/local/bin/gjar5 jar=0A= ln -s /usr/local/bin/gjarsigner5 jarsigner=0A= ln -s /usr/local/bin/gjavah5 javah=0A= ln -s /usr/local/bin/gnative2ascii5 native2ascii=0A= =0A= Create symbolic links for java libraries:=0A= =0A= cd /usr/local/bootstrap-openjdk/lib=0A= ln -s /usr/local/share/classpath/tools.zip tools.jar=0A= =0A= cd /usr/local/bootstrap-openjdk/jre/lib=0A= ln -s /usr/local/share/classpath/glibj.zip rt.jar=0A= =0A= The GCJ java libraries should work for building JDK6, if want to build = JDK7 recommend =0A= you substitue the tools.jar and rt.jar libraries with libraries from a = Linux or =0A= other JDK6 distribution. Also copy "cacerts" file from this distribution = and place in the=0A= "/usr/local/bootstrap-openjdk/jre/lib/security" directory.=0A= =0A= Required build tools:=0A= =0A= GNU make=0A= CUPS and headers (cups-devel)=0A= libX11 and headers (libX11-devel)=0A= Freetype2 and headers (freetype-devel)=0A= patch=0A= sed=0A= unzip=0A= md5sum and sha256sum (FreeBSD files names are md5 and sha256 in /sbin. = Create sym links to md5sum and sha256sum in /sbin)=0A= wget=0A= alsa and headers=0A= xalan and xerces (bootstrapping only)=0A= GLib and GTK+ for the Gtk+ look and feel=0A= Ant >=3D 1.6.5=0A= libXp-devel=0A= libXtst-devel=0A= libXinerama-devel=0A= Automake 1.9=0A= libjpeg-devel >=3D 6b=0A= libpng-devel=0A= giflib-devel=0A= zlib-devel =0A= =0A= Optional symbolic links:=0A= =0A= ln -s /usr/local/bin/gappletviewer5 appletviewer=0A= ln -s /usr/local/bin/gkeytool5 keytool=0A= ln -s /usr/local/bin/gorbd5 orbd=0A= ln -s /usr/local/bin/grmic5 rmic=0A= ln -s /usr/local/bin/grmid5 rmid=0A= ln -s /usr/local/bin/grmiregistry5 rmiregistry=0A= ln -s /usr/local/bin/gserialver5 serialver=0A= ln -s /usr/local/bin/gtnameserv5 tnameserv=0A= =0A= Recommended build environment settings:=0A= =0A= setenv LANG C =0A= setenv ALT_JAVA_HOME /usr/local/bootstrap-openjdk=0A= setenv ALT_BOOTDIR /usr/local/bootstrap-openjdk=0A= setenv ALT_JDK_IMPORT_PATH /usr/local/bootstrap-openjdk=0A= setenv PLATFORM bsd =0A= setenv OS_FAMILY bsd =0A= setenv ARCH ppc =0A= setenv BUILDARCH ppc =0A= setenv LIBARCH ppc =0A= setenv ARCH_DATA_MODEL 64=0A= setenv ALT_FREETYPE_LIB_PATH /usr/local/lib =0A= setenv ALT_FREETYPE_HEADERS_PATH /usr/local/lib/libffi-3.2.1/include =0A= setenv ALT_CACERTS_FILE = /usr/local/bootstrap-openjdk/jre/lib/security/cacerts=0A= setenv LIBFFI_CFLAGS "-I/usr/local/lib/libffi-3.2.1/include"=0A= setenv DEFAULT_LIBPATH "/lib:/usr/lib:/usr/local/lib"=0A= setenv NO_DOCS true=0A= setenv BUILD_CORBA false=0A= setenv BUILD_JAXP false=0A= setenv BUILD_JAXWS false=0A= setenv ZERO_BUILD true=0A= setenv ZERO_ENDIANNESS big=0A= setenv ZERO_LIBARCH ppc=0A= setenv ZERO_ARCHDEF PPC=0A= setenv ZERO_ARCHFLAG "-mpowerpc64" =0A= setenv HOTSPOT_BUILD_JOBS 8 =0A= setenv PARALLEL_COMPILE_JOBS 8 =0A= setenv CC_INTERP true =0A= setenv OPENJDK true =0A= ------=_NextPart_000_018C_01D11558.BE6042E0-- From owner-freebsd-ppc@freebsd.org Mon Nov 2 22:02:51 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 55856A25840 for ; Mon, 2 Nov 2015 22:02:51 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (unknown [IPv6:2001:4060:1:1001::14:53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 153A01AAF; Mon, 2 Nov 2015 22:02:51 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from [192.168.225.14] (dhclient-91-190-14-19.flashcable.ch [91.190.14.19]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by fgznet.ch (Postfix) with ESMTPS id F3CC9D7721; Mon, 2 Nov 2015 23:02:37 +0100 (CET) Subject: Re: OpenJDK for PowerPC64 To: Curtis Hamilton , 'Steve Wills' , 'Justin Hibbits' References: <002a01d11001$a4b126e0$ee1374a0$@verizon.net> <003701d1102a$ee366c70$caa34550$@verizon.net> <00f701d1129c$b82b0400$28810c00$@verizon.net> <563370BF.8010602@FreeBSD.org> <012c01d11328$caef1220$60cd3660$@verizon.net> <5633D743.9070002@fgznet.ch> <5633E35A.50402@fgznet.ch> <5635458E.2070700@fgznet.ch> <018b01d11582$a7300950$f5901bf0$@verizon.net> Cc: 'FreeBSD PowerPC ML' From: Andreas Tobler Message-ID: <5637DD7D.5060106@fgznet.ch> Date: Mon, 2 Nov 2015 23:02:37 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <018b01d11582$a7300950$f5901bf0$@verizon.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 on 127.0.1.1 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 22:02:51 -0000 On 02.11.15 16:25, Curtis Hamilton wrote: > Attached are the instructions for setting up a bootstrap for building > OpenJDK on FreeBSD. In an earlier email I provided the build script used to > build the BSD-Port mercurial, using the bootstrap setup in the instructions. > > > Let me know if you have questions. Thanks! I missed the step to build classpath, what a nice project at that time ;) But next, what do I have to build? How is the sequence to 'bootstrap' openjdk? I'm a newbie in this regard. I get this when I do a make in java/openjdk7 (with patched Makefile from a previous post) ERROR: Your BOOTDIR environment variable does not point \n to a valid JDK for bootstrapping this build. \n A JDK 7 build must be bootstrapped using \n JDK 1.6. fcs (or later). \n Apparently, your bootstrap JDK is version 1.5.0 \n Please update your ALT_BOOTDIR setting and start your build again. \n This is with openjdk7. The same happens with openjdk6. my compiler chain is gcc-6.0. I think a few things are missing here. Andreas From owner-freebsd-ppc@freebsd.org Tue Nov 3 01:13:10 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CDCACA244F7 for ; Tue, 3 Nov 2015 01:13:10 +0000 (UTC) (envelope-from hamiltcl@verizon.net) Received: from vms173025pub.verizon.net (vms173025pub.verizon.net [206.46.173.25]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A5AA31DE2; Tue, 3 Nov 2015 01:13:10 +0000 (UTC) (envelope-from hamiltcl@verizon.net) Received: from lenoil1 ([96.255.168.17]) by vms173025.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0NX7001Z6SPHD2I0@vms173025.mailsrvcs.net>; Mon, 02 Nov 2015 19:12:54 -0600 (CST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=Nc0brD34 c=1 sm=1 tr=0 a=TXQDfM1T7tsaHFmtCUVSow==:117 a=o1OHuDzbAAAA:8 a=oR5dmqMzAAAA:8 a=kj9zAlcOel0A:10 a=qtqOOiqGOCEA:10 a=6I5d2MoRAAAA:8 a=vkhzVH8tKbXa1yCglP0A:9 a=CjuIK1q_8ugA:10 From: "Curtis Hamilton" To: "'Andreas Tobler'" , "'Steve Wills'" , "'Justin Hibbits'" Cc: "'FreeBSD PowerPC ML'" References: <002a01d11001$a4b126e0$ee1374a0$@verizon.net> <003701d1102a$ee366c70$caa34550$@verizon.net> <00f701d1129c$b82b0400$28810c00$@verizon.net> <563370BF.8010602@FreeBSD.org> <012c01d11328$caef1220$60cd3660$@verizon.net> <5633D743.9070002@fgznet.ch> <5633E35A.50402@fgznet.ch> <5635458E.2070700@fgznet.ch> <018b01d11582$a7300950$f5901bf0$@verizon.net> <5637DD7D.5060106@fgznet.ch> In-reply-to: <5637DD7D.5060106@fgznet.ch> Subject: RE: OpenJDK for PowerPC64 Date: Mon, 02 Nov 2015 20:12:49 -0500 Message-id: <01a301d115d4$c1f31b40$45d951c0$@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-index: AQKRkMsb+GvouUjCqm4Yxd05iNTYtAHpldllAV94MsUBawMSHgIHk2b5Ak5uG5sCFhOKpAJFjLidATxg7hwBEmTV6gKSd7h+AiYfn5ecZRuhcA== Content-language: en-us X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2015 01:13:10 -0000 I forgot to mentioned this in my notes. GCJ is equivalent to JDK5 (java 1.5), however both JDK6 and JDK7 are hard coded to require 1.6 . You'll need to make the following edits: OPENJDK6: jdk/make/common/shared/Platform.gmk (line 91) OpenJDK7: jdk/make/common/shared/Defs-versions.gmk (line 222) Just change the version from 1.6 to 1.5. -Curtis -----Original Message----- From: Andreas Tobler [mailto:andreast-list@fgznet.ch] Sent: Monday, November 02, 2015 5:03 PM To: Curtis Hamilton ; 'Steve Wills' ; 'Justin Hibbits' Cc: 'FreeBSD PowerPC ML' Subject: Re: OpenJDK for PowerPC64 On 02.11.15 16:25, Curtis Hamilton wrote: > Attached are the instructions for setting up a bootstrap for building > OpenJDK on FreeBSD. In an earlier email I provided the build script > used to build the BSD-Port mercurial, using the bootstrap setup in the instructions. > > > Let me know if you have questions. Thanks! I missed the step to build classpath, what a nice project at that time ;) But next, what do I have to build? How is the sequence to 'bootstrap' openjdk? I'm a newbie in this regard. I get this when I do a make in java/openjdk7 (with patched Makefile from a previous post) ERROR: Your BOOTDIR environment variable does not point \n to a valid JDK for bootstrapping this build. \n A JDK 7 build must be bootstrapped using \n JDK 1.6. fcs (or later). \n Apparently, your bootstrap JDK is version 1.5.0 \n Please update your ALT_BOOTDIR setting and start your build again. \n This is with openjdk7. The same happens with openjdk6. my compiler chain is gcc-6.0. I think a few things are missing here. Andreas From owner-freebsd-ppc@freebsd.org Tue Nov 3 21:09:19 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 303ECA25C49 for ; Tue, 3 Nov 2015 21:09:19 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EDFBE1FF8 for ; Tue, 3 Nov 2015 21:09:18 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by igpw7 with SMTP id w7so77219827igp.1 for ; Tue, 03 Nov 2015 13:09:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=et2RzR7fQIVnsa6cZVVFuYPrwJCpJz0berO25OC3mac=; b=yAtRDH+h9qmYajoG0/hruEkBynjTdLF7fjnyGsxH2ckPvmzEjl9Sjw4/2qVy0w1NGd tJ4NGvb2R9VCBqj2+UHV4zt0uLS4VNtdYr1wpX7GL0V3Q9TYBxPDorQhHSExPQl1fPYE FerEIr4MumRk7Q5iw91IVb5h7GaFu1B+lQT9NNPDAvXfNTueXWd85cVjSU1xStYhXY50 APB81HhJkt0f2y6BriRw3jWBU4VbipQw3q2OwhR+GcPyhr+d1kJT3WhwhE8rSiNoPmOz DWwcfsHLVEZjzyDUte0IybTLndxVTkAa0JU+3dedKx34kf1b9E1U5kupc+YLX/tCvlwP tpMg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alumni_cwru_edu.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=et2RzR7fQIVnsa6cZVVFuYPrwJCpJz0berO25OC3mac=; b=kGuuJ4KdMx0HCdg5Wgv6vBnd8bM9+wfma1CCXIKfi/+JSvNh0BW99cL2sdH0v83OCz PznwekTvJt7zs1Dq0wjbhuVRG8nLESLmdx4DUZSWHno54/pSJLM9VLiohoajVItpD4iF Hk0TCKJNmuNLGQIvK1p4T6R82NBtmZmS/Lbsea/sHn6lI4iT5tDk1cmoPp1xWOOt0YlO sgytzV2HMIO7kzegi/04SnpMWNy1oJftgZw5XzyOEh1iQALC8dTsygANVVMgGr09MH2V MOs2ej5+d6/+vJe4eLfadvh3U6brKcHzu4s7UAk0iRNoRsgwWXhqH14fcj5Ef9BRKNLI fziA== MIME-Version: 1.0 X-Received: by 10.50.115.40 with SMTP id jl8mr18145563igb.17.1446584958467; Tue, 03 Nov 2015 13:09:18 -0800 (PST) Sender: chmeeedalf@gmail.com Received: by 10.36.41.138 with HTTP; Tue, 3 Nov 2015 13:09:18 -0800 (PST) Date: Tue, 3 Nov 2015 13:09:18 -0800 X-Google-Sender-Auth: 8U-qvo9vZSZ1p2hHXapTzPsRN0o Message-ID: Subject: Does anyone still use the MPC85xx freescale evaluation system? From: Justin Hibbits To: FreeBSD PowerPC ML Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2015 21:09:19 -0000 I'm looking at cleaning up the fsl_pcib (sys/powerpc/mpc85xx/pci_mpc85xx.c) driver, and see there are some special cases for certain PCI devices for this board. I'd like to remove these special cases, and if needed move them to a platform module, or other mechanism, in the future. So, is anyone still in need of this special case support code for the Freescale Tundra and VIA PCI devices (VIA PCI-ISA bridge, IDE controller, see the source for the PCI IDs if you do use something like this)? Crickets will result in simply blowing it away without comment. Thanks, Justin From owner-freebsd-ppc@freebsd.org Wed Nov 4 07:32:34 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB729A26331 for ; Wed, 4 Nov 2015 07:32:34 +0000 (UTC) (envelope-from jau789@gmail.com) Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 746051CD8 for ; Wed, 4 Nov 2015 07:32:34 +0000 (UTC) (envelope-from jau789@gmail.com) Received: by lbbes7 with SMTP id es7so9263532lbb.2 for ; Tue, 03 Nov 2015 23:32:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:mime-version:subject :message-id:date:to; bh=0GqvcAKlOuT4uLnyMlMF2D1/BV8hOApc8/7GxAds/y0=; b=aIcOlWQBiV+v0VSaE5d/G5PCz5yIq7O5we8I6K5TQfSjl4D86nRAUco9mnNXeQ1BGR V5vJw17mlTzcCwPqBEU5Ql4kqHoAE1rFe/Zgo08BKb7T30xTX4FmPjHnQ59ARPIdbLXr ESxsDGkk7iCQDi1bhdGFVAyo4nWUDb7t4upKyy28Epb6GfIF30XHAVsOQo5IgFQe83XN Pprukotq9+OOntBsbiGUfOUTp2Lnb0vP7t3mfrA3EJYancbDL8VkzEr/JYJbXNwd9SXb HB8juZfC6sOrE2+OYt46irNJR/PNCuR5hJCKfH+xxVFP8seZeUXtXQWCu78/n5yJT8R5 f2ZQ== X-Received: by 10.112.72.99 with SMTP id c3mr14264lbv.113.1446622352618; Tue, 03 Nov 2015 23:32:32 -0800 (PST) Received: from [192.168.1.193] (xdsl-205-163.nblnetworks.fi. [83.145.205.163]) by smtp.gmail.com with ESMTPSA id xk9sm7701lbb.23.2015.11.03.23.32.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Nov 2015 23:32:32 -0800 (PST) From: Jukka Ukkonen Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Subject: PowerMac G5 running 11-current kernel fails to read temperature sensors Message-Id: <676DB1F1-EA3A-4B85-8A41-0ACE2BDE34F7@gmail.com> Date: Wed, 4 Nov 2015 09:32:30 +0200 To: freebsd-ppc@FreeBSD.org X-Mailer: iPad Mail (13B143) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2015 07:32:35 -0000 Hello all, Just a quick question... Has anyone else tried to build a ppc64 (GENERIC64) kernel locally on a PowerMac G5 during the last month or so? When booting the CD snapshot kernel of Oct 2nd there are no worries. Then again when I try to use a locally built kernel using the latest sources from head, the system starts complaining about I2C read errors and errors when trying to read max6690 sensors. Those complaints repeat about 5 times after which the system powers down automatically. There is no genuine risk of overheating, though. When running the snapshot kernel of Oct 2nd the CPU sensors show temperatures around 45-50 C. All of the other sensors including the two max6690 sensors show values in the range of 25-45 C. When using the older snapshot kernel all of the temperature sensors are visible in "sysctl dev" output. When using the latest and greatest locally built kernel trying the same sysctl only hangs when it triggers reading of those sensors while I get to watch the complaints about I2C read failures. With the older snapshot kernel the fans keep operating at relatively slow speeds. With the locally built latest and greatest kernel the fans keep adding rpms step by step to plain crazy speeds until the system powers down. Does this ring any bells? Have there been any changes to the I2C drivers or temperature sensor drivers during the last month or so? Is there something I should try to inspect the issue further? --jau From owner-freebsd-ppc@freebsd.org Wed Nov 4 16:46:57 2015 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9901A269C4 for ; Wed, 4 Nov 2015 16:46:57 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (unknown [IPv6:2001:4060:1:1001::14:52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A75971920 for ; Wed, 4 Nov 2015 16:46:57 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from [192.168.225.14] (dhclient-91-190-14-19.flashcable.ch [91.190.14.19]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by fgznet.ch (Postfix) with ESMTPS id 36F20C5D25; Wed, 4 Nov 2015 17:46:53 +0100 (CET) Subject: Re: PowerMac G5 running 11-current kernel fails to read temperature sensors To: Jukka Ukkonen , freebsd-ppc@FreeBSD.org References: <676DB1F1-EA3A-4B85-8A41-0ACE2BDE34F7@gmail.com> From: Andreas Tobler Message-ID: <563A367D.7020708@fgznet.ch> Date: Wed, 4 Nov 2015 17:46:53 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <676DB1F1-EA3A-4B85-8A41-0ACE2BDE34F7@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 on 127.0.1.1 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2015 16:46:58 -0000 On 04.11.15 08:32, Jukka Ukkonen wrote: > > Hello all, > > Just a quick question... Has anyone else tried to build > a ppc64 (GENERIC64) kernel locally on a PowerMac G5 > during the last month or so? > > When booting the CD snapshot kernel of Oct 2nd there > are no worries. Then again when I try to use a locally built > kernel using the latest sources from head, the system starts > complaining about I2C read errors and errors when trying to > read max6690 sensors. Those complaints repeat about > 5 times after which the system powers down automatically. > There is no genuine risk of overheating, though. > When running the snapshot kernel of Oct 2nd the CPU > sensors show temperatures around 45-50 C. All of the > other sensors including the two max6690 sensors show > values in the range of 25-45 C. > > When using the older snapshot kernel all of the temperature > sensors are visible in "sysctl dev" output. > When using the latest and greatest locally built kernel trying > the same sysctl only hangs when it triggers reading of those > sensors while I get to watch the complaints about I2C read > failures. > > With the older snapshot kernel the fans keep operating at > relatively slow speeds. With the locally built latest and greatest > kernel the fans keep adding rpms step by step to plain crazy > speeds until the system powers down. > > Does this ring any bells? Have there been any changes to > the I2C drivers or temperature sensor drivers during the last > month or so? Is there something I should try to inspect the > issue further? > Use this for now, I prepare a patch which distinguishes between 7-bit and 8-bit addresses. Hth, Andreas Index: sys/dev/ofw/ofw_iicbus.c =================================================================== --- sys/dev/ofw/ofw_iicbus.c (revision 290233) +++ sys/dev/ofw/ofw_iicbus.c (working copy) @@ -151,7 +151,7 @@ * OFW uses 7-bit I2C address format (see ePAPR), * but system expect 8-bit. */ - dinfo->opd_dinfo.addr = paddr << 1; + dinfo->opd_dinfo.addr = paddr; if (ofw_bus_gen_setup_devinfo(&dinfo->opd_obdinfo, child) != 0) { free(dinfo, M_DEVBUF);