From owner-freebsd-arm@freebsd.org Wed Apr 10 00:35:16 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B9C531573118 for ; Wed, 10 Apr 2019 00:35:16 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [195.149.99.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 45F0988C5B for ; Wed, 10 Apr 2019 00:35:16 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id x3A0ZFG8058505 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 10 Apr 2019 02:35:16 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1554856517; bh=mePD3pPBOVdbuLxGVRvLJ6gmlKRXWMbRXcD4b3sTnYE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=geHUgNDLTkxPkcJN+61ZMefCXDhpzI+VCxTzrJI6xgsuFGIDO2XOD3VOkSXzaQOpI pyFEdPcHqF51HEAfqHITv7mqaAs3lQ5SDOuukxFGASrZfx3DEET7NvIOiGPrKY8l40 qG+uegWn/NcCIbMUAF4/AMnfPC57ibH8WrT+LNPY= Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id x3A0Z8fm099756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 10 Apr 2019 02:35:09 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.15.2/8.15.2) with ESMTP id x3A0Z8M9020059; Wed, 10 Apr 2019 02:35:08 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id x3A0Z8pg020058; Wed, 10 Apr 2019 02:35:08 +0200 (CEST) (envelope-from ticso) Date: Wed, 10 Apr 2019 02:35:08 +0200 From: Bernd Walter To: Peter Jeremy Cc: ticso@cicely.de, freebsd-arm@freebsd.org, Bernd Walter Subject: Re: no dev.cpu on RPI-B Message-ID: <20190410003508.GL69855@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20190409223917.GK69855@cicely7.cicely.de> <20190409235929.GA8974@server.rulingia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190409235929.GA8974@server.rulingia.com> X-Operating-System: FreeBSD cicely7.cicely.de 12.0-STABLE amd64 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de X-Rspamd-Queue-Id: 45F0988C5B X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.986,0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Apr 2019 00:35:17 -0000 On Wed, Apr 10, 2019 at 09:59:29AM +1000, Peter Jeremy wrote: > On 2019-Apr-10 00:39:18 +0200, Bernd Walter 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 FDT. > 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. Thank you very much. That makes sense, didn't thought about FDT because it works on a Pi3 with the same 12.0-RELEASE. I'm already using overlays on those systems for SPI, my own APA102 LED driver and DS18B20 sensors. It is for an LED matrix running 24 RPI1 with 800 LEDs each. The systems are nfsroot, but I think the dtso are loaded from the micro-SD cards :-( Well - I guess I setup a bootscript on the NFS server to update the data on the cards. > 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="rpi-cpus.dtbo" > > ------- rpi-cpus.dtso > /dts-v1/; > /plugin/; > > / { > compatible = "brcm,bcm2835"; > }; > > &{/} { > cpus { > cpu@0 { > compatible = "arm,1176jzf-s"; > device_type = "cpu"; > reg = <0x0>; > clock-frequency = <0x29b92700>; > }; > }; > }; > > -- > Peter Jeremy -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.