Software Archive
Read-only legacy content
17061 Diskussionen

MPSS 3.1.x installation on Ubuntu 13.10

Kiswono_P_
Einsteiger
1.141Aufrufe

Hi, i'm having issues on MPSS 3.1.x installation on Ubuntu 13.10, these are what i have done:

# 1. download and extract SuSE package
  • tar xvf mpss-3.1.2-suse-11.3.tar
  • cd mpss-3.1.2
     
# 2. convert to deb packages and install
  • sudo alien --scripts *.rpm
  • sudo dpkg -i *.deb

# 3. add location /usr/lib64 so micctrl can run correctly
  • echo '/usr/lib64' | sudo tee -a /etc/ld.so.conf.d/mic.conf
  • sudo ldconfig

# 4. add lock, copy the kernel module to current kernel
  • sudo mkdir /var/lock/subsys/
  • odir=/lib/modules/$(uname -r)/misc/
  • sudo mkdir $odir
  • sudo cp /lib/modules/3.0.76-0.11-default/extra/mic.ko $odir
  • sudo modprobe mic
# ERROR: could not insert 'mic': Exec format error
# ERROR dari dmesg: mic: disagrees about version of symbol module_layout
 
any hints for what should i do now? 
 

 

0 Kudos
5 Antworten
Loc_N_Intel
Mitarbeiter
1.141Aufrufe

The convert utility "alien" is not guaranteed to work. I think you have a better chance to recompile the MPSS for Ubuntu.

Alexei_K_
Einsteiger
1.141Aufrufe

Ubuntu 13.10 comes with much newer kernel than Suse 11.3 so you need to compile the kernel module, mic.ko, specifically for  your running kernel. Discard your step #4.

Below is the module compilation procedure I did on my Ubuntu 12.04.3 box that you may find helpful:

 1. Download SOURCE of mpss-3.1.2 from
   http://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss

   tar -xvf mpss-src-3.1.2.tar
   cd mpss-3.1.2/src/
   tar -jxvf mpss-modules-3.1.2.tar.bz2
   cd mpss-modules-3.1.2

2. Download my patch, mpss_mod_patch.txt . Btw, I am trying to upload it here through the portal, but it doesn't work for some reason. I'll provide the link later.
   Apply the patch:
   patch -p1 < mpss_mod_patch.txt

3. Compile and install the module.

Create script, say install.sh, with the following content:

  #! /bin/bash

   KERNEL=$(uname -r)
   ARCH=k1om

   make KERNEL_VERSION=$KERNEL MIC_CARD_ARCH=$ARCH
   sudo make KERNEL_VERSION=$KERNEL MIC_CARD_ARCH=$ARCH sysconfdir=/etc includedir=/usr/include install

Run the script,

   ./install.sh

4.  Try to load the MIC module  
    sudo depmod
    sudo modprobe mic

    you should be able to see mic devices:
     ls /dev/mic*

 

Intel_C_6
Einsteiger
1.141Aufrufe

I am wondering if you have successfully installed MPSS on Ubuntu 13.10 for now?

I really appreciate your reply!

Kiswono_P_
Einsteiger
1.141Aufrufe

no I haven't tried in ubuntu, that day my boss decided to use CentOS..

Riazuddin_K_
Einsteiger
1.141Aufrufe

Helllo,

I was trying to install MPSS-3.3.3 in ubuntu [Ubuntu 12.04.5 LTS (GNU/Linux 3.13.0-45-generic x86_64)] system, using the instruction by Alexei K. But in step 2 I am geting the following error:

patching file host/pm_ioctl.c
Hunk #1 succeeded at 39 with fuzz 2.
patching file host/linvnet.c
Hunk #1 FAILED at 201.
1 out of 1 hunk FAILED -- saving rejects to file host/linvnet.c.rej
patching file vnet/micveth_dma.c
Hunk #1 FAILED at 895.
1 out of 1 hunk FAILED -- saving rejects to file vnet/micveth_dma.c.rej
patching file micscif/micscif_rb.c

and following are the *.rej details:

##### ./vnet/micveth_dma.c.rej

--- vnet/micveth_dma.c-bak    2013-12-06 16:52:30.047277813 -0500
+++ vnet/micveth_dma.c    2013-12-06 16:53:08.483276339 -0500
@@ -895,7 +895,7 @@
     .ndo_stop        = micvnet_stop_dev,
     .ndo_start_xmit        = micvnet_xmit,
     .ndo_validate_addr    = eth_validate_addr,
-    .ndo_set_multicast_list = micvnet_multicast_list,
+    .ndo_set_rx_mode = micvnet_multicast_list,
     .ndo_set_mac_address    = micvnet_set_address,
     .ndo_change_mtu        = micvnet_change_mtu,
 };
 

##### ./host/linvnet.c.rej
 
 --- host/linvnet.c-bak    2013-12-06 16:26:20.175338053 -0500
+++ host/linvnet.c    2013-12-06 16:27:05.103336352 -0500
@@ -201,7 +201,7 @@
     .ndo_stop        = micveth_stop_dev,
     .ndo_start_xmit        = micveth_xmit,
     .ndo_validate_addr    = eth_validate_addr,
-    .ndo_set_multicast_list = micveth_multicast_list,
+    .ndo_set_rx_mode = micveth_multicast_list,
     .ndo_set_mac_address    = micveth_set_address,
     .ndo_change_mtu        = micveth_change_mtu,
 };

can anyone help me to solve the problem?

Thank you

Riaz

Antworten