From owner-freebsd-arm@freebsd.org Sun Aug 19 19:00:53 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 267231074A00 for ; Sun, 19 Aug 2018 19:00:53 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D36585DAD for ; Sun, 19 Aug 2018 19:00:50 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id c25bbf1e; Sun, 19 Aug 2018 21:00:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=B6sp0X0IwoBf6XtyPQrAQpI2uCI=; b=ZsDp70HPHIZymgr/93Lbh4SJyWsJ Qk7cbLfPXPZ+/B4MsNeDXfyrMI98/U2a9w0WT9iR03LKcFn4BoRG140iYdyCYVpb qEBZO6kGEG4FqMwmUTj32XYbvk4PxTQ+I05mfP6yJxdPWz4qtCJCFq8RDHIsDobB OVaWZY9duUQLG1g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=OXfHk0d0bO6GfQ8nwvUPB3mzIzQN/p7SbtXWcI8Rh6RtN805jdUli4W4 193m/zzx/o7tLbw8a2XLbgh3dpnmFwDW8JLdbDM79Wfv5XjiLSMDw31fD3lv02Oz TUH2X9A4d8g8xHM1LqL+Olk/VLoWixlXKtiR57a8G/IzPOD+oM0= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 387386ea TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sun, 19 Aug 2018 21:00:47 +0200 (CEST) Date: Sun, 19 Aug 2018 21:00:47 +0200 From: Emmanuel Vadot To: John-Mark Gurney Cc: freebsd-arm@FreeBSD.org Subject: Re: attempted to get A64-LTS thermal working Message-Id: <20180819210047.2421f482b29457025b27643d@bidouilliste.com> In-Reply-To: <20180813173220.GL97145@funkthat.com> References: <20180813173220.GL97145@funkthat.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Sun, 19 Aug 2018 19:00:53 -0000 Hi John-Mark, On Mon, 13 Aug 2018 10:32:20 -0700 John-Mark Gurney wrote: > 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." > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" This is now fixed with r338070 Thanks for reporting. -- Emmanuel Vadot