Recalbox
#11
may be the next week? ):
Reply
#12
I started looking into it today, but (as usual) I got derailed. I do have an SD card with RecalBox on it now, though. Smile
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
#13
the next step is that you make an SD image available!

A big thanks for you
Reply
#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
#15
great .... But my beast is a CM3 .... ahve you any solution for that ?
Reply
#16
I also found that you need to edit these settings in /recalbox/share/system/recalbox.conf
After that, it seems that the LCD works in the emulator.  Unfortunately, it seems that the buttons don't.  :|


Code:
#global.videomode=DMT 87 HDMI
global.videomode=default

#global.ratio=auto
global.ratio=4/3
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
#17
(03-01-2018, 02:34 AM)99.1% Pure Wrote: great .... But my beast is a CM3 .... ahve you any solution for that ?

Yeah, I am working on it.  
See https://forum.recalbox.com/topic/12987/r...-support/7
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
#18
For Freeplay CM3, do all the stuff I mentioned previously, but...
Start With The RecalBox Pi3 image and download this file
https://github.com/raspberrypi/firmware/...pi-cm3.dtb
Copy it to the BOOT partition just after you burn the image to the SD card. It seems to work better than the Pi Zero version. It even has sound.

After that, all I did was edit the config.txt file, and I got HDMI output right away. To get video, I had to edit /recalbox/share/system/recalbox.conf with these options.

system.fbcp.enabled=1
global.videomode=default
global.ratio=4/3

BTW, to ssh in and use nano:
# TERM=xterm
# nano /boot/config.txt

But, I think it's easier to log in on your file explorer and find /share/system/recalbox.conf on the RECALBOX share.
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
#19
By the way, for the dpad down to work properly, you may want to replace the waveshare32b.dtbo that comes with RecalBox (in /boot/overlays) with this one.
https://github.com/TheFlav/Freeplay-Supp...2b-fp.dtbo

After you image the SD card, when you are editing the config.txt file, you can download that and place it in the overlays directory of the SD card. If you put it in there, you can either delete the original waveshare32b.dtbo and rename waveshare32b-fp.dtbo to waveshare32b.dtbo OR you can leave them both there and edit the config.txt file to have

dtoverlay=waveshare32b-fp,speed=80000000,fps=60,rotate=270
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
#20
Hello Flavor,

You work hard to make RecalBox work on CM3 but what you do is very complex for a novice like me ...

Do you think you can offer a 100% functional SD image like Retropie?

Thank you for your answer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)