FSL-UT-RNG-001
~~~~~~~~~~~~~~~

[cols=">s,6a",frame="topbot",options="header"]
|====================================================================
|Name | Description

| Summary |
RNG test on i.mx50 and i.mx6sl.

| Automated |
No

| Kernel Config Option |
CONFIG_HW_RANDOM_FSL_RNGC=y
CONFIG_IMX_HAVE_PLATFORM_RANDOM_RNGC=y
CONFIG_ARCH_HAS_RNGC=y

| Software Dependency |
N/A

| Non-default Hardware Configuration |
N/A

| Test Procedure |
 $ dd if=/dev/hwrng bs=1 count=100 \| hexdump

 The above command should print out 100 bytes of random data on the console.
 Do this twice to ensure that the same data is not generated the 2nd time.

| Expected Result |
 $ dd if=/dev/hwrng bs=1 count=100 \| hexdump
0000000 04a1 b192 8fa3 2273 0a93 17ab f581 68ca
0000010 98a1 325d 15b2 3810 f305 70ab 12e3 ee63
0000020 c93a b127 78fa 0bb6 b8c8 ecaa 78d8 38e8
0000030 9bf3 4fae db6c 589e d988 2f1a eeda 0db1
0000040 4c16 55ca b361 fe8b efc9 8e15 8f8b 68ca
0000050 9cbe 6e52 f685 2a86 2942 f771 ac45 b728
0000060 4878 a53c
0000064
100+0 records in
100+0 records out
100 bytes (100B) copied, 0.003082 seconds, 31.7KB/s
 $ dd if=/dev/hwrng bs=1 count=100 \| hexdump
0000000 7a50 9544 1cfd ac8b d0e4 a415 a229 d578
0000010 a73c 1709 fda2 c18c b6d6 b134 ef15 e553
0000020 ed50 0065 1a2e 5726 2c57 109c 1b08 c2ff
0000030 d2cc e9a4 70eb 16b4 2344 7ee6 6236 c910
0000040 e5e7 3f5c 4038 7f20 cc75 7e32 5597 b20a
0000050 186f b1e6 7ddb 3cb5 4c7e 2f92 68c6 592d
0000060 2add 9568
0000064
100+0 records in
100+0 records out
100 bytes (100B) copied, 0.009985 seconds, 9.8KB/s

Note:
 The above command should print out 100 bytes of random data on the console.
 Do this twice to ensure that the same data is not generated the 2nd time.

|====================================================================

<<<
