<?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>i.MX ProcessorsのトピックRe: I.MX6Q FEC driver Compile into KO modules</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/I-MX6Q-FEC-driver-Compile-into-KO-modules/m-p/1732443#M213430</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/185376"&gt;@jerry2004&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;Please make sure to check the module support is enabled.&lt;BR /&gt;CONFIG_MODULES=y&lt;BR /&gt;Otherwise, one won't be able to load the modules.&lt;/P&gt;
&lt;P&gt;Please check the drivers that are sued for FEC are included in the device tree one is loading.&lt;BR /&gt;It is also recommended to check the FEC driver one is using and compiling is compatible with the kernel version that is being used, Please check that as well.&lt;/P&gt;
&lt;P&gt;It is also recommended to use the latest kernel version, So if possible please upgrade the kernel to have updated drivers as well as fw.&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Sanket parekh&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2023 07:04:03 GMT</pubDate>
    <dc:creator>Sanket_Parekh</dc:creator>
    <dc:date>2023-10-02T07:04:03Z</dc:date>
    <item>
      <title>I.MX6Q FEC driver Compile into KO modules</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX6Q-FEC-driver-Compile-into-KO-modules/m-p/1731183#M213337</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Currently, the FEC driver on the imx6 platform is compiled with the entire system, and the kernel version is 3.0。&lt;SPAN&gt;All functions are OK&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;However, due to other special reasons, after the system is running, it is necessary to perform a RESET action on the PHY chip, which requires the driver to match again. Therefore, I wonder if it is possible to compile the FEC driver into a module form without restarting the system&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Firstly, it is not possible to compile the FEC driver into the M option in the kernel configuration&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jerry2004_0-1695892522166.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/243141i5306DA84231BBA7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jerry2004_0-1695892522166.png" alt="jerry2004_0-1695892522166.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Forcibly modifying the makefile can generate fec.ko。But during insmod and rmmod, it may crash due to clcok matching issues&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jerry2004_1-1695892758247.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/243142i2FC725F597FFC05D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jerry2004_1-1695892758247.png" alt="jerry2004_1-1695892758247.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What is the way to make fec.ko load and unload normally&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 09:20:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX6Q-FEC-driver-Compile-into-KO-modules/m-p/1731183#M213337</guid>
      <dc:creator>jerry2004</dc:creator>
      <dc:date>2023-09-28T09:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX6Q FEC driver Compile into KO modules</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX6Q-FEC-driver-Compile-into-KO-modules/m-p/1732443#M213430</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/185376"&gt;@jerry2004&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;Please make sure to check the module support is enabled.&lt;BR /&gt;CONFIG_MODULES=y&lt;BR /&gt;Otherwise, one won't be able to load the modules.&lt;/P&gt;
&lt;P&gt;Please check the drivers that are sued for FEC are included in the device tree one is loading.&lt;BR /&gt;It is also recommended to check the FEC driver one is using and compiling is compatible with the kernel version that is being used, Please check that as well.&lt;/P&gt;
&lt;P&gt;It is also recommended to use the latest kernel version, So if possible please upgrade the kernel to have updated drivers as well as fw.&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Sanket parekh&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 07:04:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX6Q-FEC-driver-Compile-into-KO-modules/m-p/1732443#M213430</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-10-02T07:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX6Q FEC driver Compile into KO modules</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX6Q-FEC-driver-Compile-into-KO-modules/m-p/1735105#M213682</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202155"&gt;@Sanket_Parekh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Yes ,&lt;SPAN&gt;the module support is enabled.,&lt;/SPAN&gt;&lt;SPAN&gt;CONFIG_MODULES=y.Because other driver modules can be loaded as modules。What I want to know is that FEC drivers themselves cannot be loaded as modules？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The kernel version of our product is relatively old, and this version has not yet enabled the device tree architecture. The version number is 3.0.101&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We have formed a stable product and will not consider upgrading the kernel version. I just want to confirm whether the FEC driver can be compiled into a ko module on the current 3.0.101 version. Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2023 01:04:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX6Q-FEC-driver-Compile-into-KO-modules/m-p/1735105#M213682</guid>
      <dc:creator>jerry2004</dc:creator>
      <dc:date>2023-10-07T01:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX6Q FEC driver Compile into KO modules</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX6Q-FEC-driver-Compile-into-KO-modules/m-p/1735700#M213731</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/185376"&gt;@jerry2004&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I hope you are doing well.&lt;BR /&gt;&lt;BR /&gt;What I want to know is that FEC drivers themselves cannot be loaded as modules？&lt;BR /&gt;-&amp;gt;I have mentioned the changes one has to make in order to make drivers as a module&amp;nbsp;or built-in to the kernel.&lt;BR /&gt;&lt;BR /&gt;Please check the defconfig as mentioned below in your source code and make the below changes.&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/imx_3.0.101_caf/arch/arm/configs/imx6_defconfig" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/imx_3.0.101_caf/arch/arm/configs/imx6_defconfig&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;CONFIG_FEC=y&lt;BR /&gt;CONFIG_FEC_NAPI=y&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;(if one wants to build it as a module then set it as m)&lt;BR /&gt;&lt;BR /&gt;Please also check the FEC driver compilation entry in the make file as given below.&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/imx_3.0.101_caf/drivers/net/Makefile" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/imx_3.0.101_caf/drivers/net/Makefile&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;obj-$(CONFIG_FEC) += fec.o&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;Please make sure to check the Kconfig file and the config FEC node in the below link.&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/imx_3.0.101_caf/drivers/net/Kconfig" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/imx_3.0.101_caf/drivers/net/Kconfig&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;config FEC&lt;/STRONG&gt; -&amp;gt; Select Y here if you want to use the built-in 10/100 Fast ethernet controller on some Motorola ColdFire and Freescale i.MX processors.&lt;BR /&gt;&lt;BR /&gt;I hope this helps!&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Sanket Parekh&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 10:01:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX6Q-FEC-driver-Compile-into-KO-modules/m-p/1735700#M213731</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-10-09T10:01:35Z</dc:date>
    </item>
  </channel>
</rss>

