On 3/31/21 9:26 PM, Mark Hatle wrote: > On 3/22/21 3:18 PM, Daniel Mack wrote: >> On 3/14/21 1:16 AM, Mark Hatle wrote: >>> On 3/13/21 2:15 PM, Daniel Mack wrote: >> >>>> Thanks a lot for the prompt reply! That explains. Now I'm wondering how >>>> to best pass that flag, and to which part of the build exactly. Is there >>>> any example how to do that in Yocto? >>> >>> Not a proper fix (that is still in progress upstream [kernel]), but you >>> should >>> be able to add this to arch/microblaze/Makefile >>> >>> Look for: head-y := arch/microblaze/kernel/head.o >>> >>> Right before that I added: >>> >>> KBUILD_CFLAGS += -fno-tree-loop-distribute-patterns >> >> That's what I tried first thing, but that alone didn't suffice >> unfortunately. CONFIG_XILINX_MICROBLAZE0_USE_BARREL was set to 1 in my >> kernel config to match the FPGA design which was made with >> C_USE_BARREL=1. In order to get a booting kernel however, I had to >> disable the barrel shifter in the kernel. >> >> After some more digging, it turned out that this downstream patch was >> causing the issue: >> >> 0024-Patch-microblaze-Add-new-bit-field-instructions.patch >> >> That patch enables the bsefi and bsifi instructions which are only valid >> for MicroBlaze version 10+, even though I selected v8.50 in >> TUNE_FEATURES_tune-microblaze. > > We think we have a fix for the issue, see: > > https://github.com/Xilinx/meta-xilinx.git > > branch mgh/gatesgarth-next > > > See commit: > > https://github.com/Xilinx/meta-xilinx/commit/11dcce35bd83fbe25710fcabaeca992ed8055985 > > If this resolves the issue for you, can you let me know so I'm sure it's > really > fixing the issue?
I've tested this now, and it seems to resolve the issue just fine. Awesome! Thanks a lot, Daniel
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#4878): https://lists.yoctoproject.org/g/meta-xilinx/message/4878 Mute This Topic: https://lists.yoctoproject.org/mt/81285762/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
