Unable to find firmware in the file.

Bug #409622 reported by jesse.w
54
This bug affects 10 people
Affects Status Importance Assigned to Milestone
iSight Firmware Tools
Fix Released
Undecided
Unassigned

Bug Description

I found the AppleUSBVideoSupport file in /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport

I copied it to a made directory /media/MacOSX/

then cd into that directory and ran "sudo ift-extract --apple-driver AppleUSBVideoSupport"

This is what it spit back:

jesse@jesse-laptop:/media/MacOSX$ sudo ift-extract --apple-driver AppleUSBVideoSupport

** (ift-extract:4147): WARNING **: Unknown driver. Please report it to https://bugs.launchpad.net/isight-firmware-tools/+filebug with machine description and Mac OS X version.

** ERROR **: Unable to find firmware in the file.
aborting...
Aborted

ideas?

Revision history for this message
Étienne BERSAC (bersace) wrote :

Hi,

As the software say, please report the driver file (preferabiliy by private mail) plus machine and OS description.

Regards,
Étienne.

Changed in isight-firmware-tools:
status: New → Incomplete
Revision history for this message
xx (dead-xx) wrote :
Revision history for this message
debrouxl (lionel-debroux) wrote :

Same driver file here, MacOS X 10.6.2 on a MacBook Pro 2.

Revision history for this message
ibrahim tunali (ibrahimtunali) wrote :

Ubuntu Karmic x86, MacOS 10.6.2, isight-firmware-tools-1.5.90

** (ift-extract:10598): WARNING **: Unknown driver.

Revision history for this message
gf (gfcyb.org) wrote :

I have the same problem (as above reported by other people).

My system is: Apple Aluminium iMac 7.1 24" (cpu Intel Core 2 Duo @ 2.4GHz 64bit)
My Mac OS X version is: 10.6.2
My Linux Ubuntu distro is: 10.04 Alpha 3
My isight-firmware-tools package version is: 1.4.2-3

I will not attach any firmware file, since mines is exactly/binary equal to the above ones (i checked the one ulpoaded by xx user).

Here it is the terminal output for this command:
          ift-extract -a /media/Poesia/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport

** (ift-extract:20195): WARNING **: Unknown driver. Please report it to https://bugs.launchpad.net/isight-firmware-tools/+filebug with machine description and Mac OS X version.

** ERROR **: Unable to find firmware in the file.
aborting...
Trace/breakpoint trap (core dump creato)

Revision history for this message
Jeroen van der Vegt (ajvdvegt) wrote :

Other driver (md5sum: f023f4c062081c4091c3eff865e66602), but same problem: no firmware found.

MacBookPro6,2, MacOSX 10.6.3

Revision history for this message
Étienne BERSAC (bersace) wrote :

Hi, same as bug #487330. The firmware is declared half sized. That should be an update of 10.6.2.

Revision history for this message
Étienne BERSAC (bersace) wrote :

Hi,

Can you try 10.6.3 driver with ift-extract 1.5.91 ?

Étienne

Revision history for this message
Jeroen van der Vegt (ajvdvegt) wrote : Re: [Bug 409622] Re: Unable to find firmware in the file.

Sure, no problem! I just cannot find the new version on launchpad:
https://launchpad.net/isight-firmware-tools/+download .

And please note that on my firmware, my 'tool' gives about 20
possibilities. I do not yet know how to find the correct one. Could
you help me perhaps? I had some trouble understanding the directions
in extract.c, and I assume you do understand them. This is the hint on
where to find the firmware in extract.c:

  * If a file does not work, you may need to add an entry here. To find
  * the offset in the driver file, use a hexadecimal editor (e.g. ghex)
  * and search for "USBSend". You will find data like this :
  *
  * "start USBSend #4 returned 0x%x.....X.....4.~.........%\"
  * ^
The thing is, I cannot find this complete, exact string.

I was experimenting with the offset from the other patch in Launchpad
for MacOSX.6.3. That offset happens to 'work' for me (the firmware
extractor extracts something from that offset), but I'm not sure that
offset is correct. Using an hex-editor, I end up 5 characters before
the '%\', just as indicated in extract.c . Is this the way to go:

- find the sentence 'start USBSend #4 returned'
- find the next occurrence of '%\'
- count back 5 bytes.

Jeroen

2010/5/9 Etienne BERSAC <email address hidden>:
> Hi,
>
> Can you try 10.6.3 driver with ift-extract 1.5.91 ?
>
> Étienne
>
> --
> Unable to find firmware in the file.
> https://bugs.launchpad.net/bugs/409622
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
yuval (yuval-drori) wrote :

Hi Étienne!

Thanks for your reply - I appreciate it! I have just cloned your tree
and built it on my newly install lucid machine. This is the output I
got:

sudo ift-extract -a
/media/hd/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport
** Message: Found firmware signature at offset 0x2010.

** ERROR **: Invalid firmware data_length 16453, load aborted
aborting...
Aborted

My osX install is 10.6.3 - no updates available and I am using a new
lucid 64 bit install. I will be happy to try whatever needed.

Thanks!
Yuval Drori

On Sun, May 9, 2010 at 6:48 PM, Etienne BERSAC <email address hidden> wrote:
> Hi,
>
> Can you try 10.6.3 driver with ift-extract 1.5.91 ?
>
> Étienne
>
> --
> Unable to find firmware in the file.
> https://bugs.launchpad.net/bugs/409622
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in Apple Built-in iSight Firmware Tools for Linux: Incomplete
>
> Bug description:
> I found the AppleUSBVideoSupport file in /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport
>
> I copied it to a made directory /media/MacOSX/
>
> then cd into that directory and ran "sudo ift-extract --apple-driver AppleUSBVideoSupport"
>
> This is what it spit back:
>
> jesse@jesse-laptop:/media/MacOSX$ sudo ift-extract --apple-driver AppleUSBVideoSupport
>
> ** (ift-extract:4147): WARNING **: Unknown driver. Please report it to https://bugs.launchpad.net/isight-firmware-tools/+filebug with machine description and Mac OS X version.
>
> ** ERROR **: Unable to find firmware in the file.
> aborting...
> Aborted
>
>
> ideas?
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/isight-firmware-tools/+bug/409622/+subscribe
>

Revision history for this message
Étienne BERSAC (bersace) wrote :

Hi,

That should be fixed in latest 1.5.92 :)

Actually, Apple did an update on the firmware. I now guess the version bytes in the head of the firmware. I added a tests/Makefile.am to run ift-extract on all the driver i collected so far. Everythings looks good.

While debugging stuff with linux UVC driver maintainer, i added 3 fixes to the firmware USB self publishing. So everyone is encouraged to update. That may increase quality. All fixes apply to both old and new firmware.

Thanks for the report and help.

Regards,
Étienne

Changed in isight-firmware-tools:
status: Incomplete → Fix Released
Revision history for this message
Jeroen van der Vegt (ajvdvegt) wrote :

Hi Etienne,

You've been busy! This seems like much more user- (and maintainer- :)) friendly version! Extracting seems to work for my driver, as a firmware file of 10852 bytes is extracted (fw version 2.38.83). Does that make sense to you?

I tried programming the firmware anyway, without actually running 'make install':

user@laptop:~/projects/isight-firmware-tools-1.5.92$ sudo ./src/ift-load --firmware isight.fw
ift-load: USB device 0x05AC:0x8300 not found
ift-load: No iSight found
user@laptop:~/projects/isight-firmware-tools-1.5.92$

It seems the device code has been changed for the new macbooks pro, so I've attached the relevant part of 'sudo lsusb -v'.

Note that I spotted various typo's in the ift-export manpage, you might want to have a look at those before a next release.

Thanks for the credits,

Jeroen.

Revision history for this message
yuval (yuval-drori) wrote :

Works perfect!

Thanks!
Yuval

On Mon, May 10, 2010 at 11:26 PM, Etienne BERSAC <email address hidden> wrote:
> ** Changed in: isight-firmware-tools
>       Status: Incomplete => Fix Released
>
> --
> Unable to find firmware in the file.
> https://bugs.launchpad.net/bugs/409622
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in Apple Built-in iSight Firmware Tools for Linux: Fix Released
>
> Bug description:
> I found the AppleUSBVideoSupport file in /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport
>
> I copied it to a made directory /media/MacOSX/
>
> then cd into that directory and ran "sudo ift-extract --apple-driver AppleUSBVideoSupport"
>
> This is what it spit back:
>
> jesse@jesse-laptop:/media/MacOSX$ sudo ift-extract --apple-driver AppleUSBVideoSupport
>
> ** (ift-extract:4147): WARNING **: Unknown driver. Please report it to https://bugs.launchpad.net/isight-firmware-tools/+filebug with machine description and Mac OS X version.
>
> ** ERROR **: Unable to find firmware in the file.
> aborting...
> Aborted
>
>
> ideas?
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/isight-firmware-tools/+bug/409622/+subscribe
>

Revision history for this message
Étienne BERSAC (bersace) wrote :

Hi,

Actually, i will release it as 2.0. The change is quite substancial.

> user@laptop:~/projects/isight-firmware-tools-1.5.92$ sudo ./src/ift-load --firmware isight.fw
> ift-load: USB device 0x05AC:0x8300 not found
> ift-load: No iSight found
> user@laptop:~/projects/isight-firmware-tools-1.5.92$
>
> It seems the device code has been changed for the new macbooks pro, so
> I've attached the relevant part of 'sudo lsusb -v'.

The product id is supposed to be exposed by the firmware. Can you check
you're firmware has "AC 05 01 85" and not "AC 05 07 85" at offset 0x2356
of your firmware (or send it).

> Note that I spotted various typo's in the ift-export manpage, you
> might want to have a look at those before a next release.

I'll check this. I updated the website (2 years without update). And
translations have to be updated too.

Regards,
Étienne

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.