Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Apr 2019 09:59:29 +1000
From:      Peter Jeremy <peter@rulingia.com>
To:        ticso@cicely.de
Cc:        freebsd-arm@freebsd.org, Bernd Walter <ticso@cicely7.cicely.de>
Subject:   Re: no dev.cpu on RPI-B
Message-ID:  <20190409235929.GA8974@server.rulingia.com>
In-Reply-To: <20190409223917.GK69855@cicely7.cicely.de>
References:  <20190409223917.GK69855@cicely7.cicely.de>

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

--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2019-Apr-10 00:39:18 +0200, Bernd Walter <ticso@cicely7.cicely.de> wrote:
>I was hoping for dev.cpu.0.temperature as it exists on the Pi3.
>Is something missing in my setup (using 12-RELEASE kernel from image),
>or is there no support for that?

I ran into this when I switched from the FreeBSD FDT to the default Linux F=
DT.
The latter is missing the CPU description.  The fix is to create your own
FDT overlay and get the loader to load it.  There's a similar problem with =
the
SPI controller.

I used the FDT below, compiled with:
$ dtc -@ -O dtb -o /boot/dtb/overlays/rpi-cpus.dtbo -i /usr/src/sys/dts/arm=
 -i /usr/src/sys/gnu/dts/arm rpi-cpus.dtso

And add the following to loader.conf:
fdt_overlays=3D"rpi-cpus.dtbo"

------- rpi-cpus.dtso
/dts-v1/;
/plugin/;

/ {
        compatible =3D "brcm,bcm2835";
};

&{/} {
        cpus {
                cpu@0 {
                        compatible =3D "arm,1176jzf-s";
                        device_type =3D "cpu";
                        reg =3D <0x0>;
                        clock-frequency =3D <0x29b92700>;
                };
        };
};

--=20
Peter Jeremy

--W/nzBZO5zC0uMSeA
Content-Type: application/pgp-signature; name="signature.asc"

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

iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAlytMeFfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF
QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi
CzS1CRAAgZayd4DND1wvc+xei28VBPQ8UaeHail0GZeFZ5K3k2yC2dBi9zP5bZrT
eql2ima5Cy3+RGzb8BBMUlcQetEuqh+hSKuMVAzIU119+8rHK+Q1Ov3TbHo54PLe
jW43LEeD8BXnjr0t9to4DvOgEgwv3OkcKoqkccVin7m4DJW7Mai1IFs5GOHLcQmt
xWOTY5SrOL9rvl+K0CUhHHOO7tlZyAGH0HkypdTGxBCsWuna4NtL/TgEjapeWehg
k43lhmxMOT/9K5B+TWJS7A8u3U9ddBEcts3HDECKk5uNY6AcZM/sp8CeKfsm3Hfd
eGVoQOUfdR654Y2TqFWAHGeBP6ZgsRyJvHdTJUHUU+4SUP5Ye38YMODrVsmju6XW
FPlXzcex2xd06noZDgyY/24OSEMgEkS1otTZcTUQLjlsFOPBB6l90rpQ82bEq1/I
IlWFtVqBB3Y5Kblu/AIaC8jCt5QcvlQqD+aLqgSJtRi54VjU8CY8y1wh7mH9Xxco
joA3x4aEjzUGWhtTPZkOVk6Blkc30mcIzaKvfGVH281uLXHe8Ea3g0g9x7YnLIP8
SeYa7KbNuDi9nx8vn70g/vCdeyi9AiDYT73IMaSW6boGMDy0IGhdbxyy7tdoIJ0u
jYcI0u8F84gYAcJeSL3/5hgs4tuNRDizkujEv2CWUlX44/Qrn2I=
=bcAy
-----END PGP SIGNATURE-----

--W/nzBZO5zC0uMSeA--



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