Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2018 21:00:47 +0200
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        John-Mark Gurney <jmg@funkthat.com>
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>

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

 Hi John-Mark,

On Mon, 13 Aug 2018 10:32:20 -0700
John-Mark Gurney <jmg@funkthat.com> 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: <Allwinner Thermal Sensor Controller> 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: <Allwinner Gigabit Ethernet> mem 0x1c30000-0x1c3ffff irq 30 on simplebus0
> awg0: Failed to find syscon node
> awg0: cannot get syscon driver handle
> miibus0: <MII bus> on awg0
> rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> 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: <RTL8169S/8110S/8211 1000BASE-T media interface> 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 <manu@bidouilliste.com> <manu@freebsd.org>



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