ma1co / fwtool.py

A tool to unpack Sony camera firmware images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gen2 camera fw includes multiple 'backup.bin'

mungewell opened this issue · comments

Firstly thanks for the tool.

I've been looking at some Gen2 camera firmware and noticed that the expanded images do not just contain a single 'backup,bin', but seem to contain multiples - presumably for different regions of the world.

fw_as30_v3.0_0110_backup/SYSAVIP-CAM/TF/CX26900_NTSC.bin
fw_as30_v3.0_0110_backup/SYSAVIP-CAM/TFW/CX26900B5_J.bin
fw_as30_v3.0_0110_backup/SYSAVIP-CAM/TFW/CX26900B5_CN1.bin
fw_as30_v3.0_0110_backup/SYSAVIP-CAM/TFW/CX26900B5_AU2.bin
fw_as30_v3.0_0110_backup/SYSAVIP-CAM/TFW/CX26900B5_E35.bin
fw_as30_v3.0_0110_backup/SYSAVIP-CAM/TFW/CX26900B5_UC2.bin
fw_as30_v3.0_0110_backup/SYSAVIP-CAM/TFW/CX26900B6_U2.bin
fw_as30_v3.0_0110_backup/SYSAVIP-CAM/TFWO/CX26900B5_CEN.bin

With a bit of script-fu, we can get to find out which keys are different (to NTSC) in each of these. Attached is a zip with just the deltas... maybe this is helpful in identifying what the keys are (ie. NTSC vs PAL output).

find . -name '*.bin' -exec bash -c "python fwtool.py print_backup -f {} > {}.txt" \;
cd SYSAVIP-CAM/TFW
mkdir NTSC_deltas
find . -name '*.txt' -exec bash -c "diff -t --side-by-side ../TF/CX26900_NTSC.bin.txt {} | grep -B 1 '  |  ' > NTSC_deltas/{}.diff " \;

(https://github.com/ma1co/fwtool.py/files/1416337/fw_as30_v3.0_0110_backup_deltas.zip)
[fw_as30_v3.0_0110_backup_deltas.zip]

Can someone confirm that the 'backup.bin' file can be patched, the firmware repacked and uploaded to a (Gen2) camera? Too scared to try myself without a little encouragement... :-)

Have confirmation that 'Backup.bin' can be tweaked either with 'updatershell' or by Sony's own 'bk.elf' application (on the camera).