[App] AFT 1.3.2 - Ambarella firmware editor (development paused)

Tobi@s

Well-Known Member
App Developer
Joined
Nov 12, 2013
Messages
1,361
Likes
812
Location
Bavaria
Country
Germany
Dash Cam
some
#1
I'm happy to finally announce the release of AFT :)

Screenshot:


What is AFT?
AFT (Ambarella Firmware Toolbox) is an application for modifying Ambarella A2, A5 and A7 firmware binaries. This includes extracting all raw partitions, editing the filesystem and all used strings (for example for translating purposes) and modifying the bitrate table. More features are always on my todo-list. It's based on my knowledge of A2RomKitchen but has been rewritten from scratch!

Tutorials by @Mtz and @reverend :
Basic AFT usage: https://dashcamtalk.com/forum/threa...a-a2-a7-firmware-tool.6029/page-7#post-101302
Strings.bin editor(v1.0+) usage: https://dashcamtalk.com/forum/threa...a-a2-a7-firmware-tool.6029/page-7#post-101986
How to use the bitrate editor: https://dashcamtalk.com/forum/threa...la-based-cameras-using-aft.10220/#post-128619

Features:
- Analyze firmware binaries
- Export of all partitions
- Export all files from ROM-partition
- Rebuild ROM-partition with modifications
- Strings.bin editor
- A5/A7 Bitrate table editor
- Build modified firmware binaries

Changelog:
v0.7.5:
- Added a new row to Strings editor which helps with changing predefine setting values
- Fixed a Bugg in the RFS Compiler (removed static objects which stored rfs data multiple times after multiple executions
- Some other changes for the not yet released MenuEditor
- You are now able to delete files from RFS section. If you delete them they'll be recreated without content at compile time and therefore "pseudo"-removed from the filesystem.
v0.7.4:
- added Export/Import of main firmware header to add compatibility to more A7 devices (thanks to @Se7ven )
v0.7.3:
- Bitrate Editor Improvements:
-- Now all 158 arrays are loaded
-- Descriptions updated (Thanks to @Falsificator )
v0.7.2:
- Bitrate Editor improvements
-> Shortcuts:
--> CTRL + C Copies the selected cell
--> CRTL + V pastes the Content in the selected cell
--> QuickPaste mode: Press CTRL + F6 to paste the Content from the cell above the selected cell into the selected cell and jump down 1 row
- Added an auto update checker
- Added an update downloader
v0.7:
- Added A7 Bitrate Editor (Tools > Bitrate Editor)
- Fixed some bugs
v0.6:
- Added automatic decompressing/compressing of A2 compressed sections (PRI and DSP)
- Added A2 Patches Support
- Improved operability (to prevent more user Errors)
- Added more error-catching
- Fixed some GUI bugs
- Other internal changes
v0.5.1:
- Fixed an issue in A2 Header creation algorithm
v0.5:
- Initial A7Tool release with A2 and A7 support

Requirements:
- JRE or JDK 1.8 or greater (http://java.com/download)
- Windows administrative permissions (not sure about this one)
- Firmware binaries (http://dc.p-mc.eu/)

Private useage only!
Any commercial use and any use that is not educational nor private is prohibited!

Releases:
[App] AFT 1.3.2 - Ambarella firmware editor

ToDo:
- finish AE metering table editor (high priority)
- implement Menusetting value editor
- finish fonts.bin editor (low priority)
- finish bitmaps.bin editor (normal priority)
- fix a bug regarding non-compressed A2 partitons (low priority)

Protip for 0801 and 0803 users:
Always have a USB -> mini/micro USB cable with PIN 4 and 5 linked ("burning cable") to recover your camera in case of a brick

Validation of firmwares:
You don't trust me/my tool? :(
There is an easy way to validate generated firmware: Decompile the modified firmware again with AFT, if everything seems alright it should be fine!

Disclaimer:
I am not responsible for any bricked devices, dead SD Cards or anything else that might happen as a result of flashing firmwares you modified with this tool to your dashcam.


3rd Party license:
RandomAccessByteArray:
* Copyright (c) 2007, intarsys consulting GmbH
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* - Neither the name of intarsys nor the names of its contributors may be used
* to endorse or promote products derived from this software without specific
* prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.

Support me
If you want to support me and have some money left: Donate with PayPal. You'll receive a "donator-status" in AFT which does not have any benefits, yet.
You can also help me by hunting bugs and reporting them :)
 
Last edited by a moderator:
OP
OP
Tobi@s

Tobi@s

Well-Known Member
App Developer
Joined
Nov 12, 2013
Messages
1,361
Likes
812
Location
Bavaria
Country
Germany
Dash Cam
some
#3
Oh I'm going to add that it's only required for those devices, thanks :)
 
OP
OP
Tobi@s

Tobi@s

Well-Known Member
App Developer
Joined
Nov 12, 2013
Messages
1,361
Likes
812
Location
Bavaria
Country
Germany
Dash Cam
some
#4
I just reccognized that A2 compiled firmwares with modified rfs seems to have a Problem . will check that tomorrow......
 
OP
OP
Tobi@s

Tobi@s

Well-Known Member
App Developer
Joined
Nov 12, 2013
Messages
1,361
Likes
812
Location
Bavaria
Country
Germany
Dash Cam
some
#5
Just fixed the bug with A2 firmwares, download link is located in first post :)
 
OP
OP
Tobi@s

Tobi@s

Well-Known Member
App Developer
Joined
Nov 12, 2013
Messages
1,361
Likes
812
Location
Bavaria
Country
Germany
Dash Cam
some
#7
I guess the .pcm files are the soundfiles you are looking for. .pcm is a raw Format - I believe I read something that they are wave files.
 
Joined
Jun 14, 2014
Messages
42
Likes
20
Country
Spain
#8
Okay, I see what this files are of the sounds, the problem is what I can't convert to other format with any converter or play, maybe are bad uncompiled these files or have an private codec. I go to try making new .pcm sound for test.

Thanks you, regards.
 
OP
OP
Tobi@s

Tobi@s

Well-Known Member
App Developer
Joined
Nov 12, 2013
Messages
1,361
Likes
812
Location
Bavaria
Country
Germany
Dash Cam
some
#9
I think @MadJawa wrote once that he was able to edit them with Audacity. Not sure,
 

reverend

Well-Known Member
Joined
Apr 22, 2014
Messages
5,442
Likes
3,734
Country
United Kingdom
Dash Cam
Too many
#11
Hello mate, I thought I would give this a go with the backup file you explained how to grab via the autoexec.ash and I am getting the following error:

An error occured:
java.lang.NegativeArraySizeException

https://mega.co.nz/#!oMkDxAya!W4B8N7OY2oC8S69AOVaH6yKTWtpZWSRcPhtFAEpOF24

There are lots of strings in there - interestingly some of the code in the SDK says it only supports ar0330, imx122_s3d, and ov2710_s3d sensors - but I guess this is maybe because it's generic. There are lots of references in the binary to the ov4689.
 
OP
OP
Tobi@s

Tobi@s

Well-Known Member
App Developer
Joined
Nov 12, 2013
Messages
1,361
Likes
812
Location
Bavaria
Country
Germany
Dash Cam
some
#12
The error occures because the header of the backup binary does not look like how it should. Strange. Do you have a original firmware binary as reference for me?
 

reverend

Well-Known Member
Joined
Apr 22, 2014
Messages
5,442
Likes
3,734
Country
United Kingdom
Dash Cam
Too many
#13
Unfortunately I've not seen any firmware files for this camera as of yet - hoping that one will be released soon for this one :)
 
OP
OP
Tobi@s

Tobi@s

Well-Known Member
App Developer
Joined
Nov 12, 2013
Messages
1,361
Likes
812
Location
Bavaria
Country
Germany
Dash Cam
some
#14
we could assemble one probably...
You have to run that firmfl comand for every single Partition - then we can create a flashable binary.
autoexec.ash Content:
Code:
firmfl gen 1 bst d:/bst.bin
firmfl gen 1 bld d:/bld.bin
firmfl gen 1 hal d:/hal.bin
firmfl gen 1 pri d:/pri.bin
firmfl gen 1 rfs d:/rfs.bin
firmfl gen 1 dsp d:/dsp.bin
rm d:/autoexec.ash
 

jokiin

Well-Known Member
Manufacturer
Joined
Jan 27, 2013
Messages
40,166
Likes
20,624
Location
Shenzhen, China - Sydney, Australia
Country
China
Dash Cam
Too many ¯\_(ツ)_/¯
#16
Unfortunately I've not seen any firmware files for this camera as of yet - hoping that one will be released soon for this one :)
the manufacturer changed solution providers recently, I don't know who they work with now though and what their after sales is like so will be interesting to see how long before some updates happen and how well they can get it sorted
 
OP
OP
Tobi@s

Tobi@s

Well-Known Member
App Developer
Joined
Nov 12, 2013
Messages
1,361
Likes
812
Location
Bavaria
Country
Germany
Dash Cam
some
#18
Appreciate that. :)

Just looked at the partition files.. DSP HAL BLD and BST look ok. But PRI seems a bit large and RFS just contains 4KB of nothing.
We could do a work-around for the rfs but we Need to check pri before.
 
OP
OP
Tobi@s

Tobi@s

Well-Known Member
App Developer
Joined
Nov 12, 2013
Messages
1,361
Likes
812
Location
Bavaria
Country
Germany
Dash Cam
some
#20
Yes, only you can do it :p I don't own a G90 ^^
you Need to find a way to cd to romfs drive (maybe the letter is not z:)
Maybe with the command "mounts" or "drives"
 

Similar threads

Top