From owner-freebsd-ppc@FreeBSD.ORG Mon Jul 28 16:02:52 2014 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 06B8FAF5 for ; Mon, 28 Jul 2014 16:02:52 +0000 (UTC) Received: from mail-yk0-x229.google.com (mail-yk0-x229.google.com [IPv6:2607:f8b0:4002:c07::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BDC7D2CED for ; Mon, 28 Jul 2014 16:02:51 +0000 (UTC) Received: by mail-yk0-f169.google.com with SMTP id 131so4833420ykp.0 for ; Mon, 28 Jul 2014 09:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=q0WgHcjbytZs4+mQyLzJXlFiK2JbINiIpiWGQyUvllc=; b=VNzfAA0/Rh8cwunyOmDgYgviMMz5a9rgIsEwoI6/68a8C9iAMNBDmZ8XFC8kUhQucO Wk/WddrAmbYsI7wjfUknYDhF/uWi7z+vPIF/NkLwlcxNjDf7FCnD8OryobGxBnhPFChU UzKkGZWBSS+FgbOLue8FYpxWyil1VuCZZOhlPLxI4PhK3HA6Rl1xkQq/juh0zLvIajfx lIjtdhDTcDq2ke7wQZxbBL+XICcuL3QPasxZ03Zk4cvPgHIZHBR+/vNcnDkpDRigh/KE nuvLldjz2vDc23lEM0l1GJNj7MET3CoWkO6RkOFWUAdy/Thby30ns9Lrokj3sc1cH6OZ 5U8Q== X-Received: by 10.236.99.39 with SMTP id w27mr13655108yhf.109.1406563370961; Mon, 28 Jul 2014 09:02:50 -0700 (PDT) Received: from zhabar.att.net (107-222-186-3.lightspeed.sntcca.sbcglobal.net. [107.222.186.3]) by mx.google.com with ESMTPSA id g25sm38274074yhc.25.2014.07.28.09.02.48 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Mon, 28 Jul 2014 09:02:50 -0700 (PDT) Date: Mon, 28 Jul 2014 09:02:45 -0700 From: Justin Hibbits To: Alexey Dokuchaev Subject: Re: Manual fan control on iBook G4? Message-ID: <20140728090245.13062177@zhabar.att.net> In-Reply-To: <20140728153559.GA41604@regency.nsu.ru> References: <20140728153559.GA41604@regency.nsu.ru> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; powerpc64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: powerpc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jul 2014 16:02:52 -0000 On Mon, 28 Jul 2014 22:35:59 +0700 Alexey Dokuchaev wrote: > Hi there, > > I've digged out that old pity iBook G4 of mine (should be something > like PowerBook6,5 I guess) that had been hanging under Tiger within > few minutes after boot and installed FreeBSD on it. Surprisingly, it > works fine under it. :) > > I'm suspecting either a faulty harddrive, or non-working fan. So far > no matter what heavy port I build, fan does not kick it. Does > FreeBSD support fan control on this baby? How can I manually engage > it to see if it works? (I've tested that power line has +5V, but > don't know how can I PWM control it from command line. Is it PWM, in > fact? -- just guessing since there are four wires coming into it.) > > Another weird thing: CPU frequency per dmesg(8) is strangely low: > > $ grep cpu0 /var/run/dmesg.boot > cpu0: Motorola PowerPC 7447A revision 1.1, 535.22 MHz > cpu0: Features 9c000000 > > while per various websites, 7447A CPU on it should clock at at least > 1GHz. > > Any clues? How can I read Mac model from NVRAM (akin to what Mac OS X > provides via `hw.model' sysctl, or something like that)? Thanks. > > ./danfe If you do 'ofwdump -ap', it'll list everything from Open Firmware, including the fan data (likely i2c-based, look for adm* or adt*). It's possible the CPU is starting in the reduced clock speed, so you can check `dev.cpu' syctl to see what levels are supported. - Justin