7110ref-SNAP2005.10.071 을 기준으로 Testapps 에 대한 설명을 하고 있다.
이 문서를 보기전에 7710 컴파일하기 를 읽어보기 바란다. 먼저 여기서는 아무것도 수정하지 않은 기본적인 세팅을 가지고 테스트를 했다는 조건을 건다. 7110ref-SNAP2005.10.071 는 총 8 개의 testapps 를 제공한다. 각각의 testapps 는 서로다른 디바이스를 테스트하기 때문에 목적에 맞게 실행하는 것이 중요하다.
각각의 testapps 는 어떤 환경 설정으로 컴파일하느냐에 따라서 달라진다. 바로 setup.bat 파일에 의해서 좌우된다.
다음은 아무것도 수정하지 않은 본래의 setup.bat 이다.
@echo off rem Perform the following steps when modifying this file to setup the build rem environment: rem 1. Set the following variable to point to the top level of the 7710 tree. rem NOTE: Use forward slashes and do not include a trailing slash. set STi7710ROOT=C:/stm/7710ref rem 2. Set the following variable to point to the location of your own rem targets.cfg file. rem NOTE: Use forward slashes and do not include a trailing slash. rem NOTE: This is the location of the targets.cfg shipped with the release rem which has no targets defined. If you provide your own, remember rem to delete the targets.cfg from this location. set DVD_TARGET_PATH=%STi7710ROOT%/config/platform rem 3. Add the location of the 7710 bin directory to the front of your rem path. rem NOTE: Use backward slashes and do not include a trailing slash. set PATH=%STi7710ROOT%/bin;%PATH% echo Using 7710 root: %STi7710ROOT% set DVD_MAKE=%STi7710ROOT%/make set DVD_ROOT=%STi7710ROOT%/src set DVD_EXPORTS=%STi7710ROOT%/lib rem See the release notes for descripton of these build options set DVD_TRANSPORT=stpti4 set DVD_PLATFORM=mb391 set DVD_SERVICE=DVB set DVD_FRONTEND=7710 set DVD_BACKEND=7710 set DVD_DEPENDS=yes rem tuner driver settings for 299, 360, 297/297J tuners set DVD_STTUNER_USE_SAT=YES set DVD_STTUNER_USE_CAB=YES set DVD_STTUNER_BUILD_299=YES set DVD_STTUNER_BUILD_DUAL299STEM=YES rem set DVD_STTUNER_BUILD_360=YES rem set DVD_STTUNER_USE_TER=YES set DVD_STTUNER_BUILD_370VSB=YES set DVD_STTUNER_DRV_CAB_EXTTUNERS=YES set DVD_STTUNER_DRV_CAB_STV0297=YES set DVD_STTUNER_DRV_CAB_STV0297J=YES set DVD_STTUNER_BLOCK_SYNC_MODE_SELECT=YES rem for stvin set DVD_STVIN=MASTER rem enable audio workaround for cut1.x & cut2.x rem set ST_7710_CUT1_WORKAROUND=TRUE rem build code for cut1.x & cut2x rem set STI7710_CUT2x=TRUE rem set the following for 299/6K NIM tuner set TESTAPP_TUNER_TYPE=STTUNER_TUNER_STB6000 rem video memory injection settings rem set TESTAPP_VID_INJECTION=MEMORY rem set TESTAPP_VID_FILENAME=susie.m1v rem enable dual display of SD & HD simultaneously set TESTAPP_DUAL_DISPLAY=1 rem chose output interface rem TESTAPP_HD_INTERFACE=HD_INTERFACE_YUV rem TESTAPP_HD_INTERFACE=HD_INTERFACE_RGB rem TESTAPP_HD_INTERFACE=HD_INTERFACE_HDMI rem set TESTAPP_TSIN_CONFIG=TSIN0_NORMAL (OR) TESTAPP_TSIN_CONFIG=TSIN1_NORMAL rem If this variable is not set, TSMERGER will operate in bypass mode. Affects all tests using tsmerger. rem set TESTAPP_TSIN_CONFIG=TSIN1_NORMAL rem set epld for stem mode to use db499, not set if db580 NIM will be used rem set TESTAPP_EPLD_DB499=1 rem set DEBUG to 1 as default to support boot from flash / will be investigated later. rem set DEBUG=1 rem set TESTAPP_SWITCH_HD_MODES=1 rem If this variable is set, HD format will be periodically switched between 1080I, 720P & 480P in testapp1 rem Otherwise, output will be set to TESTAPP_HD_FORMAT format rem set DVD_APPLIC=TESTTOOL rem set DVD_REF=%STi7710ROOT%/testapps/testapp1 goto Done echo This setup.bat file must be edited to reflect the installation location echo in order to work. Please read the instructions in the setup.bat file. echo This script is being run as: echo %0% :Done
위의 기본적인 환경 설정을 가지고 컴파일을 하게 되면, testapp 5,6,9 번을 제외한 나머지는 모두 정상적으로 컴파일이 된다. setup.bat 은 내가 테스트하는 환경에 맞게 수정해주어야 한다. 예를 들어 testapps1 의 경우는 기본 환경으로 컴파일해서 실행하면, 튜너를 통해 A/V 를 재생하기 때문에 제대로된 화면을 볼 수 없다. 이 때는 내부 스트림을 이용해서 볼 수 있도록 setup.bat 파일을 수정해야 한다.
이제 부터는 각각 testapps 들이 제대로 된 수행을 할 수 있도록 하기 위해 필요한 과정들을 알아볼 것이다.
TESTAPPS 1
내부스트림을 이용해야 하기 때문에 다음과 같이 setup.bat 파일을 수정해야 한다.
@echo off rem Perform the following steps when modifying this file to setup the build rem environment: rem 1. Set the following variable to point to the top level of the 7710 tree. rem NOTE: Use forward slashes and do not include a trailing slash. set STi7710ROOT=C:/stm/7710ref rem 2. Set the following variable to point to the location of your own rem targets.cfg file. rem NOTE: Use forward slashes and do not include a trailing slash. rem NOTE: This is the location of the targets.cfg shipped with the release rem which has no targets defined. If you provide your own, remember rem to delete the targets.cfg from this location. set DVD_TARGET_PATH=%STi7710ROOT%/config/platform rem 3. Add the location of the 7710 bin directory to the front of your rem path. rem NOTE: Use backward slashes and do not include a trailing slash. set PATH=%STi7710ROOT%/bin;%PATH% echo Using 7710 root: %STi7710ROOT% set DVD_MAKE=%STi7710ROOT%/make set DVD_ROOT=%STi7710ROOT%/src set DVD_EXPORTS=%STi7710ROOT%/lib rem See the release notes for descripton of these build options set DVD_TRANSPORT=stpti4 set DVD_PLATFORM=mb391 set DVD_SERVICE=DVB set DVD_FRONTEND=7710 set DVD_BACKEND=7710 set DVD_DEPENDS=yes rem tuner driver settings for 299, 360, 297/297J tuners set DVD_STTUNER_USE_SAT=YES set DVD_STTUNER_USE_CAB=YES set DVD_STTUNER_BUILD_299=YES set DVD_STTUNER_BUILD_DUAL299STEM=YES rem set DVD_STTUNER_BUILD_360=YES rem set DVD_STTUNER_USE_TER=YES set DVD_STTUNER_BUILD_370VSB=YES set DVD_STTUNER_DRV_CAB_EXTTUNERS=YES set DVD_STTUNER_DRV_CAB_STV0297=YES set DVD_STTUNER_DRV_CAB_STV0297J=YES set DVD_STTUNER_BLOCK_SYNC_MODE_SELECT=YES rem for stvin set DVD_STVIN=MASTER rem enable audio workaround for cut1.x & cut2.x rem set ST_7710_CUT1_WORKAROUND=TRUE rem build code for cut1.x & cut2x rem set STI7710_CUT2x=TRUE rem set the following for 299/6K NIM tuner set TESTAPP_TUNER_TYPE=STTUNER_TUNER_STB6000 rem video memory injection settings set TESTAPP_VID_INJECTION=MEMORY set TESTAPP_VID_FILENAME=susie.m1v rem enable dual display of SD & HD simultaneously set TESTAPP_DUAL_DISPLAY=1 rem chose output interface rem TESTAPP_HD_INTERFACE=HD_INTERFACE_YUV rem TESTAPP_HD_INTERFACE=HD_INTERFACE_RGB rem TESTAPP_HD_INTERFACE=HD_INTERFACE_HDMI rem set TESTAPP_TSIN_CONFIG=TSIN0_NORMAL (OR) TESTAPP_TSIN_CONFIG=TSIN1_NORMAL rem If this variable is not set, TSMERGER will operate in bypass mode. Affects all tests using tsmerger. rem set TESTAPP_TSIN_CONFIG=TSIN1_NORMAL rem set epld for stem mode to use db499, not set if db580 NIM will be used rem set TESTAPP_EPLD_DB499=1 rem set DEBUG to 1 as default to support boot from flash / will be investigated later. rem set DEBUG=1 rem set TESTAPP_SWITCH_HD_MODES=1 rem If this variable is set, HD format will be periodically switched between 1080I, 720P & 480P in testapp1 rem Otherwise, output will be set to TESTAPP_HD_FORMAT format set DVD_APPLIC=TESTTOOL set DVD_REF=%STi7710ROOT%/testapps/testapp1 goto Done echo This setup.bat file must be edited to reflect the installation location echo in order to work. Please read the instructions in the setup.bat file. echo This script is being run as: echo %0% :Done
TESTAPPS 2
testapps 2 의 경우는 화면 해상도를 테스트 하는 프로그램이다. 이 프로그램의 경우, testapp 1 과 달리 내부 스트림하는 기능이 빠져있기 때문에 기존의 setup.bat 을 그래도 사용한다. 또한 testtool 을 사용하지 않기 때문에 바로 실행된다. 아마도 튜너를 사용해서 Video 해상도를 테스트하는 것 같다.
TESTAPPS 3
testapps 3 은 그래픽 테스트이다. 여러가지 그래픽 데이터들이 필요하다. 우선 setup.bat 파일은 TESTAPPS 1 에서 사용한 것을 사용한다.
컴파일하면 에러가 날 것이다. 그래서 이번에는 makefile 을 수정해야 한다.
OBJS := api.tco app_disp.tco aud.tco \ ball.tco blit.tco blitpip.tco clk.tco \ debugloop.tco denc.tco evt.tco \ gamma1.tco generic.tco getertxt.tco gutil.tco gxobj.tco \ hdmi.tco i2c.tco layer.tco lists.tco main.tco pio.tco \ sections.tco service.tco st_pti.tco \ tbx.tco tool.tco transport.tco tsmerge.tco ttx.tco tuner.tco uart.tco \ vid.tco vidinj.tco vin.tco vmix.tco vout.tco vpmove.tco vtg.tco vbi.tco // vbi.tco 추가!!
그래픽 데이터 들은 7710ref_data.zip 에 들어있다. 압축을 풀어서 Graphics 폴더를 testapps3 아래에 복사한다.
setup.bat 파일은 다음과 같이 설정한다.
@echo off rem Perform the following steps when modifying this file to setup the build rem environment: rem 1. Set the following variable to point to the top level of the 7710 tree. rem NOTE: Use forward slashes and do not include a trailing slash. set STi7710ROOT=C:/stm/7710ref rem 2. Set the following variable to point to the location of your own rem targets.cfg file. rem NOTE: Use forward slashes and do not include a trailing slash. rem NOTE: This is the location of the targets.cfg shipped with the release rem which has no targets defined. If you provide your own, remember rem to delete the targets.cfg from this location. set DVD_TARGET_PATH=%STi7710ROOT%/config/platform rem 3. Add the location of the 7710 bin directory to the front of your rem path. rem NOTE: Use backward slashes and do not include a trailing slash. set PATH=%STi7710ROOT%/bin;%PATH% echo Using 7710 root: %STi7710ROOT% set DVD_MAKE=%STi7710ROOT%/make set DVD_ROOT=%STi7710ROOT%/src set DVD_EXPORTS=%STi7710ROOT%/lib rem See the release notes for descripton of these build options set DVD_TRANSPORT=stpti4 set DVD_PLATFORM=mb391 set DVD_SERVICE=DVB set DVD_FRONTEND=7710 set DVD_BACKEND=7710 set DVD_DEPENDS=yes rem tuner driver settings for 299, 360, 297/297J tuners set DVD_STTUNER_USE_SAT=YES set DVD_STTUNER_USE_CAB=YES set DVD_STTUNER_BUILD_299=YES set DVD_STTUNER_BUILD_DUAL299STEM=YES rem set DVD_STTUNER_BUILD_360=YES rem set DVD_STTUNER_USE_TER=YES set DVD_STTUNER_BUILD_370VSB=YES set DVD_STTUNER_DRV_CAB_EXTTUNERS=YES set DVD_STTUNER_DRV_CAB_STV0297=YES set DVD_STTUNER_DRV_CAB_STV0297J=YES set DVD_STTUNER_BLOCK_SYNC_MODE_SELECT=YES rem for stvin set DVD_STVIN=MASTER rem enable audio workaround for cut1.x & cut2.x rem set ST_7710_CUT1_WORKAROUND=TRUE rem build code for cut1.x & cut2x rem set STI7710_CUT2x=TRUE rem set the following for 299/6K NIM tuner set TESTAPP_TUNER_TYPE=STTUNER_TUNER_STB6000 rem video memory injection settings set TESTAPP_VID_INJECTION=MEMORY set TESTAPP_VID_FILENAME=susie.m1v rem enable dual display of SD & HD simultaneously set TESTAPP_DUAL_DISPLAY=1 rem chose output interface rem TESTAPP_HD_INTERFACE=HD_INTERFACE_YUV rem TESTAPP_HD_INTERFACE=HD_INTERFACE_RGB rem TESTAPP_HD_INTERFACE=HD_INTERFACE_HDMI rem set TESTAPP_TSIN_CONFIG=TSIN0_NORMAL (OR) TESTAPP_TSIN_CONFIG=TSIN1_NORMAL rem If this variable is not set, TSMERGER will operate in bypass mode. Affects all tests using tsmerger. rem set TESTAPP_TSIN_CONFIG=TSIN1_NORMAL rem set epld for stem mode to use db499, not set if db580 NIM will be used rem set TESTAPP_EPLD_DB499=1 rem set DEBUG to 1 as default to support boot from flash / will be investigated later. rem set DEBUG=1 rem set TESTAPP_SWITCH_HD_MODES=1 rem If this variable is set, HD format will be periodically switched between 1080I, 720P & 480P in testapp1 rem Otherwise, output will be set to TESTAPP_HD_FORMAT format set DVD_APPLIC=TESTTOOL set DVD_REF=%STi7710ROOT%/testapps/testapp3 // 수정한다!!! goto Done echo This setup.bat file must be edited to reflect the installation location echo in order to work. Please read the instructions in the setup.bat file. echo This script is being run as: echo %0% :Done
수행하면서, 그래픽 이미지를 로딩할 것이다.
TESTAPPS 4
Audio 를 테스트하는 프로그램이다. 이 테스트 프로그램 역시, 음악 데이터가 필요하다. 하지만, 내가 받은 7710ref 에 음악 데이터는 없었다.
@echo off rem Perform the following steps when modifying this file to setup the build rem environment: rem 1. Set the following variable to point to the top level of the 7710 tree. rem NOTE: Use forward slashes and do not include a trailing slash. set STi7710ROOT=C:/stm/7710ref rem 2. Set the following variable to point to the location of your own rem targets.cfg file. rem NOTE: Use forward slashes and do not include a trailing slash. rem NOTE: This is the location of the targets.cfg shipped with the release rem which has no targets defined. If you provide your own, remember rem to delete the targets.cfg from this location. set DVD_TARGET_PATH=%STi7710ROOT%/config/platform rem 3. Add the location of the 7710 bin directory to the front of your rem path. rem NOTE: Use backward slashes and do not include a trailing slash. set PATH=%STi7710ROOT%/bin;%PATH% echo Using 7710 root: %STi7710ROOT% set DVD_MAKE=%STi7710ROOT%/make set DVD_ROOT=%STi7710ROOT%/src set DVD_EXPORTS=%STi7710ROOT%/lib rem See the release notes for descripton of these build options set DVD_TRANSPORT=stpti4 set DVD_PLATFORM=mb391 set DVD_SERVICE=DVB set DVD_FRONTEND=7710 set DVD_BACKEND=7710 set DVD_DEPENDS=yes rem tuner driver settings for 299, 360, 297/297J tuners set DVD_STTUNER_USE_SAT=YES set DVD_STTUNER_USE_CAB=YES set DVD_STTUNER_BUILD_299=YES set DVD_STTUNER_BUILD_DUAL299STEM=YES rem set DVD_STTUNER_BUILD_360=YES rem set DVD_STTUNER_USE_TER=YES set DVD_STTUNER_BUILD_370VSB=YES set DVD_STTUNER_DRV_CAB_EXTTUNERS=YES set DVD_STTUNER_DRV_CAB_STV0297=YES set DVD_STTUNER_DRV_CAB_STV0297J=YES set DVD_STTUNER_BLOCK_SYNC_MODE_SELECT=YES rem for stvin set DVD_STVIN=MASTER rem enable audio workaround for cut1.x & cut2.x rem set ST_7710_CUT1_WORKAROUND=TRUE rem build code for cut1.x & cut2x rem set STI7710_CUT2x=TRUE rem set the following for 299/6K NIM tuner set TESTAPP_TUNER_TYPE=STTUNER_TUNER_STB6000 rem video memory injection settings set TESTAPP_VID_INJECTION=MEMORY set TESTAPP_VID_FILENAME=susie.m1v rem enable dual display of SD & HD simultaneously set TESTAPP_DUAL_DISPLAY=1 rem chose output interface rem TESTAPP_HD_INTERFACE=HD_INTERFACE_YUV rem TESTAPP_HD_INTERFACE=HD_INTERFACE_RGB rem TESTAPP_HD_INTERFACE=HD_INTERFACE_HDMI rem set TESTAPP_TSIN_CONFIG=TSIN0_NORMAL (OR) TESTAPP_TSIN_CONFIG=TSIN1_NORMAL rem If this variable is not set, TSMERGER will operate in bypass mode. Affects all tests using tsmerger. rem set TESTAPP_TSIN_CONFIG=TSIN1_NORMAL rem set epld for stem mode to use db499, not set if db580 NIM will be used rem set TESTAPP_EPLD_DB499=1 rem set DEBUG to 1 as default to support boot from flash / will be investigated later. rem set DEBUG=1 rem set TESTAPP_SWITCH_HD_MODES=1 rem If this variable is set, HD format will be periodically switched between 1080I, 720P & 480P in testapp1 rem Otherwise, output will be set to TESTAPP_HD_FORMAT format rem set DVD_APPLIC=TESTTOOL set DVD_REF=%STi7710ROOT%/testapps/testapp4 // 수정할 것!!! goto Done echo This setup.bat file must be edited to reflect the installation location echo in order to work. Please read the instructions in the setup.bat file. echo This script is being run as: echo %0% :Done
몇가지 파일 포맷을 테스트할 수 있지만, 현재 내가 가진 파일은 그 중에 .mp3 파일 뿐이었다. testapps4 디렉토리 아래에 Audio/mp3 라는 디렉토리를 만들고 그 아래에
California.mp3 라는 파일을 집어 넣었다. 또한 제대로된 테스트를 하기 위해서는 프로그램을 약간 수정해야 한다.
7710 문제점 정리를 참고하기 바란다. audio_init 하는 부분을 수정한다.
/* ; **************************************************************************** ;Name : Decode_Start ;Description : Check audio formats (5 cases) ; **************************************************************************** */ ST_ErrorCode_t Decode_Start() { ST_ErrorCode_t ErrCode; // 다른 파일 포맷을 로딩하는 루틴을 모두 지우고 mp3 만 남긴다!! ErrCode = Comp_Start(AUDSC_MP3); if (ErrCode != ST_NO_ERROR) return ErrCode; STTBX_Print(( "\n")); STTBX_Print(("You should hear MP3 (california)")); ErrCode = Comp_Stop(); return ( ErrCode ); }