From owner-freebsd-arm@freebsd.org Thu Sep 3 14:27:55 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61AFD9CA2F1 for ; Thu, 3 Sep 2015 14:27:55 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.126.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gromit.dlib.vt.edu", Issuer "Chumby Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A5F86D0 for ; Thu, 3 Sep 2015 14:27:55 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from pmather.lib.vt.edu (pmather.lib.vt.edu [128.173.126.193]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gromit.dlib.vt.edu (Postfix) with ESMTPSA id 7C3DC5B9; Thu, 3 Sep 2015 10:27:47 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: some general questions regarding freebsd on rasp pi From: Paul Mather In-Reply-To: <20150903141622.GA42047@potato.growveg.org> Date: Thu, 3 Sep 2015 10:27:47 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <5C8F46FD-ED2A-4B30-A10F-6A666A3E0816@gromit.dlib.vt.edu> References: <20150901155024.GA46253@potato.growveg.org> <20150902134931.GA2221@potato.growveg.org> <20150903141622.GA42047@potato.growveg.org> To: freebsd-arm , John X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2015 14:27:55 -0000 On Sep 3, 2015, at 10:16 AM, John = wrote: > On Wed, Sep 02, 2015 at 02:49:31PM +0100, John wrote: >=20 >> Just need to update ports and start building what I need. One answer = i've not been able >> to find - is it easy to clock the pi under freebsd? Looking for 1GHz=20= >> (think the ram is half this) >=20 > in the grand tradition of answering myself, the way to do this with = the rasp 2 >=20 > hw.cpufreq.turbo=3D1 > dev.cpu.0.freq=3D900 >=20 > in /etc/sysctl.conf and reboot, or modify them directly. Now i have: >=20 > # sysctl hw.cpufreq > hw.cpufreq.temperature: 43312 > hw.cpufreq.voltage_sdram_p: 1200000 > hw.cpufreq.voltage_sdram_i: 1200000 > hw.cpufreq.voltage_sdram_c: 1200000 > hw.cpufreq.voltage_core: 1312500 > hw.cpufreq.turbo: 1 > hw.cpufreq.sdram_freq: 450000000 > hw.cpufreq.core_freq: 250000000 > hw.cpufreq.arm_freq: 900000000 >=20 > and >=20 > # sysctl dev.cpu > dev.cpu.3.%parent: cpulist0 > dev.cpu.3.%pnpinfo: name=3Dcpu@3 compat=3Darm,cortex-a7 > dev.cpu.3.%location:=20 > dev.cpu.3.%driver: cpu > dev.cpu.3.%desc: Open Firmware CPU > dev.cpu.2.%parent: cpulist0 > dev.cpu.2.%pnpinfo: name=3Dcpu@2 compat=3Darm,cortex-a7 > dev.cpu.2.%location:=20 > dev.cpu.2.%driver: cpu > dev.cpu.2.%desc: Open Firmware CPU > dev.cpu.1.%parent: cpulist0 > dev.cpu.1.%pnpinfo: name=3Dcpu@1 compat=3Darm,cortex-a7 > dev.cpu.1.%location:=20 > dev.cpu.1.%driver: cpu > dev.cpu.1.%desc: Open Firmware CPU > dev.cpu.0.temperature: 42.2C > dev.cpu.0.freq_levels: 900/-1 600/-1 > dev.cpu.0.freq: 900 > dev.cpu.0.%parent: cpulist0 > dev.cpu.0.%pnpinfo: name=3Dcpu@0 compat=3Darm,cortex-a7 > dev.cpu.0.%location:=20 > dev.cpu.0.%driver: cpu > dev.cpu.0.%desc: Open Firmware CPU > dev.cpu.%parent: FWIW, I believe that powerd is supported on the Raspberry Pi 2, so if = you add powerd_enable=3D"YES" to your /etc/rc.conf it will switch = between the two CPU frequencies depending upon CPU load. Cheers, Paul.