From owner-freebsd-arm@freebsd.org Mon Aug 13 17:32:23 2018 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 D531110788D3 for ; Mon, 13 Aug 2018 17:32:22 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 51B4083542 for ; Mon, 13 Aug 2018 17:32:22 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id w7DHWKSI092165 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 13 Aug 2018 10:32:20 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id w7DHWKe4092164 for freebsd-arm@FreeBSD.org; Mon, 13 Aug 2018 10:32:20 -0700 (PDT) (envelope-from jmg) Date: Mon, 13 Aug 2018 10:32:20 -0700 From: John-Mark Gurney To: freebsd-arm@FreeBSD.org Subject: attempted to get A64-LTS thermal working Message-ID: <20180813173220.GL97145@funkthat.com> Mail-Followup-To: freebsd-arm@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 11.0-RELEASE-p7 amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Mon, 13 Aug 2018 10:32:20 -0700 (PDT) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2018 17:32:23 -0000 So, w/ a pointer from manu: https://twitter.com/manuvadot/status/1029002683892609026 I'm working from the July 9th snapshot, FreeBSD-12.0-CURRENT-arm64-aarch64-PINE64-20180709-r336134.img I tried to put the dtb on the FAT partition, but u-boot doesn't seem to load it: [freebsd@generic ~]$ ls /boot/msdos/dtb/allwinner/sun50i-a64-sopine-baseboard.dtb /boot/msdos/dtb/allwinner/sun50i-a64-sopine-baseboard.dtb So, I decided to manually load the dtb w/ loader: OK set currdev=disk0p1: OK load -t dtb dtb/allwinner/sun50i-a64-sopine-baseboard.dtb dtb/allwinner/sun50i-a64-sopine-baseboard.dtb size=0x5c63 and w/ it loaded, I can see the thermal device: aw_thermal0: mem 0x1c25000-0x1c250ff irq 8 on simplebus0 and: root@generic:~ # sysctl -a | grep therm dev.aw_thermal.0.gpu2: 24C dev.aw_thermal.0.gpu1: 23C dev.aw_thermal.0.cpu: 24C dev.aw_thermal.0.%parent: simplebus0 dev.aw_thermal.0.%pnpinfo: name=thermal_sensor@1c25000 compat=allwinner,sun50i-a64-ths dev.aw_thermal.0.%location: dev.aw_thermal.0.%driver: aw_thermal dev.aw_thermal.0.%desc: Allwinner Thermal Sensor Controller dev.aw_thermal.%parent: but then the ethernet does not work: awg0: mem 0x1c30000-0x1c3ffff irq 30 on simplebus0 awg0: Failed to find syscon node awg0: cannot get syscon driver handle miibus0: on awg0 rgephy0: PHY 0 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow rgephy1: PHY 1 on miibus0 rgephy1: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow awg0: Ethernet address: 02:ba:1a:xx:xx:xx and it never gets link: Waiting 30s for the default route interface: .....(no carrier) I've put the broken boot at: https://www.funkthat.com/~jmg/FreeBSD/arm/a64-lts.broken.20180813.txt I've put the working boot at: https://www.funkthat.com/~jmg/FreeBSD/arm/a64-lts.working.20180813.txt took me a few seconds to realize that the reason they are about the same length is that the broken has additional other drivers like the mx2510 flash driver and spi. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."