Attaching OneRNG to programmer

bsr presspound at buckeye-access.com
Wed Jun 21 21:10:19 BST 2017


I have been trying to figure this out myself, mostly because I want to better understand how everyting operates, but I'm not getting very far.  Dumping strace of ccload to a file is too large to post the whole thing here.  A small portion:

lstat("/dev/ttyACM0", {st_mode=S_IFCHR|S_ISVTX|0660, st_rdev=makedev(166, 0), ...}) = 0
stat("/dev/ttyACM0", {st_mode=S_IFCHR|S_ISVTX|0660, st_rdev=makedev(166, 0), ...}) = 0
umask(0)                                = 022
open("/var/lock/LCK..3703", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 8
fstat(8, {st_mode=S_IFREG|0666, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0edc6cd000
write(8, "      3703\n", 11)            = 11
close(8)                                = 0
munmap(0x7f0edc6cd000, 4096)            = 0
umask(022)                              = 0
link("/var/lock/LCK..3703", "/var/lock/LCK..ttyACM0") = -1 EEXIST (File exists)
open("/var/lock/LCK..ttyACM0", O_RDONLY) = 8
read(8, "      3674\n", 12)             = 11
close(8)                                = 0
kill(3674, SIG_0)                       = -1 ESRCH (No such process)
unlink("/var/lock/LCK..ttyACM0")        = 0
unlink("/var/lock/LCK..3703")           = 0
open("/dev/ttyACM0", O_RDWR|O_NONBLOCK) = -1 EACCES (Permission denied)
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
lstat("/dev/ttyACM0", {st_mode=S_IFCHR|S_ISVTX|0660, st_rdev=makedev(166, 0), ...}) = 0
stat("/dev/ttyACM0", {st_mode=S_IFCHR|S_ISVTX|0660, st_rdev=makedev(166, 0), ...}) = 0
open("/var/lock/LCK..ttyACM0", O_RDONLY) = -1 ENOENT (No such file or directory)
unlink("/var/lock/LCK..ttyACM0")        = -1 ENOENT (No such file or directory)
recvfrom(6, 0x24ec1d4, 4096, 0, 0, 0)   = -1 EAGAIN (Resource temporarily unavailable)
recvfrom(6, 0x24ec1d4, 4096, 0, 0, 0)   = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN}], 2, 0) = 1 ([{fd=3, revents=POLLIN}])
recvfrom(6, 0x24ec1d4, 4096, 0, 0, 0)   = -1 EAGAIN (Resource temporarily unavailable)

open("/dev/ttyACM0", O_RDWR|O_NONBLOCK) = -1 EACCES (Permission denied) - 

so obviously it isn't going to talk.


More information about the Discuss mailing list