Posts: 16
Threads: 2
Joined: Jul 2018
Reputation:
0
07-20-2020, 03:01 AM
(This post was last modified: 07-20-2020, 03:06 AM by faresdelvalle.)
hope all is well, I just put together my new Freeplay tech board with compute module 3+ and the new add-on to the Boxy pixel dual analog sticks. I followed all instructions the doc attached below https://docs.google.com/document/d/13ztk8Kr4_ORlY7lxX8KTQxo5e22cAsnQaAz2oZtT_ok/edit?usp=sharing I’m currently using the same flash image from my previous Freeplay built. Just to make sure everything is working. However whenever I try to Hold the power switch on for roughly 10sec the Freeplaytech green light won’t start. I removed the Raspberry pi compute module several times from it slot thinking it was that. But every time I place it back into the slot and I hear a soft click which tells me it’s in place.
I removed my old compute module 3 and placed into my new board and it’s working. The new compute module 3+ seems to be the problem.
I flashed Freeplaytech latest .img and it working. How do I update my older .img so it can work with the new Compute module 3+?
Does the Compute module 3+ require different software from the regular Compute module 3?
Words to live by: Make the world better than how we found it
Posts: 1,610
Threads: 19
Joined: Feb 2012
Reputation:
29
I'm sorry about the slow response. It is often difficult for us to reply during the weekend.
You should be able to get your old SD image up and running on the new compute module, but it can be a little tricky. I would definitely recommend making a backup of the SD card before you proceed.
Make sure that the Compute Module 3+ is a "LITE" version.
NOTE that there is a fair chance that this update will "break" the button driver, and you'll need to reinstall it. That's not difficult, but you'll need so SSH in (or maybe use a USB keyboard) to fix that after the reboot.
Insert the original Compute Module 3.
Connect your Freeplay CM3 to the internet.
IF you want to, you may be able to skip the first part if you prefer not to upgrade as much stuff. I'm not 100% sure if it'll work (depending on the current state of your operating system), but you could try it. The script that fixes the button/joystick driver may also update your kernel.
=== FIRST PART / Updating Operating System and Packages ===
Boot up to the main menu.
Select "RetroPie"
Select "RetroPie Setup"
Select "Update"
At "Update Installed Packages" select "Yes"
At "Update the underlying OS packages" select "Yes"
WAIT
Select "Perform Reboot"
=== ===
=== FIX JOYSTICK/BUTTON DRIVER ===
Turn the machine back on.
SSH into the machine (OR connect a keyboard and then hit F4 to get to the command prompt) and type the following
cd /home/pi/Freeplay/mk_arcade_joystick_rpi/
./install.sh
sudo shutdown -h now
=== ===
NOTE!!! If the fix joystick button driver process got a new kernel, it would likely work on the CM3+, but it would also likely need to be re-run, so do the "=== FIX JOYSTICK/BUTTON DRIVER ===" a second time if the buttons still don't work after rebooting. I ran through this entire process while writing this response, and I had to do the joystick driver install twice. The first time it downloaded/installed a bunch of stuff. The second time installed the new driver.
Posts: 16
Threads: 2
Joined: Jul 2018
Reputation:
0
Thank you, I will try this once I get home from work Graveyard shift.
Words to live by: Make the world better than how we found it
Posts: 16
Threads: 2
Joined: Jul 2018
Reputation:
0
the Compute module 3+ final turned on but the controllers are not working.
I did the cd /home/pi/Freeplay/mk_arcade_joystick_rpi/
./install.sh
twice and that did not work.
I did sudo dkms unstall -m mk_arcade_joystick_rpi -v 0.1.5.6
sudo dkms build -m mk_arcade_joystick_rpi -v 0.1.5.7
that did not work
Words to live by: Make the world better than how we found it
Posts: 1,610
Threads: 19
Joined: Feb 2012
Reputation:
29
Please try to post the output of these commands.
cat /etc/modprobe.d/mk_arcade_joystick.conf
dmesg | grep mk_arcade
I would assume that there is a problem with the conf file.
IF you want to try to re-install the joystick/button driver, you can do the following commands...
cd /home/pi/Freeplay/
mv mk_arcade_joystick_rpi mk_arcade_joystick_rpi__old
git clone https://github.com/TheFlav/mk_arcade_joystick_rpi.git
cd /home/pi/Freeplay/mk_arcade_joystick_rpi/
mv /etc/modprobe.d/mk_arcade_joystick.conf /home/pi/Freeplay/mk_arcade_joystick_rpi/mk_arcade_joystick.conf.bak
./install.sh
Posts: 16
Threads: 2
Joined: Jul 2018
Reputation:
0
(07-22-2020, 07:40 AM)Flavor Wrote: Please try to post the output of these commands.
cat /etc/modprobe.d/mk_arcade_joystick.conf
dmesg | grep mk_arcade
I would assume that there is a problem with the conf file.
IF you want to try to re-install the joystick/button driver, you can do the following commands...
cd /home/pi/Freeplay/
mv mk_arcade_joystick_rpi mk_arcade_joystick_rpi__old
git clone https://github.com/TheFlav/mk_arcade_joystick_rpi.git
cd /home/pi/Freeplay/mk_arcade_joystick_rpi/
mv /etc/modprobe.d/mk_arcade_joystick.conf /home/pi/Freeplay/mk_arcade_joystick_rpi/mk_arcade_joystick.conf.bak
./install.sh #options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1 hkmode=2
#this next line is for use with 4 extra buttons (maybe L2,R2,C,Z)
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40 hkmode=2
#this next line is for use with a single PSP1000 analog stick
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41
#this next line is for use with 2 PSP1000 analog sticks
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x2addr=75 y2addr=79 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1 hkmode=2
#this next line is for use with 4 extra buttons (maybe L2,R2,C,Z)
options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40 hkmode=2
#this next line is for use with a single PSP1000 analog stick
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41
#this next line is for use with 2 PSP1000 analog sticks
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x2addr=75 y2addr=79 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41
[ 2.532983] mk_arcade_joystick_rpi: loading out-of-tree module taints kernel.
[ 2.534526] mk_arcade_joystick_rpi: Freeplay Button Driver
[ 2.540174] mk_arcade_joystick_rpi: pad type : 4
[ 2.544961] mk_arcade_joystick_rpi: pad type : 4
Words to live by: Make the world better than how we found it
Posts: 16
Threads: 2
Joined: Jul 2018
Reputation:
0
it looks like my joystick is outdated. I recently did a new img and
sudo nano /etc/modprobe.d/mk_arcade_joystick.conf and this was the results below. I'm currently in
ls /usr/src/
linux-headers-4.19.66+ linux-headers-4.19.66-v7+ mk_arcade_joystick_rpi-0.1.5.6 mk_arcade_joystick_rpi-0.1.5.7 xpad-0.4
##### Options below this line are for v0.1.5.10+ of the driver. Options above this may not function.
#U,D,L,R BTN_START, BTN_SELECT, BTN_A, BTN_B, BTN_TR, BTN_Y, BTN_X, BTN_TL, BTN_MODE, BTN_TL2, BTN_TR2, BTN_C, BTN_Z
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1,-1,-1,-1,-1 hkmode=2
#this next line is for use with 4 extra buttons (maybe L2,R2,C,Z)
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40,-1,-1,-1,-1 hkmode=2
#this next line is for use with a single PSP1000 analog stick
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
#this next line is for use with 2 PSP1000 analog sticks
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x2addr=75 y2addr=79 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
#this next line is an example for use with 8 extra buttons (maybe L2,R2,C,Z,TOP,TOP2,BASE,BASE2)
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40,35,36,37,38 hkmode=2
#this next line is for use with a single PSP1000 analog stick using min/max/fuzz/flat parameters
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x1params=374,3418,16,384 y1params=517,3378,16,384 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
##### Options below this line are for v0.1.5.10 of the driver. Options above this may not function.
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1,-1,-1,-1,-1 hkmode=2
#this next line is for use with a single PSP1000 analog stick
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
#this next line is for use with 2 PSP1000 analog sticks
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x2addr=75 y2addr=79 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
#this next line is for use with a single PSP1000 analog stick using min/max/fuzz/flat parameters
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x1params=374,3418,16,384 y1params=517,3378,16,384 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
##### Options below this line are for v0.1.5.10 of the driver. Options above this may not function.
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1,-1,-1,-1,-1 hkmode=2
#this next line is for use with a single PSP1000 analog stick
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
#this next line is for use with 2 PSP1000 analog sticks
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x2addr=75 y2addr=79 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
#this next line is for use with a single PSP1000 analog stick using min/max/fuzz/flat parameters
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x1params=374,3418,16,384 y1params=517,3378,16,384 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
##### Options below this line are for v0.1.5.10 of the driver. Options above this may not function.
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1,-1,-1,-1,-1 hkmode=2
#this next line is for use with a single PSP1000 analog stick
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
#this next line is for use with 2 PSP1000 analog sticks
options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x2addr=75 y2addr=79 x1params=1176,2868,16,300 y1params=689,2336,16,300 x2params=572,3154,16,300 y2params=354,1762,16,300 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40,35,36,-1,-1
#this next line is for use with a single PSP1000 analog stick using min/max/fuzz/flat parameters
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x1params=374,3418,16,384 y1params=517,3378,16,384 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
Words to live by: Make the world better than how we found it
Posts: 16
Threads: 2
Joined: Jul 2018
Reputation:
0
how do I update to the last
ls /usr/src/ mk_arcade_joystick_rpi-0.1.5.10
Words to live by: Make the world better than how we found it
Posts: 1,610
Threads: 19
Joined: Feb 2012
Reputation:
29
07-26-2020, 03:27 AM
(This post was last modified: 07-28-2020, 02:47 AM by Flavor.)
My earlier post mentioned how to upgrade. I’m sorry. I’m currently only on my phone, so reading/analyzing these long lines is quite difficult. I couldn’t see any obvious errors. The dmesg lines looked as if it were working. Did you use jstest? You should try it.
Do this command:
jstest /dev/input/js0
See more at https://github.com/TheFlav/mk_arcade_joystick_rpi
You can try this.
IF you want to try to re-install the joystick/button driver, you can do the following commands...
cd /home/pi/Freeplay/
mv mk_arcade_joystick_rpi mk_arcade_joystick_rpi__old
git clone https://github.com/TheFlav/mk_arcade_joystick_rpi.git
cd /home/pi/Freeplay/mk_arcade_joystick_rpi/
sudo mv /etc/modprobe.d/mk_arcade_joystick.conf /home/pi/Freeplay/mk_arcade_joystick_rpi/mk_arcade_joystick.conf.bak
./install.sh
Posts: 16
Threads: 2
Joined: Jul 2018
Reputation:
0
good morning hope all is well, so when i do the command I'm denied permission
pi@retropie:~ $ cd /home/pi/Freeplay/
pi@retropie:~/Freeplay $ mv mk_arcade_joystick_rpi mk_arcade_joystick_rpi__old
pi@retropie:~/Freeplay $ git clone https://github.com/TheFlav/mk_arcade_joystick_rpi.git
Cloning into 'mk_arcade_joystick_rpi'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 793 (delta 9), reused 2 (delta 0), pack-reused 774
Receiving objects: 100% (793/793), 1.52 MiB | 378.00 KiB/s, done.
Resolving deltas: 100% (448/448), done.
pi@retropie:~/Freeplay $ cd /home/pi/Freeplay/mk_arcade_joystick_rpi/
pi@retropie:~/Freeplay/mk_arcade_joystick_rpi $ mv /etc/modprobe.d/mk_arcade_joystick.conf /home/pi/Freeplay/mk_arcade_joystick_rpi/mk_arcade_joystick.conf.bak
mv: cannot move '/etc/modprobe.d/mk_arcade_joystick.conf' to '/home/pi/Freeplay/mk_arcade_joystick_rpi/mk_arcade_joystick.conf.bak': PERMISSION DENIED
pi@retropie:~/Freeplay/mk_arcade_joystick_rpi $
Words to live by: Make the world better than how we found it
|