insmod.sh 423 B

123456789101112
  1. #!/bin/bash
  2. # mkdir /tmp/debugfs
  3. # mount -t debugfs none /tmp/debugfs
  4. # echo -n 'file xvp_main.c +p' > /tmp/debugfs/dynamic_debug/control
  5. # echo -n 'file xrp_hw_simple.c +p' > /tmp/debugfs/dynamic_debug/control
  6. # echo -n 'file xrp_firmware.c +p' > /tmp/debugfs/dynamic_debug/control
  7. # echo 8 > /proc/sys/kernel/printk
  8. modprobe xrp_hw_comm
  9. modprobe xrp
  10. # echo 1 > /sys/module/xrp/parameters/loopback
  11. modprobe xrp_hw_simple