PowerShot SX220 HS - Porting Thread - page 16 - General Discussion and Assistance - CHDK Forum supplierdeeply

PowerShot SX220 HS - Porting Thread

  • 563 Replies
  • 181836 Views
Re: PowerShot SX220 HS - Porting Thread
« Reply #150 on: 16 / June / 2011, 15:26:57 »
Advertisements
A new beta build is availabe for testing.

Fixed:
-Edge overlay and Zebra
-corrected a small error in stubs_min.S and the UI feels a little faster now

That's it, everything should work now, I hope.  8)

Binary beta4 http://www.zshare.net/download/9149166255d0474a/
Source beta4 http://www.zshare.net/download/914923100574705b/
 



great funnel! thanks :)

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #151 on: 16 / June / 2011, 17:24:54 »
I found a solution for the booting of bigger cards with two partitions.

This small modification fixed the problem  :)
Code: [Select]
           //      "LDRB    R12, [R4,#0x1FE]\n"
           //      "LDRB    R4, [R4,#0x1FF]\n"
                 "LDRB    R12, [LR,#0x1FE]\n"           // + First MBR signature byte (0x55), LR is original offset.
                 "LDRB    LR, [LR,#0x1FF]\n"            // + Last MBR signature byte (0xAA), LR is original offset.
  "BNE     loc_FF06A370\n"
                 "CMP     R1, R0\n"
                 "BCC     loc_FF06A370\n"
                 "ADD     R3, R0, R2\n"
                 "CMP     R3, R1\n"
                 "CMPLS   R12, #0x55\n"
                 "CMPEQ   LR, #0xAA\n"  // + R4 to LR  <------------------here



Re: PowerShot SX220 HS - Porting Thread
« Reply #152 on: 16 / June / 2011, 17:37:00 »
Its nice to see the firmware progressing :) - I'll probably look at picking one of the cameras up soon.

Sorry if this is a stupid question but can I ask if the time limits on HD video recording have been removed yet ? I've had a look through the thread but I can't see anything about it.

Cheers,

Gordon

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #153 on: 16 / June / 2011, 18:02:17 »
@gr0don
No, not yet. I hope it can be done at least for slow motion recording.


*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #154 on: 17 / June / 2011, 07:54:16 »
« Last Edit: 17 / June / 2011, 07:59:22 by funnel »

*

Offline philmoz

  • *****
  • 3445
    • Photos
Re: PowerShot SX220 HS - Porting Thread
« Reply #155 on: 17 / June / 2011, 08:28:31 »
Quote
There's another bug we have to solve.

The crash occurs in the opendir function. It crashes everytime when we have jpgs on memory card and connecting usb to run PTP.

The code throws the assert in this 2 places

Sometimes the task is Fsionotify, PhySw or PTP CtrlTask

Looks like you've run out of memory in the Canon heap.
sub_FF02B844 is the AllocateUncacheableMemory function which calls malloc to get some memory then sets the 'uncached' bit on the return address.
The assert is happening because AllocateUncacheableMemory is returning 0 which means that malloc failed.

If you are using a recent code trunk and have found the GetMemInfo address you can use this to get useful stats on the Canon heap memory. From recent posts you are loading CHDK in the Canon heap; but using EXMEM for the CHDK heap. Since CHDK itself is stealing memory from the firmware there may not be enough left, or there could be a memory leak somewhere.

When the camera starts up it uses memory for each JPEG image on the card (presumably for the playback mode). This is probably why it works when the card is empty; but not when the are images. The PTP code also allocates memory; but it should be using the CHDK heap.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #156 on: 17 / June / 2011, 09:56:21 »
Thanks Phil, that helped. I think I solved it now.

What I did:
-went up with exmem memory to 640kb
-chdk in exmem
-DNG continuous shooting didn't work anymore
-moved capt_seq_hoo_raw_here line in the same place as g12 and sx30 which previously didn't work
-everything works
-UI is now fast and responsive even with chdk in exmem
 8)
Still to do some more tests but looks very stable to me.

Just another thing I noticed, in chdkptp crashes just in the folder browser. Looks like it's sending some unrecognised command or something similar. The romlog was empty.

Re: PowerShot SX220 HS - Porting Thread
« Reply #157 on: 18 / June / 2011, 03:11:35 »
New to SX220HS type camera. Used a SX1 with CHDK for a long time. Really hooked on CHDK. Marvellous to find this port going on, so downloaded it, but can I make it work? You'd think? Wouldn't you? In past with SX1 I used SDMINSTE.EXE to create a two-partition SD for specific CHDK use. I make it bootable, and put the CHDK in the 2nd (large-for photos) partition. I lock the SD. I put it in the SX1, CHDK auto-boots, and off I go. Seeeemples! With SX220HS no such luck, because the above config causes the SX220HS to think the memory card is bad. If I reformat in the SX220HS I will lose the CHDK, and the two partitions. There are CHDK options for partitions and making-bootable of course, but I can't get to those if I don't have CHDK loaded first. CONFUSED.COM.  In plain wording, how do I make up the SD to work like it did for the SX1?


*

Offline funnel

  • ****
  • 349
Re: PowerShot SX220 HS - Porting Thread
« Reply #158 on: 18 / June / 2011, 03:25:39 »
@almirante
The autoboot feature didn't work until now and I haven't uploaded the working version yet. I have to do some more tests to confirm that everything is ok and upload it later.
You can start it with the firmware update method.
« Last Edit: 18 / June / 2011, 03:32:46 by funnel »

Re: PowerShot SX220 HS - Porting Thread
« Reply #159 on: 18 / June / 2011, 12:06:00 »
i wonder if someone have set up a sx220 lens correction profile for photoshop :)

 

Related Topics