Author Topic: the sx10 porting thread  (Read 93145 times)

Offline jetherson

  • Rookie
  • *
  • Posts: 12
Re: the sx10 porting thread
« Reply #465 on: 02 / July / 2009, 08:54:16 »
Hi reyalp!

I just added v1.00c on the CHDK SX10 page (header notice part), but I'm not sure if I can add on the list in the wikia's front page.

Ciao!

Offline cormac

  • Rookie
  • *
  • Posts: 46
Re: the sx10 porting thread
« Reply #466 on: 02 / July / 2009, 11:40:24 »
Just a thought: Shouldn't v1.00c be on the news/history part of CHDK wiki site by now?

Ciao!

Usually do this when when it is checked in into our SVN... which I just did, build 781. Feel free to update the wiki.

Is there anything outstanding that is keeping us from taking the BETA label of the other SX10 ports ? From what I've seen here, it looks like there aren't major SX10 specific issues remaining.

The 1.00C issues I've found so far are:
The Canon refresh issue (already in the tracker, and a problem across several models see: http://chdk.kernreaktor.org/mantis/view.php?id=275 )

The other bug is the nullsub issue in stubs_entry_2.S which actually is problem across a few of SX10 versions as far as I can see, and it's probably an easy fix.

I have a test case, and I'm testing a fix for this and should have something concrete tomorrow. If it works I'll update the drop site and forum porting. I'll post a fix 1.01A at the same time as that was my reference code for the 1.00C port.
« Last Edit: 02 / July / 2009, 11:58:12 by cormac »

Offline jetherson

  • Rookie
  • *
  • Posts: 12
Re: the sx10 porting thread
« Reply #467 on: 02 / July / 2009, 12:45:06 »
Thanks cormac!

Offline cormac

  • Rookie
  • *
  • Posts: 46
Re: the sx10 porting thread
« Reply #468 on: 02 / July / 2009, 22:47:15 »
I've tested the fix for the set_zoom_speed bug and it works. I've updated the 1.00C source and binaries at http://chdk.setepontos.com/index.php/topic,2468.msg35981.html#msg35981.

The fix was to point the null sub lines in stubs_entry_2.S at the location for nullsub_1. This means that the affected commands will no longer crash, they will just do nothing.

Offline cormac

  • Rookie
  • *
  • Posts: 46
Re: the sx10 porting thread
« Reply #469 on: 03 / July / 2009, 00:07:41 »
The end of stubs_entry_2.S for the SX10 ports should read:

// null sub - point these at nullsub_1 as labelled in IDA

NHSTUB(kbd_pwr_off, 0xFF81093C)
NHSTUB(kbd_pwr_on, 0xFF81093C)
NHSTUB(Mount_FileSystem, 0xFF81093C)
NHSTUB(Unmount_FileSystem, 0xFF81093C)
NHSTUB(SetZoomActuatorSpeedPercent, 0xFF81093C)
NHSTUB(rewinddir, 0xFF81093C)


I've checked this on 1.01A and 1.02B - the same address works. I'm guessing the rest are the same.

I've added the 781 trunk recompiled binaries here at http://drop.io/wltyjxn

The 781 trunk patch file is here http://drop.io/wltyjxn/asset/nullsub-fix-patch

This script is my test case: http://chdk.wikia.com/wiki/UBASIC/Scripts:_Zoom_Shoot
« Last Edit: 03 / July / 2009, 00:13:32 by cormac »

Offline wmw5009

  • Newbie
  • *
  • Posts: 1
Re: the sx10 porting thread
« Reply #470 on: 03 / July / 2009, 01:30:08 »
Wow. Thank you Cormac!! I have been checking this thread religiously since back in December waiting for 1.00C. You and everyone else that has helped just made my week.

My osd and preferences don't seem to be staying between boots. I looked over the manuals because it was probably just a setting but I couldn't find anything.

Offline cormac

  • Rookie
  • *
  • Posts: 46
Re: the sx10 porting thread
« Reply #471 on: 03 / July / 2009, 01:30:56 »
On another note... When I browse files I'm seeing the 11.3 format so I see COUNTD~1.LUA.

Is this a CHDK option I need to change, or a firmware change I need to make?

Offline cormac

  • Rookie
  • *
  • Posts: 46
Re: the sx10 porting thread
« Reply #472 on: 03 / July / 2009, 01:39:21 »
Wow. Thank you Cormac!! I have been checking this thread religiously since back in December waiting for 1.00C. You and everyone else that has helped just made my week.

My osd and preferences don't seem to be staying between boots. I looked over the manuals because it was probably just a setting but I couldn't find anything.

You may want to try going into the CHDK menu,then Miscellaneous, and select reset options to default. If there is an odd setting it will clear it out.

Offline reyalp

  • Guru Member
  • ******
  • Posts: 4468
Re: the sx10 porting thread
« Reply #473 on: 03 / July / 2009, 04:14:19 »
On another note... When I browse files I'm seeing the 11.3 format so I see COUNTD~1.LUA.

Is this a CHDK option I need to change, or a firmware change I need to make?
CHDK in dryos doesn't handle long names. Really all the examples etc should be 8.3

edit:
and any RET instruction should do for the nullsub stuff ;)

edit again:
random thought: It would make more sense to make a new macro like NULLSUB(name), hand have that point at an empty function rather than entering an address :/
« Last Edit: 03 / July / 2009, 04:22:56 by reyalp »
Don't forget what the H stands for.

CHDK Forum

Re: the sx10 porting thread
« Reply #473 on: 03 / July / 2009, 04:14:19 »

Offline cormac

  • Rookie
  • *
  • Posts: 46
Re: the sx10 porting thread
« Reply #474 on: 03 / July / 2009, 05:24:24 »
Thanks for the long file name answer. It saves me work looking at trying to fix it.

Any ret would probably work, but as it current stood it was pointing off into nowhere, hence the crash when set_zoom_speed was referenced. The location of nullsub_1 is probably static across all versions so far... it maps to a BX LR, essentially a ret instruction.

The NULLSUB macro would make more sense. I'll take a look at changing that, but I'm going to be pretty busy for the next two weeks.

« Last Edit: 03 / July / 2009, 05:26:03 by cormac »

Offline MacDaddy

  • Newbie
  • *
  • Posts: 3
Re: the sx10 porting thread
« Reply #475 on: 03 / July / 2009, 08:21:59 »
Cormac, thanks for getting us the latest beta build for 1.00C, I'll admit that I'm a newbie to CHDK but finally being able to play with the advanced features is great.  I've been real excited to try bracketing with RAW images but may have found a possible bug?  My SX10 chokes just after taking the second shot when I'm shooting RAW in bracket mode.  I tried with both the SX10's built in bracket modes and with the CHDK's.  I have to remove the batteries to recover.  Shooting in bracket mode still works fine when shooting JPG.

I'm I the only one seeing this?

Thanks,

Offline tool46

  • Rookie
  • *
  • Posts: 10
Re: the sx10 porting thread
« Reply #476 on: 03 / July / 2009, 09:29:26 »
cormac I have no problem with bracketing with RAW. With the first 1.00c you put up.
sx10is eos 50d eos 1Ds Mark II eos 5D Mark II

Offline reyalp

  • Guru Member
  • ******
  • Posts: 4468
Re: the sx10 porting thread
« Reply #477 on: 03 / July / 2009, 09:33:45 »
cormac I have no problem with bracketing with RAW. With the first 1.00c you put up.


Could you please check this with the most recent autobuild: http://mighty-hoernsche.de/

Any ret would probably work, but as it current stood it was pointing off into nowhere, hence the crash when set_zoom_speed was referenced.

Yes appears to have been copied from an FFC base address camera. I probably should have noticed this when I merged ;)

Quote
The NULLSUB macro would make more sense. I'll take a look at changing that, but I'm going to be pretty busy for the next two weeks.

No worry, it's a generic CHDK issue.
Don't forget what the H stands for.

Offline tool46

  • Rookie
  • *
  • Posts: 10
Re: the sx10 porting thread
« Reply #478 on: 03 / July / 2009, 09:52:54 »
reyalp would it be ok to check it later i need some sleep?
Steve
sx10is eos 50d eos 1Ds Mark II eos 5D Mark II

Offline reyalp

  • Guru Member
  • ******
  • Posts: 4468
Re: the sx10 porting thread
« Reply #479 on: 03 / July / 2009, 10:10:09 »
reyalp would it be ok to check it later i need some sleep?
Steve
Of course. If anyone else wants to check in the meantime, that would be great too.
Don't forget what the H stands for.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal