Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Feb 2019 16:56:32 +0100
From:      Saul Goodman <tsallgoodman@yandex.com>
To:        Marcin Wojtas <mw@semihalf.com>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: Help getting Marvell-A388 SBC booted
Message-ID:  <38925821549641392@sas2-857317bd6599.qloud-c.yandex.net>
In-Reply-To: <CAPv3WKePVYQg_4npH=pEi6w6bgRz7LxRv4RMK=pomLdkV0ixAQ@mail.gmail.com>
References:  <7126601549210894@myt3-c573aa6fc782.qloud-c.yandex.net> <CAPv3WKePVYQg_4npH=pEi6w6bgRz7LxRv4RMK=pomLdkV0ixAQ@mail.gmail.com>

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

> That's great. Was there any special trick? What was the issue?

No special trick. I just used an older U-Boot, a patched one by Marvell. It's well possible that the only real difference is in the env. This is hard to tell since i still don't know, what ubldr looks for. I could check that later. For now at least I have a starting point.

>>  Next problem is to get the fan control working. There are fan connectors on the board which are connected to some GPIO's. The linux dts seems to wire them to pwm-fan driver. Is there something similar available in FreeBSD. How would i go about fixing this?
>
> I haven't played with it. In Linux indeed it's a pretty simple driver
> ("drivers/hwmon/gpio-fan.c"). However I do not see an equivalent in
> FreeBSD - only customized solutions for specific platforms. If someone
> knows, I'm wrong, please don't hesitate to correct me :)

Oh no. Does that mean I have to implement a driver? That's well above my skill level.

It seems drivers/hwmon/pwm-fan.c is used, not gpio-fan. But also mvebu-gpio is very different compared to fbsd/mv/gpio.c. The Armada-385 must have Hardware-PWM on some GPIOs. Could you help to get this working?

Regards,

Sören



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