Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Sep 2020 14:39:34 +0100
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-arm@freebsd.org
Subject:   Re: RPi4B u-boot based booting and hw.cpufreq.voltage_core and dev.cpu.0.freq use: able to use 2000 MHz
Message-ID:  <20200926133934.GD54660@bastion.zyxst.net>
In-Reply-To: <0578EC2B-D21C-46AA-AD3E-CD13985B18FA@yahoo.com>
References:  <0578EC2B-D21C-46AA-AD3E-CD13985B18FA.ref@yahoo.com> <0578EC2B-D21C-46AA-AD3E-CD13985B18FA@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--F8dlzb82+Fcn6AgP
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Sep 26, 2020 at 12:37:45AM -0700, Mark Millard via freebsd-arm wrot=
e:
>I got access to a 4 GiByte RPi4B that does not have modernized
>eeprom contents. With it I was able to do a u-boot based boot
>of head -r365932 based on the msdosfs on a older microsd card
>that had materials from 2020-Jul-13 (u-boot.bin) and 14 (RPi4B
>materials). I updated EFI/BOOT/bootaa64.efi . The u-boot.bin
>is from my build of sysutils/u-boot-rpi4/ (no local changes).
>
>In this context . . .
>
>I added over_voltage=3D6 and arm_freq=3D2000 to config.txt and it
>ends up looking like:
>
>arm_control=3D0x200
>arm_64bit=3D1
>dtoverlay=3Ddisable-bt
>dtoverlay=3Dmmc
>device_tree_address=3D0x4000
>kernel=3Du-boot.bin
>armstub=3Darmstub8-gic.bin
>over_voltage=3D6
>arm_freq=3D2000
>
>
>Booting based on that resulted in:
>
>dev.bcm2835_cpufreq.0.freq_settings: 2000/-1 600/-1
>dev.cpu.0.freq_levels: 2000/-1 600/-1
>dev.cpu.0.freq: 600
>
>And:
>
># sysctl dev.cpu.0.freq=3D2000
>dev.cpu.0.freq: 600 -> 2000
>
>worked. (Without the over_voltage it reports 600 and then
>hangs.) Having /etc/sysctl.conf list dev.cpu.0.freq=3D2000
>works.

Exellent! On the basis of your post I went ahead and removed from config.txt
three lines, then added two and rebooted.

It's now this:

arm_control=3D0x200
arm_64bit=3D1
dtoverlay=3Ddisable-bt
dtoverlay=3Dmmc
device_tree_address=3D0x4000
kernel=3Du-boot.bin
armstub=3Darmstub8-gic.bin
over_voltage=3D6
arm_freq=3D2000

before, when it didn't work, it had this:
[same as above], apart from
gpu_mem=3D16
over_voltage=3D6
arm_freq=3D2100

In creating the freebsd instance I followed these instructions for 8GB
https://lists.freebsd.org/pipermail/freebsd-arm/2020-August/022162.html
and applied D26344. /etc/rc.conf has powerd loaded

I was particularly interested in getting this clocked to a reasonable speed=
 as
it's used to build packages with poudriere based on arm7 and aarch64 for
-current.

seems very stable so far:

  2:36p.m.  up 45 mins, 1 user, load averages: 6.51, 3.57, 2.92
Sat 26 Sep 2020 14:36:14 BST
dev.cpu.0.temperature: 65.0C
dev.cpu.0.freq_levels: 2000/-1 600/-1
dev.cpu.0.freq: 2000

rpi4 is in a FLIRC case for cooling, no fan. 24 degC/44%rh ambient.

best,=20
--=20
J.

--F8dlzb82+Fcn6AgP
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAl9vRKYACgkQs8o7QhFz
NAWxuQ/7Bqg0vRfSo0jVeZ3e/Z3Y63koH62IjFEetyUmUtSj6jEo6MX1Mfk61do+
NJcgN95eiSlabkLIhfdJ/aYQ0iK+DP556i5HdOlaa93uHO7nAqE3Y6iLhMw5Wwz5
jpy0m+8AHjKi23ZlGo5/WzzeaNyv8DdSKqMpRYCIFe1ubZq5+k1oZRAu2fspxIqt
n/dyyis2Lbk/NRS3lZZ4Jd5tNalV2f+AtZcxVKSICDbquvxesX9HHKjt9fej0L+c
bZmPQcnNvleDKlJbzTciWSRJoFdov4AzJg5pr+s4NGuYOgPw3ws8p4nSeZE2BMBp
CBg966kPQlImSC+nY95IGpbA1BOfp04WdWBYncxsc1kOGXYAsD0PF7TsH9XK9CzM
ys0XMsFuhDRnsEK6DvMc9BIe71i/9y/cCpPPGQIoBdSZr5nyEcZh28/Ld0fw2VBk
Ls6Fu41Yko/jqPFu+ZKBDww1CFJMDbfDrjJQueKN39f+I0cQ+7aYMN14XacRWzhm
LScS2WYllVqWYNYEhT21dUrry4nKDCDTkhBvqExaFzsKAajcJ0RejBWQbd9eVGmR
BQpT75DcE1dDy0r3fWjBtd/B4n+8RKlgrl7vMFYscOqFNEiZEfSaSWRY330x/8kh
RBDp62JNGqjOcOUaM+b63ufshbVTocvyfwfQYfs3XryRATaDzbg=
=Ehh6
-----END PGP SIGNATURE-----

--F8dlzb82+Fcn6AgP--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200926133934.GD54660>