Date: Thu, 3 Sep 2015 10:27:47 -0400 From: Paul Mather <paul@gromit.dlib.vt.edu> To: freebsd-arm <freebsd-arm@freebsd.org>, John <freebsd-lists@potato.growveg.org> Subject: Re: some general questions regarding freebsd on rasp pi Message-ID: <5C8F46FD-ED2A-4B30-A10F-6A666A3E0816@gromit.dlib.vt.edu> In-Reply-To: <20150903141622.GA42047@potato.growveg.org> References: <20150901155024.GA46253@potato.growveg.org> <CANCZdfq4stZoMM_EtpZz0rw3DGwH18tMX-DanFRy-mud19noaQ@mail.gmail.com> <20150902134931.GA2221@potato.growveg.org> <20150903141622.GA42047@potato.growveg.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 3, 2015, at 10:16 AM, John <freebsd-lists@potato.growveg.org> = 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5C8F46FD-ED2A-4B30-A10F-6A666A3E0816>