<?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 building modules in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/building-modules/m-p/177979#M7048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm affraid I have another issue....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have installed the LTIB that belongs to the i.MX25 PDK and I need to compile modules on for the BSP. Last time I had to do this i did this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I went to /opt/freescale/pkgs/&lt;/P&gt;&lt;P&gt;2. Extracted linux-2.6.31.tar.bz2&lt;/P&gt;&lt;P&gt;3. Modified the code I wanted in /drivers/....&lt;/P&gt;&lt;P&gt;4. Compress the fonder linux-2.6.31 into linux-2.6.31.tar.bz2 again&lt;/P&gt;&lt;P&gt;5. Recalculated md5 checksum: md5sum linux-2.6.31.tar.bz2 &amp;gt; linux-2.6.31.tar.bz2.md5&lt;/P&gt;&lt;P&gt;6. Went to LTIB's source directory and rebuildt the kernel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solution did work, however, you can see how tedious it is. I am sure that there is a better way to do this but I can't seem to get it to work properly.. I am running on a standard i386 with ubuntu and I know how to build modules for my own platform with the command "make -C /lib/modules/$(uname -r)/build/ M=`pwd` modules"&lt;/P&gt;&lt;P&gt;However, if I go to /ltib/rpm/BUILD/linux-2.6.31/drivers/net/wireless/libertas (for example) and I change the makefile strictly to make it independent from the kernel global build (changing the obj-($CONFIG_PARAMETER) to obj-m) and then type:&lt;/P&gt;&lt;P&gt;make -C LTIBSOURCEDIR/rpm/BUILD/linux-2.6.31/kernel/ M=`pwd` modules&lt;/P&gt;&lt;P&gt;I get an error telling me that there is no target "modules" and if I try with the path "LTIBSOURCEDIR/rpm/BUILD/linux-2.6.31" without going into the "kernel" folder I get a huge output full of errors.....&lt;/P&gt;&lt;P&gt;What am I doing wrong?¿? I am really desperate as this is a very important issue that is not allowing me to move forward.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will appreciate anybodys help but I ask you please to explain things clearly as I am a newbie and get lost easily.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I am attaching both Makefiles, the original and the modified one that I am using to try to compile the libertas driver so that you can see if I am doing it correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2011 15:21:48 GMT</pubDate>
    <dc:creator>albert_arquer</dc:creator>
    <dc:date>2011-10-17T15:21:48Z</dc:date>
    <item>
      <title>building modules</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/building-modules/m-p/177979#M7048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm affraid I have another issue....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have installed the LTIB that belongs to the i.MX25 PDK and I need to compile modules on for the BSP. Last time I had to do this i did this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I went to /opt/freescale/pkgs/&lt;/P&gt;&lt;P&gt;2. Extracted linux-2.6.31.tar.bz2&lt;/P&gt;&lt;P&gt;3. Modified the code I wanted in /drivers/....&lt;/P&gt;&lt;P&gt;4. Compress the fonder linux-2.6.31 into linux-2.6.31.tar.bz2 again&lt;/P&gt;&lt;P&gt;5. Recalculated md5 checksum: md5sum linux-2.6.31.tar.bz2 &amp;gt; linux-2.6.31.tar.bz2.md5&lt;/P&gt;&lt;P&gt;6. Went to LTIB's source directory and rebuildt the kernel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solution did work, however, you can see how tedious it is. I am sure that there is a better way to do this but I can't seem to get it to work properly.. I am running on a standard i386 with ubuntu and I know how to build modules for my own platform with the command "make -C /lib/modules/$(uname -r)/build/ M=`pwd` modules"&lt;/P&gt;&lt;P&gt;However, if I go to /ltib/rpm/BUILD/linux-2.6.31/drivers/net/wireless/libertas (for example) and I change the makefile strictly to make it independent from the kernel global build (changing the obj-($CONFIG_PARAMETER) to obj-m) and then type:&lt;/P&gt;&lt;P&gt;make -C LTIBSOURCEDIR/rpm/BUILD/linux-2.6.31/kernel/ M=`pwd` modules&lt;/P&gt;&lt;P&gt;I get an error telling me that there is no target "modules" and if I try with the path "LTIBSOURCEDIR/rpm/BUILD/linux-2.6.31" without going into the "kernel" folder I get a huge output full of errors.....&lt;/P&gt;&lt;P&gt;What am I doing wrong?¿? I am really desperate as this is a very important issue that is not allowing me to move forward.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will appreciate anybodys help but I ask you please to explain things clearly as I am a newbie and get lost easily.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I am attaching both Makefiles, the original and the modified one that I am using to try to compile the libertas driver so that you can see if I am doing it correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 15:21:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/building-modules/m-p/177979#M7048</guid>
      <dc:creator>albert_arquer</dc:creator>
      <dc:date>2011-10-17T15:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: building modules</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/building-modules/m-p/177980#M7049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using LTIB, you can:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - Unpack the package you want to work on (e.g. kernel):&lt;/P&gt;&lt;P&gt;./ltib -p kernel -m prep&lt;/P&gt;&lt;P&gt;2 - Modify the package (kernel) as you want at ltib/rpm/BUILD/linux&lt;/P&gt;&lt;P&gt;3 - Build the package:&lt;/P&gt;&lt;P&gt;./ltib -p kernel -m scbuild&lt;/P&gt;&lt;P&gt;4 - Install it:&lt;/P&gt;&lt;P&gt;./ltib -p kernel -m scdeploy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For every change on code you can do steps 3 and 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Rogerio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 16:55:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/building-modules/m-p/177980#M7049</guid>
      <dc:creator>rogerio_silva</dc:creator>
      <dc:date>2011-10-17T16:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: building modules</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/building-modules/m-p/177981#M7050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your quick answer Rogerio.  However, the process you describe still involves rebuilding the whole kernel (if i am not mistaken). There must be an easier way to build only a certain module and then loading it to the target platform with a memory device (like a USB stick) in order to test it without having to rebuild the kernel with the consequent re-programming of the device....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 18:10:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/building-modules/m-p/177981#M7050</guid>
      <dc:creator>albert_arquer</dc:creator>
      <dc:date>2011-10-17T18:10:49Z</dc:date>
    </item>
  </channel>
</rss>

