Posts: 1,610
Threads: 19
Joined: Feb 2012
Reputation:
29
Here's what I'd recommend. This is likely to be the easiest way to do it, but there are other ways (like SSH) that I'd probably do it if it were me.
1) Connect a USB keyboard to your Freeplay CM3. If you can also connect HDMI, it will likely be much easier. It's hard to see the text console on the LCD.
2) Boot the Freeplay CM3.
3) At the main menu, hit F4 on the keyboard.
4) type this command
sudo nano /etc/modprobe.d/mk_arcade_joystick.conf
5) There should be exactly ONE line that doesn't start with a #. Find it, and edit one part of it.
CHANGE
gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1,-1,-1,-1,-1
TO
gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
6) Hit CTRL+X and hit Y and then ENTER to exit and save the file
7) Type this command to shut down the Freeplay CM3
sudo reboot
8) Boot the Freeplay CM3
9) At the main menu, hit START and then CONFIGURE INPUTS. Run through all the inputs. At the end, it will ask for the HOTKEY. Tap/Release the power button TWICE.
Posts: 32
Threads: 2
Joined: Oct 2019
Reputation:
0
You guys are the best, thank you! I don't have a TV to connect to, but I'll bring it to campus today and use one there and let you know.
Posts: 32
Threads: 2
Joined: Oct 2019
Reputation:
0
(10-23-2019, 12:42 AM)Flavor Wrote: Here's what I'd recommend. This is likely to be the easiest way to do it, but there are other ways (like SSH) that I'd probably do it if it were me.
1) Connect a USB keyboard to your Freeplay CM3. If you can also connect HDMI, it will likely be much easier. It's hard to see the text console on the LCD.
2) Boot the Freeplay CM3.
3) At the main menu, hit F4 on the keyboard.
4) type this command
sudo nano /etc/modprobe.d/mk_arcade_joystick.conf
5) There should be exactly ONE line that doesn't start with a #. Find it, and edit one part of it.
CHANGE
gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1,-1,-1,-1,-1
TO
gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41,-1,-1,-1,-1
6) Hit CTRL+X and hit Y and then ENTER to exit and save the file
7) Type this command to shut down the Freeplay CM3
sudo reboot
8) Boot the Freeplay CM3
9) At the main menu, hit START and then CONFIGURE INPUTS. Run through all the inputs. At the end, it will ask for the HOTKEY. Tap/Release the power button TWICE.
YES this did it! I feel like I'm learning a lot about how this whole thing works. Thanks for the help!
I do still have one problem though. I bought a USB WiFi dongle to try and download the driver on the CM3 like another user suggested, but the dongle doesn't seem to work out of the package, I need to install a driver first. It is an ASUS AC1200 USB-AC53 Nano WiFi adapter, and the website to download the driver is here. It looks like it doesn't support Linux though, so I guess I can't use it. Is there a WiFi dongle you'd recomment that can be used out of the box?
Posts: 283
Threads: 14
Joined: Oct 2018
Reputation:
10
Most "nano" dongle should work out of the box, I think the model sell on Freeplaytech shop is Edimax EW-7811Un.
If you don't go for this model, try to avoid Ralink dongle, I had a lot of troubles with these.
Posts: 1,610
Threads: 19
Joined: Feb 2012
Reputation:
29
Look at the photos here: https://www.freeplaytech.com/product/edi...i-adapter/
Those are the only two we recommend. I'm not saying that others won't work, but we tested a bunch of them. There are lots of cheap knockoffs out there that will work, but they take extra power and get hot. Depending on what you're doing, maybe that's fine (like if you only use WiFi for a short period while you're setting things up or if you only use WiFi while charging the system).
Posts: 32
Threads: 2
Joined: Oct 2019
Reputation:
0
(10-24-2019, 01:21 AM)Flavor Wrote: Look at the photos here: https://www.freeplaytech.com/product/edi...i-adapter/
Those are the only two we recommend. I'm not saying that others won't work, but we tested a bunch of them. There are lots of cheap knockoffs out there that will work, but they take extra power and get hot. Depending on what you're doing, maybe that's fine (like if you only use WiFi for a short period while you're setting things up or if you only use WiFi while charging the system).
Thanks, I'll get one!
Posts: 32
Threads: 2
Joined: Oct 2019
Reputation:
0
(10-24-2019, 01:21 AM)Flavor Wrote: Look at the photos here: https://www.freeplaytech.com/product/edi...i-adapter/
Those are the only two we recommend. I'm not saying that others won't work, but we tested a bunch of them. There are lots of cheap knockoffs out there that will work, but they take extra power and get hot. Depending on what you're doing, maybe that's fine (like if you only use WiFi for a short period while you're setting things up or if you only use WiFi while charging the system).
Alright, I've placed an order for the dongle. Any idea how to get the fan to work? Or is it already working automatically? Maybe it's just so quiet I can't hear it, but I thought that maybe I would need to do something similar to what I did to get the L2/R2 buttons to work.
Posts: 1,610
Threads: 19
Joined: Feb 2012
Reputation:
29
10-31-2019, 03:07 AM
(This post was last modified: 10-31-2019, 03:13 AM by Flavor.)
(10-30-2019, 03:03 PM)Happyhaha2000 Wrote: Alright, I've placed an order for the dongle. Any idea how to get the fan to work? Or is it already working automatically? Maybe it's just so quiet I can't hear it, but I thought that maybe I would need to do something similar to what I did to get the L2/R2 buttons to work.
Yes. First, make sure you've followed the soldering instructions at https://docs.google.com/document/d/1GkmF...p7xxr08l5l
There is (IN THEORY) a new/easier way and our older/standard way to do it. Read the "Note" there as to why it's not as simple as it should be.
Old/Standard
See https://github.com/TheFlav/rpi-fan
Code: cd /home/pi/Freeplay/
git clone https://github.com/TheFlav/rpi-fan.git
cd rpi-fan/
sudo cp run-fan-service /lib/systemd/system/run-fan.service
sudo systemctl enable run-fan.service
Then reboot to have the fan service run at bootup.
New/Easier
Note: This new/easier way should be fairly simple, but there has been a bug in the gpio-fan overlay module that ships with Raspbian (and RetroPie). I actually am not sure if the latest update fixes this yet or not. If you have the old overlay module, the fan will actually be ON when you boot up and then turn OFF if the CPU gets too hot. Yeah, that's not very useful.
For the time being, you can do this, to get/compile/install the new overlay module.
Code: wget https://raw.githubusercontent.com/raspberrypi/linux/rpi-4.19.y/arch/arm/boot/dts/overlays/gpio-fan-overlay.dts
sudo dtc -W no-unit_address_vs_reg -@ -I dts -O dtb -o /boot/overlays/gpio-fan.dtbo gpio-fan-overlay.dts
Code: sudo nano /boot/config.txt
add one line that looks like this
Code: dtoverlay=gpio-fan,gpiopin=40
You could also change the temperature at which the fan switches on. The parameter is in millicelsius, and the default is 55000 (AKA 55 degrees celsius).
Code: dtoverlay=gpio-fan,gpiopin=40,temp=60000
Also, I would say that the default gpio-fan temp is somewhat aggressive. It will basically run the fan anytime the CPU is in use at all. I think 60C or 65C may be better if you don't want the fan to run as often. Our "old" way of doing it would turn the fan on at 60C and then turn it off when it got down to 55C (if I recall correctly). The gpio-fan module will turn the fan on at the specified temp and then turn it off at 10C less than the turn on setting, and this would be 55C on and 45C off by default.
Posts: 32
Threads: 2
Joined: Oct 2019
Reputation:
0
(10-24-2019, 01:21 AM)Flavor Wrote: Look at the photos here: https://www.freeplaytech.com/product/edi...i-adapter/
Those are the only two we recommend. I'm not saying that others won't work, but we tested a bunch of them. There are lots of cheap knockoffs out there that will work, but they take extra power and get hot. Depending on what you're doing, maybe that's fine (like if you only use WiFi for a short period while you're setting things up or if you only use WiFi while charging the system).
So I've got the Wifi dongle that you recommended, but I get "No Wlan interface detected" when I hit "connect to WiFi network" on the pi. I don't seem to have an IP address either, it's like the dongle isn't connected. What should I do?
Posts: 283
Threads: 14
Joined: Oct 2018
Reputation:
10
11-04-2019, 09:20 PM
(This post was last modified: 11-04-2019, 09:26 PM by Porcinus.)
Did you set the country for the WiFi?
If not : https://github.com/RetroPie/RetroPie-Setup/wiki/Wifi
'raspi-config' can be found in Retropie menu.
If this doesn't work, a possibility is a false contact on Compute Module.
I think Flavor did post a "how to" video about this but I don't know where it is on the forum :S
|