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
- For Centos7
- for loading at boot
- cd /lib/modules/`uname -r`
- cd kernel/
- sudo mkdir pcds
- cd pcds/
- sudo cp /u1/sioan/slaclab/aes-stream-drivers/data_dev/driver/datadev.ko .
- sudo depmod -a
- for manually loading the module only works after instructions above
- sudo modprobe datadev
- confirm loaded
- lsmod | grep datadev
- for loading at boot
Overview
Content Tools