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 smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (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 61441C433F5 for ; Wed, 11 May 2022 15:54:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id E5FFC41955; Wed, 11 May 2022 15:54:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8083QR1MP6DV; Wed, 11 May 2022 15:54:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id A5F7F4194F; Wed, 11 May 2022 15:54:09 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id DDE611BF593 for ; Wed, 11 May 2022 15:54:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id C858D61079 for ; Wed, 11 May 2022 15:54:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4LkcB6U1DTpY for ; Wed, 11 May 2022 15:54:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [IPv6:2001:4b98:dc4:8::231]) by smtp3.osuosl.org (Postfix) with ESMTPS id 55A8460BCA for ; Wed, 11 May 2022 15:54:06 +0000 (UTC) Received: (Authenticated sender: peter@korsgaard.com) by mail.gandi.net (Postfix) with ESMTPSA id BE7EA10000B; Wed, 11 May 2022 15:54:01 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.94.2) (envelope-from ) id 1noof2-006gh3-Jr; Wed, 11 May 2022 17:54:00 +0200 From: Peter Korsgaard To: 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> Date: Wed, 11 May 2022 17:54:00 +0200 In-Reply-To: (Neal Frager's message of "Wed, 11 May 2022 13:41:08 +0000") Message-ID: <875ymcawvb.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 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: "luca@lucaceresoli.net" , "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" >>>>> "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? With this build I do NOT see the exception from the PMU during a reboot. Notice that this is a gcc10 based toolchain: microblaze-xilinx-elf-gcc -v Using built-in specs. COLLECT_GCC=/tools/Xilinx/Petalinux/2021.1/tools/xsct/gnu/microblaze/lin/bin/../x86_64-oesdk-linux/usr/bin/microblaze-xilinx-elf/microblaze-xilinx-elf-gcc.real COLLECT_LTO_WRAPPER=/tools/Xilinx/Petalinux/2021.1/tools/xsct/gnu/microblaze/lin/x86_64-oesdk-linux/usr/bin/microblaze-xilinx-elf/../../libexec/microblaze-xilinx-elf/gcc/microblaze-xilinx-elf Target: microblaze-xilinx-elf Configured with: ../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/configure --build=x86_64-linux --host=x86_64-oesdk-linux --target=microblaze-xilinx-elf --prefix=/usr/local/oecore-x86_re-x86_64/sysroots/x86_64-oesdk-linux/usr --bindir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/microblaze-xilinx-elf --sbindir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-re-x86_64/sysroots/x86_64-oesdk-linux/usr/libexec/microblaze-xilinx-elf --datadir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/share --sysconfdir=/usr/local/oecore-x86_64/sysroots4/sysroots/x86_64-oesdk-linux/com --localstatedir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/var --libdir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/microblaze-xilsdk-linux/usr/include --oldincludedir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/include --infodir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/share/info --mandir=/n --disable-silent-rules --disable-dependen cy-tracking --with-libtool-sysroot=/scratch/mhatle/git/internal/2021/build-tc/tmp/work/x86_64-nativesdk-oesdk-linux/gcc-cross-canadian-microblaze/10nguages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-libstdcxx-pch --program-prefix=microblaze-xilinx-elf- --without-local-prefix --disable-install-e-bootstrap --with-system-zlib --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --without-isl --with-gxx-include-dir=/not/exist/usr/nternal/2021/build-tc/tmp/work/x86_64-nativesdk-oesdk-linux/gcc-cross-canadian-microblaze/10.2.0-r0/recipe-sysroot-native/usr/microblaze-xilinx-elf/bin --with-build-sysroot=/scratch/mhatle/gicc-cross-canadian-microblaze/10.2.0-r0/recipe-sysroot --enable-poison-system-directories --enable-nls --with-glibc-version=2.28 --enable-initfini-array --without-headers --with-newlib --disab --with-newlib --disable-threads --enable-plugins --with-gnu-as --disable-libitm --en able-target-optspace --without-long-double-128 --enable-multilib --with-sysroot=/not/exist Thread model: single Supported LTO compression algorithms: zlib gcc version 10.2.0 (GCC) -- Bye, Peter Korsgaard _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot