Coder Social home page Coder Social logo

pwarren / rtl-entropy Goto Github PK

View Code? Open in Web Editor NEW
357.0 357.0 43.0 217 KB

An entropy generator using SDR peripherals, including rtl-sdr and BladeRF

Home Page: http://rtl-entropy.org

License: GNU General Public License v3.0

C 69.32% CMake 28.65% Roff 2.04%

rtl-entropy's People

Contributors

alexmyczko avatar atoponce avatar cladisch avatar etheryte avatar jj1bdx avatar joshuaboniface avatar nplanel avatar projectgus avatar pwarren avatar remmy avatar taowa avatar w-m-d avatar zipnemud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtl-entropy's Issues

No samples from Generic RTL2832U

Hi,

I have two different RTL2832U USB sticks, but I can't get any output from any of them. I have tried on two different machines, one with debian jessie and one with debian stretch.
I get
/////////////////
$rtl_entropy
No configuration file found, continuing with defaults.
Options parsed, continuing.
Found 1 device(s):
0: Generic RTL2832U
Using device 0: Generic RTL2832U
Detached kernel driver
Found Elonics E4000 tuner
Setting Frequency to 70000000
Your device is capable of gains at...
: -1.00
: 1.50
: 4.00
: 6.50
: 9.00
: 11.50
: 14.00
: 16.50
: 19.00
: 21.50
: 24.00
: 29.00
: 34.00
: 42.00
Setting gain to 42.00
Doing FIPS init
Reading samples in sync mode...
.....and here it seems to hang forever.....
///////////////////
With the other stick
/////////////
$rtl_entropy
No configuration file found, continuing with defaults.
Options parsed, continuing.
Found 1 device(s):
0: Generic RTL2832U OEM
Using device 0: Generic RTL2832U OEM
Detached kernel driver
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
Setting Frequency to 70000000
Your device is capable of gains at...
: 0.00
: 0.90
: 1.40
: 2.70
: 3.70
: 7.70
: 8.70
: 12.50
: 14.40
: 15.70
: 16.60
: 19.70
: 20.70
: 22.90
: 25.40
: 28.00
: 29.70
: 32.80
: 33.80
: 36.40
: 37.20
: 38.60
: 40.20
: 42.10
: 43.40
: 43.90
: 44.50
: 48.00
: 49.60
Setting gain to 49.60
Doing FIPS init
Reading samples in sync mode...
.....and here it seems to hang forever.....
///////////////////

But when I run rtl_fm on a frequency, I get a lot of output.

Do you have any idea?

Thanks!

‘BLADERF_FORMAT_SC16_Q11’ undeclared

When compiling on debian with repository installed libbladerf-dev:amd64 0.9.0.15.8ba2499-1, the following error occurs:

Scanning dependencies of target rtlentropylib
[ 20%] Building C object src/CMakeFiles/rtlentropylib.dir/fips.c.o
[ 40%] Building C object src/CMakeFiles/rtlentropylib.dir/log.c.o
[ 60%] Building C object src/CMakeFiles/rtlentropylib.dir/util.c.o
Linking C static library librtlentropylib.a
[ 60%] Built target rtlentropylib
Scanning dependencies of target brf_entropy
[ 80%] Building C object src/CMakeFiles/brf_entropy.dir/brf_entropy.c.o
/tmp/rtl-entropy/src/brf_entropy.c: In function ‘main’:
/tmp/rtl-entropy/src/brf_entropy.c:441:6: error: ‘BLADERF_FORMAT_SC16_Q11’ undeclared (first use in this function)
      BLADERF_FORMAT_SC16_Q11,
      ^
/tmp/rtl-entropy/src/brf_entropy.c:441:6: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [src/CMakeFiles/brf_entropy.dir/brf_entropy.c.o] Error 1
make[1]: *** [src/CMakeFiles/brf_entropy.dir/all] Error 2
make: *** [all] Error 2

After looking through /usr/include/libbladeRF.h, BLADERF_FORMAT_SC16_Q11 is not referenced but BLADERF_FORMAT_SC16_Q12 is.

Im not sure whether this should be updated or libbladeRF. Either way, I updated my clone and compiled successfully.

GUI

Have you thought about adding a GUI feature to it? Something to better visualize the data which just kind of streams out of it. I would love to work on it with you if you're interested or I could just add to it on my own later.

sync read failed: -1 on gentoo hardened

hi
current master d174d4a on gentoo running
Linux io 4.2.5-hardened-dom0-kvm-at-gw18 #2 SMP Mon Nov 2 22:12:22 CET 2015 x86_64 Intel(R) Celeron(R) CPU J1900 @ 1.99GHz GenuineIntel GNU/Linux
gives me:
--8<--
»root@io:~/rtl-entropy/src (master)# rtl_entropy
No configuration file found, continuing with defaults.
Options parsed, continuing.
Found 1 device(s):
0: Generic RTL2832U OEM
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
Setting Frequency to 70000000
Your device is capable of gains at...
: 0.00
: 0.90
: 1.40
: 2.70
: 3.70
: 7.70
: 8.70
: 12.50
: 14.40
: 15.70
: 16.60
: 19.70
: 20.70
: 22.90
: 25.40
: 28.00
: 29.70
: 32.80
: 33.80
: 36.40
: 37.20
: 38.60
: 40.20
: 42.10
: 43.40
: 43.90
: 44.50
: 48.00
: 49.60
Setting gain to 49.60
Doing FIPS init
Reading samples in sync mode...
ERROR: sync read failed: -1

Library error -1, exiting...
--8<--
lsusb:
[...]
Bus 001 Device 115: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
[...]

dmesg:
--8<--
[3416257.386927] rtl_entropy: page allocation failure: order:10, mode:0x2040d0
[3416257.386935] CPU: 0 PID: 11102 Comm: rtl_entropy Tainted: G W 4.2.5-hardened-dom0-kvm-at-gw18 #2
[3416257.386937] Hardware name: Gigabyte Technology Co., Ltd. To be filled by O.E.M./J1900N-D3V, BIOS F1 01/22/2014
[3416257.386939] 00000000002040d0 ffffc90005223b18 ffffffff817d9e84 000000000000003e
[3416257.386944] 0000000000000001 ffffc90005223ba8 ffffffff8116e516 ffffffff81ae6b00
[3416257.386947] 0000ffff81ae5f00 0000000000000000 fffffffffffffc00 ffffffff81ae6b38
[3416257.386951] Call Trace:
[3416257.386960] [] dump_stack+0x45/0x57
[3416257.386965] [] warn_alloc_failed+0x100/0x115
[3416257.386969] [] __alloc_pages_nodemask+0x5e8/0x63c
[3416257.386973] [] cache_alloc_refill+0x242/0x449
[3416257.386976] [] __kmalloc+0x78/0xca
[3416257.386980] [] usbdev_ioctl+0x1714/0x1c72
[3416257.386985] [] ? n_tty_open+0xd2/0xd2
[3416257.386989] [] do_vfs_ioctl+0x46c/0x631
[3416257.386993] [] ? entry_SYSCALL_64_fastpath+0x35/0x79
[3416257.386996] [] SyS_ioctl+0x4f/0x7e
[3416257.386999] [] entry_SYSCALL_64_fastpath+0x12/0x79
[3416257.387000] Mem-Info:
[3416257.387007] active_anon:2415133 inactive_anon:263 isolated_anon:0
active_file:601294 inactive_file:601307 isolated_file:0
unevictable:3917 dirty:65 writeback:0 unstable:0
slab_reclaimable:174690 slab_unreclaimable:15107
mapped:4624 shmem:444 pagetables:6808 bounce:0
free:230805 free_pcp:331 free_cma:0
[3416257.387016] DMA free:15836kB min:12kB low:12kB high:16kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15992kB managed:15836kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
[3416257.387017] lowmem_reserve[]: 0 2875 15938 15938
[3416257.387028] DMA32 free:204436kB min:2912kB low:3640kB high:4368kB active_anon:1746248kB inactive_anon:56kB active_file:414188kB inactive_file:414120kB unevictable:3152kB isolated(anon):0kB isolated(file):0kB present:3022876kB managed:2945204kB mlocked:3152kB dirty:36kB writeback:0kB mapped:3544kB shmem:216kB slab_reclaimable:124460kB slab_unreclaimable:10364kB kernel_stack:1104kB pagetables:4904kB unstable:0kB bounce:0kB free_pcp:684kB local_pcp:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:100 all_unreclaimable? no
[3416257.387029] lowmem_reserve[]: 0 0 13062 13062
[3416257.387040] Normal free:702948kB min:13232kB low:16540kB high:19848kB active_anon:7914284kB inactive_anon:996kB active_file:1990988kB inactive_file:1990852kB unevictable:12516kB isolated(anon):0kB isolated(file):0kB present:13631488kB managed:13376456kB mlocked:12516kB dirty:224kB writeback:0kB mapped:14952kB shmem:1560kB slab_reclaimable:574300kB slab_unreclaimable:50064kB kernel_stack:3792kB pagetables:22328kB unstable:0kB bounce:0kB free_pcp:644kB local_pcp:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:128 all_unreclaimable? no
[3416257.387041] lowmem_reserve[]: 0 0 0 0
[3416257.387045] DMA: 1_4kB (U) 1_8kB (U) 1_16kB (U) 0_32kB 1_64kB (U) 1_128kB (U) 1_256kB (U) 0_512kB 1_1024kB (U) 1_2048kB (U) 3_4096kB (M) = 15836kB
[3416257.387060] DMA32: 31810_4kB (UEM) 5098_8kB (UEM) 2275_16kB (UEM) 7_32kB (U) 1_64kB (U) 0_128kB 0_256kB 0_512kB 0_1024kB 0_2048kB 0_4096kB = 204712kB
[3416257.387073] Normal: 137280_4kB (UEM) 12961_8kB (UEM) 3168_16kB (UEM) 1_32kB (U) 0_64kB 0_128kB 0_256kB 0_512kB 0_1024kB 0_2048kB 0*4096kB = 703528kB
[3416257.387085] 1204554 total pagecache pages
[3416257.387088] 0 pages in swap cache
[3416257.387089] Swap cache stats: add 0, delete 0, find 0/0
[3416257.387090] Free swap = 0kB
[3416257.387091] Total swap = 0kB
[3416257.387092] 4167589 pages RAM
[3416257.387093] 0 pages HighMem/MovableOnly
[3416257.387094] 83215 pages reserved
--8<--
dont know if it has something to do with hardened opts in the kernel. I will try with non hardened kernel but really like to have it running with.

pointers to get it running are appreciated.

What's the samplerate for?

Hello Paul,

I have a question concerning the samplerate (-s ). What exactly does it? When I am running your program with the default value nothing passes the FIPS tests. But when I decrease the value to "-s 2.4M" I get much random data.
I am confused because to my mind the samplerate is the speed of reading out the data from the stick which should not change the entropy, isn't it?

Thanks a lot!
Johannes

[brf_entropy] Format has been changed to BLADERF_FORMAT_SC16Q11

Back before the bladeRF RC1, the SC16 Q12 format was renamed to SC16 Q11, as it was a misnomer, and a SC16 Q12 macro was kept for a transition period. That reverse compatibility macro has been dropped in RC2.

Changing this line to contain BLADERF_FORMAT_SC16_Q11 should address build issues with newer libbladeRF versions.

Cannot build

flowforger@anv1l0:$ git clone https://github.com/pwarren/rtl-entropy/
Cloning into 'rtl-entropy'...
remote: Counting objects: 794, done.
remote: Total 794 (delta 0), reused 0 (delta 0), pack-reused 794
Receiving objects: 100% (794/794), 197.91 KiB | 0 bytes/s, done.
Resolving deltas: 100% (487/487), done.
flowforger@anv1l0:
$ cd rtl-entropy/
flowforger@anv1l0:/rtl-entropy$ ls
cmake CryptoNotes.txt LICENSE README.md src
CMakeLists.txt debian LICENSE.openssl rtl-entropy.pc.in
flowforger@anv1l0:
/rtl-entropy$ mkdir build
flowforger@anv1l0:/rtl-entropy$ cd build
flowforger@anv1l0:
/rtl-entropy/build$ cmake ../
-- The C compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Extracting version information from git describe...
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Checking for module 'librtlsdr'
-- No package 'librtlsdr' found
-- librtlsdr not found.
-- Checking for module 'libbladeRF'
-- No package 'libbladeRF' found
-- libbladeRF not found.
-- Checking for module 'openssl'
-- No package 'openssl' found
-- Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIRS)
-- Found LibCAP
CMake Warning (dev) at CMakeLists.txt:120 (link_directories):
This command specifies the relative path

LIBRTLSDR_LIBRARIES-NOTFOUND

as a link directory.

Policy CMP0015 is not set: link_directories() treats paths relative to the
source dir. Run "cmake --help-policy CMP0015" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Building for version: 0.1.2 / 0.1.2
-- Using install prefix: /usr/local
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBRTLSDR_INCLUDE_DIRS (ADVANCED)
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy/src
used as include directory in directory /home/flowforger/rtl-entropy/src
used as include directory in directory /home/flowforger/rtl-entropy/src
used as include directory in directory /home/flowforger/rtl-entropy/src
used as include directory in directory /home/flowforger/rtl-entropy/src
used as include directory in directory /home/flowforger/rtl-entropy/src
used as include directory in directory /home/flowforger/rtl-entropy/src
OPENSSL_INCLUDE_DIR
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy
used as include directory in directory /home/flowforger/rtl-entropy/src
used as include directory in directory /home/flowforger/rtl-entropy/src
used as include directory in directory /home/flowforger/rtl-entropy/src
used as include directory in directory /home/flowforger/rtl-entropy/src
used as include directory in directory /home/flowforger/rtl-entropy/src
used as include directory in directory /home/flowforger/rtl-entropy/src
used as include directory in directory /home/flowforger/rtl-entropy/src

-- Configuring incomplete, errors occurred!
See also "/home/flowforger/rtl-entropy/build/CMakeFiles/CMakeOutput.log".
flowforger@anv1l0:/rtl-entropy/build$ cat /home/flowforger/rtl-e^C
flowforger@anv1l0:
/rtl-entropy/build$ cat CMakeFiles/CMakeOutput.log
The system is: Linux - 4.9.0-3-amd64 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc
Build flags:
Id flags:

The output was:
0

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is GNU, found in "/home/flowforger/rtl-entropy/build/CMakeFiles/3.7.2/CompilerIdC/a.out"

Determining if the C compiler works passed with the following output:
Change Dir: /home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_aea52/fast"
/usr/bin/make -f CMakeFiles/cmTC_aea52.dir/build.make CMakeFiles/cmTC_aea52.dir/build
make[1]: Entering directory '/home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_aea52.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_aea52.dir/testCCompiler.c.o -c /home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_aea52
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_aea52.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_aea52.dir/testCCompiler.c.o -o cmTC_aea52 -rdynamic
make[1]: Leaving directory '/home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp'

Detecting C compiler ABI info compiled with the following output:
Change Dir: /home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_98fbb/fast"
/usr/bin/make -f CMakeFiles/cmTC_98fbb.dir/build.make CMakeFiles/cmTC_98fbb.dir/build
make[1]: Entering directory '/home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_98fbb.dir/CMakeCCompilerABI.c.o
/usr/bin/cc -o CMakeFiles/cmTC_98fbb.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.7/Modules/CMakeCCompilerABI.c
Linking C executable cmTC_98fbb
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_98fbb.dir/link.txt --verbose=1
/usr/bin/cc -v CMakeFiles/cmTC_98fbb.dir/CMakeCCompilerABI.c.o -o cmTC_98fbb -rdynamic
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.3.0 20170516 (Debian 6.3.0-18)
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_98fbb' '-rdynamic' '-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-linux-gnu/6/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper -plugin-opt=-fresolution=/tmp/cc24JM9b.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_98fbb /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/6/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/6 -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/6/../../.. CMakeFiles/cmTC_98fbb.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/6/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crtn.o
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_98fbb' '-rdynamic' '-mtune=generic' '-march=x86-64'
make[1]: Leaving directory '/home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp'

Parsed C implicit link information from above output:
link line regex: [^( |.[/])(ld|([^/]+-)?ld|collect2)[^/\]*( |$)]
ignore line: [Change Dir: /home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp]
ignore line: []
ignore line: [Run Build Command:"/usr/bin/make" "cmTC_98fbb/fast"]
ignore line: [/usr/bin/make -f CMakeFiles/cmTC_98fbb.dir/build.make CMakeFiles/cmTC_98fbb.dir/build]
ignore line: [make[1]: Entering directory '/home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp']
ignore line: [Building C object CMakeFiles/cmTC_98fbb.dir/CMakeCCompilerABI.c.o]
ignore line: [/usr/bin/cc -o CMakeFiles/cmTC_98fbb.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.7/Modules/CMakeCCompilerABI.c]
ignore line: [Linking C executable cmTC_98fbb]
ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_98fbb.dir/link.txt --verbose=1]
ignore line: [/usr/bin/cc -v CMakeFiles/cmTC_98fbb.dir/CMakeCCompilerABI.c.o -o cmTC_98fbb -rdynamic ]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/cc]
ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper]
ignore line: [Target: x86_64-linux-gnu]
ignore line: [Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu]
ignore line: [Thread model: posix]
ignore line: [gcc version 6.3.0 20170516 (Debian 6.3.0-18) ]
ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../:/lib/:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_98fbb' '-rdynamic' '-mtune=generic' '-march=x86-64']
link line: [ /usr/lib/gcc/x86_64-linux-gnu/6/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper -plugin-opt=-fresolution=/tmp/cc24JM9b.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_98fbb /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/6/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/6 -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/6/../../.. CMakeFiles/cmTC_98fbb.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/6/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crtn.o]
arg [/usr/lib/gcc/x86_64-linux-gnu/6/collect2] ==> ignore
arg [-plugin] ==> ignore
arg [/usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so] ==> ignore
arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper] ==> ignore
arg [-plugin-opt=-fresolution=/tmp/cc24JM9b.res] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [-plugin-opt=-pass-through=-lc] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [--sysroot=/] ==> ignore
arg [--build-id] ==> ignore
arg [--eh-frame-hdr] ==> ignore
arg [-m] ==> ignore
arg [elf_x86_64] ==> ignore
arg [--hash-style=gnu] ==> ignore
arg [-export-dynamic] ==> ignore
arg [-dynamic-linker] ==> ignore
arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
arg [-pie] ==> ignore
arg [-o] ==> ignore
arg [cmTC_98fbb] ==> ignore
arg [/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o] ==> ignore
arg [/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crti.o] ==> ignore
arg [/usr/lib/gcc/x86_64-linux-gnu/6/crtbeginS.o] ==> ignore
arg [-L/usr/lib/gcc/x86_64-linux-gnu/6] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/6]
arg [-L/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu]
arg [-L/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib]
arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu]
arg [-L/lib/../lib] ==> dir [/lib/../lib]
arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu]
arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
arg [-L/usr/lib/gcc/x86_64-linux-gnu/6/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/6/../../..]
arg [CMakeFiles/cmTC_98fbb.dir/CMakeCCompilerABI.c.o] ==> ignore
arg [-lgcc] ==> lib [gcc]
arg [--as-needed] ==> ignore
arg [-lgcc_s] ==> lib [gcc_s]
arg [--no-as-needed] ==> ignore
arg [-lc] ==> lib [c]
arg [-lgcc] ==> lib [gcc]
arg [--as-needed] ==> ignore
arg [-lgcc_s] ==> lib [gcc_s]
arg [--no-as-needed] ==> ignore
arg [/usr/lib/gcc/x86_64-linux-gnu/6/crtendS.o] ==> ignore
arg [/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crtn.o] ==> ignore
remove lib [gcc]
remove lib [gcc_s]
remove lib [gcc]
remove lib [gcc_s]
collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/6] ==> [/usr/lib/gcc/x86_64-linux-gnu/6]
collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib] ==> [/usr/lib]
collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu]
collapse library dir [/lib/../lib] ==> [/lib]
collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/6/../../..] ==> [/usr/lib]
implicit libs: [c]
implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/6;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib]
implicit fwks: []

Detecting C [-std=c11] compiler features compiled with the following output:
Change Dir: /home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_a9f07/fast"
/usr/bin/make -f CMakeFiles/cmTC_a9f07.dir/build.make CMakeFiles/cmTC_a9f07.dir/build
make[1]: Entering directory '/home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a9f07.dir/feature_tests.c.o
/usr/bin/cc -std=c11 -o CMakeFiles/cmTC_a9f07.dir/feature_tests.c.o -c /home/flowforger/rtl-entropy/build/CMakeFiles/feature_tests.c
Linking C executable cmTC_a9f07
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a9f07.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_a9f07.dir/feature_tests.c.o -o cmTC_a9f07 -rdynamic
make[1]: Leaving directory '/home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp'

Feature record: C_FEATURE:1c_function_prototypes
Feature record: C_FEATURE:1c_restrict
Feature record: C_FEATURE:1c_static_assert
Feature record: C_FEATURE:1c_variadic_macros

Detecting C [-std=c99] compiler features compiled with the following output:
Change Dir: /home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_75590/fast"
/usr/bin/make -f CMakeFiles/cmTC_75590.dir/build.make CMakeFiles/cmTC_75590.dir/build
make[1]: Entering directory '/home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_75590.dir/feature_tests.c.o
/usr/bin/cc -std=c99 -o CMakeFiles/cmTC_75590.dir/feature_tests.c.o -c /home/flowforger/rtl-entropy/build/CMakeFiles/feature_tests.c
Linking C executable cmTC_75590
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_75590.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_75590.dir/feature_tests.c.o -o cmTC_75590 -rdynamic
make[1]: Leaving directory '/home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp'

Feature record: C_FEATURE:1c_function_prototypes
Feature record: C_FEATURE:1c_restrict
Feature record: C_FEATURE:0c_static_assert
Feature record: C_FEATURE:1c_variadic_macros

Detecting C [-std=c90] compiler features compiled with the following output:
Change Dir: /home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_e829c/fast"
/usr/bin/make -f CMakeFiles/cmTC_e829c.dir/build.make CMakeFiles/cmTC_e829c.dir/build
make[1]: Entering directory '/home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_e829c.dir/feature_tests.c.o
/usr/bin/cc -std=c90 -o CMakeFiles/cmTC_e829c.dir/feature_tests.c.o -c /home/flowforger/rtl-entropy/build/CMakeFiles/feature_tests.c
Linking C executable cmTC_e829c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e829c.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_e829c.dir/feature_tests.c.o -o cmTC_e829c -rdynamic
make[1]: Leaving directory '/home/flowforger/rtl-entropy/build/CMakeFiles/CMakeTmp'

Feature record: C_FEATURE:1c_function_prototypes
Feature record: C_FEATURE:0c_restrict
Feature record: C_FEATURE:0c_static_assert
Feature record: C_FEATURE:0c_variadic_macros

rtl_entropy -e causes sigsegv

I've run rtl_entropy -f 74M -e and the output is as follows snip the last few lines

timerfd_settime(8, 0, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0
ioctl(9, USBDEVFS_REAPURBNDELAY, 0x7ffd9393ce90) = -1 EAGAIN (Resource temporarily unavailable)
timerfd_settime(8, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=9286, tv_nsec=46015000}}, NULL) = 0
ioctl(9, USBDEVFS_SUBMITURB, 0x55b2930d1ba0) = 0
poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLOUT}], 3, 60000) = 1 ([{fd=9, revents=POLLOUT}])
ioctl(9, USBDEVFS_REAPURBNDELAY, 0x7ffd9393ce50) = 0
timerfd_settime(8, 0, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0
ioctl(9, USBDEVFS_REAPURBNDELAY, 0x7ffd9393ce50) = -1 EAGAIN (Resource temporarily unavailable)
timerfd_settime(8, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=9286, tv_nsec=48070000}}, NULL) = 0
ioctl(9, USBDEVFS_SUBMITURB, 0x55b2930d1ba0) = 0
poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLOUT}], 3, 60000) = 1 ([{fd=9, revents=POLLOUT}])
ioctl(9, USBDEVFS_REAPURBNDELAY, 0x7ffd9393ce50) = 0
timerfd_settime(8, 0, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0
ioctl(9, USBDEVFS_REAPURBNDELAY, 0x7ffd9393ce50) = -1 EAGAIN (Resource temporarily unavailable)
timerfd_settime(8, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=9286, tv_nsec=50140000}}, NULL) = 0
ioctl(9, USBDEVFS_SUBMITURB, 0x55b2930d1ba0) = 0
poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLOUT}], 3, 60000) = 1 ([{fd=9, revents=POLLOUT}])
ioctl(9, USBDEVFS_REAPURBNDELAY, 0x7ffd9393ce50) = 0
timerfd_settime(8, 0, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0
ioctl(9, USBDEVFS_REAPURBNDELAY, 0x7ffd9393ce50) = -1 EAGAIN (Resource temporarily unavailable)
timerfd_settime(8, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=9286, tv_nsec=52384000}}, NULL) = 0
ioctl(9, USBDEVFS_SUBMITURB, 0x55b2930d1ba0) = 0
poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLOUT}], 3, 60000) = 1 ([{fd=9, revents=POLLOUT}])
ioctl(9, USBDEVFS_REAPURBNDELAY, 0x7ffd9393ce90) = 0
timerfd_settime(8, 0, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0
ioctl(9, USBDEVFS_REAPURBNDELAY, 0x7ffd9393ce90) = -1 EAGAIN (Resource temporarily unavailable)
timerfd_settime(8, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=9286, tv_nsec=54974000}}, NULL) = 0
ioctl(9, USBDEVFS_SUBMITURB, 0x55b2930d1ba0) = 0
poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLOUT}], 3, 60000) = 1 ([{fd=9, revents=POLLOUT}])
ioctl(9, USBDEVFS_REAPURBNDELAY, 0x7ffd9393ce90) = 0
timerfd_settime(8, 0, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0
ioctl(9, USBDEVFS_REAPURBNDELAY, 0x7ffd9393ce90) = -1 EAGAIN (Resource temporarily unavailable)
write(2, "Doing FIPS init", 15Doing FIPS init) = 15
write(2, "\n", 1
) = 1
write(2, "Reading samples in sync mode...", 31Reading samples in sync mode...) = 31
write(2, "\n", 1
) = 1
ioctl(9, USBDEVFS_SUBMITURB, 0x55b2930d1ba0) = 0
poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLOUT}], 3, 60000) = 1 ([{fd=9, revents=POLLOUT}])
ioctl(9, USBDEVFS_REAPURBNDELAY, 0x7ffd9393ced0) = 0
ioctl(9, USBDEVFS_REAPURBNDELAY, 0x7ffd9393ced0) = -1 EAGAIN (Resource temporarily unavailable)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault

Any ideas, works fine without -e

0 gain with Realtek Semiconductor Corp. RTL2838 DVB-T

Hello
I can't seem to get this device to work correctly, All the high entropy files are zero bytes.

I'm using a Realtek Semiconductor Corp. RTL2838 DVB-T

foo@bar:~$ rtl_entropy -s 2.4M -f 101.5M -e | rngtest -c 500000 -p > high_entropy.bin
Options parsed, continuing.
Found 1 device(s):
0: Generic RTL2832U OEM
Using device 0: Generic RTL2832U OEM
Detached kernel driver
No supported tuner found
Enabled direct sampling mode, input 1
Setting Frequency to 101500000
Your device is capable of gains at...
: 0.00
Setting gain to 0.00
Doing FIPS init
Reading samples in sync mode...

After running strace, I get this:
write(2, "Setting gain to 0.00", 20Setting gain to 0.00) = 20
write(2, "\n", 1
) = 1
write(2, "Doing FIPS init", 15Doing FIPS init) = 15
write(2, "\n", 1
) = 1
write(2, "Reading samples in sync mode...", 31Reading samples in sync mode...) = 31
write(2, "\n", 1
) = 1
ioctl(9, USBDEVFS_SUBMITURB, 0x1873670) = 0
poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLOUT}], 3, 60000) = 1 ([{fd=9, revents=POLLOUT}])
ioctl(9, USBDEVFS_REAPURBNDELAY, 0xbfc17078) = 0
ioctl(9, USBDEVFS_REAPURBNDELAY, 0xbfc17078) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(9, USBDEVFS_SUBMITURB, 0x1873670) = 0
poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLOUT}], 3, 60000) = 1 ([{fd=9, revents=POLLOUT}])
ioctl(9, USBDEVFS_REAPURBNDELAY, 0xbfc17078) = 0
ioctl(9, USBDEVFS_REAPURBNDELAY, 0xbfc17078) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(9, USBDEVFS_SUBMITURB, 0x1873670) = 0
poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLOUT}], 3, 60000) = 1 ([{fd=9, revents=POLLOUT}])

Any ideas?

more initial non-randomness

The problem of issue #1 is still there (in non-encryption mode, the first actually output block consists of zeros only).

Commit cc8d0ff sets "output_ready" for every block, even for one that has failed the FIPS tests. So of the first block fails these tests (which is quite common), the first output block still is empty.
The proposed patch in issue #1 would have fixed this completely.

"Reading samples in sync mode..." fails

Either fails FIPS test or nothing after "Reading samples in sync mode..."
Used to work but for some reason doesn't anymore. Any journal/etc you want me to post?

I tried a wide range of frequencies, gain-settings and samplerates between 1M-3.4M

Pkgconfig installation path doesn't follow proper path

Current CMakeLists.txt cause rtl-entropy.pc to be installed to /usr/local/pkgconfig instead of /usr/local/lib/pkgconfig (as is the case of rtl-sdr).

The situation is even uglier if use chooses to install code to /usr, with rtl-entropy.pc being installed on /usr/pkgconfig/ instead of /usr/lib/pkgconfig/

USB Error while reading with rtl_entropy

Hi. I am currently testing with rtl_entropy and after a few hours of reading from the fifo file, the daemon process stopped. I can see the following messges from "demsg":
[132219.399908] usb 1-1.2: usbfs: usb_submit_urb returned -121
[295885.710820] usb 1-1.2: usbfs: usb_submit_urb returned -121

Is this related to rtl_entropy, or to some other errors?
Thanks.

rngd(8) does not accept /var/run/rtl_entropy.fifo

Following the instructions on site:

# rtl_entropy -b
# rngd -r /var/run/rtl_entropy.fifo -W 95%
# ps -ef | grep rngd
root      5597  3281  0 12:04 pts/3    00:00:00 grep rng

It seems that rngd(8) is not accepting named pipe as a valid hardware RNG. As such, as it stands, I cannot feed the data into the kernel entropy pool for processing to /dev/random.

Feature request: rtl-sdr dump1090 RAW as input

Hi there,

I've just discovered that my Pine A64 does not have any proper entropy source as it lacks hardware TRNG and haveged is not good enough also.

I'm running some modeS/ADS-B decoding there using dump1090 and this utility produces RAW data output port numbered 30005.

Would it be possible to add a switch for rtl-entropy not to use hardware rtl-sdr but specified network IP:port ?
That would be great at many network-connected devices that can listen to that "random" data and use it as another source of entropy.

Please let me know, thanks 🍺

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.