Difference between revisions of "RPi"
(Remove instructions that are outdated since GIMX 5.7.) |
|||
Line 72: | Line 72: | ||
<!--T:17--> | <!--T:17--> | ||
− | By default, the RPi | + | By default, the RPi UART is configured as a serial console.<br /> |
+ | Disable this serial console using raspi-config: | ||
<pre> | <pre> | ||
sudo raspi-config | sudo raspi-config | ||
Line 80: | Line 81: | ||
"Advanced Options", "Serial", "No", "Finish" | "Advanced Options", "Serial", "No", "Finish" | ||
</pre> | </pre> | ||
− | + | The default configuration does not allow high baudrates.<br /> | |
+ | Enable high baudrates editing /boot/config.txt: | ||
<pre> | <pre> | ||
sudo nano /boot/config.txt | sudo nano /boot/config.txt | ||
Line 88: | Line 90: | ||
init_uart_clock=8000000 | init_uart_clock=8000000 | ||
</pre> | </pre> | ||
− | + | Reboot to apply the changes: | |
<pre> | <pre> | ||
− | sudo | + | sudo reboot |
</pre> | </pre> | ||
Revision as of 13:03, 22 March 2016
Warning: RPi support should be considered as experimental. Be prepared to face issues if you try GIMX on the RPi.
GIMX can run on many Linux targets, and the the Raspberry Pi is one of them!
Contents
Hardware considerations
Use a USB HUB only if there are no ports available on the RPi.
It is highly recommended to use a HUB with an external power supply.
Firmware update
As early firmwares had severe USB issues it is recommended to update the firmware before using GIMX.
Updating the firmware may also be useful if you plan to use a Logitech force feedback wheel (the uhid kernel module was missing in earlier firmwares).
Type the following command:
sudo rpi-update
And don't forget to reboot:
sudo reboot
Tested Rpi firmware:
pi@raspberrypi ~ $ uname -a Linux raspberrypi 4.1.9+ #819 PREEMPT Thu Oct 1 20:31:26 BST 2015 armv6l GNU/Linux
USB adapter using the on-board UART interface
Hardware requirements
The on-board UART runs at 0V/3.3V levels, and the AVR USB board has to run at 5V to operate at 16MHz (running at 3.3V would only allow to operate at 8MHz).
Connecting the RPi and the AVR USB board directly may damage the hardware!
One cheap solution is to use a voltage divider:
- Connect both GNDs
- It's safe to connect the TXD pin of the RPi to the Rx pin of the AVR USB board (the GIMX firmwares configure the Rx pin as an input)
- To connect the Tx pin of the AVR USB board to the RXD pin of the RPi, you'll need to convert the voltage level from 0..5V to 0..3.3V.
This can be done with a simple resistive divider:
Vin is the Tx pin of the AVR USB board, Vout is the RXD pin of the RPi, R1=2.2kΩ , R2=3.3kΩ
- Do not connect any other pin!
Sotware adjustments
By default, the RPi UART is configured as a serial console.
Disable this serial console using raspi-config:
sudo raspi-config
Then select:
"Advanced Options", "Serial", "No", "Finish"
The default configuration does not allow high baudrates.
Enable high baudrates editing /boot/config.txt:
sudo nano /boot/config.txt
Add the following line at the end of the file:
init_uart_clock=8000000
Reboot to apply the changes:
sudo reboot
GIMX installation
sudo apt-get install gdebi wget http://gimx.fr/download/gimx-raspbian -O gimx.deb sudo gdebi gimx.deb
If you get a "Dependency is not satisfiable: ..." error message, upgrade Raspbian:
sudo apt-get update && sudo apt-get upgrade
Stop/disable triggerhappy service
Triggerhappy is a daemon that opens every input device for reading, and that consumes a few percent of the CPU time.
It seems a good idea to stop it while running GIMX.
To stop triggerhappy:
sudo service triggerhappy stop
To disable triggerhappy:
sudo update-rc.d triggerhappy disable
Run GIMX
Read the Quick start page to learn how to run GIMX through the GUI.
A good idea is to run GIMX directly from a terminal, without starting a graphical session.
This can be done over the network, using a ssh client.
Ideally, GIMX should be launched without using the Ethernet port (because it is connected on the USB bus).
More details on command line options on this page.