Building and Deployment for a Specific Kernel and Installation into a Staging Directory
THIS HOWTO IS DEPRECATED
Remark: This is really special. The information below is outdated and only kept for completeness.
Preparation
Create a staging directory
cd ~
mkdir staging
If required, get headers/sources of the kernel. The following is an example for the 3.10.101-01_x86_64 (2.6.33.9-01_x86_64) kernel for EL7 (SL6) on the ASL cluster. Log on to an ASL machine.
cd ~ //just an example. If you prefer, choose another path
mkdir myKernel
cd myKernel
wget http://packages.acc.gsi.de/opkg/el7/x86_64/linux-scu-source_3.10.101-01_x86_64.opk //SL6: http://packages.acc.gsi.de/opkg/el6/x86_64/linux-scu-source_2.6.33.9-01_x86_64.opk
opkg-util unpack linux-scu-source_3.10.101-01_x86_64.opk //SL6: linux-scu-source_2.6.33.9-01_x86_64.opk
cd linux-scu-source_3.10.101-01 //SL6: linux-scu-source-2.6.33.9-01
make -j32
Build and Install: Etherbone, Drivers and Tools
cd [FOLDER OF MAIN GIT CHECKOUT]
export STAGING=~/staging
export PREFIX=""
export PKG_CONFIG_PATH=$STAGING/lib/pkgconfig
export KERNELDIR=~/myKernel/linux-scu-source-3.10.101-01 //adjust to path where you have installed kernel headers/sources
make etherbone
make tools
make driver
make install
Build and Install: Saftlib
cd [FOLDER OF ETHERBONE_API WITHIN GIT CHECKOUT]
git clean -xfd .
./autogen.sh
./configure --prefix=$STAGING
make
make install
cd [FOLDER OF SAFTLIB WITHIN GIT CHECKOUT]
git clean -xfd .
./autogen.sh
./configure --prefix=$STAGING
make
make install
Example: Manual deployment of Etherbone, tools and driver on a SCU (RH6)
[terminate all running programs using the drivers and etherbone]
rm -f /usr/lib/libetherbone*
rm -f /usr/bin/eb-*
rmmod pcie_wb
rmmod vme_wb
rmmod wishbone
[scp your new build to the SCU]
insmod /lib/modules/*/extra/wishbone.ko
insmod /lib/modules/*/extra/pcie_wb.ko
insmod /lib/modules/*/extra/vme_wb.ko (info: not needed for SCU)
Example: Manual deployment of saftlib on a SCU (RH6)
- scp pre-built dbus environment for RH6 and saftlib.tar.xz to SCU
- logon to SCU
- extract .tar.xz files using
tar -Jxf
- make sure
/etc/dbus-1/system.d/saftlib.conf
has been copied too
- then, set up dbus accounts, start dbus and saftlib daemon
echo 'dbus:*:100:100:DBus:/:' >> /etc/passwd
echo 'dbus:*:100:' >> /etc/group
/bin/dbus-daemon --system (adjust path, if using a different install directory)
/usr/sbin/saftd NAME:dev/wbm0 >/tmp/saftd.log 2>&1 (adjust path, if using a different install directory)
--
DietrichBeck - 06 Nov 2018