attempted to get A64-LTS thermal working

Emmanuel Vadot manu at bidouilliste.com
Sun Aug 19 19:00:53 UTC 2018


 Hi John-Mark,

On Mon, 13 Aug 2018 10:32:20 -0700
John-Mark Gurney <jmg at 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 at 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 at 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 at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"


 This is now fixed with r338070
 Thanks for reporting.

-- 
Emmanuel Vadot <manu at bidouilliste.com> <manu at freebsd.org>


More information about the freebsd-arm mailing list