Fix for VIA Ezra C3 CPUs
Description of Patch
Neither Motion 3.2.4 nor the daily build would run on my VIA Ezra 10000 CPU. It killed as as soon as it attempted to create a JPEG.
There is a known bug concerning the -march=i686 flag. cmov seems to be the missing instruction. The disable cpu optimizations flag fixed the problem but used too much CPU.
Anyhow, here is something that will get motion running well on any Ezra MB using gcc 3.3.6 or higher. Versions less then 3.3.6 should work on the -march=i586 (but could use more optimization), but I cannot test that.
I modified a daily build - motion-20060218-051001. I am not a patch guy - so here is what I changed.
diff configure.in configure.in.orig
681,684d680
< "VIA C3 Ezra")
< CPU_OPTIONS="-march=c3"
< CPU_TYPE="known"
< ;;
If you need something better tested let me know. Otherwise this should get motion working on some hardware well suited to appliance work.
Installation of Patch
Download the patch file. If it is packed as a gz or tar.gz unpack it first. Then copy it to the motion source directory and issue the command (assuming the patch file is called filename_of_patch_file.diff)
patch < filename_of_patch_file.diff
Then re-build Motion and test the patch.
Change History of Patch
Could I kindly ask you to either attach configure.in or make a diff -u (unified) and attach that to this topic.
--
KennethLavrsen - 22 Feb 2006
Done. Never used this page before - I have found the attach button now!
--
JamesVanVleet - 24 Feb 2006
Included in SVN trunk so will be in next daily snap. Thanks
--
AngelCarpintero - 28 Feb 2006