mirror of
https://github.com/chipsec/chipsec
synced 2026-06-08 13:31:00 +00:00
ffc74a766d
* 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
19 lines
488 B
Bash
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
|