Message ID | 20221003062019.19636-4-matt@traverse.com.au |
---|---|
State | Accepted |
Commit | 6efb611cbc97908cbd893806ceb82c167cddeb6a |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4MgrLd1nH5z3whh for <patchwork@web04.haj.ipfire.org>; Mon, 3 Oct 2022 06:20:57 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4MgrLY5N9Sz2RS; Mon, 3 Oct 2022 06:20:53 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4MgrLT3XsPz301x; Mon, 3 Oct 2022 06:20:49 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4MgrLR48Rcz2yC3 for <development@lists.ipfire.org>; Mon, 3 Oct 2022 06:20:47 +0000 (UTC) Received: from out4-smtp.messagingengine.com (unknown [66.111.4.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 4MgrLN0wDYz2M0 for <development@lists.ipfire.org>; Mon, 3 Oct 2022 06:20:44 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4ECEC5C00FB; Mon, 3 Oct 2022 02:20:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 03 Oct 2022 02:20:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=traverse.com.au; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1664778033; x= 1664864433; bh=dmyxooOucKSMRjP7lbQ07690hi8CxenrBYLJPI3kBhw=; b=f t4tbDjPq4It3GsHnIpyIpz5VTcZ+6seIHxP/Rb6oxr262nRV6B39DMBk4XLHZCHj 72Bk/0ASkeXgXmp3HbWIiC4NAdJCO0mSHNOZx5N1Ix/SNxbQ++aaSpguopU2szXV CH+8sYThmCd33BV+IfTXpgnzu9zSvaqEVa2NHlpm4hnye6KDk/QijsGOEDVJXw/9 gVhd4+L6fbbAL953Q3m8QOulLAex8aJnwfsf9g1yQQrA3ifqeHeC5GlPunT4F2Um 1PvrgIDsMTkdsh2nMtkmplmIYdQwOmfnlcvXydceN5D9XCR0HvwdKAJdGi8QXapc YgS0kqY6ITvgLRF6c9Llw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1664778033; x=1664864433; bh=dmyxooOucKSMR jP7lbQ07690hi8CxenrBYLJPI3kBhw=; b=0V1HteqFgMCI2iAIEgmkXYzXGeaVj ytbQTE5Wr4AIheDiolAZK3pqUVxWhjNQtFVksAQTcP8K1NQalCaT8VQrJIglHW3a kq8zM9PPcG+n7X5xW+xU56Hhw+CeYWGQlUB8A/RZYdS9WPqaiYV04KJ7Px7ZYVHt OunCMZ5UirNZYGhuw/MHNvqg1MCO5jOdcbMFAyBEmcdObV42OUGygF4t2SfdKtlL yzeX4t53gLmVMIK9AuNjXaD6mEPPuvtGRwDpnkPdAta+zXMt63GhbrYTaTcbJPz9 hjEG7wx4kgQ6SCnbFa874jkD41PUlUz16MglCfakq+UXgPxaRWtW3Koqw== X-ME-Sender: <xms:MX86Yxk9G7Ewv7Vau1aflgxzwShSRty256BQKQXN7mv7tjGGomV6bQ> <xme:MX86Y82VfyomUFtK5mf5jVNTmwDLkgpFK23JHPCYtkIAB3U4f0UbxBU_V7SMxTXgL XTwKjCioUzKNao-iqw> X-ME-Received: <xmr:MX86Y3pORY_iYy0pZvj6h65ER-atzb6PTEogVhQADJaFeEbx4Wfhixk5oUBwyb-kdtnXTT9Bw-QWjpJ7rHBI_XglUt_nSW0Yr1EHMWGcsnfx3jokDfPolNX2UMbxo-4> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeehkedguddtjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomhepofgrthhhvgifucfotgeurhhiuggvuceomhgrthhtseht rhgrvhgvrhhsvgdrtghomhdrrghuqeenucggtffrrghtthgvrhhnpeffuedtheevgfeuie eiteekhfdtgfdvteffieekjedujeevgfelheeigeeihfeftdenucffohhmrghinhepthhr rghvvghrshgvrdgtohhmrdgruhdpvghfihdrshhonecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhgrthhtsehtrhgrvhgvrhhsvgdrtghomhdr rghu X-ME-Proxy: <xmx:MX86YxlyX67vv9tEgjxKf08Zw-Cybfr3vnre6OIp55SUZlpdXlbMLA> <xmx:MX86Y_3OdRjTW1zrD-WtXJfuo-knWywZyHDC1hQ6cOzjqQ6Dbfp05A> <xmx:MX86YwsMQ_p9MUf-feF-xH8qtB2cQw_GlhVbUQ0CJZRscNe_2MTAzA> <xmx:MX86Y88AnMmKvbLAiOtuCqC9HHMuwVsKZ1XP9eKlMi3CuZwYE1pI7g> Feedback-ID: i426947f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Oct 2022 02:20:32 -0400 (EDT) From: Mathew McBride <matt@traverse.com.au> To: development@lists.ipfire.org Subject: [PATCH 3/4] config: u-boot: bypass the u-boot script on Traverse Ten64 Date: Mon, 3 Oct 2022 06:20:18 +0000 Message-Id: <20221003062019.19636-4-matt@traverse.com.au> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20221003062019.19636-1-matt@traverse.com.au> References: <20221003062019.19636-1-matt@traverse.com.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1664778044; a=rsa-sha256; cv=none; b=AF1JYUfsc1FCSz+gp4RRU0hkRxVQY0WyHvJhH9zyGoEbllvMeGmhFlthiqcsR7Fgi+bSwD JjbXy5ApE6XvMpPMWrg5VcraoZykMbL1+6giVlXCgW/K6TDHNjXvyH/dCOPDcpGbKQGrxC ckAiyC3UivmFfwPABSeEzMpcx1DvITJfIuik7KVuxbJz57htv7QMEsHdBIjtFuh7V/EXWy LJDQYvZx8MEkeHItXSuRUQmjE+K89fwFsRZkOIfhxdMHXTqMzjGwI0WouBqiFDFnhyYrlM n6kbS4oZxd8QRnnvCdxnzW0FLa9HCb7yBYeNHcvN++Av7l8Lf5gAhMyg2G+bqw== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=traverse.com.au header.s=fm1 header.b="f t4tbDj"; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=0V1HteqF; spf=pass (mail01.ipfire.org: domain of matt@traverse.com.au designates 66.111.4.28 as permitted sender) smtp.mailfrom=matt@traverse.com.au; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1664778044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=dmyxooOucKSMRjP7lbQ07690hi8CxenrBYLJPI3kBhw=; b=nZm+f54xQTJmiicaot7vivD+9B/QWoTaAX/aWwCMcFDbu8x9fJnak8TBOigZw5z8m5WSv5 0qh0Rk3PmwyyzMnNZ+ORv38o0JS3xfq5Jtplh5XHKohuJBm6YHGNNkkLgako+FDUu+lUDi tCL4eps9yP2HDPOjHlDj30/3SGDTGF4IejG0xmoXkNFT99v9pQC+LneawBomxrZ3JNpuMo tgOLRieXjTetF0HK5An8bCjL9civWVaNuhFEzzz1yuFolBzw3Ch1DIuTj9HDYsGqF70PEn dhhdfyvYBFtm2ui+0NrXeGAj/mVtM4gKlOJotaXuPY7ajQhThBAA/LK/gutoBA== Authentication-Results: mail01.ipfire.org; dkim=pass header.d=traverse.com.au header.s=fm1 header.b="f t4tbDj"; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=0V1HteqF; spf=pass (mail01.ipfire.org: domain of matt@traverse.com.au designates 66.111.4.28 as permitted sender) smtp.mailfrom=matt@traverse.com.au; dmarc=none X-Rspamd-Server: mail01.haj.ipfire.org X-Spamd-Result: default: False [-0.02 / 11.00]; HFILTER_HOSTNAME_UNKNOWN(5.00)[]; BAYES_HAM(-2.99)[99.96%]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-1.00)[-0.998]; DKIM_REPUTATION(-0.93)[-0.93043022249545]; R_MISSING_CHARSET(0.50)[]; IP_REPUTATION_HAM(-0.38)[asn: 19151(-0.38), country: US(-0.01), ip: 66.111.4.28(0.00)]; R_DKIM_ALLOW(0.29)[traverse.com.au:s=fm1,messagingengine.com:s=fm2]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.28:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.28:from]; RWL_MAILSPIKE_GOOD(-0.10)[66.111.4.28:from]; MX_GOOD(-0.01)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[traverse.com.au]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; RCVD_COUNT_THREE(0.00)[4]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[traverse.com.au:+,messagingengine.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4MgrLN0wDYz2M0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <https://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <https://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Series |
kernel: aarch64: Add support for Traverse Ten64 board
|
|
Commit Message
Mathew McBride
Oct. 3, 2022, 6:20 a.m. UTC
The Ten64 board runs a U-Boot which works best directly
booting EFI. Attempting to load your own DTB or other steps
will cause issues.
(see https://ten64doc.traverse.com.au/faq/#common-issues)
The current stable Ten64 firmware unfortunately searches for
boot.scr before bootaa64.efi. So redirect it back to the EFI path.
A future Ten64 firmware package will prefer EFI first before
any boot script avoiding this issue. I will provide a patch
reversing this when that day comes.
Signed-off-by: Mathew McBride <matt@traverse.com.au>
---
config/u-boot/boot.cmd | 9 +++++++++
1 file changed, 9 insertions(+)
Comments
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org> > On 3 Oct 2022, at 07:20, Mathew McBride <matt@traverse.com.au> wrote: > > The Ten64 board runs a U-Boot which works best directly > booting EFI. Attempting to load your own DTB or other steps > will cause issues. > (see https://ten64doc.traverse.com.au/faq/#common-issues) > > The current stable Ten64 firmware unfortunately searches for > boot.scr before bootaa64.efi. So redirect it back to the EFI path. > > A future Ten64 firmware package will prefer EFI first before > any boot script avoiding this issue. I will provide a patch > reversing this when that day comes. > > Signed-off-by: Mathew McBride <matt@traverse.com.au> > --- > config/u-boot/boot.cmd | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/config/u-boot/boot.cmd b/config/u-boot/boot.cmd > index 64e9c05bc..a27996780 100644 > --- a/config/u-boot/boot.cmd > +++ b/config/u-boot/boot.cmd > @@ -1,3 +1,12 @@ > +# Traverse Ten64 board can boot EFI directly > +# Redirect it to the EFI process already in the > +# bootloader > +# (Remove on release of the 1.x Ten64 firmwire package) > +if test "${board}" = "ten64"; then > + load ${devtype} ${devnum}:2 ${kernel_addr_r} efi/boot/bootaa64.efi > + bootefi ${kernel_addr_r} ${fdt_addr_r} > +fi; > + > if test ${boot_dev} = ""; then > setenv boot_dev mmc; > setenv root_dev /dev/mmcblk0p3; > -- > 2.30.1 >
Hi Michael, I finally had time to test the official Core 171 build on the Ten64. The compiled boot script (config/u-boot/boot.scr) needs to be updated (using config/u-boot/boot.mk) to take effect. As boot.scr is a binary file it is best for someone with commit access to update it. I'm not sure why the compiled boot.scr is in the tree, though I could try modifying the u-boot build script to compile it. Unless there is some reason that I'm not aware of? Best Regards, Matt On Tue, Oct 4, 2022, at 7:57 PM, Michael Tremer wrote: > Reviewed-by: Michael Tremer <michael.tremer@ipfire.org> > > > On 3 Oct 2022, at 07:20, Mathew McBride <matt@traverse.com.au> wrote: > > > > The Ten64 board runs a U-Boot which works best directly > > booting EFI. Attempting to load your own DTB or other steps > > will cause issues. > > (see https://ten64doc.traverse.com.au/faq/#common-issues) > > > > The current stable Ten64 firmware unfortunately searches for > > boot.scr before bootaa64.efi. So redirect it back to the EFI path. > > > > A future Ten64 firmware package will prefer EFI first before > > any boot script avoiding this issue. I will provide a patch > > reversing this when that day comes. > > > > Signed-off-by: Mathew McBride <matt@traverse.com.au> > > --- > > config/u-boot/boot.cmd | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/config/u-boot/boot.cmd b/config/u-boot/boot.cmd > > index 64e9c05bc..a27996780 100644 > > --- a/config/u-boot/boot.cmd > > +++ b/config/u-boot/boot.cmd > > @@ -1,3 +1,12 @@ > > +# Traverse Ten64 board can boot EFI directly > > +# Redirect it to the EFI process already in the > > +# bootloader > > +# (Remove on release of the 1.x Ten64 firmwire package) > > +if test "${board}" = "ten64"; then > > + load ${devtype} ${devnum}:2 ${kernel_addr_r} efi/boot/bootaa64.efi > > + bootefi ${kernel_addr_r} ${fdt_addr_r} > > +fi; > > + > > if test ${boot_dev} = ""; then > > setenv boot_dev mmc; > > setenv root_dev /dev/mmcblk0p3; > > -- > > 2.30.1 > > > >
diff --git a/config/u-boot/boot.cmd b/config/u-boot/boot.cmd index 64e9c05bc..a27996780 100644 --- a/config/u-boot/boot.cmd +++ b/config/u-boot/boot.cmd @@ -1,3 +1,12 @@ +# Traverse Ten64 board can boot EFI directly +# Redirect it to the EFI process already in the +# bootloader +# (Remove on release of the 1.x Ten64 firmwire package) +if test "${board}" = "ten64"; then + load ${devtype} ${devnum}:2 ${kernel_addr_r} efi/boot/bootaa64.efi + bootefi ${kernel_addr_r} ${fdt_addr_r} +fi; + if test ${boot_dev} = ""; then setenv boot_dev mmc; setenv root_dev /dev/mmcblk0p3;