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 smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 2B9BBC433F5 for ; Thu, 12 May 2022 14:38:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id CF8F881751; Thu, 12 May 2022 14:38:42 +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 v0sZkBw2uAvR; Thu, 12 May 2022 14:38:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id CFB7D81458; Thu, 12 May 2022 14:38:40 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id EC4CB1BF3D7 for ; Thu, 12 May 2022 14:38:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id DA5AA405B1 for ; Thu, 12 May 2022 14:38:38 +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 SIliA16ccn-g for ; Thu, 12 May 2022 14:38:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from hostingweb31-40.netsons.net (hostingweb31-40.netsons.net [89.40.174.40]) by smtp2.osuosl.org (Postfix) with ESMTPS id F20B140025 for ; Thu, 12 May 2022 14:38:35 +0000 (UTC) Received: from lmontsouris-655-1-15-199.w80-11.abo.wanadoo.fr ([80.11.122.199]:54256 helo=[192.168.1.105]) by hostingweb31.netsons.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1np9xZ-000Fv4-Oa; Thu, 12 May 2022 16:38:33 +0200 Message-ID: <56c3feaa-cbd2-eaa9-7800-cd2102fa8545@lucaceresoli.net> Date: Thu, 12 May 2022 16:38:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: Peter Korsgaard , Neal Frager References: <20220503152425.1069617-1-neal.frager@amd.com> <20220503152425.1069617-2-neal.frager@amd.com> <87h7653i8q.fsf@dell.be.48ers.dk> <87ilqccu3k.fsf@dell.be.48ers.dk> <875ymcawvb.fsf@dell.be.48ers.dk> From: Luca Ceresoli In-Reply-To: <875ymcawvb.fsf@dell.be.48ers.dk> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - buildroot.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca@lucaceresoli.net X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [Buildroot] [PATCH v1 2/2] configs/zynqmp_zcu106_defconfig: transition to tarballs 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: "giulio.benetti@benettiengineering.com" , "buildroot@buildroot.org" , Michal Simek , Neal Frager Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Hi Peter, On 11/05/22 17:54, Peter Korsgaard wrote: >>>>>> "Neal" == Neal Frager writes: > > > Hi Luca, > > We may need your help on this one. > > > Peter and I have both replaced the pmufw.bin generated by the zynqmp-pmufw-builder with the one generated > > by vitis or petalinux. When we build the boot.bin using the pmufw.bin from vitis or petalinux, reboot works > > as expected without changing anything else. > > > So there appears to be something in the zynqmp-pmufw-builder which is incorrect for the pmufw 2022.1. > > I believe it is an issue with (a different behaviour of) the > toolchain. I found a machine at $WORK with petalinux 2021.1 and rebuild > zynqmp-pmufw-builder with the following minor patch: > > diff --git a/build.sh b/build.sh > index 6321733..f01194d 100755 > --- a/build.sh > +++ b/build.sh > @@ -59,7 +59,7 @@ pmufw_build() > BSP_TARGETS_LIBDIR="${BSP_DIR}/psu_pmu_0/lib" > BSP_LIBXIL="${BSP_TARGETS_LIBDIR}/libxil.a" > > - CROSS="${HOME}/x-tools/microblazeel-xilinx-elf/bin/microblazeel-xilinx-elf-" > + CROSS="microblaze-xilinx-elf-" > CC=${CROSS}gcc > AR=${CROSS}ar > AS=${CROSS}as > @@ -92,7 +92,7 @@ pmufw_build() > AS="${AS}" \ > COMPILER="${CC}" \ > COMPILER_FLAGS="-O2 -c" \ > - EXTRA_COMPILER_FLAGS="-g -Wall -Wextra -Os -flto -ffat-lto-objects" \ > + EXTRA_COMPILER_FLAGS="-g -Wall -Wextra -Os -flto -ffat-lto-objects -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mcpu=v9.2 -mxl-soft-mul" \ > ARCHIVER="${AR}" \ > CFLAGS="${CFLAGS}" \ > include libs > > I had to also pass the -m* flags in EXTRA_COMPILER_FLAGS to get it to > link, presumably the petalinux toolchain has incompatible > defaults. Luca, any specific reasons to not pass CFLAGS there? I'm afraid I have no real answer. :( When I initially wrote the script I did it to have the same logic as petalinux. Later I didn't watch for its changes. I would love to be helpful but I have no access to a zynqmp board now. -- Luca _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot