Orange Pi

General Chat, Feel Free To talk about anything here.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Orange Pi

Post by Matlo »

GIMX requires root privileges: https://gimx.fr/wiki/index.php?title=De ... the_setuid
And input devices should be set to the input group: https://gimx.fr/wiki/index.php?title=De ... ermissions
GIMX creator
chuchuchuchu
Posts: 12
Joined: Mon Dec 19, 2016 5:04 pm

Re: Orange Pi

Post by chuchuchuchu »

Hi all,

As summary, I tried compiling by myself different customized armbian 5.24, enabling kernel Joystick support, following the official armbian building guide https://docs.armbian.com/Developer-Guid ... eparation/:
  • armbian 5.24 with kernel 3.4.113-sun8i (jessie) - Joysticks detected under /dev/input/js*
  • armbian 5.24 with kernel 4.9.0-sun8i (jessie) - Joysticks not detected under /dev/input/js*
  • armbian 5.24 with kernel 3.4.113-sun8i (xenial) - Joysticks not detected under /dev/input/js*
  • armbian 5.24 with kernel 4.9.0-sun8i (xenial) - Joysticks not detected under /dev/input/js*
I went ahead with armbian 5.24 with kernel 3.4.113-sun8i (jessie). Using GIMX for raspbian https://gimx.fr/download/gimx-raspbian, DS4 and Wheel were detected successfully (joystick not found message disappeared) and DS4 worked properly on PS4 but the Wheel did not (Message linux/uhidasync.c:223 wait_watch: select timed out remained appearing)

I decided to compile GIMX directly under armbian following https://gimx.fr/wiki/index.php?title=De ... t_on_Linux instructions and once commented some lines related to FILE_ARCH and DOWNLOAD_URL variables (they were not allowing to compile it properly and they does not seem critical) GIMX was compiled but unfortunately, the behavior was the same :(

I tried increasing the time variable under uhidasync.c wait_watch function from 5 to 20 (I don't remember its name now) with no positive result.
Compiling and using agsync tools to check it independently I saw that linux/uhidasync.c:223 wait_watch: select timed out message appears always after native mode is already enabled for HID device 08:01:00:00 (PID=ca03) message using these gasync tools also.

I will keep trying it. For sure it is possible with Orange Pi Zero + armbian as i have saw on links below:
http://page4.auctions.yahoo.co.jp/jp/auction/d215324976 -> GIMX on armbian jessie 5.24
https://item.mercari.com/jp/m173237415/ -> GIMX on armbian jessie 5.24 + Orange Pi Zero (1 USB port)
https://item.mercari.com/jp/m888178184/ -> GIMX on armbian jessie 5.24 + Orange Pi Zero + USB HUB (3 USB port)
[youtube]https://www.youtube.com/watch?v=RBSpeiuD9LM[/youtube]
fishe972
Posts: 8
Joined: Wed Aug 10, 2016 2:30 pm

Re: Orange Pi

Post by fishe972 »

Yipeee!!! Gimx works on opi pc.i will post tomorrow what i have done. Matlo where right . It was due to the kernel.i activated joystick dev and ev in kernel config and tadaa works with my dfgt and g25. I will write a tutorial later this weekend .but chuchuchuchu dont give up.it works.tried with ttyusb and gimx 6.4 .gimx now does see the ttys uart port also , i will try with it before posting in order to make a complete tuto.thanks matlo
Cybereu
Posts: 182
Joined: Sun Jul 10, 2011 1:10 pm

Re: Orange Pi

Post by Cybereu »

Im testing it with DietPi, my only trouble was that wireless module didn't load at boot, solve to that was cpy and paste this on terminal:

Code: Select all

cat << _EOF_ > /etc/systemd/system/xradio_wlan.service
[Unit]
Description=xradio_wlan
After=network.target network-online.target

[Service]
Type=oneshot
RemainAfterExit=yes

ExecStartPre=/bin/bash -c 'modprobe xradio_wlan'
ExecStartPre=/bin/bash -c 'iwconfig wlan0 power off'
ExecStart=/bin/bash -c 'ifup wlan0'

[Install]
WantedBy=multi-user.target
_EOF_
systemctl enable xradio_wlan.service
systemctl daemon-reload
Cant get it working on dietpi, couldnt install bluez package.
titanium
Posts: 3
Joined: Thu Nov 09, 2017 8:02 pm

Re: Orange Pi

Post by titanium »

fishe972 wrote: Fri Feb 10, 2017 8:30 pm Yipeee!!! Gimx works on opi pc.i will post tomorrow what i have done. Matlo where right . It was due to the kernel.i activated joystick dev and ev in kernel config and tadaa works with my dfgt and g25. I will write a tutorial later this weekend .but chuchuchuchu dont give up.it works.tried with ttyusb and gimx 6.4 .gimx now does see the ttys uart port also , i will try with it before posting in order to make a complete tuto.thanks matlo
Hi I have the same problem... the intersting thing is that joystick dev & ev is activated on my kernel. But I'have got the same messages like chuchuchuchu . it seams that my logitech or ps4 controller not work as it should. Do you have documented the steps you did to get it to work?

thx
titanium
Posts: 3
Joined: Thu Nov 09, 2017 8:02 pm

Re: Orange Pi

Post by titanium »

Yes! :mrgreen: :mrgreen: I have got gimx to work with my Orange Pi. Like fishe972 mention, I also have had to make my own kernel with the joystick support (variable JOYDEV). I tested it with my Logitech G25 wheel and it works perfectly! thx gimx!

here https://www.perrini.ch/wp-content/uploa ... rmbian.zip you can download the whole image for the orange pi zero .
If you have another wheel than the logitech g25 you only change the activel.xml .

username: root
password: orangepi

use it to list the available config
./gimx_list_configs.sh

use it to change the active config
./gimx_change_config.sh LogitechG27_G29.xml

greetings
titanium
mkubiak
Posts: 12
Joined: Sat May 06, 2017 2:36 pm

Re: Orange Pi

Post by mkubiak »

Nice job titanium, im actually building my own image for OPIZ i'll try Yours in meantime.

One thing is for sure none of the prebuild images have cp210x module enabled, any other things You noticed that could ease the process of building?
VincenzoDM123
Posts: 1
Joined: Wed Jan 03, 2018 9:29 pm

Re: Orange Pi

Post by VincenzoDM123 »

Hi, @titanium for Orange PI Zero I need the DIY Adapter for use G27 on PS4? Thanks!
Any Tutorial is good for use it!
eguibs
Posts: 3
Joined: Thu Oct 19, 2017 9:07 pm

Re: Orange Pi

Post by eguibs »

Hi titanium i wanted to say thanks for your prepared iso it helped me a lot to make my g25 works on ps4

i just had to do few tweaks to cpus and services because there was some FFB issues but now it's working almost perfectly (just a last minor bugs sometimes randomly the g25 is not calibrated correctly and is not centered ..)

but anyway thanks!!


Ah et merci a toi matlo c'est trop cool ton taf :D
Post Reply