• [RFH] USB HID testing on sparc64

    From John Paul Adrian Glaubitz@21:1/5 to All on Sun May 11 21:50:01 2025
    Hello,

    could anyone with a sparc64 machine running Linux on bare metal with
    a USB controller help me run a small test program?

    The program can be found in [1]. It can be built and run with:

    glaubitz@stadler:~$ gcc hid-example.c -o hid-example

    root@stadler:~$ /home/glaubitz/hid-example
    Unable to open device: No such file or directory
    root@stadler:~$

    It must be run at root on a machine where a HID USB device is connected
    to the machine, i.e. a mouse or a keyboard which should cause the device
    node /dev/hidraw0 to be created.

    Note: The program needs to be run as root to access /dev/hidraw0.

    Please post the output on this mailing list.

    Thanks,
    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to John Paul Adrian Glaubitz on Sun May 11 22:40:01 2025
    On Sun, 2025-05-11 at 21:45 +0200, John Paul Adrian Glaubitz wrote:
    Hello,

    could anyone with a sparc64 machine running Linux on bare metal with
    a USB controller help me run a small test program?

    The program can be found in [1]. It can be built and run with:

    glaubitz@stadler:~$ gcc hid-example.c -o hid-example

    root@stadler:~$ /home/glaubitz/hid-example
    Unable to open device: No such file or directory
    root@stadler:~$

    It must be run at root on a machine where a HID USB device is connected
    to the machine, i.e. a mouse or a keyboard which should cause the device
    node /dev/hidraw0 to be created.

    Note: The program needs to be run as root to access /dev/hidraw0.

    Please post the output on this mailing list.

    Forgot the link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/samples/hidraw/hid-example.c

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to John Paul Adrian Glaubitz on Mon May 12 13:00:01 2025
    Hello,

    On Sun, 2025-05-11 at 22:32 +0200, John Paul Adrian Glaubitz wrote:
    Please post the output on this mailing list.

    Forgot the link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/samples/hidraw/hid-example.c

    I figured it out in the meantime and sent a pull request upstream, see:

    https://github.com/mozilla/authenticator-rs/pull/349

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)