A430 porting started - histogram working - General Discussion and Assistance - CHDK Forum

A430 porting started - histogram working

  • 115 Replies
  • 60074 Views
A430 porting started - histogram working
« on: 21 / June / 2009, 11:49:29 »
Advertisements
Hey folks,

I've been quiet successful in porting the A430 to the CHDK. As you can read in the heading, displaying the histogram of a picture or in shoot mode works.

Until now, I couldn't activate the zebra mode. I figure that certaing services, which are currently deactivated, must be started before this feature can be used. But I don't know yet.

Still, there need some constants/addresses to be found. Everything in lib.c, stubs_min.S, and stubs_entry_2.S that is not commented I didn't touch. This is why I commented out the last 3 task hooks in generic/main.c::createHook(), since the camera won't boot otherwise.

If you are interested in the modifications I have done, or you want to help out, you can find the repo under [1]. The port is based on the A450.

Any help is also very welcome and any comments are very welcome.

Cheers

[1] http://github.com/shentok/chdk-a430/tree/master
« Last Edit: 22 / June / 2009, 11:15:17 by shentey »

Re: A430 porting started - histogram working
« Reply #1 on: 22 / June / 2009, 09:56:47 »
Wow, this is great news, I was waiting for this for quite some time!
Please, do you think you could upload a built zip file?
Thanks so much!
~pinchies

Re: A430 porting started - histogram working
« Reply #2 on: 22 / June / 2009, 11:11:19 »
Update: Linked to new version of DISKBOOT.BIN including addresses found by zfeet.

Disclaimer
Use at your own risk and understand that this is work in progress. It is possible that you encounter data loss or any other damage to your camera. It might also eat your children!

If you're not intimidated by the above disclaimer, you can download the DISKBOOT.BIN v.3 image for the A430. Note that some things are still deactivated as the camera is not yet fully ported. So don't hesitate to look out for the remaining constants (see my previous post).

The image can be started as usual: Put it in the root directory of your accordingly formatted SD card, lock the card, put the card into your camera, and press the power button. Alternatively, you can rename the image to PS.fir and start it from the firmware update menu (works only when camera is started in view mode).

Have fun!
« Last Edit: 23 / June / 2009, 11:36:21 by shentey »

*

Offline zfeet

  • **
  • 67
Re: A430 porting started - histogram working
« Reply #3 on: 22 / June / 2009, 16:34:47 »
Thanks a lot! I still have my a430 so I can test this and see if I can make any improvements.

*

Offline zfeet

  • **
  • 67
Re: A430 porting started - histogram working
« Reply #4 on: 22 / June / 2009, 18:21:29 »
Boots and I have been able to take photos and video. Videos are AVI and a lot better quality than before so that's working. RAW doesn't seem to function at the moment.

*

Offline zfeet

  • **
  • 67
Re: A430 porting started - histogram working
« Reply #5 on: 23 / June / 2009, 09:50:37 »
The a430 firmware is very similar to a540's so by comparing those I get these addresses:

EnterToCompensationEVF, 0xFFD28268
ExitFromCompensationEVF, 0xFFD282C4

Re: A430 porting started - histogram working
« Reply #6 on: 23 / June / 2009, 10:41:05 »
Hey zfeet,

nice to see you back in the game!

I've uploaded a new version of the firmware including the new addresses and updated the link to DISKBOOT.BIN.

I uncommented the "tMovieReco" and "tExpDrvTas" tasks, though neither of them seem to be started by the A430. I still had to comment out the "tCaptSeqTa" as it would crash the camera. Any hints on what those tasks do and what addresses they require are very welcome.

Cheers

*

Offline zfeet

  • **
  • 67
Re: A430 porting started - histogram working
« Reply #7 on: 23 / June / 2009, 11:20:28 »
in capt_seq.c  0xFFD2C9B8 would be the correct place to start modifying the file, so the first sub is: sub_FFD2C9B8_my. This would explain the crashes you were experiencing with "tCaptSeqTa".

I noticed that my toolchain doesn't produce working files even if the compilation works perfectly. Which one are you using?

Re: A430 porting started - histogram working
« Reply #8 on: 23 / June / 2009, 11:38:21 »
I use gcc-4.3.3 + binutils-2.18, following the guide on the wiki, on (K)ubuntu 9.04. I can upload the debs if you have *buntu.

I can have a look at capt_seq.c later.
« Last Edit: 23 / June / 2009, 11:39:54 by shentey »

*

Offline zfeet

  • **
  • 67
Re: A430 porting started - histogram working
« Reply #9 on: 23 / June / 2009, 11:54:33 »
I use gcc-4.3.3 + binutils-2.18, following the guide on the wiki, on (K)ubuntu 9.04. I can upload the debs if you have *buntu.

I can have a look at capt_seq.c later.

Ok, I'll change to Linux. I'll roll my own, thanks :)

 

Related Topics


SimplePortal © 2008-2014, SimplePortal