supplierdeeply

SX260 HS Porting Thread

  • 623 Replies
  • 65787 Views
Re: SX260 HS Porting Thread
« Reply #150 on: 03 / May / 2012, 16:00:18 »
Advertisements
I have downloaded your files, and wanted to try being a Beta Tester for the SX260 CHDK module, but I can't get it to show the Firm Update... I have several SD cards (1G up to 32GB) I am using a Mac though.
You probaby need to read this very carefully :
Apple Mac :  Still Having Trouble

Re: SX260 HS Porting Thread
« Reply #151 on: 04 / May / 2012, 03:26:24 »
First off, Thanks for all your hard work!!

I tried your latest version 'asm1989-sx260hs-100b-beta1.zip' using the 'Firmware Update Method Card Preparation' method, Windows 7-64.

I see the update firmware option in menu, press it and get 'Update file error!!' message, press ok goes back to normal playback menu.

I used the exact same method & card on my sx40 only minutes later & get successful 'firmware update', CHDK works for 'sx40hs-100g-1.0.0-1825-full_BETA.zip', so my procedure is ok I believe.

I copied files over several times for sx260, same error message.

Thanks!   

*

Offline funnel

  • ****
  • 349
Re: SX260 HS Porting Thread
« Reply #152 on: 04 / May / 2012, 04:30:10 »
@asm1989

Try commenting out everything in loader/sx260hs/entry.S

and leave just this

Code: [Select]
MOV     SP, #0x1900
MOV     R11, #0
B my_restart

sx260 is using different registers in task_SD1stInit for this. Could be causing issues with the firmup boot method.

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX260 HS Porting Thread
« Reply #153 on: 04 / May / 2012, 08:09:32 »
Thanks funnel,but seams to be no diference leaving only this code.


*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX260 HS Porting Thread
« Reply #154 on: 04 / May / 2012, 08:22:01 »
@london.roadhog   & @ StealthTaffer

Via update Firmware fails,  only works with automatic firmare loading:


you need to create a bootable SD ,

First format in FAT32

In a PC I use HxD  http://mh-nexus.de/en/hxd/ to EDIT the boot of the SD

In Extra- > Open Disk ->
                                     Deselect -> Read Only
                                     BE CAREFULL Select the Unit x: or what ever of your SD !!!!not your Harddisk!!!

Go to the right part at the level of 00001E0  and change the letters "any key " for "BOOTDISK"
and then SAVE

Then you only have to extract all the contents of asm1989-sx260hs-100b-beta1.zip into the root of the drive ( not in a directory)

Finally write protect your SD, and you camera should autoload form it.







*

Offline funnel

  • ****
  • 349
Re: SX260 HS Porting Thread
« Reply #155 on: 04 / May / 2012, 08:25:40 »
Using the chdk memory browser look at 0xF45C . Where does it point to? Should be sub_FFFF0004.

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX260 HS Porting Thread
« Reply #156 on: 04 / May / 2012, 08:39:50 »
@funel
yes: 0xFFFF0004
Dereferencing: 0xE59F0728

*

Offline funnel

  • ****
  • 349
Re: SX260 HS Porting Thread
« Reply #157 on: 04 / May / 2012, 09:59:33 »
The keys probably ok, it's something else somewhere else. I'm quite sure the keys are ok because a few days ago I decoded the original s100 firmware update from Canon with fi2encdec with the d4c keys.

For power handling in boot.c try this

Code: [Select]
*(int*)(0x2618+0x4) = (*(int*)0xC022F48C)&4 ? 0x200000 : 0x100000;


*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX260 HS Porting Thread
« Reply #158 on: 04 / May / 2012, 11:34:21 »
Thanks for the cross research funel,

Keys seem ok to me too tripple checked is several addresses and are the same as sx40 where it works, so must be another thing, ( I think it maybe something related to the algorithm to encode it not the keys)

The best way to try is with another working cam, I tried with sx210 and the only way I get the message "Invalid... " is if I chage some value in the keys.

I have tryied this in boot.c first replacing it ( Same result)  or prior to this code ( no way too)

Code: [Select]
if ((*(int*) 0xC022C30C) & 1)           
      *(int*)(0x2618+0x4) = 0x200000; 
    else
        *(int*)(0x2618+0x4) = 0x100000;

Is here where you want me to try?

*

Offline funnel

  • ****
  • 349
Re: SX260 HS Porting Thread
« Reply #159 on: 04 / May / 2012, 12:10:53 »
Quote
Is here where you want me to try?
Yes.

 

Related Topics