Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2016 15:01:28 -0800
From:      Mark Millard <markmi@dsl-only.net>
To:        Jukka Ukkonen <jau789@gmail.com>
Cc:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>, Justin Hibbits <chmeeedalf@gmail.com>
Subject:   Re: svn commit: r306065 - in head/sys vs. PowerMacs: Nathan's trail patch included but inappropriate? [My hack vs. Apple G4's.]
Message-ID:  <F658C426-84CF-4AD2-B993-8D9F2FB16B05@dsl-only.net>
In-Reply-To: <5F29E512-A5F0-452F-B816-FA5907DF875A@dsl-only.net>
References:  <C48933C3-DB22-4D94-B22D-B51822197E4E@dsl-only.net> <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> <B28E3336-2F85-4395-8DDF-CF09CA9D41E1@dsl-only.net> <5C253E59-265B-4F5F-A4C5-E4FB7EEBF084@gmail.com> <7E73DEEA-AA99-48CD-A441-5596A6F0D8E8@dsl-only.net> <5F29E512-A5F0-452F-B816-FA5907DF875A@dsl-only.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On 2016-Nov-15, at 1:42 PM, Mark Millard <markmi at dsl-only.net> 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F658C426-84CF-4AD2-B993-8D9F2FB16B05>