Caanoo / WIZ Universal Binary For Wiz And Canoo?


GernotFrisch

Member
Joined
Jan 2, 2007
Messages
445
Hi,

is it possible to have one binary running on both devices?
If no, is there a safe way for a bash script to tell if it's on Wiz or Canoo to run the appropriate binary?

KTHXBYE
 
Wiz executables are not compatible with Caanoo. I think Picodrive uses two executables in one file and a test at the beggining of the code. If you want to use a script, you can use this.

Code:
#!/bin/sh
 if [ -e /dev/accel ]; then
     echo "You have a Caanoo"
 else
     if [ -e /dev/grp3d ]; then
        echo "You have a Wiz"
     else
           echo "You have a GP2X"
     fi
 fi
 
I think you could also test for /dev/batt to see difference between f100 and f200? /dev/batt was removed from f200 for some reason. But i don't know about open2x though.
 
If the Caanoo and Wiz use similar hardware, then how are they not binary-compatible? What is the difference between an average Wiz binary and an average Caanoo binary?
 
While the processor is exactly the same AFAIK, it is the operating systems/runtime libraries that are incompatible. While those are also very similar on both devices (Linux, glibc, SDL etc.), they are set up to use different binary formats. The Wiz uses "GNU EABI, software FP, VFP", while the Canoo uses "Version4 EABI".
 
Back
Top