Files
chipsec-chipsec/source/tool/drivers/linux/run.sh
T
abazhaniuk ffc74a766d setup.py supports driver in linux version of CHIPSEC (#80)
* fix path error in chipsec_util after install chipsec on the linux system

* Refactored setup.py for use setuptools. Small changes in chipsec_util/chipsec_main for it

* cleanup

* 1) Moved directory drivers from chipsec/source/drivers to chipsec/source/tool
It's necessary for packing driver source code into python package by setup.py
2) In setup.py for Linux version of CHIPSEC:
  1. Add driver to the package
  2. Add option full_build for build and install CHIPSEC with driver
2016-09-06 21:41:42 -07: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