README 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ==============================================================================
  2. USAGE
  3. ==============================================================================
  4. ./memalloc_load.sh
  5. ===============================================================================
  6. What is memalloc?
  7. ===============================================================================
  8. memalloc is a test environment specific memory allocation kernel driver.
  9. It uses memory left outside linux memory management, devides it into chunks and
  10. gives base addresses to processes for these chunks(= a block of memory).
  11. It has been written for test memory purposes for a very specific test
  12. environment and nothing more.
  13. ===============================================================================
  14. Loading the memalloc kernel driver
  15. ===============================================================================
  16. NOTE: Check the kerner source path in the makefile! there are some predefined
  17. paths for 2.6.9 or 2.6.16 kernels.
  18. 1. Use the tool-chain workstation, similarly like in "Setting up the
  19. environment".
  20. 2. compile the kernel driver in 8290_encoder/software/linux_reference/memalloc
  21. > make
  22. 3. Copy the loading script memalloc_load.sh and the kernel object memalloc.ko
  23. to /export/work/yourwork_dir
  24. 4. For 8290 testing load kernel driver with:
  25. >./memalloc_load.sh alloc_method=2
  26. 5. Debugging:
  27. the device node should show up in the the directory /tmp/dev
  28. The device should show up in the list /proc/devices
  29. > ls /tmp/dev
  30. > cat /proc/devices
  31. Kernel messages can be viewed with
  32. > dmesg
  33. More kernel debug prints can be enabled in the Makefile