<?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>topic Re: Error kernel-module-nxp89xx: do_compile for changing DEBUG LEVEL in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Error-kernel-module-nxp89xx-do-compile-for-changing-DEBUG-LEVEL/m-p/1633587#M204193</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;I already knew&amp;nbsp;CONFIG_DEBUG's max value is 2.&lt;/P&gt;&lt;P&gt;What I am referring to is that CONFIG_DEBUG supports n(none) according to comments in Makefile, but the source code does not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Comments is here&lt;/P&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;SPAN&gt;# Debug Option&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# DEBUG LEVEL n/1/2:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# n: NO DEBUG&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# 1: Only PRINTM(MMSG,...), PRINTM(MFATAL,...), ...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# 2: All PRINTM()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONFIG_DEBUG&lt;/SPAN&gt;&lt;SPAN&gt;=1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I think patching the Makefile is not enough, what do you think?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Best Regards.&lt;/DIV&gt;&lt;DIV&gt;Tanoue.&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 14 Apr 2023 04:21:45 GMT</pubDate>
    <dc:creator>tanoue</dc:creator>
    <dc:date>2023-04-14T04:21:45Z</dc:date>
    <item>
      <title>Error kernel-module-nxp89xx: do_compile for changing DEBUG LEVEL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-kernel-module-nxp89xx-do-compile-for-changing-DEBUG-LEVEL/m-p/1632903#M204126</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How&amp;nbsp;kernel-module-nxp89xx's debug output to be disabled?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to my image for i.MX8M Plus based on NXP BSP(&lt;SPAN&gt;Linux 5.15.32_2.0.0&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;When I use Wi-Fi, the following command is needed to load Wi-Fi driver(moal.ko, mlan.ko).&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;modprobe moal mod_para=nxp/wifi_mod_para.conf&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However, moal and mlan&amp;nbsp;keep giving debug output after modprobe command like that.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;[ &amp;nbsp; 35.991569] wlan: wfd0 START SCAN&lt;BR /&gt;[ &amp;nbsp; 40.337134] wlan: SCAN COMPLETED: scanned AP count=41&lt;BR /&gt;[ &amp;nbsp; 40.345986] wlan: sched scan start&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So, I tried to patch Makefile to changing DEBUG LEVEL.&lt;/P&gt;&lt;P&gt;But compile error occured.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;/home/feadmin/work/imx-yocto-bsp/build-xwayland-kirkstone/tmp/work/imx8mp_lpddr4_evk-poky-linux/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_shim.c: In function 'moal_get_hw_spec_complete':&lt;BR /&gt;/home/feadmin/work/imx-yocto-bsp/build-xwayland-kirkstone/tmp/work/imx8mp_lpddr4_evk-poky-linux/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_shim.c:875:15: warning: unused variable 'drv_mode' [-Wunused-variable]&lt;BR /&gt;875 | t_u32 drv_mode = handle-&amp;gt;params.drv_mode;&lt;BR /&gt;| ^~~~~~~~&lt;BR /&gt;/home/feadmin/work/imx-yocto-bsp/build-xwayland-kirkstone/tmp/work/imx8mp_lpddr4_evk-poky-linux/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_shim.c: In function 'moal_recv_event':&lt;BR /&gt;/home/feadmin/work/imx-yocto-bsp/build-xwayland-kirkstone/tmp/work/imx8mp_lpddr4_evk-poky-linux/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_shim.c:2854:21: error: 'drvdbg' undeclared (first use in this function); did you mean 'dev_dbg'?&lt;BR /&gt;2854 | if (drvdbg &amp;amp; MFW_D)&lt;BR /&gt;| ^~~~~~&lt;BR /&gt;| dev_dbg&lt;BR /&gt;/home/feadmin/work/imx-yocto-bsp/build-xwayland-kirkstone/tmp/work/imx8mp_lpddr4_evk-poky-linux/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_shim.c:2854:21: note: each undeclared identifier is reported only once for each function it appears in&lt;BR /&gt;/home/feadmin/work/imx-yocto-bsp/build-xwayland-kirkstone/tmp/work/imx8mp_lpddr4_evk-poky-linux/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_shim.c:2854:30: error: 'MFW_D' undeclared (first use in this function)&lt;BR /&gt;2854 | if (drvdbg &amp;amp; MFW_D)&lt;BR /&gt;| ^~~~~&lt;BR /&gt;CC [M] /home/feadmin/work/imx-yocto-bsp/build-xwayland-kirkstone/tmp/work/imx8mp_lpddr4_evk-poky-linux/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_uap_cfg80211.o&lt;BR /&gt;/home/feadmin/work/imx-yocto-bsp/build-xwayland-kirkstone/tmp/work/imx8mp_lpddr4_evk-poky-linux/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_main.c: In function 'woal_tx_timeout':&lt;BR /&gt;/home/feadmin/work/imx-yocto-bsp/build-xwayland-kirkstone/tmp/work/imx8mp_lpddr4_evk-poky-linux/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_main.c:6180:21: error: 'drvdbg' undeclared (first use in this function); did you mean 'dev_dbg'?&lt;BR /&gt;6180 | if (drvdbg &amp;amp; MFW_D)&lt;BR /&gt;| ^~~~~~&lt;BR /&gt;| dev_dbg&lt;BR /&gt;/home/feadmin/work/imx-yocto-bsp/build-xwayland-kirkstone/tmp/work/imx8mp_lpddr4_evk-poky-linux/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_main.c:6180:21: note: each undeclared identifier is reported only once for each function it appears in&lt;BR /&gt;make[1]: *** [/home/feadmin/work/imx-yocto-bsp/build-xwayland-kirkstone/tmp/work-shared/imx8mp-lpddr4-evk/kernel-source/scripts/Makefile.build:277: /home/feadmin/work/imx-yocto-bsp/build-xwayland-kirkstone/tmp/work/imx8mp_lpddr4_evk-poky-linux/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_shim.o] Error 1&lt;BR /&gt;make[1]: *** Waiting for unfinished jobs....&lt;BR /&gt;/home/feadmin/work/imx-yocto-bsp/build-xwayland-kirkstone/tmp/work/imx8mp_lpddr4_evk-poky-linux/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_main.c:6180:30: error: 'MFW_D' undeclared (first use in this function)&lt;BR /&gt;6180 | if (drvdbg &amp;amp; MFW_D)&lt;BR /&gt;| ^~~~~&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How to solve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Patch file, bb file and build logs are attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regard.&lt;/P&gt;&lt;P&gt;Tanoue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 07:24:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-kernel-module-nxp89xx-do-compile-for-changing-DEBUG-LEVEL/m-p/1632903#M204126</guid>
      <dc:creator>tanoue</dc:creator>
      <dc:date>2023-04-13T07:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error kernel-module-nxp89xx: do_compile for changing DEBUG LEVEL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-kernel-module-nxp89xx-do-compile-for-changing-DEBUG-LEVEL/m-p/1633513#M204187</link>
      <description>&lt;P&gt;The CONFIG_DEBUG&amp;nbsp;max value that makefile support is 2. Please modify this value in your patch.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ifeq ($(CONFIG_DEBUG),1)
	ccflags-y += -DDEBUG_LEVEL1
endif

ifeq ($(CONFIG_DEBUG),2)
	ccflags-y += -DDEBUG_LEVEL1
	ccflags-y += -DDEBUG_LEVEL2
	DBG=	-dbg
endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 02:37:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-kernel-module-nxp89xx-do-compile-for-changing-DEBUG-LEVEL/m-p/1633513#M204187</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2023-04-14T02:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error kernel-module-nxp89xx: do_compile for changing DEBUG LEVEL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Error-kernel-module-nxp89xx-do-compile-for-changing-DEBUG-LEVEL/m-p/1633587#M204193</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;I already knew&amp;nbsp;CONFIG_DEBUG's max value is 2.&lt;/P&gt;&lt;P&gt;What I am referring to is that CONFIG_DEBUG supports n(none) according to comments in Makefile, but the source code does not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Comments is here&lt;/P&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;SPAN&gt;# Debug Option&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# DEBUG LEVEL n/1/2:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# n: NO DEBUG&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# 1: Only PRINTM(MMSG,...), PRINTM(MFATAL,...), ...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# 2: All PRINTM()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONFIG_DEBUG&lt;/SPAN&gt;&lt;SPAN&gt;=1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I think patching the Makefile is not enough, what do you think?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Best Regards.&lt;/DIV&gt;&lt;DIV&gt;Tanoue.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Apr 2023 04:21:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Error-kernel-module-nxp89xx-do-compile-for-changing-DEBUG-LEVEL/m-p/1633587#M204193</guid>
      <dc:creator>tanoue</dc:creator>
      <dc:date>2023-04-14T04:21:45Z</dc:date>
    </item>
  </channel>
</rss>

