From owner-freebsd-ppc@FreeBSD.ORG Thu May 20 18:45:26 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 7930C10657E3 for ; Thu, 20 May 2010 18:45:26 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id 1930A8FC15 for ; Thu, 20 May 2010 18:45:25 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-8-131.flashcable.ch [91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id o4KIjNSJ056104 for ; Thu, 20 May 2010 20:45:23 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <4BF58342.7010707@fgznet.ch> Date: Thu, 20 May 2010 20:45:22 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: FreeBSD PowerPC ML Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Subject: 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 18:45:26 -0000 Hi, 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. I read about the i2c utilitiy which requires the iic driver compiled into the kernel. Done that and it seems it is there: unin0 iichb0 pnpinfo name=i2c compat=keywest-i2c iicbus0 iic0 at addr=0 fcu0 pnpinfo name=fan compat=fcu at addr=0x15e 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 This is a netboot environment, might this be the cause of not being able to create the device? Or do I have another issue? Has anyone experience with iic buses on PowerMac or hints on debug techniques? TIA, Andreas