<div dir="ltr"><div>Hi,</div><div><br></div><div>TL;DR after migrating from jethro to morty my out-of-tree modules do not load.</div><div><br></div><div>Long version:</div><div>Im developing uio driver for a custom FPGA. The base is xilinx zu15 (note: as the explanation will go on I *think* it will be clear that this is not related to meta-xilinx).</div><div>It's basically a debug interface that generates IRQ-like events on files (poll) for newly developed/tested features. The initial structure was poky jethro, meta-xilinx with linux-xlnx 4.4 for aarch64. The module is basically uio driver, but creates individual uio for each signal. The makefile is straight from <a href="https://www.yoctoproject.org/docs/2.2/kernel-dev/kernel-dev.html">https://www.yoctoproject.org/docs/2.2/kernel-dev/kernel-dev.html</a> and the recipee inherits from module.</div><div>When using jethro the module got built out-of-tree with no problem and I could load it. After migrating to morty (I also bumped meta-xilinx rev, but I use the same kernel SRCREV and project layer) I still can build the module, but when loading it I get:</div><div><br></div><div>$ modprobe uio_pdrv_testirq</div><div>[ Â 79.059558] module uio_pdrv_testirq: unsupported RELA relocation: 275</div><div>modprobe: can't load module uio_pdrv_testirq (testirq/uio_pdrv_testirq.ko): invalid module format</div><div><br></div><div>$ modinfo uio_pdrv_testirq</div><div>filename: Â Â Â testirq/uio_pdrv_testirq.ko</div><div>license: Â Â Â Â GPL v2</div><div>author: Â Â Â Â BB</div><div>description: Â Â Userspace I/O test driver irq handler</div><div>depends:</div><div>vermagic: Â Â Â 4.4.0-xilinx SMP preempt mod_unload modversions aarch64</div><div><br></div><div>I looked for a solution and found this <a href="http://lists.infradead.org/pipermail/linux-arm-kernel/2015-October/375429.html">http://lists.infradead.org/pipermail/linux-arm-kernel/2015-October/375429.html</a> thread</div><div>I checked that I have all the ERRATUM enabled (with emphasys on ARM64_ERRATUM_843419):</div><div>CONFIG_ARM64_ERRATUM_826319=y</div><div>CONFIG_ARM64_ERRATUM_827319=y</div><div>CONFIG_ARM64_ERRATUM_824069=y</div><div>CONFIG_ARM64_ERRATUM_819472=y</div><div>CONFIG_ARM64_ERRATUM_832075=y</div><div>CONFIG_ARM64_ERRATUM_845719=y</div><div>CONFIG_ARM64_ERRATUM_843419=y</div><div><br></div><div>and I added</div><div>CFLAGS_MODULE Â += -mcmodel=large</div><div><br></div><div>Result: no change; testirq still fails to load.</div><div><br></div><div>I would be grateful for any suggestions where to look or what to do next.</div><div><br></div><div>Best regards,</div><div>Bogusz Brodzinski</div><div><br></div></div>