Files
rk35xx-android14/external/ltp/testcases/kernel/firmware/fw_load_kernel
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00
..

The aim of the test is to check device firmware loading. Since kernel 3.7
firmware loading changed to direct loading (by-pass udev). The test consists
of the two parts:
 - userspace part
 - kernelspace part

This is a kernel module, which is a part of the device firmware loading test.
It allows to call request_firmware kernel function with specified parameters.
Template firmware file name and expected firmware file's data size are passed
as the insmod command line parameters. Then, the number of firmware test files
should be written to sysfs file 'fwnum' (the maximum number is 32). This write
will initiate request firmware procedure. In the end, results can be read from
'result' device sysfs file. Also, some information regarding module loading,
can be obtained by looking at kernel log file.

It is automatically used by userspace part of the test.