| The following warnings occurred: | |||||||||||||||
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.1.34 (Linux)
|
![]() |
|
Freeplay CM4 - Printable Version +- Freeplaytech Forum (https://forum.freeplaytech.com) +-- Forum: Freeplay Zero / Freeplay CM3 / Game Pie Advance (https://forum.freeplaytech.com/forumdisplay.php?fid=24) +--- Forum: Freeplay Zero/CM3 (AKA GPA) Hardware (https://forum.freeplaytech.com/forumdisplay.php?fid=25) +--- Thread: Freeplay CM4 (/showthread.php?tid=5392) |
RE: Freeplay CM4 - Flavor - 07-16-2022 Okay, first of all, I went through your config.txt and cleaned up a LOT of stuff. I think this will work better for you. Some stuff I just totally deleted, and you may want to put some things back in (if you need them) once you get things working. Maybe just make a copy of the current one and then paste this as config.txt. Code: # Uncomment some or all of these to enable the optional hardware interfacesNotice that waveshare32b is commented out. Don't use that with the fbcp-ili9341. It could be your problem. I'll respond to your newest message in a bit, smoscar01. RE: Freeplay CM4 - Flavor - 07-16-2022 (07-15-2022, 02:02 PM)smoscar01 Wrote: Weird update: I touched on this in the previous reply. fbcp-ili9341 compiles in all its SPI settings (like speed, etc.). It doesn't need the waveshare32b line in the config.txt. You should be able to use https://github.com/TheFlav/rpi-fbcp and waveshare32b-fp.dtbo. That would be a good exercise/test, but it won't be as fast/optimized as fbcp-ili9341. If you use fbcp-ili9341, read the INSTALLATION section at https://github.com/juj/fbcp-ili9341 It talks about making sure to REMOVE lines like dtoverlay=waveshare32b and dtparam=spi=on from your config.txt RE: Freeplay CM4 - smoscar01 - 07-16-2022 Thanks for cleaning up the config.txt file! When using this new config file I'm able to run the FreeplayILI9341 options without them throwing the DMA collision error, the program even outputs that it is resetting DMA channels for use`. I'm sometimes getting random issues with these options where only random lines are drawn on all over the screen and the images are rotated 90 degrees, it seems to be swapping the widht/height as per the initial output: Code: pi@retropie:~/Freeplay/FreeplayILI9341 $ sudo ./fbcpFilledThe one I had compiled a while back had a line commented out where `DISPLAY_FLIP_ORIENTATION_IN_SOFTWARE` was set, as per the instructions in this thread: https://forum.freeplaytech.com/showthread.php?tid=4989. This custom version sets the drawable area to 320x240 instead of 240x320 like the FreeplayILI9341 but there's still a lot of artifacts on the screen. Its output is this: Code: pi@retropie:~ $ sudo ./fbcpFilledN64 It seems as if they were trying to draw additional empty lines of pixels on the screen. I noticed both display different BCM core speeds, perhaps the timing to read the pixel lines is incorrect? RE: Freeplay CM4 - Flavor - 07-16-2022 Are you always booting it up with the HDMI connected to your monitor? Try turning it all off, disconnecting HDMI, and then booting it up and run your test. By the way, what sort of HDMI screen do you have? Is it capable of 1024x768? Does it register as a landscape or a portrait mode? I kinda feel like this is getting weirder and weirder. Like, it shouldn't be this difficult, and I'm wondering if there is something else that's running or configured differently that's tripping things up.
RE: Freeplay CM4 - Flavor - 07-16-2022 Maybe try without HDMI for a bit, and use these lines to force the HDMI to 320x240. See if that helps anything. hdmi_group=2 hdmi_mode=87 hdmi_cvt=320 240 60 1 0 0 0 hdmi_force_hotplug=1 RE: Freeplay CM4 - Flavor - 07-16-2022 Also, did you try the one at https://github.com/TheFlav/rpi-fbcp It should be really simple, and it might give a good baseline to see if it just works. You'd have to add this line back in, to use it. dtoverlay=waveshare32b,speed=80000000,fps=60,rotate=270 In theory, you could just edit the config.txt and ... cd ~/Freeplay git clone https://github.com/TheFlav/rpi-fbcp.git cd rpi-fbcp ./install.sh sudo reboot RE: Freeplay CM4 - Flavor - 07-16-2022 I am digging a bit more. I think the CM4 is perhaps running at a core frequency of 500MHz See what https://github.com/MilhouseVH/bcmstat tells you about the frequencies. Oh, I see that your pasted output above shows it at 500000000Hz with "SPI CDIV: 6, SPI max frequency: 83333333hz" That's likely too fast. Anyway, I think the Pi CM3 runs at 400MHz. fbcp-ili9341 uses a scaler to run the SPI communication off that clock. We would now be running the SPI at 1.25x speed if we don't recompile with a different scaler. Read about tuning performance at https://github.com/juj/fbcp-ili9341/blob/master/README.md#tuning-performance You will likely want to change the SPI CDIV scaler to maybe 8. That might still be fast enough and not overdrive the SPI. RE: Freeplay CM4 - Flavor - 07-16-2022 OR, if you don't want to recompile, you MIGHT be able to set this in the config.txt as a test. core_freq=400 RE: Freeplay CM4 - smoscar01 - 07-16-2022 tldr; I am getting an image now but the journey has just begun (not getting audio out of it )Thank you so much, Flavor! So many options to test ![]() The first one about using https://github.com/TheFlav/rpi-fbcp and waveshare32b-fp.dtbo is the one that was set up by default when I ran the Full_install.sh script. Unfortunately that just shows a white screen both when executed by the service or manually in the terminal. I don't have the hdmi plugged in anymore, I only connect it when I need to share a picture here. It is just a random 5 inch raspberry pi monitor I have. From what I can see in its EDID, it does support 1024x768 and it registers as landscape. Tested forcing the resolution to 320x240 from the config file as suggested, with the dtoverlay for waveshare commented out to test the custom binary but the same weird lines are shown on the display. Then tried uncommenting the waveshare dtoverlay and keep forcing the 320x240 resolution to test that with the default TheFlav/rpi-fbcp binary. Rebooted but still nothing shows up on the screen. Haven't gone through the entire bcmstat script but it seems like the CM4 is not supported, and I'm not sure if I'm reading this right but it seems to say the core (or one of them at least) is running at 267MHz or 300Mhz. That doesn't sound right does it? Code: pi@retropie:~ $ ./bcmstat.sh Changing the `core_freq=400` did not change anything when testing with the default TheFlav/rpi-fbcp binary and the waveshare dtoverlay enabled. But it did work when disabling the overlay and using my custom binary (or any of the ones in FreeplayILI9341). They now shows the following 2 lines: Code: bcm_host_get_peripheral_address: 0xfe000000, bcm_host_get_peripheral_size: 25165824, bcm_host_get_sdram_address: 0xc0000000And bcmstat now shows a ~consistent 244MHz core speed: Code: pi@retropie:~ $ ./bcmstat.sh Still reading through juj's repo but are there any consequences on using core_freq=400 vs compiling binaries set to a particular speed? Also, I am not getting any audio out of either the speaker nor the headphone jack and dmesg shows `bcm2835_audio bcm2835_audio: card created with 4 channels`, is it time for me to start throwing things into the config.txt that were removed? RE: Freeplay CM4 - Flavor - 07-16-2022 Maybe forget all about bcmstat. The output from fbcp-ili9341 will show the speed, anyway. So, at core_freq=400, it's working now? Sound is a different issue, so let's make sure video is working. Sound can be several things. It has to be set properly in the config.txt. It's that audremap thing, I think. Then, it also needs to be set up properly in emulationstation. This can be tricky. Play with the settings in there to see if you can get audio. ALSO, with audio, if you have HDMI connected, it could be trying to pump audio over HDMI. You can try playing video files with omxplayer. I think you can test the output using alsa. Maybe try running this commandline. cd /home/pi/Freeplay git clone https://github.com/TheFlav/Freeplay-Support.git omxplayer /home/pi/Freeplay/Freeplay-Support/audiotest.mp4 -o alsa Do you get video and audio from that? |