irixxxx / picodrive

Fast MegaDrive/MegaCD/32X emulator
Other
55 stars 24 forks source link

No sound on Dingoo a320's opendingux #39

Closed abrusco closed 2 years ago

abrusco commented 3 years ago

Irixxxx,

I managed to run Picodrive 1.98 (PicoDrive-dge_1.98.zip) on OpenDingux from Dingoo A320. But it's completely muted.

Version 1.91 works normally

irixxxx commented 3 years ago

AFAICT it's a problem of uClibc, which is the base C library used in (open)dingux. There seems to be a problem having a different version of the SDL shared library in the OS than what was used in the toolchain I used to make the build.

I'm not really sure this can be fixed in a satisfactory manner, apart from making a different build for all the toolchains floating around (I used the latest legacy dingux toolchain I could find for the dge, IIRC from 2012 or 2013), which might be a bit over the top for me.

If you can make your own builds make a picodrive build with the toolchain associated with the OS version installed on your A320 (look at tools/release.sh for "build instructions" :-D), and report back if that is working for you. A pointer to the binary toolchain install would be useful that case.

If somebody would supply tested (!) builds with other toolchains I would be willing to put them up on the release page ;-)

abrusco commented 3 years ago

I did another test with Legacy Dingux and the sound works fine. However, in Opendingux it doesn't work.

image Kernel version: 3.4.0-dingux-00051-gd072659 compiled on Sat Jun 16 21:33:06 CEST 2012 Root file system version: 2010.11-00104-g1331540 compiled on Sat Jun 16 17:03:53 CEST 2012 Processor: JZ4740 O controller i li9325

irixxxx commented 3 years ago

The toolchain I used for the build is explicitly legacy dingux. I'm not surprised it's not running on opendingux. I don't have the device, so I can't test myself. If this opendingux on A320 can use opk packages please try the gcw0 version. That's the oldest opendingux release I'm providing right now, IIRC build with a toolchain from 2013 or 2014.

abrusco commented 3 years ago

Legacy Opendingux on a320 only suport pge packages. I found the latest version of the source code and the latest compiled version that works correctly on the A320. https://github.com/notaz/picodrive/releases/ https://pyra-handheld.com/boards/resources/picodrive-1-93-opendingux.4558/ image

Would it be possible to use the same compilation parameters to generate a new compatible version? ps. Sorry, English isn't my first language. Feel free to correct me.

irixxxx commented 3 years ago

Hmm, it's probably not a question of parameters,but a question of the toolchain used for compiling. Do you have a corresponding toolchain for the a320 opendingux? In that case try compiling the current picodrive with that.

abrusco commented 3 years ago

Hmm, it's probably not a question of parameters,but a question of the toolchain used for compiling. Do you have a corresponding toolchain for the a320 opendingux? In that case try compiling the current picodrive with that.

I tried to download the latest version of Toolchain but apparently all sites are down. http://www.treewalker.org/opendingux/ http://www.treewalker.org/opendingux/opendingux-toolchain.2012-06-16.tar.bz2 http://prizma.bmstu.ru/~exmortis/gcw0-toolchain-cygwin.2012-10-21.tar.gz

If you can find it let me know I'm trying to build it. Thank you!

Edit: I found inarchive.org https://web.archive.org/web/20190806104208/http://www.treewalker.org/opendingux/a320.html

irixxxx commented 3 years ago

hmm, I used a 2012 toolchain for this. It might well be that toolchain you referenced :-/ The only slightly obscure option in my release build is "-mabicalls", which IIRC is needed for rzx50 which is the only dingux device from that age I have. You could try compiling without that and see if it works better.

abrusco commented 3 years ago

I have never compiled anything for Opendingux before. I unzipped the toolchain, installed several packages but couldn't compile "helloworld.c"... Apparently the tools only work on Linux x86. I also could not make the right version of qemu work ... :(

irixxxx commented 3 years ago

IIRC there's a cygwin version for windows as well. I never used it, though.

abrusco @.***> schrieb am Fr., 15. Okt. 2021, 02:18:

I have never compiled anything for Opendingux before. I unzipped the toolchain, installed several packages but couldn't compile "helloworld.c"... Apparently the tools only work on Linux x86. I also could not make the right version of qemu work ... :(

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/irixxxx/picodrive/issues/39#issuecomment-943858397, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHR2L4UW2BT36KJ4HQFFQD3UG5XNFANCNFSM5FTPUONQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

irixxxx commented 2 years ago

Is this problem still there with the 1.99 release files?

abrusco commented 2 years ago

Sound now works on DINGUX And Opendingux!!!! Great!!!