You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
2
+
SPDX-License-Identifier: BSD-3-Clause-Clear
3
+
4
+
# Qualcomm Hardware Random Number Generator (QRNG) Script
5
+
# Overview
6
+
7
+
The qcom_hwrng test script validates Qualcomm Hardware Random Number Generator (HWRNG) basic functionality. This test ensures that the HWRNG kernel driver is correctly integrated and functional.
8
+
9
+
## Features
10
+
11
+
- Driver Validation: Confirms the presence and correct configuration of the qcom_hwrng kernel driver.
12
+
- Dependency Check: Verifies the availability of required tools like rngtest before execution.
13
+
- Automated Result Logging: Outputs test results to a .res file for automated result collection.
14
+
- Remote Execution Ready: Supports remote deployment and execution via scp and ssh.
15
+
16
+
## Prerequisites
17
+
18
+
Ensure the following components are present in the target:
19
+
20
+
-`rngtest` (Binary Available in /usr/bin) - this test app can be compiled from https://github.com/cernekee/rng-tools/
21
+
22
+
## Directory Structure
23
+
```
24
+
Runner/
25
+
├── suites/
26
+
│ ├── Kernel/
27
+
│ │ │ ├── Baseport/
28
+
│ │ │ │ ├── qcom_hwrng/
29
+
│ │ │ │ │ ├── run.sh
30
+
```
31
+
## Usage
32
+
33
+
1. Copy repo to Target Device: Use scp to transfer the scripts from the host to the target device. The scripts should be copied to the /var directory on the target device.
34
+
35
+
2. Verify Transfer: Ensure that the repo have been successfully copied to the /var directory on the target device.
36
+
37
+
3. Run Scripts: Navigate to the /var directory on the target device and execute the scripts as needed.
38
+
39
+
---
40
+
Quick Example
41
+
```
42
+
git clone <this-repo>
43
+
cd <this-repo>
44
+
scp -r common Runner user@target_device_ip:/<user-defined-location>
45
+
ssh user@target_device_ip
46
+
cd /<user-defined-location>/Runner && ./run-test.sh qcom_hwrng
47
+
48
+
Sample output:
49
+
sh-5.2# ./run-test.sh qcom_hwrng
50
+
[Executing test case: qcom_hwrng] 2025-11-03 10:28:02 -
0 commit comments