Random number generator on rpi
Jukka A. Ukkonen
jau789 at gmail.com
Mon Jun 6 10:20:20 UTC 2016
At boot time on my RPI2...
bcmrng0: <BCM2708/2835 random number generator> mem 0x104000-0x10400f on
simplebus0
--jau
On 06/06/16 07:49, Jia-Shiun Li wrote:
> Hi all,
>
> I occasionally found that RPi has a mysterious undocumented random number
> generator and Linux has a driver for it. [1]
>
> Out of curiosity I wrote a simple driver according to the Linux one. It is
> simple enough for me without prior rng knowledge to make it work. Or so it
> appears. Patch is attached.
>
> (Note you need to have the updated dtb file by copying
> {OBJDIR}/{SRCDIR}/sys/{KERNCONF}/modules/{SRCDIR}/sys/modules/dtb/rpi/rpi{,2}.dtb
> to your /boot/msdos)
>
> Once booted the kernel will output the following line indicating it is
> working:
>
> bcmrng0: <BCM2708/2835 random number generator> mem 0x104000-0x10400f on
> simplebus0
>
> I only tested it on RPi2. Guess it will work fine on RPi too.
>
> I tried to compile rndtest(4) together into the kernel, and it did not
> output or complain about anything. According to the man page this should
> mean the rng works fine, right? Or is there any other tools to verify the
> quality of a rng?
>
>
> [1]:
> http://scruss.com/blog/2013/06/07/well-that-was-unexpected-the-raspberry-pis-hardware-random-number-generator/
>
> -Jia-Shiun.
>
>
>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>
More information about the freebsd-arm
mailing list