From owner-freebsd-arm@freebsd.org Tue Jun 25 06:27:32 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 0AE2C15C1F16 for ; Tue, 25 Jun 2019 06:27:32 +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 A2BAB73974 for ; Tue, 25 Jun 2019 06:27:30 +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 c2f134d5; Tue, 25 Jun 2019 08:27:28 +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=N7InKyqbUfbOYuvQk7YwMWG2a2w=; b=ssXDyepPdQdInnahr4hsRxjXRsjp Tiir4Pk7RIjvjNyrFUR7p5WH8qTi+FmcqKZr36DxLQOtKccDFXhi5EFJ2c1v886f sKjS7ZbDX4kpJ8Y7dYlaZFs/jYD0X5serBGWX2ulKtpSBek3WX+BKcI3HKZdGCST 830C78LsbkOE7Ig= 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=WHjGsY+PAIEFUPW5zz+sd53yRNyRB8esIkr2V8nDHfOp1lDE+XYQIxtW ai60RwkqvhXJ0LfjCSCnm4O3pH5++Y853X2eby3sqE+CkyZD4sMe4brweV34iT3x fqxzA5877cCZ6agmHafYc3KGAE+C4FgqaugULCUCTPNkmUdsJyo= Received: from knuckles.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id deedb98c TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 25 Jun 2019 08:27:27 +0200 (CEST) Date: Tue, 25 Jun 2019 08:27:24 +0200 From: Emmanuel Vadot To: Kaya Saman Cc: Sergey Manucharian , freebsd-arm@freebsd.org Subject: Re: Pine64-LTS and UART ports Message-Id: <20190625082724.eb46a97c0c708f5dd033405e@bidouilliste.com> In-Reply-To: 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> <20190624204216.GK2903@eldorado> <20aea57b-1ac5-15e9-ab2b-7230b81b8378@optiplex-networks.com> <20190624210245.GL2903@eldorado> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: A2BAB73974 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=ssXDyepP; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-1.45 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; NEURAL_HAM_MEDIUM(-0.98)[-0.981,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.99)[-0.993,0]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.21)[0.212,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; MX_GOOD(-0.01)[cached: mx-backup.blih.net]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.22)[ip: (-1.37), ipnet: 212.83.160.0/19(2.79), asn: 12876(-0.30), country: FR(-0.01)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(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: Tue, 25 Jun 2019 06:27:32 -0000 On Mon, 24 Jun 2019 22:14:15 +0100 Kaya Saman wrote: >=20 > On 6/24/19 10:02 PM, Sergey Manucharian wrote: > > Excerpts from Kaya Saman's message from Mon 24-Jun-19 21:58: > >> :/usr/src/sys/gnu/dts/arm64/allwinner # dtc -@ -O dtb -I dts -o > >> sun50i-a64-pine64.dtb sun50i-a64-pine64.dts > >> Error at sun50i-a64-pine64.dts:106:22: Expected numbers in array of ce= lls > >> =A0=A0=A0 cd-gpios =3D <&pio 5 6 GPIO_ACTIVE_LOW>; > >> =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 ^ > >> Error at sun50i-a64-pine64.dts:106:22: Expected ; at end of property > >> =A0=A0=A0 cd-gpios =3D <&pio 5 6 GPIO_ACTIVE_LOW>; > >> =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 ^ > >> Segmentation fault (core dumped) > > Use DTC from ports: sysutils/dtc, it's slightly different from the one > > from base. > > > > ?? > > >=20 > Thanks for the hint Sergey. >=20 >=20 > I ran: >=20 >=20 > :/usr/src/sys/gnu/dts/arm64/allwinner # /usr/local/bin/dtc -f -b0 -@ -O=20 > dtb -I dts -o sun50i-a64-pine64.dtb sun50i-a64-pine64.dts > Error: sun50i-a64-pine64.dts:45.1-9 syntax error > FATAL ERROR: Unable to parse input tree >=20 >=20 > If I am correct in the syntax error being on line 45 then it is the call= =20 > to sun50i-a64.dtsi >=20 >=20 > Regards, >=20 >=20 > Kaya DTS and DTSO needs to be pre-processed by cpp as they use #include directives, you can have a look at sys/tools/fdt/make_dtb.sh and make_dtbo.sh If you modify the DTS simply running make buildkernel will compile the new one, just make sure to put it on the FAT32 partition in dts/allwinner as we need it loaded by u-boot and it can't read ufs. --=20 Emmanuel Vadot