The Ambarella Hack Development Kit

petabytes

New Member
Joined
Jun 30, 2021
Messages
4
Reaction score
5
Location
Country
Country
United States
My thread on this at GoPrawn has received a good bit of attention, so I thought it
wouldn't hurt to put it here too.

AHDK is a CHDK/Magic Lantern clone for Ambarella-based devices.

Although Ambarella cameras are already hackable, AHDK extends that and adds
a UI, Tetris, and the ability to extend the Ambsh programming language with C code.

Currently, I have only supported the GoPro Hero 3+ and the Activeon DX, but I've gotten a Hello
World running on the Xiaomi Yi.

And of course, it is free and open source software: https://github.com/petabyt/ahdk

UI demonstration:
Tetris:
GoPro Hero 3+ running Bad Apple:
 

renzo201

New Member
Joined
Jul 1, 2021
Messages
7
Reaction score
3
Location
Texas
Country
United States
I saw that you needed some help reverse engineering a few things, if you let me know the specifics I can probably help out.
 
OP
P

petabytes

New Member
Joined
Jun 30, 2021
Messages
4
Reaction score
5
Location
Country
Country
United States
Currently, I am interested in figuring out the sensor functions. I was hoping I would eventually
figure out how to record raw images, and eventually, maybe raw video. The one I'm looking at seems
to be called "AMBA_IMG_SENSOR2".
 

EGS

Well-Known Member
Joined
Aug 29, 2019
Messages
918
Reaction score
753
Location
Texas
Country
United States
Dash Cam
Viofo A129 Pro Duo, A129 Plus (eMMC), T130, 70mai A800s
My thread on this at GoPrawn has received a good bit of attention, so I thought it
wouldn't hurt to put it here too.

AHDK is a CHDK/Magic Lantern clone for Ambarella-based devices.

Although Ambarella cameras are already hackable, AHDK extends that and adds
a UI, Tetris, and the ability to extend the Ambsh programming language with C code.

Currently, I have only supported the GoPro Hero 3+ and the Activeon DX, but I've gotten a Hello
World running on the Xiaomi Yi.

And of course, it is free and open source software: https://github.com/petabyt/ahdk

UI demonstration:
Tetris:
GoPro Hero 3+ running Bad Apple:
Cool!! Thumbs up for practicality
 

renzo201

New Member
Joined
Jul 1, 2021
Messages
7
Reaction score
3
Location
Texas
Country
United States
Currently, I am interested in figuring out the sensor functions. I was hoping I would eventually
figure out how to record raw images, and eventually, maybe raw video. The one I'm looking at seems
to be called "AMBA_IMG_SENSOR2".
Do you have the specific binaries/firmware that your interested in uploaded somewhere that I can grab?
 
OP
P

petabytes

New Member
Joined
Jun 30, 2021
Messages
4
Reaction score
5
Location
Country
Country
United States
Sure, I'll send you the memory dump of my Activeon DX (current camera I am working on)
I think the code is mostly the same for most other Ambarella A7 cameras.
 
Last edited:

renzo201

New Member
Joined
Jul 1, 2021
Messages
7
Reaction score
3
Location
Texas
Country
United States
Just bought a DX for like 10 buck so I can help develop for AHDK on the same system. Did you find a UART port on the cam or is there a way to get UART over USB. I needed a new cam since mine has a soldered mem so it annoying to work on and much easier to brick accidentally.
 
OP
P

petabytes

New Member
Joined
Jun 30, 2021
Messages
4
Reaction score
5
Location
Country
Country
United States
Nice. I don't have any good soldering iron, so I haven't been able to do anything like that.

I know you can get an Ambsh shell over USB on older GoPros, but I haven't tried to get it working on
the DX. I've been working on live code testing (https://diode.zone/w/qsYtR4EamsnzqwdMk2baTS),
which has been very helpful for quickly trying things. In theory, you should be able to get some
kind of shell with that.
 
Top