title: Cross compile kernel module for Zynq
body: <p>I have Zynq target running on </p>
  
  <pre><code>3.2.35-rt52 #1 SMP PREEMPT RT Wed Jun 12 09:57:26 CDT 2013 armv7l GNU/Linux
  </code></pre>
  
  <p>I need to add Ethernet bonding driver kernel module  , but got errors can you help me on this ?</p>
  
  <p>My steps </p>
  
  <p>1) ubuntu-12.04.3-desktop-i386</p>
  
  <p>2)<code>sudo apt-get install gcc-arm-linux-gnueabi</code></p>
  
  <p>3) <code>https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.2.35.tar.gz</code></p>
  
  <p>4)<code>make distclean</code></p>
  
  <p>5)<code>make ARCH=arm defconfig</code></p>
  
  <p>6)<code>ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make all</code></p>
  
  <p>After compile i have uploaded <code>bonding.ko</code> file to my target and try to load using <code>insmod</code></p>
  
  <p>I have got error </p>
  
  <p>`insmod: can't insert '/lib/modules/3.2.35-rt52/kernel/drivers/net/bonding/bonding.ko': invalid module format</p>
  
  <pre><code>no symbol version for module_layout
  </code></pre>
  
  <p>`
  This problem can come from SMP? 
  My target have 2 cores and enabled SMP but in my module info i cant se SMP</p>
  
  <p>Can you help me build loadable module for my Zynq target </p>
  
  <p>thanks in advance</p>