LED doesn't dim / OneRNG don't work
Zhavok
metalfan92 at gmx.de
Mon Nov 9 17:01:15 GMT 2020
Hi :)
If I test my OneRNG (Version 3.0), with
$ cat /dev/random >/dev/null
the LED doesn't dim. I installed this packages like the tutorial:
$ sudo apt-get install rng-tools at python-gnupg openssl
because I use an Debian sid, python-gnupg was not available. I downloaded and installed from here: https://debian.pkgs.org/10/debian-main-amd64/python-gnupg_0.4.4-1_all.deb.html. After that, I installed the onerng_3.6-1_all.deb. If I test it the LED doesn't change the brightness.
I sampled some Outputs to debug:
$ systemctl status rng-tools
rng-tools.service - LSB: Hardware random number generator entropy gatherer daemon
Loaded: loaded (/etc/init.d/rng-tools; generated)
Active: active (running) since Mon 2020-11-09 17:32:22 CET; 19min ago
Docs: man:systemd-sysv-generator(8)
Process: 3599 ExecStart=/etc/init.d/rng-tools start (code=exited, status=0/SUCCESS)
Tasks: 1 (limit: 9360)
Memory: 280.0K
CGroup: /system.slice/rng-tools.service
└─3604 /usr/sbin/rngd -r /dev/ttyACM0
$ sudo dpkg --list onerng | tail --lines 1
ii onerng 3.6-1 all Driver for the OneRNG open source hardware entropy generator
$ sudo dmesg | grep usb
[ 1080.796195] usb 2-2: USB disconnect, device number 7
[ 1088.128165] usb 2-2: new full-speed USB device number 8 using xhci_hcd
[ 1088.279672] usb 2-2: New USB device found, idVendor=1d50, idProduct=6086, bcdDevice= 0.09
[ 1088.279677] usb 2-2: New USB device strings: Mfr=1, Product=3, SerialNumber=3
[ 1088.279681] usb 2-2: Product: 00
[ 1088.279683] usb 2-2: Manufacturer: Moonbase Otago http://www.moonbaseotago.com/random
[ 1088.279686] usb 2-2: SerialNumber: 00
$ sudo dmesg | grep ttyACM
[ 5.098289] cdc_acm 2-2:1.0: ttyACM0: USB ACM device
$ lsmod | grep cdc_acm
cdc_acm 45056 3
usbcore 323584 9 xhci_hcd,ehci_pci,usbhid,cdc_acm,uvcvideo,ehci_hcd,ath3k,btusb,xhci_pci
$ sudo lsusb -v
Bus 002 Device 011: ID 1d50:6086 OpenMoko, Inc. OneRNG entropy device
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 32
idVendor 0x1d50 OpenMoko, Inc.
idProduct 0x6086 OneRNG entropy device
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 0x0043
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
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
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
(Bus Powered)
$ sudo grep OneRNG /var/log/messages
Nov 9 17:31:48 debian OneRNG: firmware verification passed OK - version=3
$ sudo grep ttyACM /var/log/messages
Nov 9 17:31:43 debian kernel: [ 1930.499805] cdc_acm 2-2:1.0: ttyACM0: USB ACM device
Sry for my bad english. I hope you can help me :)
More information about the Discuss
mailing list