Compilation instructions for m3mirror

2004-01-28 Thread Toby Johnson
Does anybody know how to compile benh's m3mirror utility?

The binary from penguinppc.org/~benh seems to have stopped working
some time after the 2.4.20 kernel and before the 2.4.24 kernel.  I'm
guessing that I need to recompile against the new kernel headers.
Might this be right?  Unfortunately I have no idea what compiler
options might be needed, and trying to compile with no options fails:

# gcc m3mirror.c 
m3mirror.c: In function `main':
m3mirror.c:32: error: parse error before '[' token
m3mirror.c:59: error: parse error before '[' token

Grateful for any ideas,

Toby.



signature.asc
Description: Digital signature


m3mirror and 2.4.24-ben1 [Was: Compilation instructions for m3mirror]

2004-01-29 Thread Toby Johnson
On Wed, Jan 28, 2004 at 07:23:24PM +0100, Julien BLACHE wrote:
> Toby Johnson <[EMAIL PROTECTED]> wrote:
> 
> > The [m3mirror] binary from penguinppc.org/~benh seems to have 
> > stopped working
> > some time after the 2.4.20 kernel and before the 2.4.24 kernel.
...
> 
> This won't help. It's a kernel change that broke m3mirror.
> 
> You have 2 solutions :
>  - use Owen Stampflee's patch at
><http://www.stampflee.com/kernel/>
>  - replace arch/ppc/kernel/prom_init.c with the same file from the
>2.4.20 kernel.

Thanks very much.  In case anyone else has this problem, it seems I
had to do both of these to get m3mirror to work (which it does now).
At least, the stampflee patch on its own didn't solve the problem.

Toby.


signature.asc
Description: Digital signature


Re: Getting the Pismo to snooze

2004-02-04 Thread Toby Johnson
On Wed, Feb 04, 2004 at 11:18:59AM +0100, Andreas Moor wrote:
> Hello
> 
> How can I get my PowerBook G3 FireWire (aka Pismo) to sleep under 
> Debian PowerPC? It's running in woody unstable with the current 
> 2.4.24-benh kernel with CONFIG_PMAC_PBOOK=y. The /sbin/snooze command 
> results in
> 
> pmud[298]: initiating user requested sleep
> pmud[298]: running /etc/power/pwrctl sleep ac
> pmud[298]: going to sleep
> pmud[298]: cannot put system to sleep! (Inappropriate ioctl for device)
> 
> Any ideas? It used to work out-of-the-box with an unmodified Yellow Dog 
> 3 install.

snooze works fine on my 400MHz Pismo running a recent 2.4.24-ben1
kernel with CONFIG_PMAC_PBOOK=y.  I'm running Woody testing, so maybe
you could try downgrading pmud (I'm running version 0.10-4) and see if
that solves the problem.

Toby.




signature.asc
Description: Digital signature