Debian Stretch - rng-tools: Cannot fild a hardware RNG device to use.
dayhiker
chuckn246 at gmail.com
Sun Sep 23 14:23:52 BST 2018
Hello!
I can't figure out how to get rng-tools.service to start (or if I even need it to start).
First off, I should state that I'm new to the world of encryption and hardware number generators, so it's possible that I could be doing/expecting something wrong.
The device led does dim when I run `cat /dev/random > /dev/null`.
Steps I've taken so far:
* Installed onerng.deb
* Edited /etc/default/rng-tools to add HRNGDEVICE=/dev/ACM0
* Booted with the OneRNG plugged in
* Booted without the OneRNG plugged in, then plugged it in after boot.
* Manually run /sbin/onerng.sh
I've read through this post but nothing there seemed to help:
http://lists.onerng.info/groups/onerng-talk/messages/topic/6x32cJVW26cmW2hYAQO85K/
I'm not sure what information I should give to assist in troubleshooting so here's what I've checked so far.
----
$ uname -a
Linux stretch 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux
----
$ sudo journalctl -xe
-- Unit rng-tools.service has begun starting up.
Sep 23 08:16:16 stretch rng-tools[18466]: Starting Hardware RNG entropy gatherer daemon: (Hardware RNG device inode not found)
Sep 23 08:16:16 stretch rng-tools[18466]: /etc/init.d/rng-tools: Cannot find a hardware RNG device to use.
Sep 23 08:16:16 stretch systemd[1]: rng-tools.service: Control process exited, code=exited status=1
Sep 23 08:16:16 stretch systemd[1]: Failed to start rng-tools.service.
-- Subject: Unit rng-tools.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit rng-tools.service has failed.
----
$ sudo dmesg | grep usb
[ 1.887348] usb 2-8: new full-speed USB device number 5 using xhci_hcd
[ 2.030122] usb 2-8: New USB device found, idVendor=1d50, idProduct=6086
[ 2.030124] usb 2-8: New USB device strings: Mfr=1, Product=3, SerialNumber=3
[ 2.030125] usb 2-8: Product: 00
[ 2.030126] usb 2-8: Manufacturer: Moonbase Otago http://www.moonbaseotago.com/random
[ 2.030126] usb 2-8: SerialNumber: 00
----
$ sudo lsusb -v
Bus 002 Device 005: ID 1d50:6086 OpenMoko, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 32
idVendor 0x1d50 OpenMoko, Inc.
idProduct 0x6086
bcdDevice 0.09
iManufacturer 1 Moonbase Otago http://www.moonbaseotago.com/random
iProduct 3 00
iSerial 3 00
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 67
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 200mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 0
CDC Header:
bcdCDC 1.10
CDC ACM:
bmCapabilities 0x06
sends break
line coding and serial state
CDC Union:
bMasterInterface 0
bSlaveInterface 1
CDC Call Management:
bmCapabilities 0x00
bDataInterface 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 64
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 4 Random
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Device Status: 0x0000
(Bus Powered)
----
$ ls -l ttyACM0
crw------- 1 root root 166, 0 Sep 23 08:03 ttyACM0
----
$ apt-cache policy at openssl python-gnupg rng-tools
at:
Installed: 3.1.20-3
Candidate: 3.1.20-3
Version table:
*** 3.1.20-3 500
500 http://ftp.us.debian.org/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status
openssl:
Installed: 1.1.0f-3+deb9u2
Candidate: 1.1.0f-3+deb9u2
Version table:
*** 1.1.0f-3+deb9u2 500
500 http://ftp.us.debian.org/debian stretch/main amd64 Packages
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
100 /var/lib/dpkg/status
python-gnupg:
Installed: 0.3.9-1
Candidate: 0.3.9-1
Version table:
0.4.3-1~bpo9+1 100
100 http://ftp.us.debian.org/debian stretch-backports/main amd64 Packages
100 http://ftp.us.debian.org/debian stretch-backports/main i386 Packages
*** 0.3.9-1 500
500 http://ftp.us.debian.org/debian stretch/main amd64 Packages
500 http://ftp.us.debian.org/debian stretch/main i386 Packages
100 /var/lib/dpkg/status
rng-tools:
Installed: 2-unofficial-mt.14-1+b2
Candidate: 2-unofficial-mt.14-1+b2
Version table:
*** 2-unofficial-mt.14-1+b2 500
500 http://ftp.us.debian.org/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status
----
Thanks in advance!
More information about the Discuss
mailing list