patjak / facetimehd-firmware

FacetimeHD firmware download and extraction tool
GNU General Public License v2.0
93 stars 29 forks source link

Facetimehd 'Exec format error' #7

Open BirdWitch8 opened 4 years ago

BirdWitch8 commented 4 years ago

I've used this for a while, usually having to re-input the code at various times when my computer updates to fix my camera again. It usually works. However, now I've encountered an error.

I think the issue is after the sudo modprobe facetimehd step, where I'm getting this output: modprobe: ERROR: could not insert 'facetimehd': Exec format error

Any ideas?

ryanhammonds commented 3 years ago

HI @BirdWitch8, I got the same error. But I found this in bcwc_pcie docs and the below suggestion solved the issue for me:

If sudo modprobe facetimehd fails, run dmesg. If you get facetimehd: version magic '4.13.0-37-generic SMP mod_unload ' should be '4.13.0-38-generic SMP mod_unload ', or similar, you may manually edit the file via sudo vim /lib/modules/4.13.0-38-generic/extra/facetimehd.ko and replace vermagic=4.13.0-37-generic SMP mod_unload with vermagic=4.13.0-38-generic SMP mod_unload. Then you may be able to sudo modprobe facetimehd without any issues.

In my case, there were two directories containing /lib/modules/5.4.0-39-generic and /lib/modules/5.4.0-42-generic with extra/facetimehd.ko files that I had to modify as suggested above.

davidfoxcroft commented 3 years ago

I had this issue also, but it resolved when I ran make clean before each of the makes.