From owner-freebsd-arm@freebsd.org Fri Feb 8 15:56:39 2019 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 4BDE514E450D for ; Fri, 8 Feb 2019 15:56:39 +0000 (UTC) (envelope-from tsallgoodman@yandex.com) Received: from forward501o.mail.yandex.net (forward501o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::611]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8FF49888CA for ; Fri, 8 Feb 2019 15:56:37 +0000 (UTC) (envelope-from tsallgoodman@yandex.com) Received: from mxback4o.mail.yandex.net (mxback4o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1e]) by forward501o.mail.yandex.net (Yandex) with ESMTP id E7FAA1E8064D; Fri, 8 Feb 2019 18:56:33 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback4o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 165CKZWkL5-uW1K3Zvl; Fri, 08 Feb 2019 18:56:33 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1549641393; bh=rsh5c/te7tQ6nMUaRlr60JgiTDvp5jiW0OkluMGOpEw=; h=From:To:Cc:In-Reply-To:References:Subject:Date:Message-Id; b=O2/Rm9GXvpXe9yC+nc6T/+zg/HOYJMi9P777ePmUER3qaOfFhz7kmzpaafMkCE+YJ 9QJ8dYtoCNtKO86UPS+R5cAai/OQK+uQJoHbrdLjrP1hWukA5ha2AyrhprKTS925c5 1pEEDT/g7oaZ0C0nOyyJP0Nhv1q+tZ8VQ2f2G0VU= Received: by sas2-857317bd6599.qloud-c.yandex.net with HTTP; Fri, 08 Feb 2019 18:56:32 +0300 From: Saul Goodman To: Marcin Wojtas Cc: freebsd-arm In-Reply-To: References: <7126601549210894@myt3-c573aa6fc782.qloud-c.yandex.net> Subject: Re: Help getting Marvell-A388 SBC booted MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Fri, 08 Feb 2019 16:56:32 +0100 Message-Id: <38925821549641392@sas2-857317bd6599.qloud-c.yandex.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 X-Rspamd-Queue-Id: 8FF49888CA X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yandex.com header.s=mail header.b=O2/Rm9GX; dmarc=pass (policy=none) header.from=yandex.com; spf=pass (mx1.freebsd.org: domain of tsallgoodman@yandex.com designates 2a02:6b8:0:1a2d::611 as permitted sender) smtp.mailfrom=tsallgoodman@yandex.com X-Spamd-Result: default: False [-5.77 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[yandex.com:s=mail]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a02:6b8:0:1a2d::/64]; FREEMAIL_FROM(0.00)[yandex.com]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-1.72)[ipnet: 2a02:6b8::/32(-4.79), asn: 13238(-3.83), country: RU(0.00)]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mx.yandex.ru]; DKIM_TRACE(0.00)[yandex.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.94)[-0.935,0]; DMARC_POLICY_ALLOW(-0.50)[yandex.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yandex.com]; ASN(0.00)[asn:13238, ipnet:2a02:6b8::/32, country:RU]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[1.1.6.0.0.0.0.0.0.0.0.0.0.0.0.0.d.2.a.1.0.0.0.0.8.b.6.0.2.0.a.2.list.dnswl.org : 127.0.5.1] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 15:56:39 -0000 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