Date: Thu, 30 Oct 2008 13:42:43 -0400 From: Bruce Cran <bruce@cran.org.uk> To: Nathan Whitehorn <nwhitehorn@freebsd.org> Cc: Ed Schouten <ed@80386.nl>, FreeBSD/ppc <freebsd-ppc@freebsd.org> Subject: Re: PowerBook 12" hangs right after attaching ams0 Message-ID: <20081030174243.GA23679@muon.cran.org.uk> In-Reply-To: <4909DC87.6080203@freebsd.org> References: <20081030061645.GJ1165@hoeg.nl> <4909BA61.8060008@freebsd.org> <20081030160143.GL1165@hoeg.nl> <4909DC87.6080203@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 30, 2008 at 11:10:47AM -0500, Nathan Whitehorn wrote: > Ed Schouten wrote: >> Hello Nathan, >> >> * Nathan Whitehorn <nwhitehorn@freebsd.org> wrote: >>> Drat. Could you try the patch at >>> http://people.freebsd.org/~nwhitehorn/adb-delayed-attach.diff? >> >> After applying the patch, it still gets stuck during boot. > > Could you try the latest HEAD? I poked around at my machines this > morning to try to make them hang, succeeded, and then fixed some > problems that make mouse probes hang after the keyboard is probed > successfully. > >>> Unfortunately, ams0's attach doesn't have any debug information in it. >>> It is stuck somewhere between lines 171 and 183 of adb_mouse.c, if you >>> want to fill it with printf(). >> >> I can confirm it indeed gets stuck in adb_mouse_attach(), namely during >> its call to adb_set_device_handler(). I've just added a `return (ENXIO)' >> to adb_mouse_probe(), so I can at least boot my PowerBook for now. The >> keyboard support rocks. Thanks! :-) > > That's about what I expected. The change I added make it retry commands > like that if they get stuck, inside of looping forever on a reply. Glad > your keyboard works, though! > >> There are some random things I still have to look into: >> >> - I've dd'd the boot loader to /dev/ad0s2, but for some reason my Mac >> still refuses to boot from it. > > What is the partition type (gpart show) for ad0s2? I think it might need > to be set to !Apple_Bootstrap. The partition size may also need to be > exactly 800K. You should be able to change both of these things with the > system up, though you might need to enable foot shooting in geom. > >> - The processor still runs at 533 MHz. I think Linux also did this when >> I tried it 3-4 years ago. > > OF sets it to this at boot. I think there is something you can change at > the firmware prompt to bring it up to full speed, but my memory is foggy. > On my iBook G4 you can configure the CPU to run at the max frequency with: dev /cpus/PowerPC,G4@0 set-dfs-high OF uses a tree for navigation: instead of 'cd' you change 'directories' using the 'dev' command. You can run 'ls' to see what sub-directories are available and run 'words' to see what commands are available. -- Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081030174243.GA23679>