Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Fix for rngd: read error #2219

    rcs
    Member

    This was an error on my part. When I redid the setup from scratch I failed to set up rng-tools correctly.

    CURE: Uncomment HRNGDEVICE specifier in /etc/default/rng-tools file.

    ...
    # Set to the input source for random data, leave undefined
    # for the initscript to attempt auto-detection.  Set to /dev/null
    # for the viapadlock and tpm drivers.
    #HRNGDEVICE=/dev/hwrng
    #HRNGDEVICE=/dev/null
    HRNGDEVICE=/dev/TrueRNG
    ...
    • This reply was modified 5 years, 4 months ago by  rcs.
    in reply to: Fix for rngd: read error #2217

    rcs
    Member

    USE CASE: Newly purchased TrueRNGpro with current rule on MINT 19 with a 4.15.0-38-generic kernel.

    PROBLEM: Using rng-tools 5-0ubuntu4 from the default MINT repositories execution of /etc/init.d/rng-tools start posts rngd read errors to /var/log/syslog and rngd halts.

    DIAGNOSIS: TrueRNGpro functions properly (e.g. ACT light comes on briefly when a command such as head -c 512K /dev/TrueRNG > /tmp/foo.dat is executed). The default stty configuration shown below on MINT 19 or a modified rule to match the configuration given earlier in this thread for MINT 15 both exhibit rngd read errors.

    CURE: rngd does not produce errors. Any ideas? Thank you in advance!

    ==== RULE ====

    SUBSYSTEM=="tty", ATTRS{product}=="TrueRNGpro", SYMLINK+="TrueRNG", RUN+="/bin/stty raw -echo -ixoff -F /dev/%k speed 3000000"
    ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0aa0", ENV{ID_MM_DEVICE_IGNORE}="1"

    ==== STTY CONFIGURATION ====

    # stty -F /dev/TrueRNG
    speed 3000000 baud; line = 0;
    min = 1; time = 0;
    -brkint -icrnl -imaxbel
    -opost
    -isig -icanon -echo

    ==== RNGD ERROR FROM SYSLOG ====

    rngd: read error
    rngd: message repeated 99 times: [ read error]
    rngd: No entropy sources working, exiting rngd
    • This reply was modified 5 years, 4 months ago by  rcs.
Viewing 2 posts - 1 through 2 (of 2 total)