Bug#1015260: Problem solved!

2022-08-12 Thread Sietse Achterop

  Hello Nicolas,

sorry for the late reaction.
I somehow did not receive your last mail, and also was on vacation.


Are you sure you have set up nqc to connect using USB?



Either:



nqc -Susb -firmware firm0332.lgo



Or:



export RCX_PORT=usb
nqc -firmware firm0332.lgo


I did use

   RCX_PORT=/dev/usb/legousbtower0

but with RCX_PORT=usb it did work!
  (I think I did try this at some point, but alas)

Thanks for the help!
We have 6 units and can now start using them again in a few student projects.

   Regards,
 Sietse



Bug#1015260: strace's

2022-07-22 Thread Sietse Achterop

 Thanks for the quick response!
Here the strace of both nqc and firmdl3

Interestingly the strace for firmdl3 is full of ioctl errors, but it does work!
I didn't notice the message "firmdl3: unlock firmware failed" at the end 
because is just works, dll can be used to upload programs.

I do not have older debian versions at hand, but the same problem exists on a 
raspberry pi with debian 10.12, debian testing and ubuntu 22.04.
execve("/usr/bin/firmdl3", ["firmdl3", "/usr/lib/brickos/brickOS.srec"], 
0x7ffdaee92eb8 /* 53 vars */) = 0
brk(NULL)   = 0x55656f16a000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f73c7154000
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/glibc-hwcaps/x86-64-v4/libc.so.6",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/glibc-hwcaps/x86-64-v4", 
0x7ffc84b58ed0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/glibc-hwcaps/x86-64-v3/libc.so.6",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/glibc-hwcaps/x86-64-v3", 
0x7ffc84b58ed0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/glibc-hwcaps/x86-64-v2/libc.so.6",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/glibc-hwcaps/x86-64-v2", 
0x7ffc84b58ed0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/haswell/avx512_1/x86_64/libc.so.6",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/haswell/avx512_1/x86_64", 
0x7ffc84b58ed0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/haswell/avx512_1/libc.so.6",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/haswell/avx512_1", 
0x7ffc84b58ed0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/haswell/x86_64/libc.so.6",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/haswell/x86_64", 
0x7ffc84b58ed0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/haswell/libc.so.6", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/haswell", 0x7ffc84b58ed0, 
0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/avx512_1/x86_64/libc.so.6",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/avx512_1/x86_64", 
0x7ffc84b58ed0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/avx512_1/libc.so.6", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/avx512_1", 
0x7ffc84b58ed0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/x86_64/libc.so.6", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/x86_64", 0x7ffc84b58ed0, 
0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls/libc.so.6", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/tls", 
0x7ffc84b58ed0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/haswell/avx512_1/x86_64/libc.so.6",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/haswell/avx512_1/x86_64", 
0x7ffc84b58ed0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/haswell/avx512_1/libc.so.6", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/haswell/avx512_1", 
0x7ffc84b58ed0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, 
"/home/sietse/Software/OpenSim/opensim-OK/sdk/lib/haswell/x86_64/libc.so.6", 
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, 

Bug#1015260: Additional information

2022-07-22 Thread Sietse Achterop



I now realize that the main problem maybe is in the device 
/dev/usb/legousbtower0, which is created
when plugging in the IR-tower.

Jul 22 11:53:03 Sietses-PC kernel: [137264.570103] usb 1-9: new low-speed USB 
device number 16 using xhci_hcd
Jul 22 11:53:03 Sietses-PC kernel: [137264.733637] usb 1-9: New USB device 
found, idVendor=0694, idProduct=0001, bcdDevice= 1.00
Jul 22 11:53:03 Sietses-PC kernel: [137264.733642] usb 1-9: New USB device 
strings: Mfr=4, Product=26, SerialNumber=0
Jul 22 11:53:03 Sietses-PC kernel: [137264.733644] usb 1-9: Product: LEGO USB 
Tower
Jul 22 11:53:03 Sietses-PC kernel: [137264.733646] usb 1-9: Manufacturer: LEGO 
Group
Jul 22 11:53:03 Sietses-PC kernel: [137264.736315] legousbtower 1-9:1.0: LEGO 
USB Tower firmware version is 1.0 build 134
Jul 22 11:53:03 Sietses-PC kernel: [137264.736490] legousbtower 1-9:1.0: LEGO 
USB Tower #-160 now attached to major 180 minor 0
Jul 22 11:53:03 Sietses-PC mtp-probe: checking bus 1, device 16: 
"/sys/devices/pci:00/:00:14.0/usb1/1-9"
Jul 22 11:53:03 Sietses-PC mtp-probe: bus: 1, device: 16 was not an MTP device
Jul 22 11:53:03 Sietses-PC mtp-probe: checking bus 1, device 16: 
"/sys/devices/pci:00/:00:14.0/usb1/1-9"
Jul 22 11:53:03 Sietses-PC mtp-probe: bus: 1, device: 16 was not an MTP device

But I assume that it used to word, 15 years ago, so what is changed?

Further the package brickos with command firmdl3 works just fine, so I assume 
that the hardware is ok.



Bug#1015260: nqc: Get "Inappropriate ioctl for device" when trying to "nqc -firmware firm0332.lgo"

2022-07-18 Thread Sietse Achterop
Package: nqc
Version: 3.1.r6-7
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: s.achte...@rug.nl

Compiling works fine, but code cannot be downloaded to the RCX 2.0 via the 
device /dev/usb/legousbtower0.
stty also gives:
  stty: /dev/usb/legousbtower0: Inappropriate ioctl for device


-- System Information:
Debian Release: 11.4
  APT prefers stable
  APT policy: (990, 'stable'), (600, 'unstable'), (500, 'stable-security'), 
(400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-16-amd64 (SMP w/12 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, 
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nqc depends on:
ii  libc62.33-8
ii  libgcc-s1 [libgcc1]  10.2.1-6
ii  libstdc++6   10.2.1-6

nqc recommends no packages.

nqc suggests no packages.

-- no debconf information