Hello guys,
I just implemented full Ambarella firmware patch support in A7Tool (http://dashcamtalk.com/forum/threads/app-a7tool-v0-6-ambarella-a2-a7-firmware-tool.6029/ ).
Huh?! What are firmware patches?
Firmware patches are small files which contain replacement-data for binaries. They can add functions or change something. They are interpreted by software (in this case A7Tool) and then get applied to the binary.
How to apply them (using A7Tool):
How to create firmware patches? (for devs)
Template:
Then save it as text file with this extension: .ap
Example:
This is a functional example patch:
To make this feature useful there need to be a few guys with knowledge who want to create thse patches I'll start with 0801 and 0803. Happy about everyone who wants to contribute.
I just implemented full Ambarella firmware patch support in A7Tool (http://dashcamtalk.com/forum/threads/app-a7tool-v0-6-ambarella-a2-a7-firmware-tool.6029/ ).
Huh?! What are firmware patches?
Firmware patches are small files which contain replacement-data for binaries. They can add functions or change something. They are interpreted by software (in this case A7Tool) and then get applied to the binary.
How to apply them (using A7Tool):
- File > Open A* Firmware
- Sections > Export All
- Now you can modify the sections or rfs or just proceed with step 4
- Tools > Firmware patcher
- Load > Patch
- Select an .ap patch which fits to your firmware version and press "open"
- Repeat step 6 with all patches you want to apply
- "Apply all patches"
- Close Firmware Patcher
- Build > Firmware binary
- Thats is
How to create firmware patches? (for devs)
Template:
Code:
;Device
;Firmware Version (ex: 20140617)
;Device configuration (ex: GPS 1CARD)
;Patch section (valid: BST, BLD, PRI, HAL, RFS, DSP)
;Description of the patch
;Author
ADDRESS:PAYLOAD (ex: 291CBA:ABBABBAA)
Example:
This is a functional example patch:
Code:
;MINI0801 X24
;20140617
;GPS 1CARD
;PRI
;Change vbr to 18MBit/s
;Tobi@s
2918c0:00008040000080400000804000008041
2918d0:00008041000080410000804100008041
2918e0:00008041000080410000804100008041
2918f0:0000c0400000a0400000804000008041
291900:00008041000080410000804100008041
291910:00008041000080410000804100008041
291920:00008041000080410000c04000008041
291930:0000c04000008040000000410000c040
291940:00008040000080400000404000000040
291950:3333333f9a99193f0000003f00000041
291960:0000c040000080400000a04000008040
291970:00004040000080400000404000000040
291980:3333333f9a99193f0000003f00004041
291990:00008041000080410000804100008041
2919a0:00008041000080410000804100008041
2919b0:00008041000080410000804100008041
2919c0:000080410000c040000080410000c040
2919d0:00008040000080400000404000000040
2919e0:3333333f9a99193f0000003f3333333f
2919f0:9a99193f0000003f0000804000004040
291a00:000000400000a0400000804000004040
291a10:0000c0400000a0400000804001000000
To make this feature useful there need to be a few guys with knowledge who want to create thse patches I'll start with 0801 and 0803. Happy about everyone who wants to contribute.
Last edited by a moderator: