README 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. ===============================================================================
  2. Video Stabilization Standalone Encoder Testing for Versatile
  3. ===============================================================================
  4. NOTE:
  5. This test setup is for versatile and does not apply directly to integrator or
  6. Linux workstation testing.
  7. the location of the toolchain and ip addresses are examples here
  8. and can of cource change.
  9. ===============================================================================
  10. ===============================================================================
  11. Setting up the environment
  12. ===============================================================================
  13. 1. Log into the tool-chain workstation. Current toolchain requires GLIBC_2.3
  14. >ssh hantrodom16
  15. 2. Source the tool-chain settings script
  16. > source /afs/hantro.com/i386_linux24/usr/arm/arm-2005q3-2-arm-none-linux-gnueabi-i686-pc-linux-gnu/settings.csh
  17. 3. Check out current tag from cvs
  18. > cvs co -r <current_tag> 8290_encoder/software
  19. 4. Check "Master" Makefile
  20. > cd 8290_encoder/software/linux_reference
  21. > nedit Makefile
  22. - set traces if needed
  23. - set wanted format (INCLUDE_VIDSTAB = y, other n or all y)
  24. - polling based or not
  25. - uncomment -DASIC_WAVE_TRACE_TRIGGER if you want support for Logic Analyzer tracing
  26. 5 Compile kernel modules
  27. 5.1 Compile encoder kernel modlue. Set the path for the kernel sources correctly.
  28. > cd 8290_encoder/software/linux_reference/kernel_module
  29. >make
  30. 5.2 Compile linear memory allocater kernel module. Set the path for the kernel sources correctly.
  31. > cd 8290_encoder/software/linux_reference/memalloc
  32. >make
  33. There are scripts for loading these modules! "driver_load.sh" and "memalloc_load.sh"
  34. 6. Compile testing program
  35. > cd 8290_encoder/software/linux_reference/test/camstab
  36. > make clean libclean versatile
  37. 7. Copy the encoder and scripts to a place where the versatile board can
  38. mount. At the moment this is done by copying to directory /export/work with
  39. the machine hlabc4 which has AFS access.
  40. > ssh hlabc4
  41. > cp 8290_encoder/software/linux_reference/test/camstab/videostabtest /export/work/your_work_dir
  42. > cp 8290_encoder/software/linux_reference/test/mpeg4/test_vs.sh /export/work/your_work_dir
  43. > cp 8290_encoder/software/linux_reference/kernel_module/hx280enc.ko /export/work/your_work_dir
  44. > cp 8290_encoder/software/linux_reference/kernel_module/driver_load.sh /export/work/your_work_dir
  45. > cp 8290_encoder/software/linux_reference/memalloc/memalloc.ko /export/work/your_work_dir
  46. > cp 8290_encoder/software/linux_reference/kernel_module/memalloc_load.sh /export/work/your_work_dir
  47. You might also have to change test data path in the scripts, depending where
  48. your test data is.
  49. 8. log on to the versatile board, as root
  50. > telnet vp1
  51. > cd /export/work/your_work_dir
  52. Load kernel modules!
  53. > ./driver_load.sh
  54. > ./memalloc_load.sh alloc_method=2
  55. ===============================================================================
  56. Running MPEG4 encoder test scripts
  57. ===============================================================================
  58. Standalone VS is using the H264 pipeline stabilization cases, so you need that parameter file.
  59. Run test case number 1750
  60. > ./test_vs.sh 1750
  61. Run all test cases
  62. > ./test_vs.sh all
  63. Compare results for test case 1750 (uses 'cmp' and can be very heavy)
  64. Good idea to run on a workstation.
  65. > ./checkcase_cs.sh 1750
  66. Compare results for all test cases
  67. > ./checkall_vs.sh
  68. if you want CSV file report (dont forget to update TAGs in the script)
  69. > ./checkall_vs.sh -csv
  70. Run testcase 1750 and trigger Logic Analyzer at frame 6
  71. Encoder library had to be compiled with -DASIC_WAVE_TRACE_TRIGGER
  72. > ./test_vs.sh 1750 1750 6
  73. ===============================================================================
  74. Possible problems
  75. ===============================================================================
  76. Possible reasons for errors:
  77. Did make use the corrent system settings ("make versatile")?
  78. Was the memory base set corretly? and the wanted EWL file used?
  79. Correct tool-chain?
  80. Are the paths defined correctly in the scripts?
  81. Kernel modules loaded? check dmesg