Author Topic: A470 Porting  (Read 22899 times)

MrSpoon

  • Guest
A470 Porting
« on: 25 / March / 2009, 02:29:20 »
« Last Edit: 04 / July / 2009, 00:55:45 by MrSpoon »

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
Re: A470 Porting
« Reply #1 on: 25 / March / 2009, 04:42:31 »
sounds like ur having fun digging through asm code. always nice to have new people "join the chdk army".
welcome and good luck with your project :)

MrSpoon

  • Guest
Re: A470 Porting
« Reply #2 on: 26 / March / 2009, 06:32:41 »
I'm basing my work on the A720 code. I've got a bit further, edited lib.c and stubs_min.c, right now it looks like Im not getting to entry.S in core though.

My makefile.inc is as follows:
Code: [Select]
#317A
PLATFORMID=12666

PLATFORMOS=dryos

MEMBASEADDR=0x1900
RESTARTSTART=0x49000
MEMISOSTART=0xA5798
ROMBASEADDR=0xffc00000

I'm still feeling around the boot process, bit stumped for the moment though, can't see what's wrong with it :(

EDIT: I gave copy_and_restart a test function to turn on an LED and the camera restarted to it :) Realised I'm using binutils 2.19 which as mentioned in the A580 thread, does crazy things to main.bin! Rebuilding binutils now...

RE-EDIT: I get as far as calling CreateTask_PhySw(); and then the camera turns off, I've still got a lot more stuff to do though.
« Last Edit: 29 / March / 2009, 00:28:43 by MrSpoon »

MrSpoon

  • Guest
Re: A470 Porting
« Reply #3 on: 31 / March / 2009, 02:47:27 »
Yey, got the camera booting without the hooks :D

*stares lovingly at the splash screen*

Offline whim

  • Guru Member
  • ******
  • Posts: 1954
  • A620/A630/A590-101b/i70-101b/i870-101a/i300
Re: A470 Porting
« Reply #4 on: 31 / March / 2009, 03:08:40 »
congrats MrSpoon !


wim


Offline IsaacD

  • Newbie
  • *
  • Posts: 2
    • ShanksPub
Re: A470 Porting
« Reply #5 on: 31 / March / 2009, 04:05:08 »
Keep up the great work on the firmware!

I know I'm a new user, but have been following the CHDK sites and forums since getting a A470 (I had a A460 which broke in the first 2 weeks and it was replaced with the A470...no firmware :( ) so hopefully after close to a year, you'll have a CHDK firmware ready for it! :D

Great progress, mate.

MrSpoon

  • Guest
Re: A470 Porting
« Reply #6 on: 31 / March / 2009, 19:03:59 »
Yey, just been using CHDK for the very first time, took some auto-bracketed pics with my A470 :D

I've attached an alpha diskboot.bin, I was really wanting to get auto-bracketing working though and I've disabled a lot, so don't expect much to work :-[

EDIT: file removed, out of date.
« Last Edit: 11 / April / 2009, 05:16:35 by MrSpoon »

Offline alanfortune

  • Rookie
  • *
  • Posts: 21
Re: A470 Porting
« Reply #7 on: 01 / April / 2009, 16:08:26 »
Hi, great to see someone porting to the A470. I originally bought a Fuji S5700 which I had assumed took RAW mode images. I was very disappointed with the over-compressed Jpegs. I bought an A470 after using my son's. It takes excellent images but CHDK would be the icing on the cake.

I downloaded the DISKBOOT.BIN file and the other bits from the A720 port but we keep getting a File Error when trying to update our v1.02c camera. I realise its an alpha version but we're happy to test it and report bugs etc. As this is not a full package, could we be using the wrong files from the A720?

Offline Ambient Light

  • Rookie
  • *
  • Posts: 8
Re: A470 Porting
« Reply #8 on: 01 / April / 2009, 16:13:14 »
Great work! I'll try this when I get home. I've dumped my firmware (got different checksum?) and installed necessary tools. I hope I may be able to help in some way. You seem to have got quite far. I've never attempted anything like this. Cheers.

CHDK Forum

Re: A470 Porting
« Reply #8 on: 01 / April / 2009, 16:13:14 »

MrSpoon

  • Guest
Re: A470 Porting
« Reply #9 on: 01 / April / 2009, 16:20:23 »
Hey, sorry I didn't make the alpha very user friendly I guess.

To install CHDK you can follow the "CHDK for Dummies" guide. If you install the A720 version of CHDK onto your SD card using that guide, you should then be able to just replace the diskboot.bin file with the one I attached. With the SD card 'locked' the camera will boot up and hopefully you'll see the CHDK splash screen!

Note that I haven't yet got round to adding SDHC/partitioning support, so it'll only work on an SD card for now

Offline alanfortune

  • Rookie
  • *
  • Posts: 21
Re: A470 Porting
« Reply #10 on: 02 / April / 2009, 01:49:39 »
Did what you said...everything worked fine. Up came CHDK with most features. Tried RAW mode which seemed to work but we've tried 6 or more programs and nothing will convert or read it. None seem to support the A470, at least not yet.

Thanks for your help, we can't wait for the final version. I used to dabble in Z80 code many moons ago, I'm glad you've volunteered to port to the A470, the code's a bit beyond my aging brain.

MrSpoon

  • Guest
Re: A470 Porting
« Reply #11 on: 02 / April / 2009, 03:11:51 »
Ah, I've attached a new version for you, the code's the same but I've compiled it with a bunch more options enabled. LUA should work so you can run the bad pixels script and then save your files as DNG 8)

The games are enabled but won't work, they seem to check modes before running, so they'll have to wait until I get around to the mode map.

I haven't touched the video recording stuff yet, so that won't work. Other than that there's a bunch of camera-related information I mostly fudged, Im no camera buff so left them until I got most other stuff working.

So yeah, this is the only build of CHDK I've ever seen, so other than the above, let me know what's wrong and missing! :D Also after I do the movie_rec.c file I'll generate a diff file so other people can look over my work and make corrections :-[

EDIT: Just for clarity, the attached file is for A470 v1.02c
« Last Edit: 11 / April / 2009, 05:16:04 by MrSpoon »

Offline alanfortune

  • Rookie
  • *
  • Posts: 21
Re: A470 Porting
« Reply #12 on: 02 / April / 2009, 04:12:01 »
Thanks, we're testing it now but for some reason the locked SD card won't allow the A470 to switch on. We reloaded the previous BIN and it started OK.

The latest file is bigger, is this correct? Wish we could help with the code but I'm more Photographer than Coder.

MrSpoon

  • Guest
Re: A470 Porting
« Reply #13 on: 02 / April / 2009, 04:19:33 »
Sorry about that, the file didn't upload properly :blink: it should work now!

Offline Husky

  • Rookie
  • *
  • Posts: 26
Re: A470 Porting
« Reply #14 on: 02 / April / 2009, 06:45:54 »
Sorry about that, the file didn't upload properly :blink: it should work now!

Hello i'm new on this stuff. Let me asking something.
Where i can find the CHDK for my PowerShot A470? My firmware is: GM1.01b
This CHDK will change my firmware?
Thank you all.
« Last Edit: 02 / April / 2009, 07:24:04 by Husky »

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal