Misc Stuff for Linux
====================
This "misc" folder contains the source code and necessary build files for Linux
utility programs such as tests, demos, etc. All the non-Linux BSP source should
go into this directory.
1. Directory structure
======================
Currently the "misc" directory is organized as follows to cover three types of
programs: bootloader, test and demo.
misc
|- include
|- platform
|- bootloader
|- lib
|- module_test
|_ test
|_ demo
misc -> include
---------------
This directory's path is included in the build system so that generic
header files can be put under this directory and be included by the source
code.
misc -> platform
----------------
This directory contains the build output files. Once "make" finishes, a
platform specific directory will be created.
misc -> test
------------
The unit test code goes in directories below misc/test.
2. Build Steps
==============
To build all the tests and bootloaders, run make as shown:
make PLATFORM=MXC27530EVB LINUXPATH=/home/marsha/LINUX2.6/linux \
KBUILD_OUTPUT=/home/marsha/LINUX2.6/kbuild/mxc27530evb \
CROSS_COMPILE=/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le-
Note that you have to specify 4 things: PLATFORM, LINUXPATH, KBUILD_OUTPUT, and CROSS_COMPILE.
The build results will end up in the platform directory.
To build a single test add the test dir name to the above like:
make PLATFORM=MXC27530EVB LINUXPATH=/home/marsha/LINUX2.6/linux \
KBUILD_OUTPUT=/home/marsha/LINUX2.6/kbuild/mxc27530evb \
CROSS_COMPILE=/opt/montavista/mobilinux/devkit/arm/v6_vfp_le/bin/arm_v6_vfp_le- \
mxc_mu_test
3. Adding new programs
======================
To add new programs such as test and demo, the easiest way is to use other existing
code as an example. Be careful not to use absolute paths when including files from
the linux tree.
4. Adding autorun scripts
=========================
The autorun scripts are used to run the unit tests each night by the nightly build,
without human interaction. After the tests are run, a script parses the output
into some emails to let the team know how well testing went that night and which
tests are having difficulty. These scripts can also make it easier for people who
are not familiar with the unit tests to run them. Currently the simplest autorun
script is misc/test/wdog/autorun-wdog.sh, which is quoted below.
#!/bin/bash
source /unit_tests/test-utils.sh
#
# Exit status is 0 for PASS, nonzero for FAIL
#
STATUS=0
check_devnode "/dev/misc/watchdog"
print_status
exit $STATUS
All scripts should have this form and contain basically everything that this test
have except for the "check_devnode" line. Any tests deviating from this may break
the autorun or have output that can't properly be parsed by the nightly build scripts.
Tests must initialize STATUS=0 early on and can never set it to 0 again later in
the script as that might clear a failure code.
There are three files that you should be aware of, autorun.sh which runs the
autorun scripts, autorun-suite.txt which lists the which autoruns to run (and
assigns a test id to each), and test-utils.sh which has functions each autorun
script uses. All these are checked in to LINUX2.6/misc/.
Any tests that require a specialized kernel build of course can not be run during
the nightly run so they are not listed in autorun-suite.txt. Still, these can
be useful for humans running tests as they can run the test by hand without
having to be familiar with the unit test.
Also check the misc/test/wdog/Makefile for how the test gets copied. The script
just has to be added to the the OBJ list since there is a rule for .sh files in
misc/tests/make.rules.
If there are platforms that a test should not be built for or run on, add that
platform to the Makefile's exclude list.
If a autorun needs to run tests differently conditioned on what platform we are
on, there is a function in test-utils.sh for determining platform.
没有合适的资源?快使用搜索试试~ 我知道了~
imx6q的VPU的示例代码
需积分: 1 3 下载量 146 浏览量
2022-08-11
11:09:34
上传
评论
收藏 7.17MB GZ 举报
温馨提示
共435个文件
txt:136个
c:105个
makefile:46个
imx6q的VPU的示例代码,版本5.4.35,交叉编译器为arm-poky-linux-gnueabi-g++
资源详情
资源评论
资源推荐
收起资源包目录
imx6q的VPU的示例代码 (435个子文件)
COPYING-LGPL-2.1 26KB
libmpeg4enc_vga.a 77KB
libmpeg4enc_cif.a 65KB
bimagecsf_template 884B
mx7d_modules.c 8.72MB
vgray_rgb_800x600.c 4.64MB
python_tutorial_0003_rgb_1024x758.c 4.44MB
python_tutorial_0001_rgb_1024x758.c 4.44MB
python_tutorial_0004_rgb_1024x758.c 4.44MB
python_tutorial_0002_rgb_1024x758.c 4.44MB
mx6dl_modules.c 3.53MB
mx6sx_modules.c 3.5MB
mx6q_modules.c 3.44MB
colorbar_rgb_800x600.c 2.75MB
ginger_rgb_800x600.c 2.75MB
mx6ull_modules.c 2.72MB
mx6ul_modules.c 2.49MB
mx6sl_modules.c 2.15MB
fsl_rgb_480x360.c 1013KB
mxc_epdc_v2_fb_test.c 72KB
dec.c 69KB
mxc_epdc_fb_test.c 68KB
mxc_spdc_fb_test.c 59KB
mxc_l2switch_test.c 44KB
enc.c 39KB
transcode.c 35KB
check_audio_config.c 32KB
display.c 28KB
scc_test_driver.c 28KB
dryice_test.c 27KB
mxc_v4l2_overlay.c 26KB
main.c 23KB
mxc_dcic_test.c 22KB
scc2_test_driver.c 21KB
etm.c 20KB
mxc_v4l2_output.c 20KB
pxp_v4l2_test.c 19KB
utils.c 18KB
mxc_v4l2_tvin.c 18KB
mx6s_v4l2_capture.c 17KB
utils.c 17KB
check_ioctls.c 16KB
mmdc.c 16KB
mxc_asrc_test.c 15KB
acctest.c 15KB
evtest.c 15KB
memtool.c 14KB
rng_test_driver.c 14KB
loopback.c 14KB
mxc_v4l2_capture.c 14KB
mxc_ipudev_test.c 13KB
pxp_test.c 13KB
mxc_v4l2_still.c 12KB
mxc_fb_test.c 11KB
memalloc.c 11KB
mxc_uart_stress_test.c 10KB
tool_loopback.c 10KB
cam2mpeg4_vga.c 9KB
mxc_sdma_memcopy_test.c 9KB
cam2mpeg4_cif.c 9KB
rtc_timesetnotification_test.c 8KB
mxc_mlb_test.c 8KB
mxc_spi_test1.c 8KB
fb.c 7KB
rtcwakeup.c 7KB
mxc_uart_xmit_test.c 7KB
mxc_isl29023.c 7KB
tool_recorder.c 6KB
mxc_sdma_mem_test.c 6KB
check_recording.c 6KB
mxc_tuner_test.c 6KB
rtctest.c 6KB
capture.c 5KB
spdc_test_driver.c 5KB
check_2play_capability.c 5KB
uart_test.c 5KB
check_device_selection.c 5KB
tool_listplayer.c 5KB
check_outsrc.c 4KB
tool_player.c 4KB
mxc_sim_test.c 4KB
mxc_i2c_slave_test.c 4KB
check_balance.c 4KB
check_audio.c 4KB
check_2w1r.c 4KB
km_test.c 4KB
check_volume.c 4KB
mxc_tvout_test.c 4KB
tool_playd.c 4KB
mxc_mcc_tty_test.c 4KB
mxc_iim_test.c 3KB
utils.c 2KB
check_synchronization.c 2KB
mxc_uart_test.c 2KB
check_minor_open.c 2KB
common.c 2KB
mxc_fb_vsync_test.c 2KB
check_open_limitation.c 2KB
mxc_cec_test.c 2KB
check_volume2.c 2KB
共 435 条
- 1
- 2
- 3
- 4
- 5
niewei120
- 粉丝: 6
- 资源: 22
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0