From owner-freebsd-arm@freebsd.org Wed Apr 10 03:00:15 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 3D3C51575B67 for ; Wed, 10 Apr 2019 03:00:15 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C90198C2CB; Wed, 10 Apr 2019 03:00:14 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 7D84412C3B; Wed, 10 Apr 2019 03:00:14 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-lf1-f47.google.com with SMTP id w23so543226lfc.9; Tue, 09 Apr 2019 20:00:14 -0700 (PDT) X-Gm-Message-State: APjAAAVDb8SWztJW4D0IEbguhWTzNcqErhwpgkPQ6cqmfq+9ChCkwp7i WH6voY9zwQ00vzbNHczqijBL6NcCoaDqWr5UoMY= X-Google-Smtp-Source: APXvYqymkJ2+s0aEWIAg15HUpDVjNJt/ewEBR3tml/ncFUoGfDCwVx9Uv+pcPRDSaK//JvaXUlTdQDCzAnsayU/9Svw= X-Received: by 2002:ac2:518b:: with SMTP id u11mr5112404lfi.46.1554865213022; Tue, 09 Apr 2019 20:00:13 -0700 (PDT) MIME-Version: 1.0 References: <20190409223917.GK69855@cicely7.cicely.de> <20190409235929.GA8974@server.rulingia.com> <20190410003508.GL69855@cicely7.cicely.de> <9f6e80c5a31938db52805b2012ca8a9820660991.camel@freebsd.org> <20190410024720.GN69855@cicely7.cicely.de> In-Reply-To: <20190410024720.GN69855@cicely7.cicely.de> From: Kyle Evans Date: Tue, 9 Apr 2019 22:00:01 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: no dev.cpu on RPI-B To: ticso@cicely.de Cc: Ian Lepore , "freebsd-arm@freebsd.org" , Bernd Walter Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: C90198C2CB X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.995,0]; NEURAL_HAM_SHORT(-0.96)[-0.956,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] 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 03:00:15 -0000 On Tue, Apr 9, 2019 at 9:47 PM Bernd Walter wrote: > > On Tue, Apr 09, 2019 at 06:44:19PM -0600, Ian Lepore wrote: > > On Wed, 2019-04-10 at 02:35 +0200, Bernd Walter wrote: > > > On Wed, Apr 10, 2019 at 09:59:29AM +1000, Peter Jeremy wrote: > > > > 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 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 think that's true if you use uboot or the config.txt file to load the > > overlays. If you set fdt_overlays="file1.dtbo,file2.dtbo,etc" in > > /boot/loader.conf the overlays should come from /boot/dtb/overlays in > > the same /boot folder. > > I switch to network via loader.conf: > [42]matrix# cat /boot/loader.conf > # Configure USB OTG; see usb_template(4). > hw.usb.template=3 > umodem_load="YES" > # Disable the beastie menu and color > beastie_disable="YES" > loader_color="NO" > > currdev="net0" > > fdt_overlays="rpi-apa102-matrix.dtbo" > #fdt_overlays="spigen-rpi-b.dtbo" > > owc_load="YES" > ow_load="YES" > ow_temp_load="YES" > apa102_load="YES" > > > I know that it loads the kernel and modules from network, but the > loader, the loader.conf and maybe the dtbo files are from the card. > I couldn't get u-boot to switch to network. > Well - not a major issue. > I used an extra UFS partition for that, but it should have also worked > by placing the files on the msdosfs partition. > I've copyed the whole /boot over to the UFS, but that's more than > required. > DTBO should be getting loaded from the same device that your kernel/kmods are- it does (...as of the last time I touched it) what is effectively `load -t dtbo $filename` for every file in your fdt_overlays.