<?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: [iMX25][PDK 1.6] How to activate pr_debug function? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX25-PDK-1-6-How-to-activate-pr-debug-function/m-p/158606#M2804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the boot command line, you must add:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This enables to setup the gpio properly upon boot in xxxxxxx_gpio.c (xxxxxxx = mx25_3stack for my imx25 board). This should be similar on the i.MX 51. On the i.MX 25, these gpio are shared with the CMOS sensor. By default, the CMOS sensor is activated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this does no work, search for soeting like __setup ("sim", sim_setup)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also checked IMX SIM Support in LTIB, as a built-in feature or module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You must use a library provided by Freescale and which implements T=0 protocol. I do not remember the lib name but it should be in the latest PDK release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Franz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jun 2010 15:57:26 GMT</pubDate>
    <dc:creator>Apple92</dc:creator>
    <dc:date>2010-06-25T15:57:26Z</dc:date>
    <item>
      <title>[iMX25][PDK 1.6] How to activate pr_debug function?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX25-PDK-1-6-How-to-activate-pr-debug-function/m-p/158603#M2801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;The PDK 1.6 contains a SIM card driver with debug capabilities.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The SIM card driver&lt;/FONT&gt; is in imx_sim.c (/rpm/BUILD/linux...../driver/char). The fact is that I am trying to debug the imx_sim.c source file for this SIM interface. mxc_sim is a SIM driver. In order to achieve this, I would like to enable pr_debug (...) output to my console when this driver is running and watch all debug messages displayed.&lt;BR /&gt;&lt;BR /&gt;The kernel.h shows the pr_debug macro like this:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;/* If you are writing a driver, please use dev_dbg instead */ #if&lt;BR /&gt;&amp;nbsp;defined(CONFIG_DYNAMIC_PRINTK_DEBUG)&lt;BR /&gt;&amp;nbsp;#define pr_debug(fmt, ...) do { \&lt;BR /&gt;&amp;nbsp;&amp;nbsp; dynamic_pr_debug(pr_fmt(fmt), ##__VA_ARGS__); \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } while (0)&lt;BR /&gt;&amp;nbsp;#elif defined(DEBUG)&lt;BR /&gt;&amp;nbsp;#define pr_debug(fmt, ...) \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) #else #define&lt;BR /&gt;&amp;nbsp;pr_debug(fmt, ...) \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ({ if (0) printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); 0; })&lt;BR /&gt;&amp;nbsp;#endif&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;By browsing the LTIB menus, I found out (by searching in kernel hacking the label CONFIG_DYNAMIC_PRINTK_DEBUG) that I could select enable dynamic printk() call support option. The fact is that this options is enabled by writing the modules names in a file called debugfs which should be located in dynamic_printk/modules.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;1- Is that mandatory to have the driver compiled and loaded as a module (&amp;lt;M&amp;gt;) (instead of part of the core kernel&amp;lt;*&amp;gt;)?&lt;/P&gt;&lt;P&gt;2- Where is the debugfs module? I cannot find the dynamic_printk/modules, the documentation is unclear on that topic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Franz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 00:20:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX25-PDK-1-6-How-to-activate-pr-debug-function/m-p/158603#M2801</guid>
      <dc:creator>Apple92</dc:creator>
      <dc:date>2009-12-02T00:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: [iMX25][PDK 1.6] How to activate pr_debug function?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX25-PDK-1-6-How-to-activate-pr-debug-function/m-p/158604#M2802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at: &lt;A href="http://www.kernel.org/doc/local/pr_debug.txt" rel="nofollow" target="_blank"&gt;http://www.kernel.org/doc/local/pr_debug.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 21:26:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX25-PDK-1-6-How-to-activate-pr-debug-function/m-p/158604#M2802</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2009-12-07T21:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: [iMX25][PDK 1.6] How to activate pr_debug function?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX25-PDK-1-6-How-to-activate-pr-debug-function/m-p/158605#M2803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fabio,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is regarding imx51 , i wanted to setup SIM CARD for IMx51 , are there any documentation or web site links for this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jun 2010 12:18:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX25-PDK-1-6-How-to-activate-pr-debug-function/m-p/158605#M2803</guid>
      <dc:creator>bhakrim</dc:creator>
      <dc:date>2010-06-25T12:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: [iMX25][PDK 1.6] How to activate pr_debug function?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX25-PDK-1-6-How-to-activate-pr-debug-function/m-p/158606#M2804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the boot command line, you must add:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This enables to setup the gpio properly upon boot in xxxxxxx_gpio.c (xxxxxxx = mx25_3stack for my imx25 board). This should be similar on the i.MX 51. On the i.MX 25, these gpio are shared with the CMOS sensor. By default, the CMOS sensor is activated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this does no work, search for soeting like __setup ("sim", sim_setup)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also checked IMX SIM Support in LTIB, as a built-in feature or module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You must use a library provided by Freescale and which implements T=0 protocol. I do not remember the lib name but it should be in the latest PDK release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Franz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jun 2010 15:57:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX25-PDK-1-6-How-to-activate-pr-debug-function/m-p/158606#M2804</guid>
      <dc:creator>Apple92</dc:creator>
      <dc:date>2010-06-25T15:57:26Z</dc:date>
    </item>
  </channel>
</rss>

