Subject: Re: how to properly shutdown iBook
To: leon zadorin <leonleon77@gmail.com>
From: Michael Lorenz <macallan1888@gmail.com>
List: port-macppc
Date: 05/29/2007 09:37:56
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On May 29, 2007, at 00:27, leon zadorin wrote:

> On 5/29/07, leon zadorin <leonleon77@gmail.com> wrote:
>> On 5/29/07, leon zadorin <leonleon77@gmail.com> wrote:
>> > On 5/29/07, Michael Lorenz <macallan1888@gmail.com> wrote:
>> > > > halted"
>> > > >
>> > > > ... then:
>> > > >
>> > > > "
>> > > > trap: pid 0.-4443349 (): kernel MCHK trap @ 0x37cb8c 
>> (SRR1=0x149030)
>> > > > panic: trap
>> > > > Stopped at netbsd:cpu_Debugger+0x10: lwz r0, r1, 0x14
>> > > > db>
>> > >
>> > > Can you get a stack trace? ( use the bt command )
>> >
>> > mmm how? Keyboard by that stage does not respond... - I shall try 
>> with
>> > a USB/external keyboard in a sec...
>>
>> have tried with USB keyboard... no luck (keyboard does no respond)
>> although this time it was shutting down OK most of the time (I
>> managned to "crash" it only when I unplugged the keyboard after
>> booting, and then plugged it in again and then typed the shutdown
>> command)...

There's a sysctl to set a command to run on ddb entry ( forgot which 
one exactly but it should be easy enough to find ) - just set that to 
bt

> as a side note - after some reboots (which end in "panic trap" or
> similar problematic messages), the iBook looses its "saved" boot
> parameters (so that the "flashing question" mark pops up when booting
> takes place next time) - could the 2 issues be related? I.e. during
> shutdown something somether writes into memory which keeps the iBook's
> boot settings (e.g. in some openfirmware thingy) - or am I completely
> "out of band" here ? I think I am "out of band" ... and by a long shot
> :-)

Hmm, we don't mess with OF settings in the kernel at all. Battery 
getting old?

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRlwstMpnzkX8Yg2nAQL6ZQf+NjEBHr+jvxwrv9Xbxf7JgJzIqtVGTuZY
GTY1K83wcQEDAlYjLi28TpfOdUrElnOH6ACfjcVeZjAiJCa59izrcyXxHshjJQvw
64l0nLA3n7LnTUMTRShm0iDDE6C846xYfF0+8KetBLSWveTr+36qWdZGwp6fieKU
aQ/L8uxRyrToUvsNc6D9XEyDY/uchmJ8cpj9SCPKnz6AllYuVYRI7nMkAvvjqkGP
vdsqmoqkglw3ogPzFi9CTTgd7mUF8w95zSOcRu7SHLw4F1eDlevK/Thl9T/lQWlR
6UItHMZSfnZnPQZuwF9A5wa1kLpzQOncRNnXKsQyuQ1ttHZdvzlZWw==
=cME3
-----END PGP SIGNATURE-----