Package: freedom-maker
Severity: wishlist

This enables use of the hardware random number generator on the
Beaglebone Black, which is built into the TI AM335x chips.

---
 bin/freedombox-customize | 5 +++++
  1 file changed, 5 insertions(+)

diff --git a/bin/freedombox-customize b/bin/freedombox-customize
index 7cffeb9..bebb110 100755
--- a/bin/freedombox-customize
+++ b/bin/freedombox-customize
@@ -121,6 +121,11 @@ rm $rootdir/etc/ssh/ssh_host_*
 # copy u-boot to beginning of image
  case "$MACHINE" in
       beaglebone)
+
+    # Enable HRNG
+    chroot $rootdir apt-get install -y rng-tools
+    sed -i 's|#HRNGDEVICE=.*|HRNGDEVICE=/dev/hwrng|g' 
$rootdir/etc/default/rng-tools
+
    dd if=$rootdir/usr/lib/u-boot/am335x_boneblack/MLO of="$image" \
       count=1 seek=1 conv=notrunc bs=128k
    dd if=$rootdir/usr/lib/u-boot/am335x_boneblack/u-boot.img of="$image" \
--
2.4.1

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to