customized boot settings have been applied to lcls-pc83236 to streamline development

  • sysconfig is rhel6 specific. not applicable for Centos7 (or rhel7 or things that use systemd for that matter) 
  • bios option for boot on AC power delivery is enabled. This allows for remote power cycling via the boot bar. (press F12 or backspace during boot to modify)
  • the file /etc/sysconfig/modules/datadev_0.modules inserts datadev.ko module into the kernel upon machine boot
    • #!/bin/sh
      if [ ! -c /dev/datadev_0 ] ; then
              exec /sbin/insmod /u1/sioan/slaclab/aes-stream-drivers/data_dev/driver/datadev.ko >/dev/null 2>&1
      fi
  • udev works for both rhel6 and Centos7
  • the file /etc/udev/rules.d/96-slacpgp4.rules grants read write permissions to everyone when the datadev kernel module is loaded
    • # version 0002
      KERNEL=="datadev_0", SUBSYSTEM=="datadev_0", MODE="0666"
  • release Red Hat Enterprise Linux Server release 6.10 (Santiago)
  • uname -a Linux lcls-pc83236 2.6.32-696.3.1.el6.x86_64 #1 SMP Thu Apr 20 11:30:02 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux

 

  1. For Centos7
    1. for loading at boot
      1. cd /lib/modules/`uname -r`
      2. cd kernel/
      3. sudo mkdir pcds
      4. cd pcds/
      5. sudo cp /u1/sioan/slaclab/aes-stream-drivers/data_dev/driver/datadev.ko .
      6. sudo depmod -a
    2. for manually loading the module only works after instructions above
      1. sudo modprobe datadev
    3. confirm loaded
      1. lsmod | grep datadev
  • No labels