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