From owner-freebsd-ppc@freebsd.org Tue Nov 15 23:08:11 2016 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 9F7BFC44DC6 for ; Tue, 15 Nov 2016 23:08:11 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-35.reflexion.net [208.70.210.35]) (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 4496E15B9 for ; Tue, 15 Nov 2016 23:08:10 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 5185 invoked from network); 15 Nov 2016 23:01:14 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 15 Nov 2016 23:01:14 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.10.2) with SMTP; Tue, 15 Nov 2016 18:01:39 -0500 (EST) Received: (qmail 29299 invoked from network); 15 Nov 2016 23:01:39 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 15 Nov 2016 23:01:39 -0000 Received: from [192.168.1.106] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id A16ADEC9022; Tue, 15 Nov 2016 15:01:28 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Re: svn commit: r306065 - in head/sys vs. PowerMacs: Nathan's trail patch included but inappropriate? [My hack vs. Apple G4's.] From: Mark Millard In-Reply-To: <5F29E512-A5F0-452F-B816-FA5907DF875A@dsl-only.net> Date: Tue, 15 Nov 2016 15:01:28 -0800 Cc: FreeBSD PowerPC ML , Justin Hibbits Content-Transfer-Encoding: quoted-printable Message-Id: References: <917EFF5A-D054-4424-9D7D-4E4BEF6072EF@gmail.com> <4bb1046a-225d-66b2-7b00-067f0d6f6c60@gmail.com> <465041D5-C1A2-48F4-9CA7-DD03B094FAE4@dsl-only.net> <01cfa4e9-954f-3e86-c8d7-36ec8523dde0@freebsd.org> <5C253E59-265B-4F5F-A4C5-E4FB7EEBF084@gmail.com> <7E73DEEA-AA99-48CD-A441-5596A6F0D8E8@dsl-only.net> <5F29E512-A5F0-452F-B816-FA5907DF875A@dsl-only.net> To: Jukka Ukkonen X-Mailer: Apple Mail (2.3251) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2016 23:08:11 -0000 On 2016-Nov-15, at 1:42 PM, Mark Millard wrote: > [Top post of an experiment with loading iicsmb.ko from the loader = prompt.] >=20 > I stopped a PowerMac G5 "Quad Core" at the loader prompt (not > using /boot/loader.conf or other such) and did a: >=20 > load iicsmb > boot >=20 > (smbus.ko also loads --and so for my earlier "in kernel" suggestion > "device smbus" should also be listed in the KERNCONF file.) >=20 > It booted fine. Afterwards kldstat reported: >=20 > # kldstat > Id Refs Address Size Name > 1 6 0x100000 16901b0 kernel > 2 1 0x1792000 14598 iicsmb.ko > 3 2 0x17a7000 13f80 smbus.ko >=20 > Those are not the addresses that were reported at the loader prompt = for > iicsmb and smbus: >=20 > .text for iccsmb was listed as at 0x28e0 if I remember right > .text for smbus was listed as at 0x2800 if I remember right >=20 > The .data for each were listed at the loader prompt as each starting = in > the 0x6xxx range as I remember. One too many x's: 0x6c8 and 0x600 were the figures. > I'm not sure that what the loader prompt context listed was actually = the > load addresses at that time. >=20 > I do not know if you get similar results or not. >=20 > If the loader prompt loads always work and the loader.conf loads do = not > that might also be interesting evidence about the problem(s) involved. >=20 > I do not know how to tell if iicsmb and smbus are working or not. >=20 > It may be that explicit loads from the loader prompt are another > workaround. >=20 >=20 > I have not yet tried: >=20 > unload > load iccsmb > boot (typo above: iicsmb is what I loaded.) That did not work: the kernel needs to be loaded first. . . unload load kernel load iicsmb boot did work. The kldstat then ends up being: # kldstat Id Refs Address Size Name 1 6 0x100000 16901b0 kernel 2 1 0x1791000 14598 iicsmb.ko 3 2 0x17a6000 13f80 smbus.ko (Not much different --but not identical to before for 2 of the Address = values.) =3D=3D=3D Mark Millard markmi at dsl-only.net