Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 26 Nov 2014, 01:44
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Raspberry Pi Random Pup
Moderators: Flash, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Q5sys


Joined: 11 Dec 2008
Posts: 1073

PostPosted: Sat 30 Nov 2013, 14:28    Post_subject:  Raspberry Pi Random Pup
Sub_title: A single purpose Puppy ARM Project -RPi RevB
 



This is intended to be a single purpose release. With the expense of Hardware RNG devices, not to mention the delay in getting them... I've been looking for another alternative. The Raspberry Pi's BCM2835 system-on-a-chip has a hardware random number generator. This release allows you to utilize the RPi's hardware RNG across a local network by any computer on the network.

XZ Compressed 4gb SDcard Image can be downloaded here:
SourceForge Download Source
Backup Mirror



Proper Use:
Expand the image and write to SD card using dd
Insert SD card into RPi and plug in ethernet and power.
Wait about 15 seconds for the unit to boot.

On Local Machine:
Code:
ssh -l root [Rpi-IP]
pass: woofwoof


On RPi through SSH:
Code:
modprobe bcm2708-rng
/etc/init.d/rng-tools start
cat /dev/hwrng | nc -l -p 1337


On Local Machine:
Code:
mkfifo -m 0666 /dev/hwrng
nc [RPi-IP] 1337 > /dev/hwrng


The device is now ready, however be aware that data transfer will ONLY begin once you start trying to get data from /dev/hwrng

It'll burn up about ~120KB/s on your network. Also ensure your RPi has proper cooling, as running cat /dev/hwrng will max the ARM CPU. Due to this, I would not recommend overclocking your RPi. However you want to try, you can uncomment the lines in config.txt that is in the 1st partition.

When you [Ctrl-C] your terminal on local machine it'll terminate the NetCat session on the RPi. When you discontinue pulling from /dev/hwrng on your local machine, this will also terminate the NetCat session on the RPi.

If you need to start and stop you're pulling data from /dev/hwrng on your local machine. You will need to restart netcat on both RPi and local machine. Your other option is to leave the initial cat /dev/hwrng open (minimize it). You can spawn new terminals and pull from /dev/hwrng starting and stoping as many times as you'd like. As long as the initial terminal remains open there will be no 'short write' error on the RPi.

Shutdown on the RPi:
nohup poweroff &




-



-



-



If you run rngtest multiple times you will notice that there will be failures. This is actually a good thing. True Randomness will produce patterns which will fail a computers analysis of randomness. As long as the failure rate is small (around 1%), there is no cause for concern. Also True Randomness will show failures across multiple tests, a weakened RNG will fail at specific tests only. Example
Thanks to 01Micko for the base RPi image!

_________________



Back to top
View user's profile Send_private_message Visit_website 
ally


Joined: 19 May 2012
Posts: 862
Location: lincoln

PostPosted: Sat 30 Nov 2013, 18:12    Post_subject:  

mirrored here also:

http://archive.org/details/Puppy_Linux_Raspberry_Pi_Random_Pup

Smile
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0475s ][ Queries: 12 (0.0040s) ][ GZIP on ]