insmod_load_fw_man.sh 652 B

1234567891011121314151617181920
  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. #increase the timeout time 2 min
  12. echo 120 > /sys/module/xrp/parameters/firmware_command_timeout
  13. echo 1 > /sys/module/xrp/parameters/load_mode
  14. memtool mw 0xffe7f3c408 0x11000000
  15. memtool mw 0xffe7f3c40c 0x111
  16. memtool mw 0xffe7f3c410 0x11111
  17. modprobe xrp_hw_simple