Camera Serial Number - Feature Requests - CHDK Forum

Camera Serial Number

  • 1 Replies

Offline Novex

  • *
  • 17
Camera Serial Number
« on: 19 / May / 2009, 12:42:00 »
Just wondering if anyone has stumbled upon whether the serial number for their camera is stored digitally. I'm certain it wouldn't be hardcoded into the firmware, but perhaps stored on an eeprom or wherever it keeps preferences, etc.

I have a suspicion it isn't, since it doesn't show up on the ver.req pages, but I'm curious to know if anyone has looked into this at all.


Offline foofighter69

  • *
  • 15
  • Canon A470
Re: Camera Serial Number
« Reply #1 on: 19 / May / 2009, 15:42:18 »
(1) I've made a diff on the two dumps with firmware 1.02C -->
There is a diff from file offset 0x3d0000-0x3d0400 and 0x3d0980-0x3e1c50 and 0x3ff000-0x3fffff

(2) There are many strings pointing to something what looks like a serial:

Code: (asm) [Select]
ROM:FFE2DB48 aSerialnumberDe DCB "SerialNumber (Dec)  : %ld",0xD,0
ROM:FFD23C34 aSerialNo_10s   DCB "Serial No. %10s",0 ; DATA XREF: sub_FFD23B0C+B0o

This looks to be interesting:

Code: (asm) [Select]
ROM:FFD23BB4                 LDR     R0, =0x489F0
ROM:FFD23BB8                 ADD     R2, SP, #0x28+var_20
ROM:FFD23BBC                 ADR     R1, aSerialNo_10s ; "Serial No. %10s"
ROM:FFD23BC0                 BL      eventproc_export_sprintf

But I don't know how 'sprintf' is working in ARM asm.

If someone has time to play with that:

(1) idb database: Canon A470.idb
(2) decent disassembler: ARM portable edition 12M (pass: subdomain of this forum :] )
« Last Edit: 20 / May / 2009, 06:35:32 by foofighter69 »


Related Topics