From owner-freebsd-arm@freebsd.org Mon Jun 24 20:42:41 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 BA48F15D9234 for ; Mon, 24 Jun 2019 20:42:41 +0000 (UTC) (envelope-from sm@ara-ler.com) Received: from mail.myserver.ws (mail.myserver.ws [144.217.111.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.myserver.ws", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 67A48880E0 for ; Mon, 24 Jun 2019 20:42:40 +0000 (UTC) (envelope-from sm@ara-ler.com) Received: from eldorado (50-243-135-133-static.hfc.comcastbusiness.net [50.243.135.133]) (Authenticated sender: sm@ara-ler.com) by mail.myserver.ws (Postfix) with ESMTPSA id B2117A4D6B; Mon, 24 Jun 2019 20:42:27 +0000 (UTC) Date: Mon, 24 Jun 2019 14:42:16 -0600 From: Sergey Manucharian To: Kaya Saman Cc: freebsd-arm@freebsd.org Subject: Re: Pine64-LTS and UART ports Message-ID: <20190624204216.GK2903@eldorado> References: <371fe0f0-9f91-e4ba-ff4e-8338fe9d63de@optiplex-networks.com> <20190623235732.4439b707@zeta.dino.sk> <20190624133017.5a9689b7@zeta.dino.sk> <62ba1a30-25bc-af65-beb2-0e05dfc76c79@optiplex-networks.com> <20190624164512.0ea5c4d3@zeta.dino.sk> <75d6afff-8d83-57da-0a13-a4977d12cb87@optiplex-networks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <75d6afff-8d83-57da-0a13-a4977d12cb87@optiplex-networks.com> User-Agent: Mutt/1.12.0 (2019-05-25) X-Rspamd-Queue-Id: 67A48880E0 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of sm@ara-ler.com designates 144.217.111.45 as permitted sender) smtp.mailfrom=sm@ara-ler.com X-Spamd-Result: default: False [-2.21 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.92)[-0.917,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.myserver.ws]; NEURAL_HAM_LONG(-0.97)[-0.971,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[ara-ler.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[mail.myserver.ws]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.56)[-0.563,0]; IP_SCORE(0.05)[ipnet: 144.217.0.0/16(-0.90), asn: 16276(1.15), country: FR(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:16276, ipnet:144.217.0.0/16, country:FR]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Mon, 24 Jun 2019 20:42:41 -0000 Excerpts from Kaya Saman's message from Mon 24-Jun-19 21:22: > I tried the dtc method - using this example from the man page: > > dtc -@ -O dtb -I dts -o device_overlay.dtbo device_overlay.dts > > Actual command used: dtc -@ -O dtb -I dts -o sun50i-a64-uart2.dtbo > sun50i-a64-uart2.dtso > > > then copied the resulting dtbo file into the /boot/dtb/overlays > directory, and added the entry into  /boot/loader.conf then rebooted. > The result was nothing happened :-( no uart2 in the dmesg log at all and > no extra ttyu(x) either > > I've just also attempted: /usr/src/sys/tools/fdt/make_dtbo.sh > /usr/src/sys /usr/src/sys/dts/arm64/overlays/sun50i-a64-uart2.dtso /tmp > > > then copied the .dtbo file into /boot/dtb/overlays and rebooted. Again > nothing?? I used to have similar issues with overlays, and ended up with editing the main DTS file, in your case it will be (I believe) sun50i-a64-pine64.dts Just replace "disabled" with "okay" in this section: .... /* On Pi-2 connector */ &uart2 { pinctrl-names = "default"; pinctrl-0 = <&uart2_pins>; status = "disabled"; }; .... compile and copy the DTB over the original one. -- Ϟϻ