Motion - VIA Ezra C 3 Patch

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

  • 1.0 Initial revision

Discussion and Comments


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! wink

-- JamesVanVleet - 24 Feb 2006

Included in SVN trunk so will be in next daily snap. Thanks smile

-- AngelCarpintero - 28 Feb 2006
Topic revision: r6 - 15 Mar 2006, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.