close 407295 thank you On Wed, 17 Jan 2007, Dmitry Ovechkin wrote:
> Package: powerpc-utils > Version: 1.1.3-19 > > bootsched returns "write returned -1" regardless of form of passed > parameters: > # bootsched -w 07:00 > bootsched: write returned -1 > > at Jan 17, 15:29 strace shows: > ... > open("/dev/adb", O_RDWR) = 3 > write(3, "\1\3", 2) = 2 > read(3, "\1\0\3\251\227\350\214", 16) = 7 > write(3, "\1\v\251\227\350\223", 6) = -1 EINVAL (Invalid argument) > write(2, "bootsched: write returned -1\n", 29bootsched: write returned -1 > ) = 29 > Hardware: mac-mini G4 1.33GHz > Kernel: 2.6.18-3-powerpc #1 Mon Dec 4 15:30:06 CET 2006 ppc GNU/Linux AFAIR bootsched is supposed to be used on Oldworld Macs only. It works by addressing the PMU that hangs off the ADB interface chip on these old Macs. Newworld Macs need another way of writing to the PMU, only nobody figured it out yet. I tried, based on the OF code for scheduled bootup, but could not make this work in Linux. IOW, this is not a bug but misuse of bootsched. I will update the man page to make this clear. Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]