User Tools

Site Tools


lbaops:vsib_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lbaops:vsib_installation [2017/06/05 19:01]
chrisphillips [Patch kernel]
lbaops:vsib_installation [2021/01/04 14:47] (current)
chrisphillips [DAS GUI]
Line 1: Line 1:
 +====== Setup LBADR Recorder ======
  
 +===== Install basic Debian system =====
 +
 +  * SSh/Standard System only
 +  * Add ''non-free'' and ''contrib'' to ''/etc/apt/sources.list'' and update
 +  * Install the following packages
 + <code>
 + apt-get install apt-file libfftw3-dev tkdiff g++ gcc gfortran build-essential subversion pgplot5 
 +   tcptraceroute ethtool wireshark autoconf libtool gnu-standards emacs qiv tcpdump x11-apps zlib1g-dev  pkg-config ntpdate ntp libgtk2-perl screen lshw firmware-qlogic libpng12-dev
 +   apt-file update
 +</code>
 +**ETCH**
 +<code>
 +apt-get install pgperl libpng3-dev
 +</code>
 +**SQUEEZE & WHEEZEY**
 +<code>apt-get install libpng12-dev libpgplot-perl</code>
 +
 +Can duplicate packages from an existing machine:
 +
 +On original
 +<code>
 +apt-clone clone lbadr
 +</code>
 +On new machine
 +<code>
 +apt-clone restore lbadr.apt-clone.tar.gz
 +</code>
 +
 +
 +  * Copy bigphysarea kernel deb package (see below)
 +<code>dpkg -i linux-image-XXX-bigphys_1.2_i386.deb  dpkg -i linux-headers-XXX-bigphys_1.2_i386.deb</code>
 +
 +**SQUEEZE & WHEEZEY**
 +    * Edit ''/etc/default/grub'' change ''GRUB_DEFAULT'' as appropriate and ''GRUB_CMDLINE_LINUX_DEFAULT="bigphysarea=64000"''
 +
 +<code>update-grub</code>
 +
 +
 +=== To create a kernel build machine ===
 +<code>
 +apt-get install kernel-package linux-source
 +echo "CONCURRENCY_LEVEL= 2" >> /etc/kernel-pkg.conf
 +</code>
 +**Wheezy**
 +<code>
 +apt-get install libqt4-dev 
 +</code>
 +
 +=== Setup NTP ===
 +
 +Add ntp servers to ''/etc/ntp.conf''
 +
 +**Etch**
 +
 +Also add ntp server to ''/etc/default/ntp''
 +
 +===== Build patched bigphys kernel =====
 +  * As root on kernel build machine (see above)
 +  * Download patch from http://e-mode.phas.ubc.ca/mce/pc_install/bigphys/
 +<code>
 + cd /usr/src/
 + tar xvjf /usr/src/linux-source-X.X.tar.bz2
 +  cd linux-source-X.X
 +  make xconfig     (see list below)
 +  patch -p1 < bigphysarea-3.2.0.patch
 +  make oldconfig
 +     Support for big physical area reservation (BIGPHYS_AREA) [N/y/?] (NEW) y
 +  make-kpkg clean
 +  fakeroot make-kpkg --initrd --revision=1.0 --append-to-version=-bigphys kernel_image kernel_headers
 +</code>
 +
 +Removed the following modules/categories
 +
 +<code>
 +PCCard
 +DCCP
 +Amateur Radio
 +CAN bus
 +IrDA
 +Bluetooth
 +Wireless LAN
 +ISDN
 +</code>
 +===== Install "eVLBI" code =====
 +<code>
 + svn co https://svn.atnf.csiro.au/evlbi/trunk evlbi
 + cd evlbi
 + make
 +</code>
 +
 +
 +
 +===== Install vsib drivers and setup  =====
 +  * as root:
 +<code>
 +    cd ~vlbi/evlbi/vsib
 +    cp init.vsib /etc/init.d/vsib
 +    update-rc.d vsib defaults
 +    cp vsib.conf /etc/modprobe.d/
 +    make install
 +</code>
 +**ETCH**
 +  *  Add the following to ''/etc/udev/permissions.rules''
 +**SQUEEZE & WHEEZY**
 +  * Add the following to ''/lib/udev/rules.d/91-permissions.rules''
 +<code>
 +        # vsib board
 +        KERNEL=="vsib", MODE="0664", GROUP="vlbi"
 +</code>
 +  
 +  
 +  ===== More =====
 +  
 +  * via CPAN Config::Trivial.pm, Astro::Time
 +
 +===== New VSI Machines =====
 +
 +==== e1000e Network driver ====
 +
 +Need support for Intel I219LM LAN controller
 +
 +  * Download e1000e-3.3.5.3.tar.gz from https://downloadcenter.intel.com/download/15817 (latest 3.4.2.1)
 +
 +<code>
 +tar zxvf e1000e-3.3.5.3.tar.gz
 +cd e1000e-3.3.5.3/src
 +make install
 +modprobe e1000e
 +</code>
 +
 +==== Patch kernel ====
 +
 +https://launchpadlibrarian.net/85312585/fix_readq.patch
 +
 +<code>
 +---
 + drivers/acpi/atomicio.c |   11 +++++++++--
 + 1 file changed, 9 insertions(+), 2 deletions(-)
 +
 +--- a/drivers/acpi/atomicio.c
 ++++ b/drivers/acpi/atomicio.c
 +@@ -306,11 +306,18 @@ static int acpi_atomic_read_mem(u64 padd
 +  case 32:
 +  *val = readl(addr);
 +  break;
 +-#ifdef readq
 +  case 64:
 ++#ifdef readq
 +  *val = readq(addr);
 +- break;
 ++#else
 ++ {
 ++ u64 h;
 ++ *val = readl(addr);
 ++ h = readl(addr+4);
 ++ *val = *val + (h << 32);
 ++ }
 + #endif
 ++ break;
 +  default:
 +  return -EINVAL;
 +  }
 +</code>
 +
 +
 +===== DAS GUI =====
 +
 +  * Install ''libmotif-dev libxt-dev ''
 +  * ''cd evlbi/das/das_gui; make''
 +  * ''mkdir -p ~/das/das1; mkdir ~/das/das2''
 +  * Copy from backup ''~/das/profiles''
 +  * Add "vlbi" to "dialout" in ''/etc/group''
 +
 +===== Create partitions for RAID =====
 +
 +32 bit kernel can only handle 16 TB partitions....
 +
 +The following command to create 2 partitions:
 +
 +   parted -a optimal -s -- /dev/sdb unit gb mkpart primary 50 2025 mkpart primary 2025 -0 set 3 raid on set 4 raid on
 +   mdadm --create /dev/md3 --level=5 --raid-devices=8 /dev/sd[abcdefgh]3
 +   mdadm --create /dev/md4 --level=5 --raid-devices=8 /dev/sd[abcdefgh]4
lbaops/vsib_installation.1496653262.txt.gz · Last modified: 2017/06/05 19:01 by chrisphillips