README 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. -- BUILD --
  2. You need a fully configured kernel source tree in order to build the
  3. driver. Please set the location of the kernel tree in the Makefile (KDIR).
  4. If you want some extra debug information in the kernel logs, you could
  5. define the HANTRO_DRIVER_DEBUG but please be aware that allot of things are traced
  6. with this option.
  7. Also you could set a particular device MAJOR in the 'vc8000_normal_driver.c' and 'vc8000_vcmd_driver.c'
  8. if you don't want dynamic allocation.
  9. Just run in this dir:
  10. %make
  11. If you want to install the modules please check first the install destination
  12. in the Makefile (MDIR, DEST) and run:
  13. %make install
  14. -- USAGE --
  15. Run script driver_load.sh to do all the things described below.
  16. > sh driver_load.sh vcmd=0
  17. First of all the module has to be inserted into the kernel with:
  18. (you need a Linux shell cmd line)
  19. %insmod vc8000.ko vcmd_supported=1
  20. Second of all a char device file has to be created:
  21. %mknod /dev/vc8000 c $MAJOR 0
  22. Replace MAJOR = 254 with the correct value (i.e. read /proc/devices to find out
  23. the exact value).
  24. Make sure that you have RW rights for the newly created dev file (use 'chmod').
  25. The 'driver_load' script is provided for preparing all the things necessary for
  26. the driver to be usable. The script is using 'cat' to retrieve the device's
  27. major from /proc/devices. Remember to set the driver parameters.