500d development - page 77 - DSLR Hack development - CHDK Forum

500d development

  • 2487 Replies
  • 901319 Views
*

Offline a1ex

  • *****
  • 671
  • ML dev
Re: 500d development
« Reply #760 on: 21 / April / 2011, 13:41:44 »
Advertisements
Latest user guide for 550D attached. The one from the wiki is a bit old.

Re: 500d development
« Reply #761 on: 21 / April / 2011, 13:51:15 »
I've got some time to help, so :

// consts-500d.110.h

#define HIJACK_INSTR_BL_CSTART  0xFF012AE8
#define HIJACK_INSTR_BSS_END 0xFF01093C
#define HIJACK_FIXBR_BZERO32 0xFF0108A4
#define HIJACK_FIXBR_CREATE_ITASK 0xFF01092C
#define HIJACK_INSTR_MY_ITASK 0xFF010948
#define HIJACK_TASK_ADDR 0x1a74

// RESTARTSTART at 0x4D000

where to find 0x1a74

Code: (asm) [Select]
ROM:FF015DA4 sub_FF015DA4                            ; CODE XREF: sub_FF072738+4p
ROM:FF015DA4                 STMFD   SP!, {R4,LR}
ROM:FF015DA8                 BL      sub_FF075320
ROM:FF015DAC                 LDR     R12, =0x1A74 <------
ROM:FF015DB0                 LDR     R1, [R0]
ROM:FF015DB4                 LDR     R3, =0x31D8
ROM:FF015DB8                 MOV     R0, #0
ROM:FF015DBC                 MOV     R2, #0
ROM:FF015DC0                 STR     R1, [R12,#8]
ROM:FF015DC4
ROM:FF015DC4 loc_FF015DC4                            ; CODE XREF: sub_FF015DA4+38j
ROM:FF015DC4                 LDR     LR, [R3]
ROM:FF015DC8                 CMP     R0, LR
ROM:FF015DCC                 ADDLT   LR, R1, R0,LSL#3
ROM:FF015DD0                 STRLT   R2, [LR,#4]
ROM:FF015DD4                 STRLT   R2, [R1,R0,LSL#3]
ROM:FF015DD8                 ADDLT   R0, R0, #1
ROM:FF015DDC                 BLT     loc_FF015DC4
ROM:FF015DE0                 LDR     R0, [R3]
ROM:FF015DE4                 ADD     R0, R1, R0,LSL#3
ROM:FF015DE8                 STR     R0, [R12,#0x10]
ROM:FF015DEC                 SUB     R0, R0, #8
ROM:FF015DF0                 STR     R0, [R12,#0xC]
ROM:FF015DF4                 MOV     R0, #0
ROM:FF015DF8                 STR     R2, [R12]
ROM:FF015DFC                 LDMFD   SP!, {R4,PC}
ROM:FF015DFC ; End of function sub_FF015DA4

I can not test it, so I hope already is OK

Indy

Re: 500d development
« Reply #762 on: 21 / April / 2011, 15:20:20 »
on my cam the HDR - Braket dont work ...

all other things work good, if i switch on the HDR Bracket ... no one function will work ...
no intervall, no audio shoot, no lcd shoot ...

@anyone the same ??

best regard cosmo

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: 500d development
« Reply #763 on: 21 / April / 2011, 15:24:56 »
a lot of stuff is still in the air. we're all ported to the latest 550d source code so that's a huge step done. We need to fix yuv422 now, and make sure the init functions are all correct, and verify that it's loading itself in the right spot in memory, I think this will clear up a lot of bugs.

Indy, I'm confused what we are supposed to do with that - are those constants actually going to be used by ML? I can't find any calls to any of those.
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr


*

alins

Re: 500d development
« Reply #764 on: 21 / April / 2011, 15:35:01 »
I've got some time to help, so :

// consts-500d.110.h

#define HIJACK_INSTR_BL_CSTART  0xFF012AE8
#define HIJACK_INSTR_BSS_END 0xFF01093C
#define HIJACK_FIXBR_BZERO32 0xFF0108A4
#define HIJACK_FIXBR_CREATE_ITASK 0xFF01092C
#define HIJACK_INSTR_MY_ITASK 0xFF010948
#define HIJACK_TASK_ADDR 0x1a74

.....
I can not test it, so I hope already is OK

Indy

if you don't mind Indy, what is this suppose to be and how exactly is this going to help?. i can't make heads and tails of it

Re: 500d development
« Reply #765 on: 21 / April / 2011, 15:36:52 »
on my cam the HDR - Braket dont work ...

Same problem as C0smo here.

Thanks for the great updates though!
« Last Edit: 21 / April / 2011, 15:39:35 by bkkenny »

Re: 500d development
« Reply #766 on: 21 / April / 2011, 15:49:05 »
When should I start testing Silent Picture?  Has anyone tried it?

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: 500d development
« Reply #767 on: 21 / April / 2011, 15:50:46 »
^ silent picture won't work until we have all of the yuv422 stuff straightened out.
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr


Re: 500d development
« Reply #768 on: 21 / April / 2011, 16:24:11 »
if you don't mind Indy, what is this suppose to be and how exactly is this going to help?. i can't make heads and tails of it

there are the constants specific to the model and firmware for 5d-hack.c.

again, see the wiki: http://magiclantern.wikia.com/wiki/5d-hack

60d-hack.c already use this kind of contants file:
https://bitbucket.org/sztupy/magic-lantern-for-60d/src/14fefec1ac13/60d-hack.c

Indy

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: 500d development
« Reply #769 on: 21 / April / 2011, 16:38:51 »
^ hey indy how did you come up with 0x4D000 as restartrestart for the 500d? did you mean to say restartstart, located inside the make file? it's currently:

Code: [Select]
# DryOSmemory map
# RESTARTSTART is selected to be just above the end of the bss
#
ROMBASEADDR = 0xFF010000
RESTARTSTART = 0x0008B000

looking at your 60d page, you took the bss_end address and added 28 (hex) to it to come up with 0x5f000, when I take bss_end from the 500d and add 28, I come up with 0x4c56c, you said it's 0x4d000. should i change the restartstart address in the make file to say 0x0004c56c or 0x0004d000? or neither?

  ???
« Last Edit: 21 / April / 2011, 16:43:25 by Coutts »
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr

 

Related Topics