From owner-freebsd-ppc@FreeBSD.ORG Fri Oct 3 00:33:43 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7FC71065686 for ; Fri, 3 Oct 2008 00:33:43 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id ABB8D8FC25 for ; Fri, 3 Oct 2008 00:33:43 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) id <0K8500700086HK00@smtpauth2.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 02 Oct 2008 19:33:42 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-76-204-100-161.dsl.mdsnwi.sbcglobal.net [76.204.100.161]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K85004FO0857Q10@smtpauth2.wiscmail.wisc.edu>; Thu, 02 Oct 2008 19:33:42 -0500 (CDT) Date: Thu, 02 Oct 2008 19:38:15 -0500 From: Nathan Whitehorn In-reply-to: <48E0DDE6.5030909@freebsd.org> To: =?ISO-8859-1?Q?Andreas_J=F6nsson?= Message-id: <48E56977.9050407@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.204.100.161 X-Spam-PmxInfo: Server=avs-14, Version=5.4.2.344556, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.10.3.1621, SenderIP=76.204.100.161 References: <46171.83.233.155.226.1222694615.squirrel@webmail.student.lth.se> <48E0DDE6.5030909@freebsd.org> User-Agent: Thunderbird 2.0.0.17 (X11/20080928) Cc: freebsd-ppc@freebsd.org Subject: Re: ADB support? [UPDATE] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2008 00:33:43 -0000 Nathan Whitehorn wrote: > Andreas Jönsson wrote: >> Hi, >> >> I'm wondering how the ADB keyboard support is coming along? >> The last thing I've seen on this list is from July. > > I've been stymied by a lack of hardware. It works great on my PowerMac > G3, but that has a different controller chip (CUDA) than the one > everybody wants support for (PMU, found in laptops). My current work is > here: > > http://people.freebsd.org/~nwhitehorn/adb.diff > > It has a PMU driver, which may just work. Of course, it more likely > won't... Motivated people are welcome to hack it, and I'd appreciate any > reports. To add this support, apply the patch to sys on a recent > -CURRENT, add the following to your kernel config, and recompile: > > device cuda > device pmu > device adb It appears my ability to fix bugs without hardware is better than I thought. I managed to borrow a G4 iBook today, and the internal keyboard works perfectly with the above patch applied. I'd appreciate some more testing, and will clean it up a little before committing. On another note, it appears that loader is broken on this machine. I had to roll back to one from the end of 2007 to get it to boot -- it stalled right before loading loader.conf. Maybe it has to do with how it started opening the NIC several times? -Nathan