Date: Mon, 6 Jun 2016 13:20:07 +0300 From: "Jukka A. Ukkonen" <jau789@gmail.com> To: freebsd-arm@freebsd.org Subject: Re: Random number generator on rpi Message-ID: <2016dde0-b6b6-d71a-17d7-b2d8d07f5a63@gmail.com> In-Reply-To: <CAHNYxxP8fqEdXsL2Jwu-=P4g9_w5P2pnJ-yOvtU1ssEP4ZpqCQ@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
>
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2016dde0-b6b6-d71a-17d7-b2d8d07f5a63>
