<?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 IOCTL problems: Linux driver in T2080RDB in T-Series</title>
    <link>https://community.nxp.com/t5/T-Series/IOCTL-problems-Linux-driver-in-T2080RDB/m-p/510313#M918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am implementing a char device driver that should be use few special control using IOCTL. In the device driver I have created an ioctl function: int my_ioctl(struct inode *inode, struct file *file, unsigned int ioctl_num, unsigned long ioctl_param)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the function to the top structure and register the device. Within the function I have switch-case the ioctl_num. The device is register correctly and the open and write functions work as expected but IOCTL doesn't. When I call IOCTL from user space with parameter 0 the my_ioctl function called with ioctl_num = 0 but when I use any other values the my_ioctl kernel function is not being called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried in a laptop with Ubuntu and works properly(intel architecture). However, in the T2080RDB(powerPc architecture) does not work. It showed up the next message:&lt;BR /&gt;Ioctl error: _DEV_GET_Variable1, erroneo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea about what is going on? Same program run properly in a laptop with x86 and does not in PPC in T2080RDB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2016 07:48:05 GMT</pubDate>
    <dc:creator>manoloruiz</dc:creator>
    <dc:date>2016-04-18T07:48:05Z</dc:date>
    <item>
      <title>IOCTL problems: Linux driver in T2080RDB</title>
      <link>https://community.nxp.com/t5/T-Series/IOCTL-problems-Linux-driver-in-T2080RDB/m-p/510313#M918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am implementing a char device driver that should be use few special control using IOCTL. In the device driver I have created an ioctl function: int my_ioctl(struct inode *inode, struct file *file, unsigned int ioctl_num, unsigned long ioctl_param)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the function to the top structure and register the device. Within the function I have switch-case the ioctl_num. The device is register correctly and the open and write functions work as expected but IOCTL doesn't. When I call IOCTL from user space with parameter 0 the my_ioctl function called with ioctl_num = 0 but when I use any other values the my_ioctl kernel function is not being called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried in a laptop with Ubuntu and works properly(intel architecture). However, in the T2080RDB(powerPc architecture) does not work. It showed up the next message:&lt;BR /&gt;Ioctl error: _DEV_GET_Variable1, erroneo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea about what is going on? Same program run properly in a laptop with x86 and does not in PPC in T2080RDB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 07:48:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/IOCTL-problems-Linux-driver-in-T2080RDB/m-p/510313#M918</guid>
      <dc:creator>manoloruiz</dc:creator>
      <dc:date>2016-04-18T07:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: IOCTL problems: Linux driver in T2080RDB</title>
      <link>https://community.nxp.com/t5/T-Series/IOCTL-problems-Linux-driver-in-T2080RDB/m-p/510314#M919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attach my driver.It doesn´t need any extra hardware. it may help in order to find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Driver code: Ejemplo3.c&lt;/P&gt;&lt;P&gt;User program: uam_ioctl.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user run the progam call uam_ioctl, it needs add the name of the driver "chardev" and the option (form 1 to 5). For example ./uam_ioctl /dev/chardev 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 08:05:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/IOCTL-problems-Linux-driver-in-T2080RDB/m-p/510314#M919</guid>
      <dc:creator>manoloruiz</dc:creator>
      <dc:date>2016-04-18T08:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: IOCTL problems: Linux driver in T2080RDB</title>
      <link>https://community.nxp.com/t5/T-Series/IOCTL-problems-Linux-driver-in-T2080RDB/m-p/510315#M920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;Look at the following page about IOCTL using:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Fwww.tldp.org%2FLDP%2Flkmpg%2F2.4%2Fhtml%2Fx856.html" rel="nofollow" target="_blank"&gt;http://www.tldp.org/LDP/lkmpg/2.4/html/x856.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt;"&gt;See also &lt;SPAN style="color: black; background: white;"&gt;the kernel source tree at &lt;TT&gt;&lt;SPAN style="font-family: 'Times New Roman';"&gt;Documentation/ioctl-number.txt&lt;/SPAN&gt;&lt;/TT&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 12:35:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/IOCTL-problems-Linux-driver-in-T2080RDB/m-p/510315#M920</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2016-04-19T12:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: IOCTL problems: Linux driver in T2080RDB</title>
      <link>https://community.nxp.com/t5/T-Series/IOCTL-problems-Linux-driver-in-T2080RDB/m-p/510316#M921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think maybe u should &lt;SPAN style="color: #333333; font-family: arial; font-size: 13px;"&gt; implement the compat_ioctl function?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 16:12:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/IOCTL-problems-Linux-driver-in-T2080RDB/m-p/510316#M921</guid>
      <dc:creator>misakamikoto</dc:creator>
      <dc:date>2016-04-19T16:12:24Z</dc:date>
    </item>
  </channel>
</rss>

