Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gjinhui/pei-drv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

How to compile and insmod module:

  1. Get the source code.
# git clone https://github.com/gjinhui/pei-drv.git
  • Or downloading from the github, and then unzip.
  1. Start to compile. Go to the source directory first and then make.
# make
  1. insmod module.
# insmod pei_drv.ko
  • Check:
# lsmod |grep pei_drv
 pei_drv                16384  0

How to use:

  1. Get verdor ID and device ID. (PEI card vendor ID and device ID: 8086:0d4b)
# lspci -nn |grep b0:00.0
 b0:00.0 Class 1180: Device 8086:0d4b (rev 05)
  1. Allocate a new id to the pei driver and bind the device to it. For example:
# echo "8086 0d4b" > /sys/bus/pci/drivers/pei-drv/new_id

# ls -l /sys/bus/pci/devices/0000:0b:00.0/driver
 .../0000:0b:00.0/driver -> ../../../bus/pci/drivers/pei-drv
  1. Unbind the pei driver.
# echo -n 0000:0b:00.0 > /sys/bus/pci/drivers/pei-drv/unbind

About

pci driver for PEI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published