svn commit: r306065 - in head/sys vs. PowerMacs: Nathan's trail patch included but inappropriate? [My hack vs. Apple G4's.]
Mark Millard
markmi at dsl-only.net
Tue Nov 15 23:08:11 UTC 2016
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.]
>
> I stopped a PowerMac G5 "Quad Core" at the loader prompt (not
> using /boot/loader.conf or other such) and did a:
>
> load iicsmb
> boot
>
> (smbus.ko also loads --and so for my earlier "in kernel" suggestion
> "device smbus" should also be listed in the KERNCONF file.)
>
> It booted fine. Afterwards kldstat reported:
>
> # kldstat
> Id Refs Address Size Name
> 1 6 0x100000 16901b0 kernel
> 2 1 0x1792000 14598 iicsmb.ko
> 3 2 0x17a7000 13f80 smbus.ko
>
> Those are not the addresses that were reported at the loader prompt for
> iicsmb and smbus:
>
> .text for iccsmb was listed as at 0x28e0 if I remember right
> .text for smbus was listed as at 0x2800 if I remember right
>
> 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.
>
> I do not know if you get similar results or not.
>
> 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.
>
> I do not know how to tell if iicsmb and smbus are working or not.
>
> It may be that explicit loads from the loader prompt are another
> workaround.
>
>
> I have not yet tried:
>
> 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.)
===
Mark Millard
markmi at dsl-only.net
More information about the freebsd-ppc
mailing list