Trying to analyse a firmware image

Talk about anything you like here: as long as it's technical, doesn't fit into the other categories and is within the rules. Questions and discussions about operating systems, programming, websites, hosting, ADSL etc. are particularly welcome here.
Post Reply
Phasip
Regular
Regular
Posts: 40
Joined: Mon Mar 05, 2007 7:33 pm
Location: Sweden

Trying to analyse a firmware image

Post by Phasip » Thu Jan 14, 2010 10:06 pm

Hello!

I am trying to analyse the firmware image for a sip phone,
I am quite sure it uses jffs2 because I have found the magic bytes (0x1985) and what seems to be a jffs2 node

The problem I am having is to mount the image as jffs2,
I tried to do it as shown on http://www.digitalpeer.com/id/mount

Code: Select all

mkdir m
modprobe mtdram total_size=24576 erase_size=128
cat /proc/mtd
modprobe mtdblock
dd if=jffs2.img of=/dev/mtdblock0
mount -t jffs2 /dev/mtdblock0 m

but it wont work for me,
can the jffs2.img start with 0x1985 or is it supposed to have something before it with filesystem id etc?

I attatch the firmware image.

Any information/tools on jffs2, partitions and how to analyse firmware images are welcome!

Thanks.
Attachments
ip830c-7.1.36-SIP-f.bin
(2.72 MiB) Downloaded 359 times
You didn't do that, did you?
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Re: Trying to analyse a firmware image

Post by mstombs » Thu Jan 14, 2010 10:39 pm

Where's the GPL sourcecode release? It clearly references busybox!
Phasip
Regular
Regular
Posts: 40
Joined: Mon Mar 05, 2007 7:33 pm
Location: Sweden

Re: Trying to analyse a firmware image

Post by Phasip » Fri Jan 15, 2010 7:56 pm

I got an email reffering to
http://www.snom.com/en/support/download/source-code/
apparently
http://wiki.snom.com/Snom360

is the same phone, I managed to flash the Doro ip830c with Snom360 firmware, but it does not seem to work with the network card or something (didn't get any connection)
(Change 0x92 to 0x8C at offset 0x0000000B )
------
Oh, I was looking at the source files, seems to have alot of information on everything!
Never thought it would be this easy.
You didn't do that, did you?
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Re: Trying to analyse a firmware image

Post by mstombs » Fri Jan 15, 2010 8:55 pm

Good result - but I suspect you still need to work out how to extract the non-GPL binary blobs from the released firmware - it doesn't look like the SIP modules, or build scripts are all there?
Post Reply