Go to advanced search

by Vanfanel
Sat Apr 07, 2018 10:03 pm
Forum: C/C++
Topic: Segfaults that only happen on Raspberry Pi and not in X64. What's going on here?
Replies: 11
Views: 650

Re: Segfaults that only happen on Raspberry Pi and not in X64. What's going on here?

I have some updates on this. Your ideas are good, jahboater, but these segfaults on quit (on delete[] and free functions) seem to be happening on X86_64 too if I use the same SDL2 driver, KMSDRM, which I sent for merging... https://github.com/spurious/SDL-mirror/tree/master/src/video/kmsdrm The prob...
by Vanfanel
Mon Apr 02, 2018 9:54 am
Forum: C/C++
Topic: What C/CXX FLAGS does -march=native activate on a Rpi3?
Replies: 5
Views: 342

Re: What C/CXX FLAGS does -march=native activate on a Rpi3?

Thanks, solved. It seems default 6.3.0 it's still using Pi1 flags...
by Vanfanel
Mon Apr 02, 2018 12:05 am
Forum: C/C++
Topic: What C/CXX FLAGS does -march=native activate on a Rpi3?
Replies: 5
Views: 342

What C/CXX FLAGS does -march=native activate on a Rpi3?

That's about it. I am building some software on the Pi3 with the latest Raspbian/GCC combination, and I need to know what GCC flags does -march=native produce on the Pi3. I take it should be something like "-O3 -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard", but I am starting to suspect it's...
by Vanfanel
Fri Mar 30, 2018 9:40 pm
Forum: C/C++
Topic: Segfaults that only happen on Raspberry Pi and not in X64. What's going on here?
Replies: 11
Views: 650

Re: Segfaults that only happen on Raspberry Pi and not in X64. What's going on here?

@jahboater: This Valgrind stuff is really crazy. I am running it on X86_64 because the Pi won't start the game in 10 minutes... Too slow for it. ECWolf causes SO MANY warnings that it won't show them all! ==5361== ==5361== More than 10000000 total errors detected. I'm not reporting any more. ==5361=...
by Vanfanel
Fri Mar 30, 2018 5:24 pm
Forum: C/C++
Topic: Segfaults that only happen on Raspberry Pi and not in X64. What's going on here?
Replies: 11
Views: 650

Re: Segfaults that only happen on Raspberry Pi and not in X64. What's going on here?

@jamesh: ok, before I go try Valgrind, do you have an indea on what could be wrong on ARM vs X64 on a delete call? There's no threading involved to my knowledge, at least in ECWolf.
by Vanfanel
Fri Mar 30, 2018 4:46 pm
Forum: C/C++
Topic: Segfaults that only happen on Raspberry Pi and not in X64. What's going on here?
Replies: 11
Views: 650

Re: Segfaults that only happen on Raspberry Pi and not in X64. What's going on here?

@jamesh: I used GDB already to determine the locations where the Pi-only segfaults happen. How could Valgrind help here? I never used it, only GDB to do C programming.
by Vanfanel
Fri Mar 30, 2018 12:18 pm
Forum: C/C++
Topic: Segfaults that only happen on Raspberry Pi and not in X64. What's going on here?
Replies: 11
Views: 650

Segfaults that only happen on Raspberry Pi and not in X64. What's going on here?

Hi there, I usually build some game engines for the Raspberry Pi, and I have noticed that some code segfaults on the Pi only. In all cases, the code is for deleting C++ objects or freeing memory, and is called on program's exiting code. In ECWolf, for example, there are A LOT of delete[] calls causi...
by Vanfanel
Tue Mar 20, 2018 9:50 am
Forum: Gaming
Topic: Fuse-sdl = blank screen in Raspbian Stretch
Replies: 2
Views: 311

Re: Fuse-sdl = blank screen in Raspbian Stretch

Stop using outdated and bit-rotten libs like SDL1. Use an SDL2 version of FUSE, if such a thing exists, build your own SDL2 from the latest stable sources (2.0.8) and it WILL work.
Ideally, skip SDL and use the FUSE core for libretro instead. End of mistery.
by Vanfanel
Thu Jan 11, 2018 3:47 pm
Forum: Advanced users
Topic: Raspberry Pi 3 CPU powersave feature question
Replies: 4
Views: 454

Re: Raspberry Pi 3 CPU powersave feature question

DougieLawson wrote:
Thu Jan 11, 2018 3:31 pm
None of the Raspberries have any power saving feature. It's not needed when it costs less than £5.00 per year to run one 24/365.
Thanks, Dougie. I thought the ARM cores would have these states implemented anyway, since they are used in mobile setups, etc.
by Vanfanel
Wed Jan 10, 2018 10:50 am
Forum: Advanced users
Topic: Raspberry Pi 3 CPU powersave feature question
Replies: 4
Views: 454

Raspberry Pi 3 CPU powersave feature question

Hi, As you may know, at least on the X86 world CPUs enter so-called c-states to save power when they are idle. Hence passing "idle=poll" to the kernel config parameters disables this option (some people do it to improve system jittering). So, do the ARM cores on a Pi3 have this feature? Can it also ...
by Vanfanel
Fri Nov 24, 2017 11:01 am
Forum: Gaming
Topic: Looking for a Nes Emulator for direct CLI Run
Replies: 3
Views: 761

Re: Looking for a Nes Emulator for direct CLI Run

You just need to build and install RetroArch and a NES core, like FCeumm or Nestopia. The sourcesfor both things are here: https://github.com/libretro My advice is that you do it as a learning exercise and take notes to be able to do it as many times as needed. If you do it right, you can end having...
by Vanfanel
Sat Nov 04, 2017 9:59 pm
Forum: Gaming
Topic: ZXBaremulator v2.0
Replies: 3
Views: 647

Re: ZXBaremulator v2.0

This, sir, is an awesome piece of emulation I currently use on my Pi, along with some RetroArch cores and ADFFS... Thanks A LOT for this!!
by Vanfanel
Mon Oct 16, 2017 5:12 pm
Forum: Gaming
Topic: Retropie vs. SNES Classic
Replies: 6
Views: 6436

Re: Retropie vs. SNES Classic

The Pi runs the Snes Classic Mini emulator (the emulator that the Snes Classic Mini uses, because the Snes Mini is an ARM computer running an emulator) with no problems:
(Well, there's a small problem with the sram files, but it should be easy to fix)

https://board.byuu.org/viewtopic.php?f=16&t=1823
by Vanfanel
Wed Oct 04, 2017 11:03 pm
Forum: Bare metal
Topic: Circle - C++ bare metal environment (with USB)
Replies: 115
Views: 27271

Re: Circle - C++ bare metal environment (with USB)

SDL2 running on Circle would be AWESOME. Or libretro/retroarch. Just imagine all the software automatically available as baremetal by porting those!! @rst: after how FAR you have taken this enviroment, have you thought about adding a simple commanline interface (single-process of course) where one c...
by Vanfanel
Thu Sep 28, 2017 5:55 pm
Forum: Gaming
Topic: The best way to play Laserdisc games on the Raspberry Pi 3
Replies: 2
Views: 805

Re: The best way to play Laserdisc games on the Raspberry Pi 3

Otto wrote:
Thu Sep 28, 2017 7:47 am
Thank you again Vanfanel, keep up the good work!
Test, report, and have fun in the process! :D
by Vanfanel
Tue Sep 26, 2017 7:26 pm
Forum: Gaming
Topic: The best way to play Laserdisc games on the Raspberry Pi 3
Replies: 2
Views: 805

The best way to play Laserdisc games on the Raspberry Pi 3

Hi there! I have fixed Hypseus, a Daphne port to SDL2, so it works on the Pi (it didn't work before because it was doing some gl calls outside the thread where the main window was created, lacked overlays which now work, etc...) You can get the sources here: https://github.com/vanfanel/hypseus Don't...
by Vanfanel
Tue Jun 27, 2017 2:46 pm
Forum: Gaming
Topic: Megadrive emulation on original RPi
Replies: 6
Views: 1556

Re: Megadrive emulation on original RPi

MegaDrive Emulation is fine on the Original Pi which negates the need for a Pi Zero. I would advise a version of PicoDrive which is the best overall MegaDrive/Genesis Emulator available for the Pi. Check the Emulation sticky for info - Link - https://www.raspberrypi.org/forums/viewtopic.php?f=78&t=...
by Vanfanel
Thu Jun 22, 2017 1:54 pm
Forum: Advanced users
Topic: USB keyboard in "single-process" mode
Replies: 2
Views: 480

Re: USB keyboard in "single-process" mode

Then, the problem must be I'm using a cordless keyboard! It's identified as: Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver According to lsusb. It uses a couple of modules, according to lsmod: hid_logitech_hiddpp hid_logitech_dj So, how can I have these modules loaded in "init=/bi...
by Vanfanel
Thu Jun 22, 2017 11:29 am
Forum: Advanced users
Topic: USB keyboard in "single-process" mode
Replies: 2
Views: 480

USB keyboard in "single-process" mode

Hi, For a particular project, I need the Pi to run in single-process mode ("init=/bin/bash" in config,txt, for example, in this case it's our own program). The thing is, UDEV isn't running obviously, so USB keyboard is not working in this mode. In theory, it should be possible to have USB devices wo...
by Vanfanel
Tue May 23, 2017 12:29 am
Forum: Raspbian
Topic: Avoid watchdogd from running
Replies: 0
Views: 278

Avoid watchdogd from running

Hi, I'd like to disable watchdogd for experimentation pourposes. So, I tried "systemd mask watchdogd", "systemd mask watchdog", etc... with no luck. My guess then is that "watchdogd" is a kernel daemon. Any boot parameters to disable it? According to: https://wiki.archlinux.org/index.php/Power_manag...
by Vanfanel
Thu Apr 27, 2017 10:30 am
Forum: Gaming
Topic: ZXBaremulator 35th anniversay edition
Replies: 10
Views: 1774

Re: ZXBaremulator 35th anniversay edition

Wow!! This is INCREDIBLE! Baremetal emulation at last! Who said input lag? :D
Are there plans to port other emulators to this system? C64 would be incredible when run this way!!
by Vanfanel
Tue Apr 11, 2017 6:22 pm
Forum: Gaming
Topic: gzdoom on raspberry pi
Replies: 69
Views: 7862

Re: gzdoom on raspberry pi

Mmmm, gl4es is not called at all :S I have to look at SDL to understand how it create it's windows. Can you give me the ./configure parameter you used tho build SDL? Yes. I use this version of SDL 1.x: https://github.com/joolswills/sdl1 It's needed because stock SDL 1.2.15 is prone to hang on the P...
by Vanfanel
Tue Apr 11, 2017 9:09 am
Forum: Gaming
Topic: gzdoom on raspberry pi
Replies: 69
Views: 7862

Re: gzdoom on raspberry pi

@ptitSeb: yes, I uncommented line 32 as you said. The SDL1 GL test (included on SDL 1.2.15 sources) says this: Couldn't set GL mode: OpenGL not available LIBGL: Initialising gl4es LIBGL: v0.9.5 built on Apr 6 2017 12:03:46 LIBGL: framebuffer output enabled LIBGL:loaded: libbcm_host.so LIBGL:loaded: ...
by Vanfanel
Tue Apr 11, 2017 8:41 am
Forum: Gaming
Topic: gzdoom on raspberry pi
Replies: 69
Views: 7862

Re: gzdoom on raspberry pi

Indeed, that meesage comes from SDL, indicating it tries to create an opengl context but failed. Can you try to uncomment line 32 of src/glx/glx.c of gl4es to have for logs, hopefully the logs will be writen somewhere and can be retreive in some way (did you try to redirect the console to a file al...
by Vanfanel
Mon Apr 10, 2017 11:42 am
Forum: Gaming
Topic: gzdoom on raspberry pi
Replies: 69
Views: 7862

Re: gzdoom on raspberry pi

ptitSeb wrote:So error message is "OpenGL not available"? and that's it. Mmmmm, I'll try to dig in SDL sources to nderstand what is happening.
Yes. There could be more non-readable text because SDL1 disables writting to the console at some point on the Pi without X.

Go to advanced search