LED does not dim

Stefan Schumacher s.schumacher at netcologne.de
Wed Jul 15 13:22:58 BST 2020


Hello,

I haven't had time to experiment with the OneRNG in over a month. Today I planned on inserting it into some of my ansible scripts - to be precise the creation of dhparam.pem on new webservers. I inserted the RNG into an USB slot and restarted the rng-tools. To my eyes everything looked fine. The output of "systemctl status rng-tools" follows below. I then wanted to test the device and executed the following command as root:
cat /dev/random | pv | cat > /dev/null
According to the documentation the rng should dim when the amout of entropy in /dev/random decreases. cat /proc/sys/kernel/random/entropy_avail shows values between one and 1327. I aborted after 5 minutes and 198 MB of entropy generated. 
Then I tested the same command without the rng plugged in and noticed that the values match the ones with the rng plugged in. 
It worked a month ago (you can see my posting "firmware corrupt" and all it did during that time was sit on my KVM switch. Why is it not working now? I decided to include a lot of output in the belief that more information is better. I hope you dont feel flooded. The current state is shown last: device recognized as per dmesg, rng-tools fail to start, led is off.
 
dmesg shows the device as plugged in, as does lsusb, but there are some strange repeating values in dmesg. First start with the good part:

[175582.215915] usb 1-11.1: new full-speed USB device number 50 using xhci_hcd
[175582.321315] usb 1-11.1: New USB device found, idVendor=1d50, idProduct=6086, bcdDevice= 0.09
[175582.321325] usb 1-11.1: New USB device strings: Mfr=1, Product=3, SerialNumber=3
[175582.321329] usb 1-11.1: Product: 00
[175582.321333] usb 1-11.1: Manufacturer: Moonbase Otago http://www.moonbaseotago.com/random
[175582.321337] usb 1-11.1: SerialNumber: 00
[175582.330074] cdc_acm 1-11.1:1.0: ttyACM0: USB ACM device
[176781.866501] usb 1-11.1: USB disconnect, device number 50
[176781.870121] cdc_acm 1-11.1:1.0: failed to set dtr/rts
[176893.449541] usb 1-11.1: new full-speed USB device number 51 using xhci_hcd
[176893.554697] usb 1-11.1: New USB device found, idVendor=1d50, idProduct=6086, bcdDevice= 0.09
[176893.554706] usb 1-11.1: New USB device strings: Mfr=1, Product=3, SerialNumber=3
[176893.554710] usb 1-11.1: Product: 00
[176893.554714] usb 1-11.1: Manufacturer: Moonbase Otago http://www.moonbaseotago.com/random
[176893.554718] usb 1-11.1: SerialNumber: 00
[176893.569486] cdc_acm 1-11.1:1.0: ttyACM0: USB ACM device

But there are also a lot of these error messages, which I can't really make sense of:

[175580.985500] xhci_hcd 0000:00:14.0: WARN Cannot submit Set TR Deq Ptr
[175580.985508] xhci_hcd 0000:00:14.0: A Set TR Deq Ptr command is pending.
[175478.824547] usb 1-10.1: clear tt 1 (92b5) error -71
[176781.870121] cdc_acm 1-11.1:1.0: failed to set dtr/rts

RNG-Tools, when they do work (sometimes they do, sometimes not)

 rng-tools.service
   Loaded: loaded (/etc/init.d/rng-tools; generated)
   Active: active (running) since Wed 2020-07-15 13:53:22 CEST; 7min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 7607 ExecStart=/etc/init.d/rng-tools start (code=exited, status=0/SUCCESS)
    Tasks: 4 (limit: 4915)
   Memory: 812.0K
   CGroup: /system.slice/rng-tools.service
           └─7609 /usr/sbin/rngd -r /dev/ttyACM0

Jul 15 13:53:22 mars systemd[1]: Starting rng-tools.service...
Jul 15 13:53:22 mars rng-tools[7607]: Starting Hardware RNG entropy gatherer daemon: rngd.
Jul 15 13:53:22 mars systemd[1]: Started rng-tools.service.
Jul 15 13:53:22 mars rngd[7609]: rngd 2-unofficial-mt.14 starting up...
Jul 15 13:53:22 mars rngd[7609]: entropy feed to the kernel ready

After re-inserting the RNG and restarting rng-tools I only get the following error message. The LED is off:

● rng-tools.service
   Loaded: loaded (/etc/init.d/rng-tools; generated)
   Active: failed (Result: exit-code) since Wed 2020-07-15 14:12:59 CEST; 2min 53s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 9450 ExecStart=/etc/init.d/rng-tools start (code=exited, status=1/FAILURE)

Jul 15 14:12:49 mars systemd[1]: Starting rng-tools.service...
Jul 15 14:12:59 mars rng-tools[9450]: Starting Hardware RNG entropy gatherer daemon: (failed).
Jul 15 14:12:59 mars systemd[1]: rng-tools.service: Control process exited, code=exited, status=1/FAILURE
Jul 15 14:12:59 mars systemd[1]: rng-tools.service: Failed with result 'exit-code'.
Jul 15 14:12:59 mars systemd[1]: Failed to start rng-tools.service.


More information about the Discuss mailing list