From owner-freebsd-arm@freebsd.org Tue May 2 11:23:16 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F6F0D58FF1 for ; Tue, 2 May 2017 11:23:16 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8BAF87B5 for ; Tue, 2 May 2017 11:23:14 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 74267f3f; Tue, 2 May 2017 13:23:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=KX9XqwhcN7IC2HDtr8wdbMDaHiM=; b=DTIuY6D/lqvHl2KJhXrRzvbOzlCm +UWign743a5N2OkBlPk0zaqn0z5AH8OBDzGNGe8CJEdiyFUjd95G3QH1PO7Yyqrb ZLWWKSNnAABk7Rte9FzVtikUus16U/tbH3bva6DUwZ+1BSzJdx6LtiFNSVv4AQ8A Zf4UJ7R/WCfXhQc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=OxVEyE4AOMa8MJdBJnuD2h75VouMOyKsG83QEgN1Bi55FiwPxoS1Mrwi 3kFYNIXaAL8qSg+cQz7t7cp/aLNIrrmCBe+2wSWAjkBcLm80euYzrsrmkBV5k8fn zPAWcVOnjFodRZJzdGDJvCaZjQz9pEsKRdJVPdaATTBLRoX+l0A= Received: from arcadia (evadot.gandi.net [217.70.181.36]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 2df3ce06 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 2 May 2017 13:23:12 +0200 (CEST) Date: Tue, 2 May 2017 13:23:11 +0200 From: Emmanuel Vadot To: aggaz Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD 12-CURRENT on OrangePi One Message-Id: <20170502132311.26aa210165fc10f5435def80@bidouilliste.com> In-Reply-To: <64893df0-f9f7-d24b-8644-bc84824fc657@paranoici.org> References: <9e04f3cf-ddce-1b53-b9d6-2fe05ad1cc25@paranoici.org> <20170502105507.4c51a7323bd01903e402f551@bidouilliste.com> <64893df0-f9f7-d24b-8644-bc84824fc657@paranoici.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 May 2017 11:23:16 -0000 On Tue, 2 May 2017 12:43:41 +0200 aggaz wrote: > Dear Emmanuel, > > In the last days I found and tried the dts file you are referring to > (the one in sys/gnu/.../...). > I compiled it using crochet, and I can confirm that it boots, it > supports USB but not Ethernet. > > It also seems to me that it is less stable than the other two I tried > (the one for OrangePi Plus 2E and the one from NanoPi Neo). Less stable in what way ? > Maybe it is not related to the dts, but I saw several random glitches > after boot that make me think that this Linux-imported dts is not 100% > compatible. Random glitches of what exactly ? > I hope you find the dts with both ethernet and usb. > > A question: would it be possible to integrate the ethernet portion of > the dts for NanoPi to the dts for OrangePiPlus 2E? I don't think I have the Plus 2E so I won't be able to test, I think the only difference would be the regulator for the PHY (or the usage of internal PHY). > I am trying to do so in the last days, but I do not really understand > how to write a DTS file... > > I am also looking for documentation, without so much luck, if you have > some link/book/manual you feel like sharing, please do. There is none afaik, just read the binding docs from the Linux kernel Documentation. > Regards > Aggaz Cheers, > Il 02/05/2017 10:55, Emmanuel Vadot ha scritto: > > On Sun, 30 Apr 2017 12:27:04 +0200 > > aggaz wrote: > > > >> Dear list, > >> > >> as I previously wrote, I am trying to use FreeBSD 12-CURRENT on OrangePi > >> One by using crochet. > >> > >> One problem is that there are no dtb files available specific for this > >> board. > > > > There is one in sys/gnu/dts, I was sure that I added it to the list of > > DTS we compile but ... > > > >> Now I compared two dtb files for the same SoC (H3): one for NanoPi Neo > >> (/boot/dtb/nanopi-neo.dtb) and one for OrangePi Plus 2E > >> (/boot/dtb/orangepi-plus-2e.dtb). > >> > >> Both makes the board boot fine without issues, but: > >> > >> 1) dtb file for NanoPi Neo makes the network interface available and > >> working, but not the USB port. > >> > >> 2) dtb file for OrangePi Plus 2E makes the USB port available and > >> working, but not the network interface. > > > > Please note that ethernet DTS bindings aren't standardized yet and > > since I don't want us to heavily patches the DTS or derive to much from > > the Linux one if I add the OrangePi One DTS to the build it will > > probably be without ethernet support. > > > > Anyway, I have one somewhere with USB and ethernet support, I'll look > > to commit/share that soon. > > > >> > >> At this point I don't really know what I can do to make both interfaces > >> working at the same time, and I am writing this to ask you some suggestions. > >> > >> Any idea would be greatly appreciated. > >> > >> Regards > >> Aggaz > >> _______________________________________________ > >> freebsd-arm@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm > >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > > > -- Emmanuel Vadot