Recalbox
#14
Okay, I worked on this for a while today.  Recalbox is a lot different beast than RetroPie.  I didn't expect it to be quite so different.  Anyway, if you want to get it up and running on the Freeplay Zero, you could try this as a start.

So far, my first impression is that it seems rather slow.  I don't know if it would be that great on the Freeplay Zero.

Download the Pi0 img from https://archive.recalbox.com/ and burn it to your SD card.
When it's done, eject the SD and then put the SD card back into your computer.  You should get a drive called BOOT.

Download these 2 files and place them in the BOOT drive inside the /overlays/ folder:
https://github.com/raspberrypi/firmware/...tdown.dtbo
https://github.com/raspberrypi/firmware/...o-key.dtbo

Then edit the config.txt file in that BOOT drive.  Make it look like this.

Code:
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# Using /etc/modules is deprecated and no longer supported on 4.4 kernel
# So manually enable audio
dtparam=audio=on

#config_hdmi_boost=0

# uncomment for composite PAL
#sdtv_mode=2

# uncomment for lirc-rpi
#dtoverlay=lirc-rpi

# if you plug your tv at the same time as your rpi and that the rpi switches from the hdmi or give a low resolution because tv had no enough time to initialize it
boot_delay=3

# uncomment if you don't want the rainbow at startup
disable_splash=1

# default CEC name
cec_osd_name=recalbox

# Overclock
gpu_mem_256=128
gpu_mem_512=256
gpu_mem_1024=512

avoid_safe_mode=1

kernel=zImage

disable_overscan=0
overscan_left=60
overscan_right=0
overscan_top=26
overscan_bottom=80
overscan_scale=1

hdmi_force_hotplug=1
HDMI_FORCE_MODE=1
hdmi_group=2
hdmi_mode=16
hdmi_drive=1           #Normal DVI mode (No sound) (2 for HDMI with sound)


dtparam=spi=on
dtparam=audio=on
dtoverlay=waveshare32b,speed=80000000,fps=60,rotate=270
#Freeplay Zero
dtoverlay=audremap,swap_lr=off
dtoverlay=gpio-poweroff,gpiopin=21,active_low
# Disable the ACT LED on the Pi Zero.
dtparam=act_led_trigger=none
dtparam=act_led_activelow=on
audio_pwm_mode=2

#left
dtoverlay=gpio-key,gpio=6,keycode=105
#right
dtoverlay=gpio-key,gpio=5,keycode=106
#up
dtoverlay=gpio-key,gpio=4,keycode=103
#down
dtoverlay=gpio-key,gpio=17,keycode=108
#a = a = OK
dtoverlay=gpio-key,gpio=16,keycode=30
#b = s = BACK
dtoverlay=gpio-key,gpio=24,keycode=31
#start = enter
dtoverlay=gpio-key,gpio=19,keycode=28
#select = space
dtoverlay=gpio-key,gpio=26,keycode=57
#x = x
dtoverlay=gpio-key,gpio=15,keycode=45
#y = y
dtoverlay=gpio-key,gpio=18,keycode=21
#l = l
dtoverlay=gpio-key,gpio=14,keycode=38
#r = r
dtoverlay=gpio-key,gpio=23,keycode=19


dtoverlay=gpio-shutdown,gpio_pin=20,active_low=0,gpio_pull=down

The tricky part is that you will likely need HDMI or networking to boot the first time.  You need to set this value in /recalbox/share/system/recalbox.conf
system.fbcp.enabled=1

After you set that, the Freeplay LCD should work (after rebooting).  

This next option was supposed to get sound working (according to a Google search), but it didn't help.
controllers.gpio.args=map=1

See https://github.com/recalbox/recalbox-os/...f-%28EN%29 for more info about ways to edit the settings.  Some are also available in the menu system.

It seems that the Recalbox fbcp is a bit broken.  When booting a ROM, the LCD stopped working.  I have seen this happen when the system tries to switch HDMI resolutions.  There should be no reason for it to switch resolutions (as far as I know), but that's my guess as to what's happening.

By the way, the lines like
dtoverlay=gpio-key,gpio=6,keycode=105
in the config.txt turn the buttons of the Freeplay Zero into keyboard presses.  I'm not sure that's the best way to do it, but it seems to be an easy way to map them to get things up and running.

I hope that gets someone else a bit closer.  I spent a long time on this today, and I am not convinced that RecalBox is going to be so great on the Freeplay Zero anyway.
Card Fighters' Clash 2 English Translation ( http://cfc2english.blogspot.com/ )
Neo Geo Pocket Flash Cart and Linker Project ( http://www.flashmasta.com/ )
Avatar art thanks to Trev-Mun ( http://trevmun.deviantart.com/ )
Reply


Messages In This Thread
Recalbox - by Codey Fauber - 12-11-2017, 06:42 AM
RE: Recalbox - by Flavor - 12-12-2017, 03:27 AM
RE: Recalbox - by Codey Fauber - 12-13-2017, 04:28 AM
RE: Recalbox - by 99.1% Pure - 02-03-2018, 09:17 PM
RE: Recalbox - by Drake - 02-06-2018, 11:01 PM
RE: Recalbox - by Flavor - 02-07-2018, 01:51 AM
RE: Recalbox - by Foxalone - 02-09-2018, 05:47 AM
RE: Recalbox - by 99.1% Pure - 02-10-2018, 05:39 PM
RE: Recalbox - by 99.1% Pure - 02-18-2018, 07:06 PM
RE: Recalbox - by Flavor - 02-20-2018, 05:55 AM
RE: Recalbox - by 99.1% Pure - 02-23-2018, 04:54 PM
RE: Recalbox - by Flavor - 02-24-2018, 08:50 AM
RE: Recalbox - by 99.1% Pure - 02-24-2018, 04:52 PM
RE: Recalbox - by Flavor - 02-28-2018, 11:37 AM
RE: Recalbox - by 99.1% Pure - 03-01-2018, 02:34 AM
RE: Recalbox - by Flavor - 03-01-2018, 03:23 AM
RE: Recalbox - by Flavor - 03-01-2018, 03:22 AM
RE: Recalbox - by Flavor - 03-01-2018, 05:03 AM
RE: Recalbox - by Flavor - 03-01-2018, 07:17 AM
RE: Recalbox - by 99.1% Pure - 03-11-2018, 05:57 PM
RE: Recalbox - by Flavor - 03-13-2018, 02:35 AM
RE: Recalbox - by 99.1% Pure - 03-31-2018, 03:46 PM
RE: Recalbox - by Flavor - 04-04-2018, 07:45 AM
RE: Recalbox - by 99.1% Pure - 04-19-2018, 04:25 PM
RE: Recalbox - by Cleantex (Dragu) - 07-12-2018, 07:24 AM
RE: Recalbox - by Flavor - 07-12-2018, 07:34 AM
RE: Recalbox - by Flavor - 07-13-2018, 08:41 AM
RE: Recalbox - by Cleantex (Dragu) - 07-16-2018, 06:16 AM
RE: Recalbox - by 99.1% Pure - 07-17-2018, 02:13 AM
RE: Recalbox - by Cleantex (Dragu) - 07-17-2018, 04:39 AM
RE: Recalbox - by 99.1% Pure - 07-17-2018, 05:14 AM
RE: Recalbox - by Flavor - 07-17-2018, 06:03 AM
RE: Recalbox - by 99.1% Pure - 07-17-2018, 04:54 PM
RE: Recalbox - by Cleantex (Dragu) - 07-17-2018, 09:32 PM
RE: Recalbox - by 99.1% Pure - 07-18-2018, 02:24 AM
RE: Recalbox - by Flavor - 07-18-2018, 04:06 AM
RE: Recalbox - by Cleantex (Dragu) - 07-18-2018, 07:30 AM
RE: Recalbox - by Flavor - 07-18-2018, 07:36 AM
RE: Recalbox - by Cleantex (Dragu) - 07-19-2018, 01:09 AM
RE: Recalbox - by Flavor - 07-19-2018, 05:14 AM
RE: Recalbox - by Flavor - 07-19-2018, 05:30 AM
RE: Recalbox - by Flavor - 07-19-2018, 08:17 AM
RE: Recalbox - by Cleantex (Dragu) - 07-19-2018, 08:11 PM
RE: Recalbox - by jazzylean - 07-26-2018, 01:47 AM
RE: Recalbox - by burnzie85 - 08-10-2018, 02:27 AM
RE: Recalbox - by Flavor - 08-10-2018, 02:33 AM
RE: Recalbox - by burnzie85 - 08-10-2018, 09:17 AM
RE: Recalbox - by Cleantex (Dragu) - 08-16-2018, 07:28 AM
RE: Recalbox - by Cleantex (Dragu) - 07-28-2018, 06:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)