From owner-svn-ports-head@freebsd.org Tue Dec 15 15:23:37 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 569B04B9855; Tue, 15 Dec 2020 15:23:37 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CwMV050Ylz4VCt; Tue, 15 Dec 2020 15:23:36 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1608045814; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ht1iKvuUuzbFfWKlwadWQeBuuhf4NFoaW2zKGwSJVC8=; b=d40uCyRgweTUz8297UW56IYGhBxKSTSfiATipe1Y8XqZI2yG698Y/ohgf+E5wEQqWYMe9L +tsVk/6DXK5icz4qYhzBVyJ/zyBkgMuAZj2Fy784WHFglDu7iT3Ign+pgvek5TZnhxTXOF gFVOZ9XI/5yeiMbbUy4ioDA0H04248k= Received: from skull.home.blih.net (lfbn-idf2-1-745-114.w86-247.abo.wanadoo.fr [86.247.192.114]) by mx.blih.net (OpenSMTPD) with ESMTPSA id f41e731c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 15 Dec 2020 15:23:34 +0000 (UTC) Date: Tue, 15 Dec 2020 16:23:34 +0100 From: Emmanuel Vadot To: Kyle Evans Cc: Emmanuel Vadot , ports-committers , svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r558163 - in head/sysutils/rpi-firmware: . files Message-Id: <20201215162334.0e5c8fd2294e640d503e715e@bidouilliste.com> In-Reply-To: References: <202012151507.0BFF778K094943@repo.freebsd.org> <20201215161843.d3f2493c414e0e4822959808@bidouilliste.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CwMV050Ylz4VCt X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2020 15:23:37 -0000 On Tue, 15 Dec 2020 09:21:36 -0600 Kyle Evans wrote: > On Tue, Dec 15, 2020 at 9:18 AM Emmanuel Vadot wrote: > > > > On Tue, 15 Dec 2020 09:12:53 -0600 > > Kyle Evans wrote: > > > > > On Tue, Dec 15, 2020 at 9:07 AM Emmanuel Vadot wrote: > > > > > > > > Author: manu > > > > Date: Tue Dec 15 15:07:07 2020 > > > > New Revision: 558163 > > > > URL: https://svnweb.freebsd.org/changeset/ports/558163 > > > > > > > > Log: > > > > sysutils/rpi-firmware: Add a generic config file for 64bits variant of RPIs > > > > > > > > Submitted by: kevans (original version) > > > > > > > > Added: > > > > head/sysutils/rpi-firmware/files/config_arm64.txt (contents, props changed) > > > > Modified: > > > > head/sysutils/rpi-firmware/Makefile > > > > head/sysutils/rpi-firmware/pkg-plist > > > > > > > > Modified: head/sysutils/rpi-firmware/Makefile > > > > ============================================================================== > > > > --- head/sysutils/rpi-firmware/Makefile Tue Dec 15 15:04:15 2020 (r558162) > > > > +++ head/sysutils/rpi-firmware/Makefile Tue Dec 15 15:07:07 2020 (r558163) > > > > @@ -2,6 +2,7 @@ > > > > > > > > PORTNAME= rpi-firmware > > > > PORTVERSION= 1.20201201.g20201201 > > > > +PORTREVISION= 1 > > > > CATEGORIES= sysutils > > > > > > > > MAINTAINER= uboot@FreeBSD.org > > > > @@ -29,7 +30,8 @@ CONFIG_TXT_FILES= config.txt \ > > > > config_rpi_0_w.txt \ > > > > config_rpi3.txt \ > > > > config_rpi3_edk2.txt \ > > > > - config_rpi4.txt > > > > + config_rpi4.txt \ > > > > + config_arm64.txt > > > > > > > > do-patch: > > > > .for i in ${CONFIG_TXT_FILES} > > > > > > > > Added: head/sysutils/rpi-firmware/files/config_arm64.txt > > > > ============================================================================== > > > > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > > > > +++ head/sysutils/rpi-firmware/files/config_arm64.txt Tue Dec 15 15:07:07 2020 (r558163) > > > > @@ -0,0 +1,10 @@ > > > > +[all] > > > > +arm_control=0x200 > > > > +dtparam=audio=on,i2c_arm=on,spi=on > > > > +dtoverlay=mmc > > > > +dtoverlay=disable-bt > > > > +device_tree_address=0x4000 > > > > +kernel=u-boot.bin > > > > + > > > > +[pi4] > > > > +armstub=armstub8-gic.bin > > > > > > > > > > I don't think we've tested the pi4 with arm_64bit=1 omitted entirely > > > like this, though. Not that we understand what it really does, since > > > we boot the pi3 without it as aarch64. > > > > > > Thanks, > > > > > > Kyle Evans > > > > I did. > > > > arm_64bit=1 just tell the firmware to load the file from the "kernel8" > > variable instead of the "kernel" one. > > The processors are set to 64bits mode too but u-boot deals with that > > too. > > > > https://www.raspberrypi.org/documentation/configuration/config-txt/boot.md > > > > This is wholly disappointing, but re-reading their doc on it I guess > it doesn't really say what the default 0 actually means; I had assumed > it was somehow less reversible than that. > > Thanks! Well, re-reading is seems that it's working for us because we still uses arm_control. I'll do test later and probably replace the arm_control line with arm_64bit=1 -- Emmanuel Vadot