<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LayerscapeのトピックRe: LS1012A LSDK 21.08 insmod fail!!</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1012A-LSDK-21-08-insmod-fail/m-p/1734284#M13434</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Sorry, the kernel is not compatible with your module, you have to build the whole module with the kernel version that you are using otherwise it simple won't work.&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2023 14:32:20 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2023-10-05T14:32:20Z</dc:date>
    <item>
      <title>LS1012A LSDK 21.08 insmod fail!!</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1012A-LSDK-21-08-insmod-fail/m-p/1733693#M13432</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have successfully ported LSDK 21.08 to my custom board, LS1012AFRWY. When I tried to compile and insmod the module driver that was used with the previous LSDK 18.12, it appears that the kernel version is not compatible.&lt;/P&gt;&lt;P&gt;I have written the Makefile as follows, and it compiled successfully, resulting in the generation of the .ko file.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DEVNAME := dev_pci_xdma_ls1012a&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;obj-m += $(DEVNAME).o&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$(DEVNAME)-objs := main.o&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PWD := $(shell pwd)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;KDIR := /home/yhoh/wk-cleverlogic-LayerscapeSDK/flexbuild/build/linux/linux/arm64/LS/output/LSDK-21.08&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;all:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;make -C $(KDIR) M=$(PWD) clean&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;make CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 -C $(KDIR) M=$(PWD) modules&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;clean:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;make -C $(KDIR) M=$(PWD) clean&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After copying the file to the board and issuing the insmod command, it doesn't seem to be functioning correctly.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[root@LSDK ~]# insmod dev_pci_xdma_ls1012a.ko&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 1838.387700] dev_pci_xdma_ls1012a: loading out-of-tree module taints kernel.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 1838.399196] kboject example_init() done. ret=0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[root@LSDK ~]# uname -a&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Linux LSDK 5.10.35-dirty #1 SMP PREEMPT Wed Oct 4 18:44:39 KST 2023 aarch64 GNU/Linux&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please provide instructions on how to compile and run a module separately, without integrating it into the kernel.&lt;/P&gt;&lt;P&gt;Thank you.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Gyosun.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 11:16:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1012A-LSDK-21-08-insmod-fail/m-p/1733693#M13432</guid>
      <dc:creator>Gyosun</dc:creator>
      <dc:date>2023-10-04T11:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: LS1012A LSDK 21.08 insmod fail!!</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1012A-LSDK-21-08-insmod-fail/m-p/1734284#M13434</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Sorry, the kernel is not compatible with your module, you have to build the whole module with the kernel version that you are using otherwise it simple won't work.&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 14:32:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1012A-LSDK-21-08-insmod-fail/m-p/1734284#M13434</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-10-05T14:32:20Z</dc:date>
    </item>
  </channel>
</rss>

