From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4CFCDC433EF for ; Wed, 23 Feb 2022 11:32:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id E164A40613; Wed, 23 Feb 2022 11:32:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ICebIWlBIGC9; Wed, 23 Feb 2022 11:32:50 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id D6B3240275; Wed, 23 Feb 2022 11:32:49 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B70241BF868 for ; Wed, 23 Feb 2022 11:32:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A4D4982612 for ; Wed, 23 Feb 2022 11:32:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DyBCOpvG12ex for ; Wed, 23 Feb 2022 11:32:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) by smtp1.osuosl.org (Postfix) with ESMTPS id 4BE2980C0F for ; Wed, 23 Feb 2022 11:32:47 +0000 (UTC) Received: from relay4-d.mail.gandi.net (unknown [217.70.183.196]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 90448CFCCC for ; Wed, 23 Feb 2022 11:11:49 +0000 (UTC) Received: (Authenticated sender: peter@korsgaard.com) by mail.gandi.net (Postfix) with ESMTPSA id 6FFEAE0017; Wed, 23 Feb 2022 11:11:41 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.94.2) (envelope-from ) id 1nMpYb-009SPV-27; Wed, 23 Feb 2022 12:11:41 +0100 From: Peter Korsgaard To: Neal Frager References: <20220211144402.1626443-1-neal.frager@xilinx.com> <87pmnsnquv.fsf@dell.be.48ers.dk> <87sfs96gqj.fsf@dell.be.48ers.dk> Date: Wed, 23 Feb 2022 12:11:40 +0100 In-Reply-To: (Neal Frager's message of "Wed, 23 Feb 2022 11:02:24 +0000") Message-ID: <87k0dl6dn7.fsf@dell.be.48ers.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Subject: Re: [Buildroot] [PATCH v6 1/2] configs/zynqmp_zcu106: bump ATF/U-Boot/Linux to Xilinx 2022 X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "luca@lucaceresoli.net" , "giulio.benetti@benettiengineering.com" , Michal Simek , "buildroot@buildroot.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" >>>>> "Neal" == Neal Frager writes: > Hi Peter, >> Hmm, did you test this on a zcu106 board? >> I just got access to a zcu106 rev 1.0 board and gave it a try here, and see nothing on either of the serial ports. >> Looking at the u-boot configuration I see that xilinx_zynqmp_virt_defconfig sets: >> CONFIG_DEFAULT_DEVICE_TREE="zynqmp-zcu100-revC" >> Which seems to have a different uart and pinmuxing setup. Changing >> that to zynqmp-zcu106-revA it does boot (but complains here and >> there). >> This is the first time I use a zcu106, so maybe I am missing >> something, but I don't understand how it can work for you with the >> zcu100 DTB? > Thank you for catching this. I will take care of getting this corrected with a follow up patch. > The way zynqmp_virt_defconfig works is described on our wiki page below: > https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841973/Build+U-Boot > The reason why this was working for me is because I had the DEVICE_TREE environment variable set when building. > make distclean > make xilinx_zynqmp_virt_defconfig > export DEVICE_TREE="zynqmp-zcu106-revA" > make > What is the proper way for setting an environment variable with > buildroot? Should I add this as a pre-build script in each defconfig? Instead of working with an environment variable, I think it would be nicer to tweak the zynqmp_virt_defconfig file with a configuration fragment with the CONFIG_DEFAULT_DEVICE_TREE="zynqmp-zcu106-revA" Line. This can be done with the BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES option. -- Bye, Peter Korsgaard _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot