|
Ultrastik and ultrastikcmd on Raspberry Pi
#340028 - 05/14/15 01:07 PM
|
|
|
Hello,
Thanks to the efforts of Andy S the ultrastikcmd program is now available for the raspberry pi. You can find Andy's original post on mameworld here: New version 0.2 of Linux UltraStik map upload tool now available
I've just successfully installed ultrastikcmd on a Raspberry Pi myself so thought I would provide step by step instructions to help others. I'm using a Raspberry Pi 2 with the Retropie Distro but it should work the same on other distros.
Here are the step by step instructions to get this running (thanks to Andy who answered all my questions)
Quote:
Make sure you’re connected to the internet and in the terminal type: wget https://github.com/andrewsil1/UltrastikCmd/archive/master.zip
Once downloaded type: unzip master.zip
Navigate to the unzipped folder: cd UltrastikCmd-Master/
Navigate to libusb-1.0.19: cd libusb-1.0.19/ Type the following: sudo ./configure sudo make sudo make install Once finished navigate back by typing: cd ..
Navigate to libusb-compat-0.1.5: cd libusb-compat-0.1.5/ Type the following: sudo ./configure sudo make sudo make install Once finished navigate back by typing: cd ..
Navigate to libhid-0.2.16: cd libhid-0.2.16/ Type the following: sudo ./configure sudo make sudo make install Once finished navigate back by typing: cd ..
Navigate to ultrastikcmd-0.2: cd ultrastikcmd-0.2/ Type the following: sudo ./configure sudo make sudo make install
Finally type: sudo ldconfig
ultrastikcmd should now be ready to use.
To flash a map to the ultrastik type either: sudo ultrastikcmd -u (full path to map file) or: sudo ultrastikcmd -v -u (full path to map file) if you want more verbose output.
Replace (full path to map file) with the path to the map file you wish to upload. Map files can be found in: /usr/local/share/ultrastikcmd/maps
For example to flash the 4 way map to the ultrastik type: sudo ultrastikcmd -u /usr/local/share/ultrastikcmd/maps/4-Way.um
For a description of the other available arguments type: ultrastikcmd –-help
A big thanks to Andy S for porting this and for helping me compile and install it.
|
|
|
|
Re: Ultrastik and ultrastikcmd on Raspberry Pi
[Re: ruckage]
#386804 - 06/23/20 03:33 AM
|
|
|
Do we know the status of this on Pi 4? When I get into installing libhid (the 3rd primary step) I get errors that look like this during the 'sudo make'
.deps/hid_opening.Tpo -c hid_opening.c -fPIC -DPIC -o .libs/hid_opening.o hid_opening.c: In function 'hid_get_usb_handle': hid_opening.c:79:47: error: '%s' directive output may be truncated writing up to 4096 bytes into a region of size 32 [-Werror=format-truncation=] snprintf(hidif->id, sizeof(hidif->id), "%s/%s[%d]", ^~ hid_opening.c:79:7: note: 'snprintf' output between 5 and 8207 bytes into a destination of size 32 snprintf(hidif->id, sizeof(hidif->id), "%s/%s[%d]", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ usbbus->dirname, usbdev->filename, hidif->interface); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[1]: *** [Makefile:427: hid_opening.lo] Error 1
I can't seem to figure out how to resolve this and get libhid installed properly.
|
|
|