Files
chipsec-chipsec/source/drivers/linux/run.sh
T
Thiebaud Weksteen 95bab91f8c Use misc device for Linux driver
Use the misc device for the Linux driver to avoid allocating a major
number. Remove the need for raw_pci_read and raw_pci_write (as not
used).
2016-05-24 09:13:31 +10:00

19 lines
488 B
Bash

#!/bin/bash
a1="0x"`cat /proc/kallsyms | grep ' page_is_ram' | head -1 |cut -d ' ' -f 1`
if [ "$a1" == "0x" ]; then
echo "Cannot find symbol 'page_is_ram'";
exit;
fi
cat WARNING.txt
echo -n "Module: insmod chipsec.ko a1=$a1 : ";
insmod chipsec.ko a1="$a1" || exit;
chown root:root /dev/chipsec
chmod 600 /dev/chipsec
##############echo -n "Module: insmod chipsec.ko a1=$a1 : ";
##############insmod chipsec.ko a1="$a1" || exit;
echo "OK";
echo -n "Device: "; sleep 1;ls /dev/chipsec