<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://gimx.fr/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Maxaille</id>
	<title>GIMX - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://gimx.fr/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Maxaille"/>
	<link rel="alternate" type="text/html" href="https://gimx.fr/wiki/index.php?title=Special:Contributions/Maxaille"/>
	<updated>2026-05-15T09:20:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.7</generator>
	<entry>
		<id>https://gimx.fr/wiki/index.php?title=RPi&amp;diff=4618</id>
		<title>RPi</title>
		<link rel="alternate" type="text/html" href="https://gimx.fr/wiki/index.php?title=RPi&amp;diff=4618"/>
		<updated>2016-02-07T13:51:48Z</updated>

		<summary type="html">&lt;p&gt;Maxaille: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
&amp;lt;translate&amp;gt;&lt;br /&gt;
&amp;lt;!--T:1--&amp;gt;&lt;br /&gt;
'''Warning: RPi support should be considered as experimental. Be prepared to face issues if you try GIMX on the RPi.'''&lt;br /&gt;
&lt;br /&gt;
GIMX can run on many Linux targets, and the [http://www.raspberrypi.org/ the Raspberry Pi] is one of them!&lt;br /&gt;
== Tested setup == &amp;lt;!--T:2--&amp;gt;&lt;br /&gt;
 * Raspberry Pi: model B, 256MB&lt;br /&gt;
 * Distro: [http://www.raspberrypi.org/downloads Raspbian Jessie] (2015-09-24)&lt;br /&gt;
 * '''Self-powered USB hub''': Belkin 7 ports F4U017 (self-powered = with an external power supply)&lt;br /&gt;
 * Keyboard: n25te plugged on the USB hub&lt;br /&gt;
 * Mouse: Logitech G500 plugged on the USB hub&lt;br /&gt;
 * PS3: FAT - FW 4.41&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;!--T:3--&amp;gt;&lt;br /&gt;
* Bluetooth dongle: Pluscom BT20 (CSR Bluecore4-rom) plugged on the USB hub&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;!--T:4--&amp;gt;&lt;br /&gt;
* DIY USB adapter: Teensy 2.0 + CP2102 plugged on the USB hub&lt;br /&gt;
&lt;br /&gt;
== Firmware update == &amp;lt;!--T:5--&amp;gt;&lt;br /&gt;
As early firmwares had severe USB issues it is recommended to update the firmware before using GIMX.&amp;lt;br /&amp;gt;&lt;br /&gt;
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).&amp;lt;br /&amp;gt;&lt;br /&gt;
Type the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo rpi-update&amp;lt;/pre&amp;gt;&lt;br /&gt;
And don't forget to reboot:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
Tested Rpi firmware:&lt;br /&gt;
&amp;lt;pre&amp;gt;pi@raspberrypi ~ $ uname -a&lt;br /&gt;
Linux raspberrypi 4.1.9+ #819 PREEMPT Thu Oct 1 20:31:26 BST 2015 armv6l&lt;br /&gt;
GNU/Linux&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;!--== UHID kernel module ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:6--&amp;gt;&lt;br /&gt;
If you plan to use a Logitech force feedback wheel, you will have to build the uhid.ko module for your kernel.&amp;lt;br /&amp;gt;&lt;br /&gt;
Install the right version of gcc, as explained here: [https://github.com/notro/rpi-source/wiki link].&amp;lt;br /&amp;gt;&lt;br /&gt;
Update your kernel:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo rpi-update&amp;lt;/pre&amp;gt;&lt;br /&gt;
In case the kernel was updated, reboot:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
Install the rpi-source tool:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source &amp;amp;&amp;amp; sudo chmod +x /usr/bin/rpi-source &amp;amp;&amp;amp; /usr/bin/rpi-source -q --tag-update&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run rpi-source:&lt;br /&gt;
&amp;lt;pre&amp;gt;rpi-source&amp;lt;/pre&amp;gt;&lt;br /&gt;
This step may take a while to complete.&amp;lt;br /&amp;gt;&lt;br /&gt;
Install ncurses:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install libncurses5-dev&amp;lt;/pre&amp;gt;&lt;br /&gt;
Enable the UHID module compilation:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd linux&lt;br /&gt;
make menuconfig&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select Device Drivers&amp;gt;HID support&amp;gt;User-space I/O driver support for HID subsystem. The line should start with '&amp;lt;M&amp;gt;'.&amp;lt;br /&amp;gt;&lt;br /&gt;
To speed up the compilation, you can disable all other modules in the HID support section and subsections.&amp;lt;br /&amp;gt;&lt;br /&gt;
Save the config to the default location and exit.&amp;lt;br /&amp;gt;&lt;br /&gt;
Build the module:&lt;br /&gt;
&amp;lt;pre&amp;gt;make prepare&lt;br /&gt;
make scripts&lt;br /&gt;
make M=drivers/hid&amp;lt;/pre&amp;gt;&lt;br /&gt;
Install it:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo cp drivers/hid/uhid.ko /lib/modules/`uname -r`/kernel/drivers/hid/&lt;br /&gt;
sudo depmod -a&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&amp;lt;!--mkdir dest&lt;br /&gt;
make INSTALL_HDR_PATH=dest headers_install&lt;br /&gt;
sudo cp dest/include/linux/uhid.h /usr/include/linux/--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== GIMX installation == &amp;lt;!--T:7--&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install gdebi&lt;br /&gt;
wget http://gimx.fr/download/gimx-raspbian -O gimx.deb&lt;br /&gt;
sudo gdebi gimx.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:8--&amp;gt;&lt;br /&gt;
If you get a &amp;quot;Dependency is not satisfiable: ...&amp;quot; error message, upgrade Raspbian:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get update &amp;amp;&amp;amp; sudo apt-get upgrade&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Stop/disable triggerhappy service == &amp;lt;!--T:9--&amp;gt;&lt;br /&gt;
[https://github.com/wertarbyte/triggerhappy/blob/master/README Triggerhappy] is a daemon that opens every input device for reading, and that consumes a few percent of the CPU time.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:10--&amp;gt;&lt;br /&gt;
It seems a good idea to stop it while running GIMX.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:11--&amp;gt;&lt;br /&gt;
To stop triggerhappy:&lt;br /&gt;
 sudo service triggerhappy stop&lt;br /&gt;
To disable triggerhappy:&lt;br /&gt;
 sudo update-rc.d triggerhappy disable&lt;br /&gt;
&lt;br /&gt;
== Run GIMX == &amp;lt;!--T:12--&amp;gt;&lt;br /&gt;
Read the [[Quick_Start|Quick start page]] to learn how to run GIMX through the GUI.&amp;lt;br /&amp;gt;&lt;br /&gt;
A good idea is to run GIMX directly from a terminal, without starting a graphical session.&amp;lt;br /&amp;gt;&lt;br /&gt;
This can be done over the network, using a ssh client.&amp;lt;br /&amp;gt;&lt;br /&gt;
Ideally, GIMX should be launched without using the Ethernet port (because it is connected on the USB bus).&amp;lt;br /&amp;gt;&lt;br /&gt;
More details on command line options on [[Command_line|this page]].&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Bluetooth ===&lt;br /&gt;
In a terminal:&lt;br /&gt;
 gimx -t Sixaxis -c &amp;lt;config file&amp;gt; -b &amp;lt;PS3 bdaddr&amp;gt;&lt;br /&gt;
The dongle address has to be changed before running the above commands.&lt;br /&gt;
&lt;br /&gt;
=== DIY USB adapter === &amp;lt;!--T:13--&amp;gt;&lt;br /&gt;
In a terminal:&lt;br /&gt;
 gimx -c &amp;lt;config file&amp;gt; -p /dev/&amp;lt;ttyUSB port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== USB adapter using the on-board UART interface ===&lt;br /&gt;
&lt;br /&gt;
==== Hardware requirements ====&lt;br /&gt;
&lt;br /&gt;
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).&amp;lt;br /&amp;gt;&lt;br /&gt;
Connecting the RPi and the AVR USB board directly may damage the hardware!&amp;lt;br /&amp;gt;&lt;br /&gt;
One cheap solution is to use a voltage divider:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Connect both GNDs&lt;br /&gt;
* 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)&lt;br /&gt;
* 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.&amp;lt;br /&amp;gt;&lt;br /&gt;
This can be done with a simple resistive divider:&lt;br /&gt;
&amp;lt;div class=&amp;quot;image200px&amp;quot;&amp;gt;[http://gimx.fr/img/wiki/Resistive_divider.png http://gimx.fr/img/wiki/Resistive_divider.png]&amp;lt;/div&amp;gt;&lt;br /&gt;
Vin is the Tx pin of the AVR USB board, Vout is the RXD pin of the RPi, R1=2.2kΩ , R2=3.3kΩ&lt;br /&gt;
* Do not connect any other pin!&lt;br /&gt;
&lt;br /&gt;
=== Without DIY USB adapter === &amp;lt;!--T:14--&amp;gt; &lt;br /&gt;
&lt;br /&gt;
====RPi preparation==== &amp;lt;!--T:15--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:16--&amp;gt;&lt;br /&gt;
This manipulation is compatible with:&lt;br /&gt;
Raspberry Pi A+	&lt;br /&gt;
Raspberry Pi B	&lt;br /&gt;
Raspberry Pi B+	&lt;br /&gt;
Raspberry Pi 2&lt;br /&gt;
Raspberry Pi Zero&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:17--&amp;gt;&lt;br /&gt;
By default, the RPi send debug messages on the UART port. To use it for GIMX, we should execute:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo raspi-config &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then select:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;Advanced Options&amp;quot;, &amp;quot;Serial&amp;quot;, &amp;quot;No&amp;quot;, &amp;quot;Finish&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We should now change the baudrate from 3MHz to 8MHz:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /boot/config.txt&lt;br /&gt;
==========================&lt;br /&gt;
init_uart_clock=8000000 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We will now install GIMX:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install gdebi&lt;br /&gt;
wget http://gimx.fr/download/gimx-raspbian -O gimx.deb&lt;br /&gt;
sudo gdebi gimx.deb&lt;br /&gt;
sudo service triggerhappy stop&lt;br /&gt;
sudo update-rc.d triggerhappy disable&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If there is no X server running after reboot, execute:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
startx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And we will bind AMA0 to the USB port&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo ln -s /dev/ttyAMA0 /dev/ttyUSB0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Схема подключения ==== &amp;lt;!--T:22--&amp;gt;&lt;br /&gt;
Данная схема работает только у меня!!!&lt;br /&gt;
Как сказал автор опасно применять схему, из за 5 вольт на UART Teensy возможно это можно решить прошивкой...&amp;lt;br&amp;gt;&lt;br /&gt;
Либо делителем описание тут [http://gimx.fr/forum/viewtopic.php?p=4485#p4485]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;/div&gt;</summary>
		<author><name>Maxaille</name></author>
		
	</entry>
	<entry>
		<id>https://gimx.fr/wiki/index.php?title=RPi&amp;diff=4617</id>
		<title>RPi</title>
		<link rel="alternate" type="text/html" href="https://gimx.fr/wiki/index.php?title=RPi&amp;diff=4617"/>
		<updated>2016-02-07T13:30:49Z</updated>

		<summary type="html">&lt;p&gt;Maxaille: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
&amp;lt;translate&amp;gt;&lt;br /&gt;
&amp;lt;!--T:1--&amp;gt;&lt;br /&gt;
'''Warning: RPi support should be considered as experimental. Be prepared to face issues if you try GIMX on the RPi.'''&lt;br /&gt;
&lt;br /&gt;
GIMX can run on many Linux targets, and the [http://www.raspberrypi.org/ the Raspberry Pi] is one of them!&lt;br /&gt;
== Tested setup == &amp;lt;!--T:2--&amp;gt;&lt;br /&gt;
 * Raspberry Pi: model B, 256MB&lt;br /&gt;
 * Distro: [http://www.raspberrypi.org/downloads Raspbian Jessie] (2015-09-24)&lt;br /&gt;
 * '''Self-powered USB hub''': Belkin 7 ports F4U017 (self-powered = with an external power supply)&lt;br /&gt;
 * Keyboard: n25te plugged on the USB hub&lt;br /&gt;
 * Mouse: Logitech G500 plugged on the USB hub&lt;br /&gt;
 * PS3: FAT - FW 4.41&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;!--T:3--&amp;gt;&lt;br /&gt;
* Bluetooth dongle: Pluscom BT20 (CSR Bluecore4-rom) plugged on the USB hub&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;!--T:4--&amp;gt;&lt;br /&gt;
* DIY USB adapter: Teensy 2.0 + CP2102 plugged on the USB hub&lt;br /&gt;
&lt;br /&gt;
== Firmware update == &amp;lt;!--T:5--&amp;gt;&lt;br /&gt;
As early firmwares had severe USB issues it is recommended to update the firmware before using GIMX.&amp;lt;br /&amp;gt;&lt;br /&gt;
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).&amp;lt;br /&amp;gt;&lt;br /&gt;
Type the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo rpi-update&amp;lt;/pre&amp;gt;&lt;br /&gt;
And don't forget to reboot:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
Tested Rpi firmware:&lt;br /&gt;
&amp;lt;pre&amp;gt;pi@raspberrypi ~ $ uname -a&lt;br /&gt;
Linux raspberrypi 4.1.9+ #819 PREEMPT Thu Oct 1 20:31:26 BST 2015 armv6l&lt;br /&gt;
GNU/Linux&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;!--== UHID kernel module ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:6--&amp;gt;&lt;br /&gt;
If you plan to use a Logitech force feedback wheel, you will have to build the uhid.ko module for your kernel.&amp;lt;br /&amp;gt;&lt;br /&gt;
Install the right version of gcc, as explained here: [https://github.com/notro/rpi-source/wiki link].&amp;lt;br /&amp;gt;&lt;br /&gt;
Update your kernel:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo rpi-update&amp;lt;/pre&amp;gt;&lt;br /&gt;
In case the kernel was updated, reboot:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo reboot&amp;lt;/pre&amp;gt;&lt;br /&gt;
Install the rpi-source tool:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source &amp;amp;&amp;amp; sudo chmod +x /usr/bin/rpi-source &amp;amp;&amp;amp; /usr/bin/rpi-source -q --tag-update&amp;lt;/pre&amp;gt;&lt;br /&gt;
Run rpi-source:&lt;br /&gt;
&amp;lt;pre&amp;gt;rpi-source&amp;lt;/pre&amp;gt;&lt;br /&gt;
This step may take a while to complete.&amp;lt;br /&amp;gt;&lt;br /&gt;
Install ncurses:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install libncurses5-dev&amp;lt;/pre&amp;gt;&lt;br /&gt;
Enable the UHID module compilation:&lt;br /&gt;
&amp;lt;pre&amp;gt;cd linux&lt;br /&gt;
make menuconfig&amp;lt;/pre&amp;gt;&lt;br /&gt;
Select Device Drivers&amp;gt;HID support&amp;gt;User-space I/O driver support for HID subsystem. The line should start with '&amp;lt;M&amp;gt;'.&amp;lt;br /&amp;gt;&lt;br /&gt;
To speed up the compilation, you can disable all other modules in the HID support section and subsections.&amp;lt;br /&amp;gt;&lt;br /&gt;
Save the config to the default location and exit.&amp;lt;br /&amp;gt;&lt;br /&gt;
Build the module:&lt;br /&gt;
&amp;lt;pre&amp;gt;make prepare&lt;br /&gt;
make scripts&lt;br /&gt;
make M=drivers/hid&amp;lt;/pre&amp;gt;&lt;br /&gt;
Install it:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo cp drivers/hid/uhid.ko /lib/modules/`uname -r`/kernel/drivers/hid/&lt;br /&gt;
sudo depmod -a&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&amp;lt;!--mkdir dest&lt;br /&gt;
make INSTALL_HDR_PATH=dest headers_install&lt;br /&gt;
sudo cp dest/include/linux/uhid.h /usr/include/linux/--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== GIMX installation == &amp;lt;!--T:7--&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install gdebi&lt;br /&gt;
wget http://gimx.fr/download/gimx-raspbian -O gimx.deb&lt;br /&gt;
sudo gdebi gimx.deb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:8--&amp;gt;&lt;br /&gt;
If you get a &amp;quot;Dependency is not satisfiable: ...&amp;quot; error message, upgrade Raspbian:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get update &amp;amp;&amp;amp; sudo apt-get upgrade&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Stop/disable triggerhappy service == &amp;lt;!--T:9--&amp;gt;&lt;br /&gt;
[https://github.com/wertarbyte/triggerhappy/blob/master/README Triggerhappy] is a daemon that opens every input device for reading, and that consumes a few percent of the CPU time.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:10--&amp;gt;&lt;br /&gt;
It seems a good idea to stop it while running GIMX.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:11--&amp;gt;&lt;br /&gt;
To stop triggerhappy:&lt;br /&gt;
 sudo service triggerhappy stop&lt;br /&gt;
To disable triggerhappy:&lt;br /&gt;
 sudo update-rc.d triggerhappy disable&lt;br /&gt;
&lt;br /&gt;
== Run GIMX == &amp;lt;!--T:12--&amp;gt;&lt;br /&gt;
Read the [[Quick_Start|Quick start page]] to learn how to run GIMX through the GUI.&amp;lt;br /&amp;gt;&lt;br /&gt;
A good idea is to run GIMX directly from a terminal, without starting a graphical session.&amp;lt;br /&amp;gt;&lt;br /&gt;
This can be done over the network, using a ssh client.&amp;lt;br /&amp;gt;&lt;br /&gt;
Ideally, GIMX should be launched without using the Ethernet port (because it is connected on the USB bus).&amp;lt;br /&amp;gt;&lt;br /&gt;
More details on command line options on [[Command_line|this page]].&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Bluetooth ===&lt;br /&gt;
In a terminal:&lt;br /&gt;
 gimx -t Sixaxis -c &amp;lt;config file&amp;gt; -b &amp;lt;PS3 bdaddr&amp;gt;&lt;br /&gt;
The dongle address has to be changed before running the above commands.&lt;br /&gt;
&lt;br /&gt;
=== DIY USB adapter === &amp;lt;!--T:13--&amp;gt;&lt;br /&gt;
In a terminal:&lt;br /&gt;
 gimx -c &amp;lt;config file&amp;gt; -p /dev/&amp;lt;ttyUSB port&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== USB adapter using the on-board UART interface ===&lt;br /&gt;
&lt;br /&gt;
==== Hardware requirements ====&lt;br /&gt;
&lt;br /&gt;
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).&amp;lt;br /&amp;gt;&lt;br /&gt;
Connecting the RPi and the AVR USB board directly may damage the hardware!&amp;lt;br /&amp;gt;&lt;br /&gt;
One cheap solution is to use a voltage divider:&amp;lt;br /&amp;gt;&lt;br /&gt;
* Connect both GNDs&lt;br /&gt;
* 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)&lt;br /&gt;
* 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.&amp;lt;br /&amp;gt;&lt;br /&gt;
This can be done with a simple resistive divider:&lt;br /&gt;
&amp;lt;div class=&amp;quot;image200px&amp;quot;&amp;gt;[http://gimx.fr/img/wiki/Resistive_divider.png http://gimx.fr/img/wiki/Resistive_divider.png]&amp;lt;/div&amp;gt;&lt;br /&gt;
Vin is the Tx pin of the AVR USB board, Vout is the RXD pin of the RPi, R1=2.2kΩ , R2=3.3kΩ&lt;br /&gt;
* Do not connect any other pin!&lt;br /&gt;
&lt;br /&gt;
=== Without DIY USB adapter (RU) === &amp;lt;!--T:14--&amp;gt; &lt;br /&gt;
&lt;br /&gt;
====RPi preparation==== &amp;lt;!--T:15--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:16--&amp;gt;&lt;br /&gt;
This manipulation is compatible with:&lt;br /&gt;
Raspberry Pi A+	&lt;br /&gt;
Raspberry Pi B	&lt;br /&gt;
Raspberry Pi B+	&lt;br /&gt;
Raspberry Pi 2&lt;br /&gt;
Raspberry Pi Zero&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:17--&amp;gt;&lt;br /&gt;
By default, the RPi send debug messages on the UART port. To use it for GIMX, we should execute:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo raspi-config &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then select:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;Advanced Options&amp;quot;, &amp;quot;Serial&amp;quot;, &amp;quot;No&amp;quot;, &amp;quot;Finish&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We should now change the baudrate from 3MHz to 8MHz:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /boot/config.txt&lt;br /&gt;
==========================&lt;br /&gt;
init_uart_clock=8000000 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We will now install GIMX:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install gdebi&lt;br /&gt;
wget http://gimx.fr/download/gimx-raspbian -O gimx.deb&lt;br /&gt;
sudo gdebi gimx.deb&lt;br /&gt;
sudo service triggerhappy stop&lt;br /&gt;
sudo update-rc.d triggerhappy disable&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If there is no X server running after reboot, execute:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
startx&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And we will bind AMA0 to the USB port&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo ln -s /dev/ttyAMA0 /dev/ttyUSB0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Схема подключения ==== &amp;lt;!--T:22--&amp;gt;&lt;br /&gt;
Данная схема работает только у меня!!!&lt;br /&gt;
Как сказал автор опасно применять схему, из за 5 вольт на UART Teensy возможно это можно решить прошивкой...&amp;lt;br&amp;gt;&lt;br /&gt;
Либо делителем описание тут [http://gimx.fr/forum/viewtopic.php?p=4485#p4485]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;/div&gt;</summary>
		<author><name>Maxaille</name></author>
		
	</entry>
</feed>