Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dual Arcade Sticks (NationZ Chipset) RoPI on "Pandoras Box 6"
3.4.113 is mostly unsupported by now, old scripts, deprecated repositories etc, so go mainline.
start from here
(11-28-2019, 04:55 PM)alexkidd Wrote: 3.4.113 is mostly unsupported by now, old scripts, deprecated repositories etc, so go mainline.
start from here

So i should just be able to clone that, grab the config from the current 4.3 Ropi and build a new kernel?
I'll have a go at this after the weekend, and see where i end up. (Time to spin up a fresh new VM Smile )
yes, check this:

basically i build an image with the following command in a SCREEN session:

you can probably run only './' and follow the dialog
I do it manually to create patches and customize an images

get familiar with the build options and post again when you stumble and fall
I've built kernel, but the version differs from the current img already Smile

As an exercise i wish to reproduce the work of my friendly Chinese supplier who can not share the source code changes for things he did.
(I don't want to wave GPL license at him, you know how it works, his boss won't let him.)

Anyway, I want to reproduce the effort, as i know 3.4.113 is a stable version. It also offers the flexible cga/hdmi switching and stops me from re-inventing the wheel.
If i want gpio-detected CGA switch, i'll need to reverse engineer the u-boot that was supplied to me with this board.
Basically, this enables us/me to release a stable 4.2 with working GPIO joystick that everybody with a Pandora's Box 6 can use.

If i go back to the start of this topic, and reproduce that, i see that 'legacy' gets me a 4.19.86 kernel which i can't use at all.
The more recent mainline is already up a newer version too but with modules etc replaced it boots. No idea about device tree, i never used this mechanism. No idea how to add those extra resolutions yet.

For 3.4.113 i've already figured out the resolution adding method, i just need to compile it properly so it boots without the UMP errors.

My current method was:

1. Pull config from the SD img
2. Load that as config
3. Compile kernel and drop into /boot

Everything looks ok, but UMP error. What am i missing? Do i need to compile other things to go along with the kernel?

Edit: I've restarted compile with for opi-2 and see what will become of it Wink Goodnite!
Hardware acceleration in legacy kernel 3.4.113 requires ump.ko and mali.ko modules and their user space libraries . Add them to /etc/modules if they’re present or build them
3.4.113 Kernel booted and working, this name for modules is 3.4.113+ for some reason. Mali works, everything seems OK. 
Time to look into some new video resolutions, and add the kernel headers to the SD image so i can build the GPIO joystick drivers on the device itself.
Note to self: I didn't change any config, or copied config from sd whatsoever, just basic build with nothing changed target opi2.
Since the board comes with a nice heatsink and fan, i've clocked it at 1.5Ghz, and it seems to run just fine. No issues in games, i left it for burn-in test around 4 hours Smile
This 1.5Ghz is just perfect for running Midway DCS Wolf-Unit games (NBA Hangtime, Ultimate Mortal Kombat 3 and Rampage World Tour for example.)
And yes i set the things needed correctly Smile

For normal CPU scaling to work, the pmuic_type = 1 in script bin.
My board came with a pre-built image up to 1,368 Ghz @ 1.4

I have 1.563 Ghz @ 1.4 right now which seems to work fine.

This is when running NBA Hangtime:
current policy: frequency should be within 408 MHz and 1.54 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.54 GHz (asserted by call to hardware).
  cpufreq stats: 60.0 MHz:0.00%, 120 MHz:0.00%, 240 MHz:0.00%, 312 MHz:0.00%, 408 MHz:0.04%, 480 MHz:0.00%, 504 MHz:0.00%, 528 MHz:0.00%, 576 MHz:0.00%, 600 MHz:0.00%, 624 MHz:0.00%, 648 MHz:0.00%, 672 MHz:0.00%, 720 MHz:0.00%, 768 MHz:0.00%, 816 MHz:0.00%, 864 MHz:0.00%, 912 MHz:0.00%, 960 MHz:0.00%, 1.01 GHz:0.00%, 1.06 GHz:0.00%, 1.10 GHz:0.00%, 1.15 GHz:0.00%, 1.20 GHz:0.00%, 1.25 GHz:0.00%, 1.30 GHz:0.00%, 1.34 GHz:0.00%, 1.44 GHz:0.00%, 1.54 GHz:99.96%  (3)

This game is quite heavy on the cpu, any way to get back those 3.0% cpu cycles from python? Wink
Tasks: 105 total,   2 running, 103 sleeping,   0 stopped,   0 zombie
%Cpu(s): 26.4 us,  0.5 sy,  0.0 ni, 73.1 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   1024808 total,   431240 used,   593568 free,    15056 buffers
KiB Swap:   512400 total,        0 used,   512400 free.   221756 cached Mem

1424 pi        20   0  174820  72796   8656 R 103.0  7.1  10:07.66 retroarch
1118 pi        20   0   51344  15532   6384 S   3.0  1.5   0:25.97 python
1127 root      20   0       0      0      0 S   0.7  0.0   0:02.97 kworker/u:4
   24 root      20   0       0      0      0 S   0.3  0.0   0:01.88 kworker/0:1

Edit: Scratch that, the board just crash on me running NARC for 30 minutes, guess my NBA Hangtime testing wasn't up to par Sad(
I've built the Jamma / GPIO kernel module and adjusted the script.bin so that it matches the one i got from the supplier.
The link below contains a testing image of 4.2 SLIM built for Pandora Games X "2600-in-1" model.
This image contains no roms, only tweaks and kernel module etc. other than that it's the same as normal slim, same 'out of box' experience where you need to set up your buttons, roms, etc.

- This is only suitable for Pandora hardware, nothing else.
- NO CGA JUST YET - Still working on it!
- HDMI is at 720p60
- If you need VGA 4:3 use h3disp and vga mode 31 (640x480).
- Also note you'll need to edit the modeline in advancemame to match this resolution.
- First boot will resize your SD card to max.
- HDMI does not work on my Sony Led TV if connected at boot, so if you get no picture, insert power plug and wait a bit(3 seconds or so) before inserting the HDMI cord Wink!PhBwXKwC!MtDtVyn-Gv0Aa...zwrZ2wdtK8 (604 MB)

I'd love to hear from any users what the experience is with this. From hardware/speed perspective, it can run MK3 and UMK3 on the Mame2003+ core from retroarch, but just about lacks the speed to run Narc and Hangtime. CPS1/2/3 and many more should be just fine. I didn't test n64 or anything else, but cpu is at 1.368Ghz max and Mali GPU is at optimal settings.


Possibly Related Threads...
Thread Author Replies Views Last Post
  CGA 15hz Arcade Monitor ribasrogerio 1 644 05-07-2019, 01:18 AM
Last Post: ribasrogerio
  Arcade game 'Aspect Ratio' tweaks (not resolution) SKT73 3 2,008 10-29-2018, 09:26 PM
Last Post: alexkidd
  Clone ROPI 4.1 from EMMC to MicroSD garcia 2 1,418 08-02-2018, 10:53 PM
Last Post: alexkidd
  FPS drops (every game and emulator) when used two arcade joysticks (pcb brook ps4) webfly 3 2,376 07-15-2018, 05:36 PM
Last Post: alexkidd
  Well i need helo...ropi not booting..special case masteripper 4 2,246 07-15-2018, 01:27 PM
Last Post: masteripper
  Arcade monitor 15khz ribasrogerio 2 1,704 07-10-2018, 04:52 AM
Last Post: ribasrogerio
  Orangepi pc image comes out of the screen Ropi 4.1 juliodias0297 8 5,873 05-21-2018, 12:19 PM
Last Post: juliodias0297
  OPANGEPI PC ROPI 4.1 gamepad problem 8 6,247 05-05-2018, 08:48 AM
Last Post: djcasl
  how to remove kodi from ropi 4.1? Garrafinha 2 2,088 04-20-2018, 07:26 PM
Last Post: Garrafinha
  where i can dowload ROPI 3.1 1 1,778 03-19-2018, 09:46 AM
Last Post: alexkidd

Forum Jump:

Users browsing this thread: 3 Guest(s)