Allwinner dtb overlays on CURRENT. Also, flashrom SPI!
Greg V
greg at unrelenting.technology
Sun Jul 29 14:47:53 UTC 2018
On Sun, Jul 29, 2018 at 5:44 PM, Ian Lepore <ian at freebsd.org> wrote:
> On Wed, 2018-07-25 at 22:49 +0300, Greg V wrote:
>> Hi,
>>
>> One thing I have noticed with CURRENT on an Orange Pi PC: since
>> we're
>> using device trees imported from Linux, some drivers are not
>> accessible
>> out of the box.
>>
>> So I wrote a couple overlays:
>>
>> Thermal sensor: https://github.com/freebsd/freebsd/pull/162
>>
>> SPI: https://github.com/freebsd/freebsd/pull/166
>>
>> But not everyone would figure out how to make and even just use
>> overlays…
>>
>> (if anyone is wondering: place them into /boot/dtb/overlays and add
>> a
>> list of them (filenames including extension) to /boot/loader.conf
>> like
>> so:
>> fdt_overlays="sun8i-h3-sid.dtbo,sun8i-h3-ts.dtbo,sun8i-h3-spi.dtbo"
>> — and reboot)
>>
>> Can someone commit these overlays / add more for other SoCs maybe?
>>
>> P.S. I also wrote spigen support for flashrom:
>> https://github.com/flashrom/flashrom/pull/53
>> With this, I can flash and verify a Winbond W25Q32.V flash chip
>> from my
>> Orange Pi! :)
>
> Why in the world would you use spigen instead of the normal mx25l
> spiflash driver and a simple dd to/from /dev/flash/spiN ?
>
> Hrm. Maybe because mx25l, and most SPI-related stuff, isn't
> documented.
> My to-do list knows no bounds.
Yeah, because of that too :)
but also (as I mentioned below in the thread):
flashrom has chip autodetection, support for more chips, it's easy to
adjust speed (it's right in the command)…
also it's just *popular*, people know *flashrom specifically*
More information about the freebsd-arm
mailing list