From owner-freebsd-ppc@freebsd.org Mon Jan 28 21:52:54 2019 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BF5AF14C0E9B for ; Mon, 28 Jan 2019 21:52:53 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-22.consmr.mail.ne1.yahoo.com (sonic310-22.consmr.mail.ne1.yahoo.com [66.163.186.203]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C7FC381F03 for ; Mon, 28 Jan 2019 21:52:52 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: BODIb34VM1nhrif0WPMXWzB7JCQHUTv2Y4uolQRHwpUyhtckEd6_MrIyZXK5MxZ 4oDR8bu0nyDuVzZI67sejju53OXsKvs9kz5yAQDOu5i7zZ._xR61_VhxBLHtTtjSJaMP5cYBYpD5 72XyPqM6Wgj92D0TEcVKv_RNpCF9L835E9.HVzF4yejsDtX_yMTZ0R9WwH2PmRJQ_V7UmzZJMXD4 YXnXWHJevH70IFlrZpcOf10zg1P5hkwVm3Gg5nbe3aItGfvkJk7bvIe4RP6AoTiMkeseY2eHNiy2 aoXFCJwn_srRntCiJrjewu_U8.H72LQtsJceaqVTeJfA.RgbGn4VWBh5CIG14n8XSidGbgIaZw9Q T2uw0SgZ8BQBPg7ZnW47iBQq3KMgOin9110BkpfOPDEq98aepPajD7xkmVGcTpQuTv6bYe3txVng JMoFPOX8wBHt_O6Ida2615rdLQIxzNwqTGObM8hs3_Yf0Lr_OTiWch7O_hAy59FjqBKvTItITsfk vlMVJqBJGEK2z5YeO62KviR87ukZfGOgD3SuTkw9u5jO6fUB52Lt8wcEBBoskMwCXEEE3mwyKkny GsSa2JYhJmz7.27rydd3o4Ju2pWh4pvnVYnthAHR6ex3euK2oW1CJtaIosfMbNivOUFhuSL9X_1W gJiaLHapStlrTrSOoR5XwUtWPToGiZj0B5yo.DJAgKsTHxI554Jg1UQLlC0tiGasTl55_FCejlCg vOTujy61R8sTrtgYbKlllDeYzhgyRnyl4L1fI8nMIjqpX6mw742ZMAWq1_cxJPx1NxrGeGUzO0yK DT92dek8ruE2Wkocx.ESPMD3o_IGxzPQ3CLkFMIdFBQy.MFdckk42ZJ4X0KsJuCIPs_CCnFk6v31 pkVyC3NVoubAtjU.E9v6KpkegMzxvclCnx4oesJctLS3qbpidTUughSi0X2wtETBeSnKr4NT99kG V_NTm.4LUcYDElv5iv4fZuOezvzOQvewv6Tf2l9P3MTV9E.VIhktrqlVd6JVJwHmhcuS8eexKcQV 5_1DDuyFkuS4n7bvIiO_4h3IDbQzS71aKl1SGw4p8achhLNKak7YQcavBE8j81p91AxtoMES03g- - Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Mon, 28 Jan 2019 21:52:46 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.113]) ([67.170.167.181]) by smtp408.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 2b4406e2172d2e79b17922fae54e5102; Mon, 28 Jan 2019 21:42:37 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: Booting and Installing Release 12 on PowerMac G5 "Quad Core" From: Mark Millard In-Reply-To: Date: Mon, 28 Jan 2019 13:42:36 -0800 Cc: freebsd-ppc@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <30652AD4-E660-4888-BAA9-22082A059DB1@yahoo.com> References: <283c5d11-7363-f9e3-48cc-42bd6d036236@gmail.com> To: Curtis Hamilton X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: C7FC381F03 X-Spamd-Bar: + X-Spamd-Result: default: False [1.91 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.97)[0.971,0]; NEURAL_HAM_LONG(-0.09)[-0.086,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.91)[ip: (2.68), ipnet: 66.163.184.0/21(1.07), asn: 36646(0.86), country: US(-0.08)]; NEURAL_SPAM_MEDIUM(0.62)[0.624,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[203.186.163.66.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2019 21:52:54 -0000 [ For head usefdt=3D1 does work by itself without reverting = VM_MAX_KERNEL_ADDRESS .] On 2019-Jan-27, at 21:57, Mark Millard wrote: > On 2019-Jan-27, at 16:05, Curtis Hamilton = wrote: >=20 >> Is there a recommended solution to booting/installing Release 12 on = the PowerMac G5 "Quad Core"? >>=20 >> I've read through all the threads in this mailing list, but have yet = to find a solution that works on my Mac. Many of the referenced = snapshot kernels could not be located. Building from source yielded the = same results as down loaded pre-built images. >>=20 >> Any tips or hits would be appreciated. >=20 > A specific change was made for powerpc64 that lead to this G5 boot = problem. > However, it appears to just have exposed some previously unknown = problem rather > than the change itself being wrong. I'm not aware of anyone having = figured > out the underlying problem --or even of having figured out a way to = figure > it out. I know I've not come up with any ideas so far. So far as I = know, only > old PowerMacs show such odd behavior with the change. >=20 > So for now I base my builds on reverting the change in question. (I = normally > use head, including 12 back when it was head.) >=20 > . . ./sys/powerpc/include/vmparam.h has a definition of = VM_MAX_KERNEL_ADDRESS . > I reverted the: >=20 > #define VM_MAX_KERNEL_ADDRESS 0xe0000007ffffffffUL >=20 > to be: >=20 > #define VM_MAX_KERNEL_ADDRESS 0xe0000001c7ffffffUL >=20 > instead. But, again, I expect that this is a way of sidestepping = another > problem that has not been found: a hack/workaround instead of a valid, > general fix. >=20 > Disabling smp via the following at the loader prompt seems to avoid > the problem without such a change to to VM_MAX_KERNEL_ADDRESS : >=20 > set kern.smp.disabled=3D1 >=20 > Nothing else has to be set to my knowledge. But using a single = CPU/core > has other consequences that may be of note depending on what one wants > to do with the G5. >=20 >=20 >=20 > [For the following: I believe it only applies to head , not even > stable/12: The fix so that usefdt would work at all ( -r341614 ) > is for . . ./sys/powerpc/powermac/macgpio.c and has not been > merged to stable/12 ( and, so, not to release/12.0.0 ).] >=20 > As far as I know the following by itself at the loader prompt does not > side step the VM_MAX_KERNEL_ADDRESS related problem: >=20 > set usefdt=3D1 I realized that I'd not tried usefdt=3D1 by itself after it was fixed. So I built and installed a kernel without reverting = VM_MAX_KERNEL_ADDRESS and tried it using "set usefdt=3D1" and it worked just fine. (It did = swap the 0 vs. 1 of the ethernet ports.) So I'll probably modify my loader to be a variant that does not require the explicit set usefdt=3D1 for powermacs and see how that goes. >=20 > However, usefdt should avoid other issues with mixing use of Apple's > OpenFirmware with FreeBSD execution. (It does swap which Ethernet > port is 0 vs. 1 as seen in FreeBSD.) >=20 > So once stable/12 has the update to sys/powerpc/powermac/macgpio.c > then usefdt=3D1 would likely be recommended for stable/12 as well. > (It will be a while before it shows up in a release/12.?.? .) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)