ldube opened a new pull request, #19726:
URL: https://github.com/apache/nuttx/pull/19726
## Summary
Add support for the hardware Random Number Generator (RNG) module found on
the Ingenic JZ4780 SoC.
Changes include:
- Update jz4780 chip.h with power management controllor base address
JZPMC_BASE and register offsets for the RNG registers.
- A new file jz4780_rng.c to provide character driver interfaces for
`/dev/random` and `/dev/urandom` utilizing the hardware RNG block.
## Testing
Used /dev/random test
nsh> rand
Reading 8 random numbers
Random values (0x80090670):
0000 ea 14 bc 34 72 69 02 87 c3 2a ae cd 59 d2 bd 1a ...4ri...*..Y...
0010 a0 4b a6 0e 89 03 8f 96 97 da 48 0d a3 9e 43 1b .K........H...C.
nsh> rand
Reading 8 random numbers
Random values (0x80090670):
0000 5c b9 83 0a 1e d8 be 33 5d b3 01 32 3d 0e 06 0b \......3]..2=...
0010 86 af 60 94 76 e4 f3 af b7 9e fd 88 08 73 af b7 ..`.v........s..
nsh> rand
Reading 8 random numbers
Random values (0x80090670):
0000 fa ea 11 a2 0a 4c be 1a 0c fb 48 4b e0 76 51 06 .....L....HK.vQ.
0010 ad 26 0b 70 41 6a 2a 42 43 59 80 78 76 0f 91 9e .&.pAj*BCY.xv...
nsh> rand
Reading 8 random numbers
Random values (0x80090670):
0000 81 b5 5f 06 0f 8c 0e a3 79 81 d6 b4 ee f8 3c 37 .._.....y.....<7
0010 55 08 09 2a 4b 43 2a 5f 4f 15 6c 19 3a 25 0d 15 U..*KC*_O.l.:%..
nsh> rand
Reading 8 random numbers
Random values (0x80090670):
0000 ed a5 f3 a9 9c 5b 2b c8 49 19 68 08 6d 02 da 5a .....[+.I.h.m..Z
0010 12 aa 2e 06 86 04 7b d5 fa 91 89 87 e0 c9 18 81 ......{.........
nsh>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]