<?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: char device driver in PowerQUICC Processors</title>
    <link>https://community.nxp.com/t5/PowerQUICC-Processors/char-device-driver/m-p/578898#M1609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to build char drivers with the procedure given by you. Facing problems during build.&lt;/P&gt;&lt;P&gt;1. I want to first build loadable drivers instead of kernel modules (*.config file entry) and check, please give the commands to compile a custom driver from LTIB. I used the commands make -C &lt;SOURCE for="" kernel="" path=""&gt;&lt;/SOURCE&gt;(uname  -r) PWD = modules but it noes not work. Please resolve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Vishnu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2016 05:55:48 GMT</pubDate>
    <dc:creator>garimella</dc:creator>
    <dc:date>2016-07-27T05:55:48Z</dc:date>
    <item>
      <title>char device driver</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/char-device-driver/m-p/578896#M1607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following questions&lt;/P&gt;&lt;P&gt;1. I am using custom board using MPC8309. I want to develop char device driver in LTIB environment. I have looked at watchdog timer example in drivers directory. Please explain the commands required to compile a device driver in LTIB?&lt;/P&gt;&lt;P&gt;Where to locate the source file , ie. driver and application program (within the source tree or outside)?&lt;/P&gt;&lt;P&gt;2. Assuming that the code is compiled (*.o) with the procedures as per step 1, how to transfer the compiled file to the target?( Uboot and kernel is ported to the board)&lt;/P&gt;&lt;P&gt;3. If step2 is successful, what is the procedure to auto load the application at start up without downloading to the target?&lt;/P&gt;&lt;P&gt;4. I get error running .ltib -c while configuring kernel as it expects the network connectivity for installing some files (eg hello world modules). I checked at several forums and I learnt that .librc need to be modified in order to correct network connectivity problem( my internet is OK). Please help me to locate the librc file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 09:43:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/char-device-driver/m-p/578896#M1607</guid>
      <dc:creator>garimella</dc:creator>
      <dc:date>2016-07-18T09:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: char device driver</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/char-device-driver/m-p/578897#M1608</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; color: #303030;"&gt;Linux supports kernel driver and kernel module. See the following page:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Funix.stackexchange.com%2Fquestions%2F47208%2Fwhat-is-the-difference-between-kernel-drivers-and-kernel-modules" rel="nofollow" target="_blank"&gt;http://unix.stackexchange.com/questions/47208/what-is-the-difference-between-kernel-drivers-and-kernel-modules&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fhaifux.org%2Flectures%2F86-sil%2Fkernel-modules-drivers%2Fkernel-modules-drivers.html" rel="nofollow" target="_blank"&gt;http://haifux.org/lectures/86-sil/kernel-modules-drivers/kernel-modules-drivers.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.tldp.org%2FLDP%2Flkmpg%2F2.6%2Fhtml%2Flkmpg.html" rel="nofollow" target="_blank"&gt;http://www.tldp.org/LDP/lkmpg/2.6/html/lkmpg.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;There is a lot information for developing char device driver for Linux and adding this driver to LTIB. For example see the following pages:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.tldp.org%2FLDP%2Flkmpg%2F2.6%2Fhtml%2Fx569.html" rel="nofollow" target="_blank"&gt;http://www.tldp.org/LDP/lkmpg/2.6/html/x569.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fderekmolloy.ie%2Fwriting-a-linux-kernel-module-part-2-a-character-device%2F" rel="nofollow" target="_blank"&gt;http://derekmolloy.ie/writing-a-linux-kernel-module-part-2-a-character-device/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fblog-eforembedded.rhcloud.com%2Fcategory%2Fltib%2F" rel="nofollow" target="_blank"&gt;http://blog-eforembedded.rhcloud.com/category/ltib/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fltib.org%2Fpages%2FLTIB_generic_v1.4_-_version_6.4.1.pdf" rel="nofollow" target="_blank"&gt;http://ltib.org/pages/LTIB_generic_v1.4_-_version_6.4.1.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;Usually customers use LTIB for application code and device drivers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;For the cross compile is better to do using LTIB, you need to do the next steps to add in the LTIB menu&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;1.- Create your directory&amp;nbsp; for your driver or use a directory under linux/drivers/&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;2.- Modify/create the Kconfig to add your driver as configurable in ltib.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;3.- Modify/reate Makefile to compile your driver with the same kernel as all the drivers.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;In case that you create a new directory you need to change the Kconfig and Makefile under linux/drivers to add your configurations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: #303030;"&gt;When you have all your files, under ltib/ enter the command ./ltib -c, select Configure Kernel and in the next window select Device Drivers and you could find your driver there, chose your driver to be compiled as M and finally you can use this file in you board.&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 Jul 2016 07:26:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/char-device-driver/m-p/578897#M1608</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2016-07-19T07:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: char device driver</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/char-device-driver/m-p/578898#M1609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to build char drivers with the procedure given by you. Facing problems during build.&lt;/P&gt;&lt;P&gt;1. I want to first build loadable drivers instead of kernel modules (*.config file entry) and check, please give the commands to compile a custom driver from LTIB. I used the commands make -C &lt;SOURCE for="" kernel="" path=""&gt;&lt;/SOURCE&gt;(uname  -r) PWD = modules but it noes not work. Please resolve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Vishnu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 05:55:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/char-device-driver/m-p/578898#M1609</guid>
      <dc:creator>garimella</dc:creator>
      <dc:date>2016-07-27T05:55:48Z</dc:date>
    </item>
  </channel>
</rss>

