From owner-freebsd-ppc@FreeBSD.ORG Thu May 20 19:16:57 2010 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 0EE58106567F for ; Thu, 20 May 2010 19:16:57 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id AE6078FC08 for ; Thu, 20 May 2010 19:16:56 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id B1187C42E7; Thu, 20 May 2010 21:21:30 +0200 (CEST) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id j++7y8DbE++s; Thu, 20 May 2010 21:21:30 +0200 (CEST) Received: from [192.168.133.14] (nat3-133.ghnet.pl [91.150.222.133]) by smtp.semihalf.com (Postfix) with ESMTPSA id 12E7EC42DF; Thu, 20 May 2010 21:21:30 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Rafal Jaworowski In-Reply-To: <4BF58342.7010707@fgznet.ch> Date: Thu, 20 May 2010 21:16:53 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4BF58342.7010707@fgznet.ch> To: Andreas Tobler X-Mailer: Apple Mail (2.1078) Cc: FreeBSD PowerPC ML Subject: Re: iic/i2c debugging on PowerMac 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: Thu, 20 May 2010 19:16:57 -0000 On 2010-05-20, at 20:45, Andreas Tobler wrote: > Hi, >=20 > I'm trying to access (read/write) an i2c device on my G5. The problem = is, I do not know the right i2c address although I have it from the = device-tree, it's 0x15e. >=20 > I read about the i2c utilitiy which requires the iic driver compiled = into the kernel. Done that and it seems it is there: >=20 > unin0 > iichb0 pnpinfo name=3Di2c compat=3Dkeywest-i2c > iicbus0 > iic0 at addr=3D0 > fcu0 pnpinfo name=3Dfan compat=3Dfcu at addr=3D0x15e >=20 > But I do not have this device entry in /dev. Trying to create one does = not work. > mknod /dev/iic0 c 103 0 > mknod: /dev/iic0: No such file or directory >=20 > This is a netboot environment, might this be the cause of not being = able to create the device? > Or do I have another issue? This shouldn't be related to the boot method. Do you see any failure output during iic attach (there should be a diag = error)? If not try to intstrument the iic_probe() routine and see what = happens. Rafal