Difference between revisions of "Doc:latest/tipcbuildandinstallguide"

(TIPC build and install Guide)
(TIPC build and install Guide)
 
Line 10: Line 10:
 
* extract tipc1.7.7.oc.tar.gz to folder tipc1.7.7.oc
 
* extract tipc1.7.7.oc.tar.gz to folder tipc1.7.7.oc
 
* move to kernel folder(\usr\src\'uname -r') then copy source from tipc to kernel (tipc1.7.7.oc/net, tipc1.7.7.oc/include)
 
* move to kernel folder(\usr\src\'uname -r') then copy source from tipc to kernel (tipc1.7.7.oc/net, tipc1.7.7.oc/include)
 +
* copy .h to library header
 +
      # cp -f tipc-1.7.7.oc/include/linux/tipc.h /usr/include/linux/
 +
      # cp -f tipc-1.7.7.oc/include/linux/tipc_config.h /usr/include/linux/
 
* save old config
 
* save old config
 
       # make oldconfig
 
       # make oldconfig
Line 29: Line 32:
 
* install
 
* install
 
       # make M=net/tipc modules_install
 
       # make M=net/tipc modules_install
* copy tipc to library
 
      # cp -f net/tipc/tipc.ko /lib/modules/`uname -r`/extra/
 
 
* add path to tipc.conf
 
* add path to tipc.conf
 
       # echo "install tipc insmod /lib/modules/`uname -r`/extra/tipc.ko" >> tipc.conf
 
       # echo "install tipc insmod /lib/modules/`uname -r`/extra/tipc.ko" >> tipc.conf
Line 39: Line 40:
 
       # depmod -a -F /boot/System.map-`uname -r` `uname -r`
 
       # depmod -a -F /boot/System.map-`uname -r` `uname -r`
 
       # /sbin/modinfo tipc
 
       # /sbin/modinfo tipc
* copy .h to library header
 
      # cp -f tipc-1.7.7.oc/include/linux/tipc.h /usr/include/linux/
 
      # cp -f tipc-1.7.7.oc/include/linux/tipc_config.h /usr/include/linux/
 

Latest revision as of 13:26, 30 August 2016

[edit] Preface

TIPC build and install Guide provides the build and installation procedures for TIPC on Linux Operating System.

[edit] TIPC build and install Guide

  • login as root
  • install package kernel-devel, gcc, ncurses-devel
  • extract tipc1.7.7.oc.tar.gz to folder tipc1.7.7.oc
  • move to kernel folder(\usr\src\'uname -r') then copy source from tipc to kernel (tipc1.7.7.oc/net, tipc1.7.7.oc/include)
  • copy .h to library header
      # cp -f tipc-1.7.7.oc/include/linux/tipc.h /usr/include/linux/
      # cp -f tipc-1.7.7.oc/include/linux/tipc_config.h /usr/include/linux/
  • save old config
      # make oldconfig
  • configure tipc
      # make menuconfig
      - Main menu then choose -> Network Support -> Networking options -> The TIPC Protocol (EXPERIMENTAL) -> input M 
        ->  Enter The TIPC Protocol (EXPERIMENTAL) 
        ->  TIPC: Advanced configuration -> input Y
        ->  enable debug messages -> input Y
        ->  other items choose default
        ->  choose Exit until go to main menu
      - Main menu -> Save an Alternate Configuration File -> save to .config
  • prepare
      # make modules_prepare (in this step if you see menu, then input-> yes to all)
  • initialization
      # make init
  • build TIPC module
      # make M=net/tipc modules
  • install
      # make M=net/tipc modules_install
  • add path to tipc.conf
      # echo "install tipc insmod /lib/modules/`uname -r`/extra/tipc.ko" >> tipc.conf
  • copy config tipc
      # cp -f tipc.conf /etc/modprobe.d/
  • check tipc works or not
      # modprobe tipc
      # depmod -a -F /boot/System.map-`uname -r` `uname -r`
      # /sbin/modinfo tipc