From owner-freebsd-ppc@FreeBSD.ORG Sun Sep 18 21:51:19 2011 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 5A945106564A for ; Sun, 18 Sep 2011 21:51:19 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 19FBC8FC16 for ; Sun, 18 Sep 2011 21:51:18 +0000 (UTC) Received: by gyf2 with SMTP id 2so4654721gyf.13 for ; Sun, 18 Sep 2011 14:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; bh=YZnozopMZLGsXBzUwm2yf9zyB5XXZNJFKw1KnFz/NzE=; b=j87ZmtJpsnhKyalsA31leV6FrEtbKM3sZwwkSz7bhBxSGYIgOBafT+jI22fRmHpL/2 qnuJkdU6Fxq24Va56ak9liK1a4As9VL2CejlWytBLjSsCA65mn2vQyDvucnpz+UfsyGN mreMB1GBZebfxB9K9SbWoar0MAkozN1d1gpVw= Received: by 10.236.155.6 with SMTP id i6mr9870035yhk.41.1316381095005; Sun, 18 Sep 2011 14:24:55 -0700 (PDT) Received: from triad.knownspace (216-15-41-8.c3-0.gth-ubr1.lnh-gth.md.cable.rcn.com [216.15.41.8]) by mx.google.com with ESMTPS id u13sm42640357anf.14.2011.09.18.14.24.53 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 18 Sep 2011 14:24:53 -0700 (PDT) Message-Id: <47D0D576-A632-490C-ABA9-AB3EAC31F9D3@gmail.com> From: Justin Hibbits To: FreeBSD PowerPC ML Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Sun, 18 Sep 2011 17:24:51 -0400 X-Mailer: Apple Mail (2.936) Subject: CardBus on ppc 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: Sun, 18 Sep 2011 21:51:19 -0000 I just installed 9.0-BETA2 on my TiBook, but noticed that there's no cardbus support built for ppc. Is it because nobody's tested it, or is there an actual problem with cardbus on ppc? Asking because my wireless card is in the cardbus slot, and my switch is too small to support a 6th device. - Justin From owner-freebsd-ppc@FreeBSD.ORG Mon Sep 19 07:29:08 2011 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 3D6BA1065673 for ; Mon, 19 Sep 2011 07:29:08 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from argol.doit.wisc.edu (argol.doit.wisc.edu [144.92.197.212]) by mx1.freebsd.org (Postfix) with ESMTP id 1211A8FC18 for ; Mon, 19 Sep 2011 07:29:07 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth3.wiscmail.wisc.edu by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0LRR00I00E4JLT00@smtpauth3.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Mon, 19 Sep 2011 02:29:07 -0500 (CDT) Received: from wanderer.tachypleus.net (nl119-145-4.student.uu.se [212.25.145.4]) by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0LRR00CXAE4HXV20@smtpauth3.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Mon, 19 Sep 2011 02:29:06 -0500 (CDT) Date: Mon, 19 Sep 2011 09:29:05 +0200 From: Nathan Whitehorn In-reply-to: <47D0D576-A632-490C-ABA9-AB3EAC31F9D3@gmail.com> To: freebsd-ppc@freebsd.org Message-id: <4E76EF41.2070008@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=212.25.145.4 X-Spam-PmxInfo: Server=avs-10, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.9.19.72114, SenderIP=212.25.145.4 References: <47D0D576-A632-490C-ABA9-AB3EAC31F9D3@gmail.com> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110917 Thunderbird/6.0.2 Subject: Re: CardBus on ppc 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: Mon, 19 Sep 2011 07:29:08 -0000 On 09/18/11 23:24, Justin Hibbits wrote: > I just installed 9.0-BETA2 on my TiBook, but noticed that there's no > cardbus support built for ppc. Is it because nobody's tested it, or is > there an actual problem with cardbus on ppc? Asking because my wireless > card is in the cardbus slot, and my switch is too small to support a 6th > device. It's just never been implemented/tested. cbb(4) isn't in GENERIC, but you might need more than that. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Mon Sep 19 11:07:11 2011 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 B2995106564A for ; Mon, 19 Sep 2011 11:07:11 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A0D638FC1C for ; Mon, 19 Sep 2011 11:07:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8JB7B8j073590 for ; Mon, 19 Sep 2011 11:07:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8JB7BBB073588 for freebsd-ppc@FreeBSD.org; Mon, 19 Sep 2011 11:07:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 19 Sep 2011 11:07:11 GMT Message-Id: <201109191107.p8JB7BBB073588@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-ppc@FreeBSD.org 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: Mon, 19 Sep 2011 11:07:11 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o power/149009 ppc sysinstall(8) on powerpc fails to install manpages, so o power/140241 ppc [kernel] [patch] Linker set problems on PowerPC EABI o power/135576 ppc gdb cannot debug threaded programs on ppc o power/133503 ppc [sound] Sound stutter after switching ttys o power/133382 ppc [install] Installer gets signal 11 o power/131548 ppc ofw_syscons no longer supports 32-bit framebuffer 6 problems total. From owner-freebsd-ppc@FreeBSD.ORG Mon Sep 19 21:47:11 2011 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 881271065713 for ; Mon, 19 Sep 2011 21:47:11 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2E1508FC1A for ; Mon, 19 Sep 2011 21:47:10 +0000 (UTC) Received: by ywp17 with SMTP id 17so5542523ywp.13 for ; Mon, 19 Sep 2011 14:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; bh=QT77ZDC2SvujKE8ZeqB4iB9diUuCWIRZo3K+E7PmWvE=; b=QPAHqhW9YXSu8S/WQinBJYnnBnZ5meoKAnwbjGArb4ptRxgeUvAblMLyiSYqPJz/gR RSB3oO1IuC3Z32kzxsvQ8RdShgUPIZSS90e0/bwKYsWGQTDJqnkBT6c7i4BDG4BAis/x oEBUx+4HiHawrYHESPPc2wsSgF2ONMvm1hO6c= Received: by 10.150.59.17 with SMTP id h17mr8348yba.288.1316468830415; Mon, 19 Sep 2011 14:47:10 -0700 (PDT) Received: from triad.knownspace (216-15-41-8.c3-0.gth-ubr1.lnh-gth.md.cable.rcn.com. [216.15.41.8]) by mx.google.com with ESMTPS id s15sm5191417ank.8.2011.09.19.14.47.08 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Sep 2011 14:47:09 -0700 (PDT) Message-Id: From: Justin Hibbits To: Nathan Whitehorn In-Reply-To: <4E76EF41.2070008@freebsd.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Mon, 19 Sep 2011 17:47:03 -0400 References: <47D0D576-A632-490C-ABA9-AB3EAC31F9D3@gmail.com> <4E76EF41.2070008@freebsd.org> X-Mailer: Apple Mail (2.936) Cc: freebsd-ppc@freebsd.org Subject: Re: CardBus on ppc 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: Mon, 19 Sep 2011 21:47:11 -0000 On Sep 19, 2011, at 3:29 AM, Nathan Whitehorn wrote: > On 09/18/11 23:24, Justin Hibbits wrote: >> I just installed 9.0-BETA2 on my TiBook, but noticed that there's no >> cardbus support built for ppc. Is it because nobody's tested it, or >> is >> there an actual problem with cardbus on ppc? Asking because my >> wireless >> card is in the cardbus slot, and my switch is too small to support >> a 6th >> device. > > It's just never been implemented/tested. cbb(4) isn't in GENERIC, > but you might need more than that. > -Nathan Good news, I built cbb, pccard, cardbus, into the kernel, and it worked. Now I just need to get the broadcom driver working (probably just need to grab the firmware). - Justin From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 20 03:07:07 2011 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 2B0F5106564A for ; Tue, 20 Sep 2011 03:07:07 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id DF0168FC08 for ; Tue, 20 Sep 2011 03:07:06 +0000 (UTC) Received: by yxk36 with SMTP id 36so61095yxk.13 for ; Mon, 19 Sep 2011 20:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; bh=eO2yp9N5MK4QoM+qlNhSHpPLnsNBTZH84q4I8k+53ho=; b=ni3Uvlc4sT5vcOd0zd7Tw26f5pE7i5Cf6+HkYE8cOB4ZWuq8vTajhMOSOGE+KftIV2 W0sgeB4U+A9f0zagFamW4CEaYHHaAHbIYqIU3JOt5AkoBcVT/502rbM5SaYsndhQFr2e XEZb/JGJUKS2eFd7+5HIF2KbMpDs6sOBKau1E= Received: by 10.151.29.5 with SMTP id g5mr170593ybj.336.1316488026292; Mon, 19 Sep 2011 20:07:06 -0700 (PDT) Received: from triad.knownspace (216-15-41-8.c3-0.gth-ubr1.lnh-gth.md.cable.rcn.com. [216.15.41.8]) by mx.google.com with ESMTPS id p14sm7315165anh.25.2011.09.19.20.07.04 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Sep 2011 20:07:04 -0700 (PDT) Sender: Justin Hibbits Message-Id: From: Justin Hibbits To: FreeBSD PowerPC ML Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Mon, 19 Sep 2011 23:07:02 -0400 X-Mailer: Apple Mail (2.936) Subject: TiBook CPU speed 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: Tue, 20 Sep 2011 03:07:07 -0000 Following up on my previous email, the saga of installing FreeBSD on a TiBook, I ran into another problem: The CPU speed is reduced to 666MHz, instead of 1GHz. Is there a way to get it to run at the full 1GHz? - Justin From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 20 05:55:01 2011 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 E70E51065672 for ; Tue, 20 Sep 2011 05:55:01 +0000 (UTC) (envelope-from andreast@FreeBSD.org) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id 805C78FC16 for ; Tue, 20 Sep 2011 05:55:00 +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 p8K5JNVv003874; Tue, 20 Sep 2011 07:19:25 +0200 (CEST) (envelope-from andreast@FreeBSD.org) Message-ID: <4E78225B.9060101@FreeBSD.org> Date: Tue, 20 Sep 2011 07:19:23 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: Justin Hibbits References: In-Reply-To: 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 Cc: FreeBSD PowerPC ML Subject: Re: TiBook CPU speed 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: Tue, 20 Sep 2011 05:55:02 -0000 On 20.09.11 05:07, Justin Hibbits wrote: > Following up on my previous email, the saga of installing FreeBSD on a > TiBook, I ran into another problem: The CPU speed is reduced to > 666MHz, instead of 1GHz. Is there a way to get it to run at the full > 1GHz? I think this is not implemented yet. But what you can do is autoboot into FreeBSD and then the speed should be at full 1GHz. At least this works on my G5's. You must set the boot-device to the FreeBSD partition and then reboot w/o OF intervention. This is on my G5: 'setenv boot-device sd1:2,\\:tbxi' For details how to find the boot-device arguments see at the bottom of: http://people.freebsd.org/~nwhitehorn/ppcinstall.txt Gruss, Andreas From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 20 06:23:31 2011 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 CD9BE1065673 for ; Tue, 20 Sep 2011 06:23:31 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from argol.doit.wisc.edu (argol.doit.wisc.edu [144.92.197.212]) by mx1.freebsd.org (Postfix) with ESMTP id A31018FC19 for ; Tue, 20 Sep 2011 06:23:31 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth3.wiscmail.wisc.edu by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0LRT001005R6SZ00@smtpauth3.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Tue, 20 Sep 2011 01:23:30 -0500 (CDT) Received: from wanderer.tachypleus.net (78-70-168-180-no110.tbcn.telia.com [78.70.168.180]) by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0LRT00GE85R46340@smtpauth3.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Tue, 20 Sep 2011 01:23:29 -0500 (CDT) Date: Tue, 20 Sep 2011 08:23:27 +0200 From: Nathan Whitehorn In-reply-to: To: freebsd-ppc@freebsd.org Message-id: <4E78315F.1040404@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=78.70.168.180 X-Spam-PmxInfo: Server=avs-9, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.9.20.61514, SenderIP=78.70.168.180 References: User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110917 Thunderbird/6.0.2 Subject: Re: TiBook CPU speed 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: Tue, 20 Sep 2011 06:23:31 -0000 On 09/20/11 05:07, Justin Hibbits wrote: > Following up on my previous email, the saga of installing FreeBSD on a > TiBook, I ran into another problem: The CPU speed is reduced to 666MHz, > instead of 1GHz. Is there a way to get it to run at the full 1GHz? > Just use cpufreq(4) -- the dev.cpu.0.freq sysctl or turn on powerd. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 20 13:33:19 2011 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 A9029106566C for ; Tue, 20 Sep 2011 13:33:19 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id 8022A8FC19 for ; Tue, 20 Sep 2011 13:33:19 +0000 (UTC) Received: by pzk36 with SMTP id 36so2933270pzk.3 for ; Tue, 20 Sep 2011 06:33:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=ok8+IvoxNMrTetycKHrfTY72NfTkGWIMxlQm15oz7Fc=; b=S3ZkJaj6hCbD33ET7aSSFVKbOwxi5bCdMrqBlMsplGLAMi5BQHfSsIws9AVuzxg2Ec efXLboWHr4N3B1tpb6jluRPKVzDf23SrYGgYSBEFXMg9aFewfMS1f71kaP+OqIV2n366 I87Cnt7gQxo6DljygXXvQ/IfU7eXGT2M0LR3g= MIME-Version: 1.0 Received: by 10.68.120.134 with SMTP id lc6mr6109232pbb.178.1316525598793; Tue, 20 Sep 2011 06:33:18 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.142.132.17 with HTTP; Tue, 20 Sep 2011 06:33:18 -0700 (PDT) In-Reply-To: References: <4E78315F.1040404@freebsd.org> Date: Tue, 20 Sep 2011 09:33:18 -0400 X-Google-Sender-Auth: pCGd-gei-0a9SP_u9npqBtxdOf4 Message-ID: From: Justin Hibbits To: FreeBSD PowerPC ML Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Fwd: TiBook CPU speed 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: Tue, 20 Sep 2011 13:33:19 -0000 D'oh, didn't hit 'Reply All'. ---------- Forwarded message ---------- From: Justin Hibbits Date: Tue, Sep 20, 2011 at 9:32 AM Subject: Re: TiBook CPU speed To: Nathan Whitehorn On Tue, Sep 20, 2011 at 2:23 AM, Nathan Whitehorn wrote: > On 09/20/11 05:07, Justin Hibbits wrote: > >> Following up on my previous email, the saga of installing FreeBSD on a >> TiBook, I ran into another problem: The CPU speed is reduced to 666MHz, >> instead of 1GHz. Is there a way to get it to run at the full 1GHz? >> >> > Just use cpufreq(4) -- the dev.cpu.0.freq sysctl or turn on powerd. > -Nathan > I looked at that first, but the MPC7455 doesn't have frequency scaling. I looked at the Linux and Darwin sources after reading a linux page that you have to explicitly tell it to go full speed, and it turns out it's a PMU command, and requires a CPU reset, and there are two OFW properties under /cpu, min-clock-frequency and max-clock-frequency. - Justin From owner-freebsd-ppc@FreeBSD.ORG Wed Sep 21 09:38:46 2011 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 3145A106564A for ; Wed, 21 Sep 2011 09:38:46 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from argol.doit.wisc.edu (argol.doit.wisc.edu [144.92.197.212]) by mx1.freebsd.org (Postfix) with ESMTP id 040ED8FC22 for ; Wed, 21 Sep 2011 09:38:45 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth3.wiscmail.wisc.edu by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0LRV003009GLQ900@smtpauth3.wiscmail.wisc.edu> for freebsd-ppc@FreeBSD.org; Wed, 21 Sep 2011 04:38:45 -0500 (CDT) Received: from wanderer.tachypleus.net (nl119-197-51.student.uu.se [130.243.197.51]) by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0LRV000NS9GI3C10@smtpauth3.wiscmail.wisc.edu>; Wed, 21 Sep 2011 04:38:43 -0500 (CDT) Date: Wed, 21 Sep 2011 11:38:40 +0200 From: Nathan Whitehorn In-reply-to: To: Justin Hibbits , FreeBSD PowerPC Message-id: <4E79B0A0.3030906@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=130.243.197.51 X-Spam-PmxInfo: Server=avs-14, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.9.21.92714, SenderIP=130.243.197.51 References: <4E78315F.1040404@freebsd.org> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110917 Thunderbird/6.0.2 Cc: Subject: Re: TiBook CPU speed 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: Wed, 21 Sep 2011 09:38:46 -0000 On 09/20/11 15:32, Justin Hibbits wrote: > On Tue, Sep 20, 2011 at 2:23 AM, Nathan Whitehornwrote: > >> On 09/20/11 05:07, Justin Hibbits wrote: >> >>> Following up on my previous email, the saga of installing FreeBSD on a >>> TiBook, I ran into another problem: The CPU speed is reduced to 666MHz, >>> instead of 1GHz. Is there a way to get it to run at the full 1GHz? >>> >>> >> Just use cpufreq(4) -- the dev.cpu.0.freq sysctl or turn on powerd. >> -Nathan >> > > I looked at that first, but the MPC7455 doesn't have frequency scaling. I > looked at the Linux and Darwin sources after reading a linux page that you > have to explicitly tell it to go full speed, and it turns out it's a PMU > command, and requires a CPU reset, and there are two OFW properties under > /cpu, min-clock-frequency and max-clock-frequency. Ah, yes, this stuff. We only have cpufreq support on PPC 7447/7448 and on later-model G5s. If you're interested in adding support for it, I'm happy to discuss how best to do it. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Wed Sep 21 21:44:12 2011 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 4E340106564A for ; Wed, 21 Sep 2011 21:44:12 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 04F0E8FC0A for ; Wed, 21 Sep 2011 21:44:11 +0000 (UTC) Received: by ywp17 with SMTP id 17so1958538ywp.13 for ; Wed, 21 Sep 2011 14:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=KAHcSGh89PZpNtrum8e8bPqmXkAOe+aVxY45vg+3MC4=; b=oiKQfYdhHmOuc+EGVCLyXIwCgvzQZJMPGklHfCmOSmU9YZVfv3OzAfBntFWziuBO3u KFJ9jFJ14q8+R7f6b52n9JyC8vDgz/MQpFQYa9stHoNFA8/hHccO88uz17bbzeoH/J/v +YCjYoSMr5InDv0Qaj048y/c9Pyd4qIit95ls= MIME-Version: 1.0 Received: by 10.42.173.70 with SMTP id q6mr772745icz.48.1316641447160; Wed, 21 Sep 2011 14:44:07 -0700 (PDT) Received: by 10.68.58.100 with HTTP; Wed, 21 Sep 2011 14:44:07 -0700 (PDT) In-Reply-To: References: Date: Wed, 21 Sep 2011 17:44:07 -0400 Message-ID: From: Super Bisquit To: Emmanuel Chourdakis Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD PowerPC ML Subject: Re: Xorg / FreeBSD 9.0-BETA2 / iMac G5 revB (powerpc64 - radeon) - Bus Error 10 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: Wed, 21 Sep 2011 21:44:12 -0000 On Tue, Sep 20, 2011 at 10:49 AM, Emmanuel Chourdakis wrote: > On Tue, Sep 20, 2011 at 5:15 PM, Super Bisquit > wrote: > > > > > > On Fri, Sep 16, 2011 at 4:04 PM, Emmanuel Chourdakis > > wrote: > >> > >> Hello, thanks for answering. > >> > >> On Fri, Sep 16, 2011 at 6:59 PM, Super Bisquit > >> wrote: > >> > The powerpc binaries should work on powerpc64. The kernel is another > >> > story. > >> > >> I did try to install a package before (another installation) but I > >> guess it needs to update the base system to 32bit as well. Anyway I'm > >> ok with using sources. > >> > >> > > >> > On Thu, Sep 15, 2011 at 5:10 PM, Emmanuel Chourdakis < > eruyome@gmail.com> > >> > wrote: > >> >> > >> >> Hello, thanks for the answers. > >> >> > >> >> On Thu, Sep 15, 2011 at 10:46 PM, Super Bisquit > >> >> > >> >> wrote: > >> >> > > >> >> > > >> >> > On Wed, Sep 14, 2011 at 9:38 AM, Emmanuel Chourdakis > >> >> > > >> >> > wrote: > >> >> >> > >> >> >> Good evening. > >> >> >> > >> >> >> I recently installed FreeBSD 9.0-BETA2 on my powerpc64 iMacG5. > >> >> >> Since I could not find any binaries for it, > >> >> > > >> >> > Available binaries are here: > >> >> > > >> >> > > >> >> > > http://code.google.com/p/freebsd-powerpc-9-0-current-updated-packages/downloads/list > >> >> > >> >> These are for powerpc. Mine is powerpc64. > >> >> > >> >> >> > >> >> >> I tried to install xorg from ports > >> >> >> (I first upgraded the ports and did a build/install world and > >> >> >> kernel). > >> >> >> > >> >> >> I did a Xorg -configure, but when I tried to Xorg -config > >> >> >> /root/xorg.conf.new > >> >> >> I got the following log: http://pastebin.com/v9qT8QU0 > >> >> >> > >> >> >> and my dmesg is: http://pastebin.com/eKuGXjUq > >> >> >> > >> >> >> Is it a bug? Does it appear I did something wrong? Any > suggestions? > >> >> > > >> >> > http://forums.freebsd.org/showthread.php?t=13827 Examples of > >> >> > xorg.conf > >> >> > are > >> >> > in the thread along with other arguments. > >> >> > >> >> Yes, the xorg.conf.new produced by X -configure is almost identical > to > >> >> these (except mine has the 'radeon' driver, tested with > >> >> 'ati' as well). Tried to add tho UseFBDev False option but no luck. > >> > > >> > Anyway you can upload to slexy.com the xorg.conf.new? > >> > >> Sure: > >> http://slexy.org/view/s2ONa1YAEC > >> > >> > > >> >> > >> >> >> > >> >> >> Thank you for your answers > >> >> >> > >> >> >> - Emmanuel > >> >> >> _______________________________________________ > >> >> >> freebsd-ppc@freebsd.org mailing list > >> >> >> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > >> >> >> To unsubscribe, send any mail to > >> >> >> "freebsd-ppc-unsubscribe@freebsd.org" > >> >> > > >> >> > > >> >> > >> >> - Emmanuel > >> > > >> > > >> > >> > >> > >> -- > >> - morthul surinen > >> fenya quelli > >> (R.I.P 0x7D4) > > > > > > Add your mode lines. You need to add the horizsync and vertrefresh rates > for > > your monitor, along with the monitor type.. The "UseFBDev" needs to be > > inline with the other server settings. > > > > Done these; still have the same problem. > http://forums.freebsd.org/showthread.php?t=3519 This thread states that it may be a hardware problem with the signal 10. (I went back over your Xorg.0.log.) Upload the revised xorg.conf- with values added in- and a more recent Xorg.0.log. I'm hoping that Hibbits and Whitehorn are reading this thread. Does the card work if you use a live cd? UBuntu has few older images. If this email is formatted strangely, it is because I screwed up my gmail settings. From owner-freebsd-ppc@FreeBSD.ORG Wed Sep 21 21:48:09 2011 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 53BAF1065670 for ; Wed, 21 Sep 2011 21:48:09 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 14BFA8FC0A for ; Wed, 21 Sep 2011 21:48:08 +0000 (UTC) Received: by iadk27 with SMTP id k27so3456687iad.13 for ; Wed, 21 Sep 2011 14:48:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5OTss0K+q4z3eu9+I4bP9AKZYxC6eQ/46CZgTqvwpMw=; b=yEzrnyP+8gAFFOD8BRGiUPt3PxydwYhtxWFL1BBy+Z+gpwyTx/ZFbQ/bSG7nmTqER5 X4v4ybEXuZ6Gp9OqUaFIIUwWnZoI1zNaWnYIfYaXHQt4iev7J/PXbBe170CMNicPxvxD 7nxHShDuUqlxFgEftZnLkkuyMYXGr5eu3X8/I= MIME-Version: 1.0 Received: by 10.231.26.145 with SMTP id e17mr2446508ibc.41.1316641687980; Wed, 21 Sep 2011 14:48:07 -0700 (PDT) Received: by 10.68.58.100 with HTTP; Wed, 21 Sep 2011 14:48:07 -0700 (PDT) In-Reply-To: References: Date: Wed, 21 Sep 2011 17:48:07 -0400 Message-ID: From: Super Bisquit To: Emmanuel Chourdakis Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD PowerPC ML Subject: Re: Xorg / FreeBSD 9.0-BETA2 / iMac G5 revB (powerpc64 - radeon) - Bus Error 10 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: Wed, 21 Sep 2011 21:48:09 -0000 On Wed, Sep 21, 2011 at 5:44 PM, Super Bisquit wrote: > > > On Tue, Sep 20, 2011 at 10:49 AM, Emmanuel Chourdakis wrote: > >> On Tue, Sep 20, 2011 at 5:15 PM, Super Bisquit >> wrote: >> > >> > >> > On Fri, Sep 16, 2011 at 4:04 PM, Emmanuel Chourdakis > > >> > wrote: >> >> >> >> Hello, thanks for answering. >> >> >> >> On Fri, Sep 16, 2011 at 6:59 PM, Super Bisquit > > >> >> wrote: >> >> > The powerpc binaries should work on powerpc64. The kernel is another >> >> > story. >> >> >> >> I did try to install a package before (another installation) but I >> >> guess it needs to update the base system to 32bit as well. Anyway I'm >> >> ok with using sources. >> >> >> >> > >> >> > On Thu, Sep 15, 2011 at 5:10 PM, Emmanuel Chourdakis < >> eruyome@gmail.com> >> >> > wrote: >> >> >> >> >> >> Hello, thanks for the answers. >> >> >> >> >> >> On Thu, Sep 15, 2011 at 10:46 PM, Super Bisquit >> >> >> >> >> >> wrote: >> >> >> > >> >> >> > >> >> >> > On Wed, Sep 14, 2011 at 9:38 AM, Emmanuel Chourdakis >> >> >> > >> >> >> > wrote: >> >> >> >> >> >> >> >> Good evening. >> >> >> >> >> >> >> >> I recently installed FreeBSD 9.0-BETA2 on my powerpc64 iMacG5. >> >> >> >> Since I could not find any binaries for it, >> >> >> > >> >> >> > Available binaries are here: >> >> >> > >> >> >> > >> >> >> > >> http://code.google.com/p/freebsd-powerpc-9-0-current-updated-packages/downloads/list >> >> >> >> >> >> These are for powerpc. Mine is powerpc64. >> >> >> >> >> >> >> >> >> >> >> I tried to install xorg from ports >> >> >> >> (I first upgraded the ports and did a build/install world and >> >> >> >> kernel). >> >> >> >> >> >> >> >> I did a Xorg -configure, but when I tried to Xorg -config >> >> >> >> /root/xorg.conf.new >> >> >> >> I got the following log: http://pastebin.com/v9qT8QU0 >> >> >> >> >> >> >> >> and my dmesg is: http://pastebin.com/eKuGXjUq >> >> >> >> >> >> >> >> Is it a bug? Does it appear I did something wrong? Any >> suggestions? >> >> >> > >> >> >> > http://forums.freebsd.org/showthread.php?t=13827 Examples of >> >> >> > xorg.conf >> >> >> > are >> >> >> > in the thread along with other arguments. >> >> >> >> >> >> Yes, the xorg.conf.new produced by X -configure is almost identical >> to >> >> >> these (except mine has the 'radeon' driver, tested with >> >> >> 'ati' as well). Tried to add tho UseFBDev False option but no luck. >> >> > >> >> > Anyway you can upload to slexy.com the xorg.conf.new? >> >> >> >> Sure: >> >> http://slexy.org/view/s2ONa1YAEC >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> Thank you for your answers >> >> >> >> >> >> >> >> - Emmanuel >> >> >> >> _______________________________________________ >> >> >> >> freebsd-ppc@freebsd.org mailing list >> >> >> >> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc >> >> >> >> To unsubscribe, send any mail to >> >> >> >> "freebsd-ppc-unsubscribe@freebsd.org" >> >> >> > >> >> >> > >> >> >> >> >> >> - Emmanuel >> >> > >> >> > >> >> >> >> >> >> >> >> -- >> >> - morthul surinen >> >> fenya quelli >> >> (R.I.P 0x7D4) >> > >> > >> > Add your mode lines. You need to add the horizsync and vertrefresh rates >> for >> > your monitor, along with the monitor type.. The "UseFBDev" needs to be >> > inline with the other server settings. >> > >> >> Done these; still have the same problem. >> > http://forums.freebsd.org/showthread.php?t=3519 This thread states that it > may be a hardware problem with the signal 10. (I went back over your > Xorg.0.log.) > > Upload the revised xorg.conf- with values added in- and a more recent > Xorg.0.log. > > > I'm hoping that Hibbits and Whitehorn are reading this thread. > > Does the card work if you use a live cd? > UBuntu has few older images. > > If this email is formatted strangely, it is because I screwed up my gmail > settings. > > > > > I forgot to add that you may need to disable the theatre settings for the card. From owner-freebsd-ppc@FreeBSD.ORG Wed Sep 21 23:36:34 2011 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 AE25D1065673 for ; Wed, 21 Sep 2011 23:36:34 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id 596C88FC16 for ; Wed, 21 Sep 2011 23:36:34 +0000 (UTC) Received: by gwa2 with SMTP id 2so804102gwa.36 for ; Wed, 21 Sep 2011 16:36:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:cc:x-mailer; bh=/wfCiHDyrm4g/aOuRLIrT97MTPSLjYY+cGkb8cMtr0Y=; b=ZiRtGAQbd+1fuES8bmq6hMGxIabq44jDEIUTcDPyZuiycV0Qjcv0qrricfTShnPbP7 qEyeOTk3ljQRAzj4N9ov27FzoFI1fhOJtF+4iXrq0hkZaAM07sZdJUJADMn27w445xlV YEHYJEV6ZjxznsvpHVMwBkvXK2EORSNaFt/R4= Received: by 10.236.173.129 with SMTP id v1mr9457360yhl.25.1316648193669; Wed, 21 Sep 2011 16:36:33 -0700 (PDT) Received: from triad.knownspace (216-15-41-8.c3-0.gth-ubr1.lnh-gth.md.cable.rcn.com. [216.15.41.8]) by mx.google.com with ESMTPS id n67sm8847478yhi.9.2011.09.21.16.36.32 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Sep 2011 16:36:32 -0700 (PDT) Message-Id: <4D05F135-FAD8-4C15-A942-D99F4F552FF6@gmail.com> From: Justin Hibbits To: FreeBSD PowerPC ML Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Wed, 21 Sep 2011 19:36:27 -0400 X-Mailer: Apple Mail (2.936) Cc: freebsd-wireless@freebsd.org Subject: if_bwi on PowerBook G4 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: Wed, 21 Sep 2011 23:36:34 -0000 I'm trying to get a Linksys wireless card working on my PowerBook G4 (PC card, not built-in airport), and running into problems. I've loaded the firmware, but when I load the module, it prints the following messages, and won't try again: bwi0: mem 0x88000000-0x88001fff irq 58 at device 0.0 on cardbus0 bwi0: BBP: id 0x4318, rev 0x2, pkg 2 bwi0: MAC: rev 9 bwi0: PHY: type 2, rev 7, ver 3 bwi0: RF: manu 0x17f, type 0x2050, rev 8 bwi0: invalid antenna gain in sprom I've googled, and seen successes on PowerPC, but not with CardBus (which isn't enabled by default, so could contribute), and seen reports with the same error message, but followed by the antenna gain being read successfully. I'm clueless as to how to proceed with this. Any ideas? - Justin From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 22 00:39:12 2011 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 40E60106566B for ; Thu, 22 Sep 2011 00:39:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 019E98FC0C for ; Thu, 22 Sep 2011 00:39:11 +0000 (UTC) Received: by gyf2 with SMTP id 2so2054052gyf.13 for ; Wed, 21 Sep 2011 17:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=X6pAnqwyxrQxn/aKaQvJUASWh+jJwAM0aCdGud0x6sQ=; b=VRjUYirhV5LbOsb+dyeanjO5SWlKap/GmUgWFzJjafyGSxwKaBb8DQarsFoos1bweQ ZQoi3ug4GfSPfrpCfjYTwmsbI2m422oIgJ61RAIHnufw6b4vicncuCBzDZ3cvvd1fSlj s35xtb3hejUWHPbGgsfIoEiE4own75OggjSn4= MIME-Version: 1.0 Received: by 10.236.136.234 with SMTP id w70mr9827572yhi.21.1316650058292; Wed, 21 Sep 2011 17:07:38 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.111.42 with HTTP; Wed, 21 Sep 2011 17:07:38 -0700 (PDT) In-Reply-To: <4D05F135-FAD8-4C15-A942-D99F4F552FF6@gmail.com> References: <4D05F135-FAD8-4C15-A942-D99F4F552FF6@gmail.com> Date: Thu, 22 Sep 2011 08:07:38 +0800 X-Google-Sender-Auth: 5XDVldpf5Q5oETVwiI5NZam4zVs Message-ID: From: Adrian Chadd To: Justin Hibbits Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, FreeBSD PowerPC ML Subject: Re: if_bwi on PowerBook G4 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, 22 Sep 2011 00:39:12 -0000 On 22 September 2011 07:36, Justin Hibbits wrote: > I'm trying to get a Linksys wireless card working on my PowerBook G4 (PC > card, not built-in airport), and running into problems. =A0I've loaded th= e > firmware, but when I load the module, it prints the following messages, a= nd > won't try again: > > bwi0: mem 0x88000000-0x88001fff > irq 58 at device 0.0 on cardbus0 > bwi0: BBP: id 0x4318, rev 0x2, pkg 2 > bwi0: MAC: rev 9 > bwi0: PHY: type 2, rev 7, ver 3 > bwi0: RF: manu 0x17f, type 0x2050, rev 8 > bwi0: invalid antenna gain in sprom > > I've googled, and seen successes on PowerPC, but not with CardBus (which > isn't enabled by default, so could contribute), and seen reports with the > same error message, but followed by the antenna gain being read > successfully. =A0I'm clueless as to how to proceed with this. I'd start by looking at the source to see why this is the case. It's possible there are endian-ness issues in the driver; I've seen people with issues w/ the broadcom code in Linux when run on PPC. Adrian From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 22 02:47:51 2011 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 7AFB71065670 for ; Thu, 22 Sep 2011 02:47:51 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3713E8FC12 for ; Thu, 22 Sep 2011 02:47:50 +0000 (UTC) Received: by yxk36 with SMTP id 36so2099860yxk.13 for ; Wed, 21 Sep 2011 19:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:from:to:content-type:mime-version:subject:date :x-mailer; bh=TiVcaM3Uu3vUsSsJ4BT4Pm6uAPb47fflwFfYhALEeXk=; b=FkrHORkSqnkvk8K/8iItWCJvR9RQda4hqfG48pUI8yMQV6Tbgigwh8rUBGUIuwhwuY szZ3p7AG/5gfwDVyp3UHBguxZzRlYItQVyYXxKhlRF/mhHwB9u23wJ32RU5tdG51jq4k koq5ZqlmMbVbOeNCaq2PImr55uMfqY8Oy8q1M= Received: by 10.101.143.10 with SMTP id v10mr1450082ann.119.1316659670422; Wed, 21 Sep 2011 19:47:50 -0700 (PDT) Received: from triad.knownspace (216-15-41-8.c3-0.gth-ubr1.lnh-gth.md.cable.rcn.com. [216.15.41.8]) by mx.google.com with ESMTPS id r6sm17130176ank.23.2011.09.21.19.47.49 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Sep 2011 19:47:49 -0700 (PDT) Sender: Justin Hibbits Message-Id: <91CC14C1-14F2-41B3-81F1-D90B42F038CA@alumni.cwru.edu> From: Justin Hibbits To: FreeBSD PowerPC ML Content-Type: multipart/mixed; boundary=Apple-Mail-7--949948817 Mime-Version: 1.0 (Apple Message framework v936) Date: Wed, 21 Sep 2011 22:47:47 -0400 X-Mailer: Apple Mail (2.936) Subject: ofw syscons brightness patch 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, 22 Sep 2011 02:47:51 -0000 --Apple-Mail-7--949948817 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hey guys, Attached is a patch that adds brightness control to ofw syscons (dev.sc.0.brightness sysctl). Pretty simple. Comments and tests requested. Hopefully the listserv doesn't eat the patch. Thanks, Justin --Apple-Mail-7--949948817 Content-Disposition: attachment; filename=ofw_sc_brightness.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="ofw_sc_brightness.diff" Content-Transfer-Encoding: 7bit Index: sys/powerpc/ofw/ofw_syscons.c =================================================================== --- sys/powerpc/ofw/ofw_syscons.c (revision 225715) +++ sys/powerpc/ofw/ofw_syscons.c (working copy) @@ -98,7 +98,11 @@ static vi_putc_t ofwfb_putc; static vi_puts_t ofwfb_puts; static vi_putm_t ofwfb_putm; +static int brightness; +static void ofwfb_set_brightness(int); +static int ofwfb_set_brightness_sc(SYSCTL_HANDLER_ARGS); + static video_switch_t ofwfbvidsw = { .probe = ofwfb_probe, .init = ofwfb_init, @@ -185,6 +189,7 @@ static u_int16_t ofwfb_static_window[ROW*COL]; static struct ofwfb_softc ofwfb_softc; +static ihandle_t stdout_ih; static __inline int ofwfb_background(uint8_t attr) @@ -399,7 +404,6 @@ { struct ofwfb_softc *sc; char name[64]; - ihandle_t ih; int i, retval; sc = (struct ofwfb_softc *)adp; @@ -410,7 +414,7 @@ memset(name, 0, sizeof(name)); OF_package_to_path(sc->sc_node, name, sizeof(name)); - ih = OF_open(name); + stdout_ih = OF_open(name); if (sc->sc_depth == 8) { /* @@ -418,7 +422,7 @@ * don't do this by default */ for (i = 0; i < 16; i++) { - OF_call_method("color!", ih, 4, 1, + OF_call_method("color!", stdout_ih, 4, 1, ofwfb_cmap[i].red, ofwfb_cmap[i].green, ofwfb_cmap[i].blue, @@ -965,10 +969,49 @@ static int ofwfb_scattach(device_t dev) { + struct sysctl_ctx_list *ctx; + struct sysctl_oid *tree; + + ctx = device_get_sysctl_ctx(dev); + tree = device_get_sysctl_tree(dev); + + SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, + "brightness", CTLTYPE_INT | CTLFLAG_RW, NULL, 0, + ofwfb_set_brightness_sc, "I", "Adjust the brightness of the screen"); + + ofwfb_set_brightness(DEFAULT_BRIGHTNESS); + return (sc_attach_unit(device_get_unit(dev), device_get_flags(dev) | SC_AUTODETECT_KBD)); } +static void ofwfb_set_brightness(int newbright) +{ + /* If the backlight is off already, turn it on. */ + if (newbright < MIN_BRIGHTNESS) + if (brightness == 0) + newbright = MIN_BRIGHTNESS; + else + newbright = 0; + else if (newbright > MAX_BRIGHTNESS) + newbright = MAX_BRIGHTNESS; + OF_call_method("set-contrast", stdout_ih, 1, 0, newbright); + brightness = newbright; +} + +static int ofwfb_set_brightness_sc(SYSCTL_HANDLER_ARGS) +{ + int newbright = brightness; + int error; + + error = sysctl_handle_int(oidp, &newbright, 0, req); + + if (error || !req->newptr) + return error; + ofwfb_set_brightness(newbright); + return (0); +} + static device_method_t ofwfb_sc_methods[] = { DEVMETHOD(device_identify, ofwfb_scidentify), DEVMETHOD(device_probe, ofwfb_scprobe), Index: sys/powerpc/ofw/ofw_syscons.h =================================================================== --- sys/powerpc/ofw/ofw_syscons.h (revision 225715) +++ sys/powerpc/ofw/ofw_syscons.h (working copy) @@ -29,6 +29,11 @@ #ifndef _OFW_SYSCONS_H_ #define _OFW_SYSCONS_H_ +#define MIN_BRIGHTNESS 0x34 +#define MAX_BRIGHTNESS 0xFF +#define DEFAULT_BRIGHTNESS 0x80 +#define STEP_BRIGHTNESS 0x08 + struct ofwfb_softc { video_adapter_t sc_va; struct cdev *sc_si; --Apple-Mail-7--949948817 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-7--949948817-- From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 22 03:44:27 2011 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 E1FF71065673 for ; Thu, 22 Sep 2011 03:44:27 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id A373A8FC13 for ; Thu, 22 Sep 2011 03:44:27 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id 658DA11AA8; Thu, 22 Sep 2011 13:25:21 +1000 (EST) Received: from sshilpa2-lxp.hq.netapp.com (pos-ext.netapp.com [198.95.226.40]) by dommail.onthenet.com.au (MOS 4.1.10-GA) with ESMTP id AYL86765 (AUTH peterg@ptree32.com.au); Thu, 22 Sep 2011 13:25:19 +1000 Message-ID: <4E7AAA9D.9010503@freebsd.org> Date: Wed, 21 Sep 2011 21:25:17 -0600 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.22) Gecko/20110902 Thunderbird/3.1.14 MIME-Version: 1.0 To: Justin Hibbits References: <91CC14C1-14F2-41B3-81F1-D90B42F038CA@alumni.cwru.edu> In-Reply-To: <91CC14C1-14F2-41B3-81F1-D90B42F038CA@alumni.cwru.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD PowerPC ML Subject: Re: ofw syscons brightness patch 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, 22 Sep 2011 03:44:28 -0000 Hi Justin, > Attached is a patch that adds brightness control to ofw syscons > (dev.sc.0.brightness sysctl). Pretty simple. Comments and tests > requested. Hopefully the listserv doesn't eat the patch. Is it possible to have the value in the sysctl be 0-100, or 0-10 ? It might be a bit confusing for the user to have to know that the range is 0x34-0xff, and have the sysctl code clamp to these. Are the MIN_BRIGHTNESS/MAX_BRIGHTNESS values the same for all models ? later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 22 03:48:47 2011 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 D3439106566C for ; Thu, 22 Sep 2011 03:48:47 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 91BFA8FC0A for ; Thu, 22 Sep 2011 03:48:47 +0000 (UTC) Received: by gyf2 with SMTP id 2so2139208gyf.13 for ; Wed, 21 Sep 2011 20:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=L2r6t+Na9m/NoDtB0jW5bwxPMxq9gTfKrd7jOq3aDQI=; b=P/CSomBRoa99yk0AXSY/qEDzYdQJH1T1W5GR+77APEF1Mc7ShhWOevlvN4BNGp7gtc CGS6tAO4ZzxNp6ljTUgqQFtWbPI/fbYjbCjpzdI6Qoba2SJiOzBWjnKt0RVqvnlc+j+R iksNyhAz8716qMmYyZvkXl2doFIF7OsRToJNI= MIME-Version: 1.0 Received: by 10.68.19.100 with SMTP id d4mr1476802pbe.35.1316663326451; Wed, 21 Sep 2011 20:48:46 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.142.132.17 with HTTP; Wed, 21 Sep 2011 20:48:46 -0700 (PDT) In-Reply-To: <4E7AAA9D.9010503@freebsd.org> References: <91CC14C1-14F2-41B3-81F1-D90B42F038CA@alumni.cwru.edu> <4E7AAA9D.9010503@freebsd.org> Date: Wed, 21 Sep 2011 23:48:46 -0400 X-Google-Sender-Auth: AtH0N4p1iaRxsOpllNYWtWwAHs0 Message-ID: From: Justin Hibbits To: Peter Grehan Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD PowerPC ML Subject: Re: ofw syscons brightness patch 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, 22 Sep 2011 03:48:48 -0000 On Wed, Sep 21, 2011 at 11:25 PM, Peter Grehan wrote: > Hi Justin, > > > Attached is a patch that adds brightness control to ofw syscons >> (dev.sc.0.brightness sysctl). Pretty simple. Comments and tests >> requested. Hopefully the listserv doesn't eat the patch. >> > > Is it possible to have the value in the sysctl be 0-100, or 0-10 ? It > might be a bit confusing for the user to have to know that the range is > 0x34-0xff, and have the sysctl code clamp to these. > > Are the MIN_BRIGHTNESS/MAX_BRIGHTNESS values the same for all models ? > > later, > > Peter. > Good points. I took those values from OpenBSD's driver, which hides it in an ioctl (not hidden very well, it still leaks out to userspace), so I'm assuming it's the same for all models. I can apply a simple scale factor, and clamp it at 0-100 (capped below 0xff for even intervals), or 0-17 (perfect increments of 12, capped at 0xff). I also plan to make it check the model for "PowerBook" and similar, so that it's not provided for non-laptop (and iMac?) machines. - Justin From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 22 06:48:22 2011 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 E58091065672; Thu, 22 Sep 2011 06:48:22 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id B58758FC17; Thu, 22 Sep 2011 06:48:22 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0LRW00M00W8L2F00@smtpauth1.wiscmail.wisc.edu>; Thu, 22 Sep 2011 01:48:21 -0500 (CDT) Received: from wanderer.tachypleus.net (nl119-197-51.student.uu.se [130.243.197.51]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0LRW00DA1W8IYS20@smtpauth1.wiscmail.wisc.edu>; Thu, 22 Sep 2011 01:48:20 -0500 (CDT) Date: Thu, 22 Sep 2011 08:48:17 +0200 From: Nathan Whitehorn In-reply-to: To: Adrian Chadd Message-id: <4E7ADA31.10307@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=130.243.197.51 X-Spam-PmxInfo: Server=avs-14, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.9.22.63615, SenderIP=130.243.197.51 References: <4D05F135-FAD8-4C15-A942-D99F4F552FF6@gmail.com> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110917 Thunderbird/6.0.2 Cc: freebsd-wireless@freebsd.org, Justin Hibbits , FreeBSD PowerPC ML Subject: Re: if_bwi on PowerBook G4 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, 22 Sep 2011 06:48:23 -0000 On 09/22/11 02:07, Adrian Chadd wrote: > On 22 September 2011 07:36, Justin Hibbits wrote: >> I'm trying to get a Linksys wireless card working on my PowerBook G4 (PC >> card, not built-in airport), and running into problems. I've loaded the >> firmware, but when I load the module, it prints the following messages, and >> won't try again: >> >> bwi0: mem 0x88000000-0x88001fff >> irq 58 at device 0.0 on cardbus0 >> bwi0: BBP: id 0x4318, rev 0x2, pkg 2 >> bwi0: MAC: rev 9 >> bwi0: PHY: type 2, rev 7, ver 3 >> bwi0: RF: manu 0x17f, type 0x2050, rev 8 >> bwi0: invalid antenna gain in sprom >> >> I've googled, and seen successes on PowerPC, but not with CardBus (which >> isn't enabled by default, so could contribute), and seen reports with the >> same error message, but followed by the antenna gain being read >> successfully. I'm clueless as to how to proceed with this. > > I'd start by looking at the source to see why this is the case. > It's possible there are endian-ness issues in the driver; I've seen > people with issues w/ the broadcom code in Linux when run on PPC. For whatever it's worth, bwn(4) works on my G4 iBook, despite reporting the same error. However, it ends up running at very much the wrong gain, and I need to be 4 times closer to the AP when running FreeBSD than OS X. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 22 07:06:30 2011 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 7EC471065674; Thu, 22 Sep 2011 07:06:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1781F8FC19; Thu, 22 Sep 2011 07:06:29 +0000 (UTC) Received: by gxk26 with SMTP id 26so1184831gxk.13 for ; Thu, 22 Sep 2011 00:06:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=2DX+z7fYvCLpmcUnnHuVwwQmGx7woAuvliWR/lX/tYQ=; b=V0ICoSpMVCI/EmeGxrNuR7Pl3ZzdFFFvxd+fXaDaL2C5zpYPDdagp8UYAyJS0/NcH5 uwQotic9iKbtp+K2g1P9oMiXsbbpicbM3pn77788Erqe3Lu4fPfokvo3fbG0Mne+THjx IqcK+tKK4eFNGReOKOmfJ6NAhdFkRWxsZyyms= MIME-Version: 1.0 Received: by 10.236.75.227 with SMTP id z63mr11047531yhd.55.1316675189381; Thu, 22 Sep 2011 00:06:29 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.111.42 with HTTP; Thu, 22 Sep 2011 00:06:29 -0700 (PDT) In-Reply-To: <4E7ADA31.10307@freebsd.org> References: <4D05F135-FAD8-4C15-A942-D99F4F552FF6@gmail.com> <4E7ADA31.10307@freebsd.org> Date: Thu, 22 Sep 2011 15:06:29 +0800 X-Google-Sender-Auth: jYbQK-l_GRnKfB8Dr5PU4Wn5abg Message-ID: From: Adrian Chadd To: Nathan Whitehorn Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Justin Hibbits , FreeBSD PowerPC ML Subject: Re: if_bwi on PowerBook G4 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, 22 Sep 2011 07:06:30 -0000 Can someone please go over this with a fine tooth endian comb? This smells to me like endian issues. Adrian From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 22 14:45:22 2011 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 B5CCF106566B for ; Thu, 22 Sep 2011 14:45:22 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 731F78FC14 for ; Thu, 22 Sep 2011 14:45:22 +0000 (UTC) Received: by gxk26 with SMTP id 26so1514130gxk.13 for ; Thu, 22 Sep 2011 07:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2Y3EJLMmT1p9DLU86Yy/6XpvkjtWo50Pg01VF9OjG7g=; b=HV6+/0zYXzmk5ruh4PHANqsigVVZr3OuYBZJ53dyfxB2c4QJEuTLVT2m3Ci2ZL8byT lMTgkeCRDtHyv8LUJDTMmtqLuSELoCK+Qm+pLBCFRSbivi8buGiFhNCwtZI+HfOaV+6R D7uwResnvOQTWjBYkPfHaWu4ALUlzzq79ITdo= MIME-Version: 1.0 Received: by 10.68.16.38 with SMTP id c6mr4518933pbd.5.1316702721512; Thu, 22 Sep 2011 07:45:21 -0700 (PDT) Received: by 10.68.58.100 with HTTP; Thu, 22 Sep 2011 07:45:21 -0700 (PDT) In-Reply-To: References: <91CC14C1-14F2-41B3-81F1-D90B42F038CA@alumni.cwru.edu> <4E7AAA9D.9010503@freebsd.org> Date: Thu, 22 Sep 2011 10:45:21 -0400 Message-ID: From: Super Bisquit To: Justin Hibbits Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Peter Grehan , FreeBSD PowerPC ML Subject: Re: ofw syscons brightness patch 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, 22 Sep 2011 14:45:22 -0000 On Wed, Sep 21, 2011 at 11:48 PM, Justin Hibbits wrote: > On Wed, Sep 21, 2011 at 11:25 PM, Peter Grehan wrote: > > > Hi Justin, > > > > > > Attached is a patch that adds brightness control to ofw syscons > >> (dev.sc.0.brightness sysctl). Pretty simple. Comments and tests > >> requested. Hopefully the listserv doesn't eat the patch. > >> > > > > Is it possible to have the value in the sysctl be 0-100, or 0-10 ? It > > might be a bit confusing for the user to have to know that the range is > > 0x34-0xff, and have the sysctl code clamp to these. > > > > Are the MIN_BRIGHTNESS/MAX_BRIGHTNESS values the same for all models ? > > > > later, > > > > Peter. > > > > Good points. I took those values from OpenBSD's driver, which hides it in > an ioctl (not hidden very well, it still leaks out to userspace), so I'm > assuming it's the same for all models. I can apply a simple scale factor, > and clamp it at 0-100 (capped below 0xff for even intervals), or 0-17 > (perfect increments of 12, capped at 0xff). I also plan to make it check > the model for "PowerBook" and similar, so that it's not provided for > non-laptop (and iMac?) machines. > > - Justin > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" > When will the code be added to source? From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 22 20:52:46 2011 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 447A61065672; Thu, 22 Sep 2011 20:52:46 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id D244D8FC12; Thu, 22 Sep 2011 20:52:45 +0000 (UTC) Received: by yxk36 with SMTP id 36so2872672yxk.13 for ; Thu, 22 Sep 2011 13:52:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:cc:message-id:from:to:in-reply-to:content-type:mime-version :subject:date:references:x-mailer; bh=LbjDarIXMv8f9AxJwuVMDdH1x0M/xg4Caiq5JsQ2vUo=; b=i2dCmjrlzZxVZO/4Ekz3fx87WtqrQ/IF11pTJpNRx5IBMv7OiebSpcVAK6Gz7xVi08 GhZ2e/P2I8aBElbx6L1Pzrz6xtW9CasmgX0zawn3YIrKiG3o8odHasMTGA5r1hhySPKv Ys9+umqc/H2MwdJcOlvrYx7yFlpIC2LxPKi74= Received: by 10.150.191.20 with SMTP id o20mr2695866ybf.205.1316724765209; Thu, 22 Sep 2011 13:52:45 -0700 (PDT) Received: from triad.knownspace (216-15-41-8.c3-0.gth-ubr1.lnh-gth.md.cable.rcn.com. [216.15.41.8]) by mx.google.com with ESMTPS id i28sm33948976anm.11.2011.09.22.13.52.43 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Sep 2011 13:52:44 -0700 (PDT) Sender: Justin Hibbits Message-Id: From: Justin Hibbits To: Peter Grehan In-Reply-To: <4E7AAA9D.9010503@freebsd.org> Content-Type: multipart/mixed; boundary=Apple-Mail-11--884856648 Mime-Version: 1.0 (Apple Message framework v936) Date: Thu, 22 Sep 2011 16:52:39 -0400 References: <91CC14C1-14F2-41B3-81F1-D90B42F038CA@alumni.cwru.edu> <4E7AAA9D.9010503@freebsd.org> X-Mailer: Apple Mail (2.936) Cc: FreeBSD PowerPC ML Subject: Re: ofw syscons brightness patch 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, 22 Sep 2011 20:52:46 -0000 --Apple-Mail-11--884856648 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Sep 21, 2011, at 11:25 PM, Peter Grehan wrote: > Hi Justin, > >> Attached is a patch that adds brightness control to ofw syscons >> (dev.sc.0.brightness sysctl). Pretty simple. Comments and tests >> requested. Hopefully the listserv doesn't eat the patch. > > Is it possible to have the value in the sysctl be 0-100, or 0-10 ? > It might be a bit confusing for the user to have to know that the > range is 0x34-0xff, and have the sysctl code clamp to these. > > Are the MIN_BRIGHTNESS/MAX_BRIGHTNESS values the same for all models ? > > later, > > Peter. Patch take 2 - Range is 0-12. Not sure how to present this to the user. Anything above 12 is capped at 12. - Justin --Apple-Mail-11--884856648 Content-Disposition: attachment; filename=ofw_sc_brightness.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="ofw_sc_brightness.diff" Content-Transfer-Encoding: 7bit Index: sys/powerpc/ofw/ofw_syscons.c =================================================================== --- sys/powerpc/ofw/ofw_syscons.c (revision 225715) +++ sys/powerpc/ofw/ofw_syscons.c (working copy) @@ -98,7 +98,11 @@ static vi_putc_t ofwfb_putc; static vi_puts_t ofwfb_puts; static vi_putm_t ofwfb_putm; +static int brightness; +static void ofwfb_set_brightness(int); +static int ofwfb_set_brightness_sc(SYSCTL_HANDLER_ARGS); + static video_switch_t ofwfbvidsw = { .probe = ofwfb_probe, .init = ofwfb_init, @@ -185,6 +189,7 @@ static u_int16_t ofwfb_static_window[ROW*COL]; static struct ofwfb_softc ofwfb_softc; +static ihandle_t stdout_ih; static __inline int ofwfb_background(uint8_t attr) @@ -399,7 +404,6 @@ { struct ofwfb_softc *sc; char name[64]; - ihandle_t ih; int i, retval; sc = (struct ofwfb_softc *)adp; @@ -410,7 +414,7 @@ memset(name, 0, sizeof(name)); OF_package_to_path(sc->sc_node, name, sizeof(name)); - ih = OF_open(name); + stdout_ih = OF_open(name); if (sc->sc_depth == 8) { /* @@ -418,7 +422,7 @@ * don't do this by default */ for (i = 0; i < 16; i++) { - OF_call_method("color!", ih, 4, 1, + OF_call_method("color!", stdout_ih, 4, 1, ofwfb_cmap[i].red, ofwfb_cmap[i].green, ofwfb_cmap[i].blue, @@ -965,10 +969,66 @@ static int ofwfb_scattach(device_t dev) { + char model[32]; + struct sysctl_ctx_list *ctx; + struct sysctl_oid *tree; + phandle_t rootnode; + + ctx = device_get_sysctl_ctx(dev); + tree = device_get_sysctl_tree(dev); + + rootnode = OF_finddevice("/"); + + /* Brightness can only be adjusted on PowerBook/iBook + * (maybe iMac, but can't confirm) + */ + if (OF_getprop(rootnode, "model", model, sizeof(model)) > 0) { + if (strncmp(model, "PowerBook",9) == 0) { + SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, + "brightness", CTLTYPE_UINT | CTLFLAG_RW, NULL, 0, + ofwfb_set_brightness_sc, "I", "Adjust the brightness of the screen"); + + ofwfb_set_brightness(DEFAULT_BRIGHTNESS); + } + } + return (sc_attach_unit(device_get_unit(dev), device_get_flags(dev) | SC_AUTODETECT_KBD)); } +static void ofwfb_set_brightness(int newbright) +{ + if (newbright > MAX_BRIGHTNESS) + newbright = MAX_BRIGHTNESS; + + /* Cache the new brightness level before scaling. */ + brightness = newbright; + + if (newbright > 0) + { + /* Scale by 17, so it's a range of 0-12. Also, from OpenBSD's source, + * 0x34 is the minimum brightness allowed before the backlight shuts off. + */ + newbright = newbright * 17 + 0x34; + if (newbright > 255) + newbright = 255; + } + OF_call_method("set-contrast", stdout_ih, 1, 0, newbright); +} + +static int ofwfb_set_brightness_sc(SYSCTL_HANDLER_ARGS) +{ + int newbright = brightness; + int error; + + error = sysctl_handle_int(oidp, &newbright, 0, req); + + if (error || !req->newptr) + return error; + ofwfb_set_brightness(newbright); + return (0); +} + static device_method_t ofwfb_sc_methods[] = { DEVMETHOD(device_identify, ofwfb_scidentify), DEVMETHOD(device_probe, ofwfb_scprobe), Index: sys/powerpc/ofw/ofw_syscons.h =================================================================== --- sys/powerpc/ofw/ofw_syscons.h (revision 225715) +++ sys/powerpc/ofw/ofw_syscons.h (working copy) @@ -29,6 +29,10 @@ #ifndef _OFW_SYSCONS_H_ #define _OFW_SYSCONS_H_ +#define MIN_BRIGHTNESS 0 +#define MAX_BRIGHTNESS 12 +#define DEFAULT_BRIGHTNESS 6 + struct ofwfb_softc { video_adapter_t sc_va; struct cdev *sc_si; --Apple-Mail-11--884856648 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-11--884856648-- From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 22 22:15:09 2011 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 A6D7410656A3 for ; Thu, 22 Sep 2011 22:15:09 +0000 (UTC) (envelope-from freebsd-ppc@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 63F278FC12 for ; Thu, 22 Sep 2011 22:15:09 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R6rJN-0002Zo-Pf for freebsd-ppc@freebsd.org; Fri, 23 Sep 2011 00:00:05 +0200 Received: from odyssee.gentiane.org ([80.65.224.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Sep 2011 00:00:05 +0200 Received: from miod by odyssee.gentiane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Sep 2011 00:00:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-ppc@freebsd.org From: Miod Vallat Date: Thu, 22 Sep 2011 21:17:50 +0000 (UTC) Organization: Prumpleffer Gmbh Lines: 11 Message-ID: References: <91CC14C1-14F2-41B3-81F1-D90B42F038CA@alumni.cwru.edu> <4E7AAA9D.9010503@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: odyssee.gentiane.org User-Agent: slrn/0.9.9p1 (OpenBSD) Subject: Re: ofw syscons brightness patch 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, 22 Sep 2011 22:15:09 -0000 > + /* Scale by 17, so it's a range of 0-12. Also, from OpenBSD's source, > + * 0x34 is the minimum brightness allowed before the backlight shuts off. I wrote that code long ago. It was tested on an early iBook G3, and found out to not work (i.e. the OFW method does nothing or does not exist) on most of the TiBook and recent iBook of the 2002-2005 years. I have no idea if more recent models behave any better, but in any case do not expect this to work on all systems. Miod From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 22 23:10:51 2011 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 61A9E106566B for ; Thu, 22 Sep 2011 23:10:51 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 19F1E8FC14 for ; Thu, 22 Sep 2011 23:10:50 +0000 (UTC) Received: by yxk36 with SMTP id 36so2957663yxk.13 for ; Thu, 22 Sep 2011 16:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wygrJDC4NmInkdzxEsMcxenhLRvO6Q68cGcMaU6NWRI=; b=gkf9A31WwLkwRP0KTi6QVjUbMxaiJApuDj236m8KnJdiLXu3JX0/eg1Bj5cHVtmTG4 XUuMBq/POcycEJ+mldNyDaiKzfZG6yRYwuyydBWrf+4Cn3NDG00RC1Qbid4NSahpuSh4 sbB/cCno5aY5hFCU6qFNByCqVML9NHDSC2JS4= MIME-Version: 1.0 Received: by 10.68.8.195 with SMTP id t3mr6590756pba.107.1316733049904; Thu, 22 Sep 2011 16:10:49 -0700 (PDT) Received: by 10.68.58.100 with HTTP; Thu, 22 Sep 2011 16:10:49 -0700 (PDT) In-Reply-To: References: <91CC14C1-14F2-41B3-81F1-D90B42F038CA@alumni.cwru.edu> <4E7AAA9D.9010503@freebsd.org> Date: Thu, 22 Sep 2011 19:10:49 -0400 Message-ID: From: Super Bisquit To: Miod Vallat Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-ppc@freebsd.org Subject: Re: ofw syscons brightness patch 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, 22 Sep 2011 23:10:51 -0000 On Thu, Sep 22, 2011 at 5:17 PM, Miod Vallat wrote: > > + /* Scale by 17, so it's a range of 0-12. Also, from > OpenBSD's source, > > + * 0x34 is the minimum brightness allowed before the > backlight shuts off. > > I wrote that code long ago. It was tested on an early iBook G3, and > found out to not work (i.e. the OFW method does nothing or does not > exist) on most of the TiBook and recent iBook of the 2002-2005 years. > > I have no idea if more recent models behave any better, but in any case > do not expect this to work on all systems. > > Miod > > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" > Has the code been tested on iMacs or PowerMacs? From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 23 01:26:12 2011 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 7898F106566C for ; Fri, 23 Sep 2011 01:26:12 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2CD3C8FC15 for ; Fri, 23 Sep 2011 01:26:11 +0000 (UTC) Received: by ywp17 with SMTP id 17so3029738ywp.13 for ; Thu, 22 Sep 2011 18:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; bh=uQSnsdOimOmsr8W/Sl7wim68jUBA8+FP6WRunow/wx4=; b=IXc8rfbaph4mLx22y9Wfm+7HZMGpaf8aX1gZI7rIiVqj/z9im6TbOS9447QJyERT+B vXZI/zyxl8XRJnJaouHd9T/iKJdtTlO6VwCE07dSpTsYJ0tvr3YADKx+lGQNTbtTL8zN r3Hj+mhv/p2PAWT9hOedsKVjzx5DFpZVHib0U= Received: by 10.101.148.13 with SMTP id a13mr2759585ano.44.1316741171440; Thu, 22 Sep 2011 18:26:11 -0700 (PDT) Received: from triad.knownspace (216-15-41-8.c3-0.gth-ubr1.lnh-gth.md.cable.rcn.com. [216.15.41.8]) by mx.google.com with ESMTPS id a35sm19093439ana.10.2011.09.22.18.26.10 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Sep 2011 18:26:10 -0700 (PDT) Message-Id: <60817CE0-A4FE-44A1-A463-99BCD87AF99F@gmail.com> From: Justin Hibbits To: Miod Vallat In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Thu, 22 Sep 2011 21:26:08 -0400 References: <91CC14C1-14F2-41B3-81F1-D90B42F038CA@alumni.cwru.edu> <4E7AAA9D.9010503@freebsd.org> X-Mailer: Apple Mail (2.936) Cc: freebsd-ppc@freebsd.org Subject: Re: ofw syscons brightness patch 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, 23 Sep 2011 01:26:12 -0000 On Sep 22, 2011, at 5:17 PM, Miod Vallat wrote: >> + /* Scale by 17, so it's a range of 0-12. Also, from OpenBSD's >> source, >> + * 0x34 is the minimum brightness allowed before the backlight >> shuts off. > > I wrote that code long ago. It was tested on an early iBook G3, and > found out to not work (i.e. the OFW method does nothing or does not > exist) on most of the TiBook and recent iBook of the 2002-2005 years. > > I have no idea if more recent models behave any better, but in any > case > do not expect this to work on all systems. > > Miod It works quite well on my 1GHz TiBook, which was the purpose of writing this in the first place. I would like others to test it on other hardware. - Justin From owner-freebsd-ppc@FreeBSD.ORG Sat Sep 24 15:14:08 2011 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 04E12106566B; Sat, 24 Sep 2011 15:14:08 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9F12B8FC0C; Sat, 24 Sep 2011 15:14:07 +0000 (UTC) Received: by yia13 with SMTP id 13so4257322yia.13 for ; Sat, 24 Sep 2011 08:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:cc:x-mailer; bh=7O7Ggt023GGRVzq571fZzesxAn3yYpfd+N4jAWbeBH0=; b=BbHbIy5I5GVw0TLV41LJ5XDbFA4peZllYubghHqu+IbW9dPXS4hKidznr6Hdixo78k NINShiR4M6LBRPjnPH+EhXKG4IeHfvLNfwAv/RlbKn7rcUjHcMPTErwUdwyrn6a7CQDj qGedTxOQqg0a7CCW0X3cLMaD6dupVARA8T72Q= Received: by 10.101.147.3 with SMTP id z3mr4266991ann.168.1316877246902; Sat, 24 Sep 2011 08:14:06 -0700 (PDT) Received: from triad.knownspace (216-15-41-8.c3-0.gth-ubr1.lnh-gth.md.cable.rcn.com. [216.15.41.8]) by mx.google.com with ESMTPS id k12sm50816814anc.19.2011.09.24.08.14.05 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 24 Sep 2011 08:14:05 -0700 (PDT) Sender: Justin Hibbits Message-Id: <9CA9DCD5-2B81-443D-BAC9-1B5D9E703B15@alumni.cwru.edu> From: Justin Hibbits To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Sat, 24 Sep 2011 11:14:02 -0400 X-Mailer: Apple Mail (2.936) Cc: FreeBSD PowerPC ML Subject: if_wi attachment for mac-io 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: Sat, 24 Sep 2011 15:14:08 -0000 In my quest to get some form of wireless on my TiBook, I decided to write the necessary mac-io attachment for if_wi (putting the if_bwi off to the side for now). However, it appears that there's an endian issue with it: pci0: driver added pci1: driver added pci2: driver added found-> vendor=0x11c1, dev=0x5811, revid=0x00 domain=2, bus=0, slot=14, func=0 class=0c-00-10, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x0290, cachelnsz=8 (dwords) lattimer=0x10 (480 ns), mingnt=0x0c (3000 ns), maxlat=0x18 (6000 ns) intpin=a, irq=40 powerspec 2 supports D0 D1 D2 D3 current D0 pci2:0:14:0: reprobing on driver added wi0: mem 0x30000-0x300ff,0x1a000-0x1a0ff,0-0xff irq 57 on macio0 wi0: record read mismatch, rid=fd0b, got=bfd wi0: using Unknown Lucent chip wi0: record read mismatch, rid=fd20, got=20fd wi0: Hermes Firmware: Station (0.0.0) wi0: Sorry, this card is not supported (type 1, firmware ver 0) device_attach: wi0 attach returned 45 Is there a way to add a shim underneath the driver, or something else so as not to be too intrusive to the if_wi driver? - Justin