Firmware keywords for processor IDing ? - page 2 - General Discussion and Assistance - CHDK Forum

Firmware keywords for processor IDing ?

  • 15 Replies
  • 9585 Views
*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Firmware keywords for processor IDing ?
« Reply #10 on: 08 / December / 2007, 16:09:25 »
Advertisements
You can get a lot of VxWorks firmwares here.

Which version of IDA are you using ?
5.0+
CHDK Developer.

*

linuxGuy

Re: Firmware keywords for processor IDing ?
« Reply #11 on: 08 / December / 2007, 16:21:25 »
Thanks for sharing the link.  Getting them all at once worked quite well.

Did you write the tool that got you the str list for the A610 ?

Are developers running Windows or Linux ?  Any chance the Windows guys have a Unix environment installed ? Cygwin ?  I usually write tools for Linux.  I'm running Fedora 8 right now.

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Firmware keywords for processor IDing ?
« Reply #12 on: 08 / December / 2007, 16:37:21 »
> Did you write the tool that got you the str list for the A610 ?
Nope. I used IDA Pro. It generates string list automatically. IDA is very powerful disassembling tool (see screenshot attached).

> Are developers running Windows or Linux ?
The both.

> Any chance the Windows guys have a Unix environment installed ? Cygwin ?
Actually, the environment for CHDK building under Windows uses unix-tools (sh, gmake, gcc, awk, etc), but Mingw-based (not Cygwin).

> I usually write tools for Linux.  I'm running Fedora 8 right now.
My host system is WinXP. But I have Ubuntu installed under VmWare.
CHDK Developer.

*

Offline jeff666

  • ****
  • 181
  • A720IS
Re: Firmware keywords for processor IDing ?
« Reply #13 on: 09 / December / 2007, 09:44:41 »
.c: lots of matches.  Very interesting 
[...]
I am surprised to see so many .c function names embedded in the firmware.   Is it possible that Canon ships debug stuff in their production code ? 

The Filenames are used by the assert-command.

Have a look at http://chdk.wikia.com/wiki/DryOS_Porting, the assert-function is explained there.

Cheers.


*

linuxGuy

Re: Firmware keywords for processor IDing ?
« Reply #14 on: 09 / December / 2007, 12:38:33 »
The Filenames are used by the assert-command.

OK.

Quote
Have a look at http://chdk.wikia.com/wiki/DryOS_Porting, the assert-function is explained there.

I am very familiar with assert functions, having written a lot of code and used them myself.  The thing I don't understand is why there were left in the code on a production camera.  Our practice was to strip them all out of production code. 

I guess everyone has their own way of approaching things.   Having those asserts in the shipped code certainly makes our job a lot easier !

*

Offline jeff666

  • ****
  • 181
  • A720IS
Re: Firmware keywords for processor IDing ?
« Reply #15 on: 09 / December / 2007, 13:03:00 »
I am very familiar with assert functions, having written a lot of code and used them myself.

I expected that everybody knows what the assert function does. The interesting thing here is how the function is called and if that gives us any clues (it does).

The thing I don't understand is why there were left in the code on a production camera.  Our practice was to strip them all out of production code. 

Two guesses:
1. It helps canon's support staff
2. They just didn't care

no guess: It helps us.

Cheers.

 

Related Topics