Canon 5d Classic Development ***BOOTDISK NOW ENABLED*** - page 3 - DSLR Hack development - CHDK Forum

Canon 5d Classic Development ***BOOTDISK NOW ENABLED***

  • 65 Replies
  • 61715 Views
Re: Canon 5d Classic Development
« Reply #20 on: 07 / March / 2012, 01:32:28 »
Advertisements
EnableBootDisk= 0xFF8B7E18, DisableBootDisk= 0xFF8B7E30, update= 0xFF8B7CD8, DeleteMessageQueue= 0xFFB16ED4, CreateMessageQueue= 0xFFB16D84, ReceiveMessageQueue= 0xFFB170FC, TryReceiveMessageQueue= 0xFFB173A4, CreateBinarySemaphore= 0xFFB17EA0, SleepTask= 0xFFB187F4, DeleteTask= 0xFFB18D44, SuspendTask= 0xFFB19040, AttachTask= 0xFFB19194, DetachTask= 0xFFB19350, GetSelfTaskHandle= 0xFFB19564,

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: Canon 5d Classic Development
« Reply #21 on: 07 / March / 2012, 21:47:12 »
edit:
thought i had it booting.. hmf.

something odd though:
indy's tool says the firmware is at 0xFF810000 but this chdk wiki page says it's at 0xF8010000, which to believe??

http://chdk.wikia.com/wiki/5D
« Last Edit: 07 / March / 2012, 22:12:17 by Coutts »
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr

Re: Canon 5d Classic Development
« Reply #22 on: 08 / March / 2012, 11:36:12 »
It's 0xFF810000, if you load the rom at 0x00000000 it clearly gives you romStrat at 0xFF8102B0.

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: Canon 5d Classic Development
« Reply #23 on: 09 / March / 2012, 14:24:59 »
I tried calling the bootloader from ROM at 0xFFFF0000 and from RAM at 0x100000. After it still didn't boot the camera, I tried reverting my code back to normal and running the updater, but I was presented with this screen..



I turned the camera off / on, and tried taking a picture to make sure the camera was back to normal. The red LED never turned off, and it hung saving the picture. I pulled the battery and put it back in, and the camera wouldn't turn on..

I took the cf card out, and the camera turned on (PHEW - thought i killed the 5d), but my cf card won't show up on a computer now (tried windows and mac), so I guess I killed the CF card.

:|
« Last Edit: 09 / March / 2012, 14:33:06 by Coutts »
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr


*

Offline 0xAF

  • ***
  • 220
    • 0xAF
Re: Canon 5d Classic Development
« Reply #24 on: 09 / March / 2012, 14:47:22 »
I tried calling the bootloader from ROM at 0xFFFF0000 and from RAM at 0x100000.

why you do such experiments ? nothing good will come out of it ;)
// AF

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: Canon 5d Classic Development
« Reply #25 on: 09 / March / 2012, 23:38:00 »
I tried calling the bootloader from ROM at 0xFFFF0000 and from RAM at 0x100000.

why you do such experiments ? nothing good will come out of it ;)

I'm jus out of ideas :| tried some desperate measures, but learned my lesson.. I guess I need more patience.

I pm'd owerlord, I guess only he can help now (he was facing the same issues with the 400d). Problem is.. last time he logged in was 2008, so I'm not sure if I'll even hear back.

Not sure what to try now..
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: Canon 5d Classic Development
« Reply #26 on: 10 / March / 2012, 12:20:31 »
Here is my current IDC file. I have 191 functions named so far.

http://dl.dropbox.com/u/33161628/5d.111.0xff810000.idc
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: Canon 5d Classic Development
« Reply #27 on: 10 / March / 2012, 14:07:00 »
Re-wrote whole boot process far enough to spawn a task, still doesn't work though. What ever, I am giving up for now. I have pushed my latest code here, if the firmware would boot this is a solid platform to build off of. Maybe someone else can figure it out........

https://bitbucket.org/coutts/5dplus/changeset/0beb1b70f2f9


« Last Edit: 10 / March / 2012, 14:09:05 by Coutts »
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr


Re: Canon 5d Classic Development
« Reply #28 on: 11 / March / 2012, 03:31:09 »
I found taskHookInit= 0xFFB4F5BC and taskDeleteHookAdd= 0xFFB4F6A4 you need both for your entry.s

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: Canon 5d Classic Development
« Reply #29 on: 27 / March / 2012, 22:57:27 »
Been looking at the update function located at 0xFF8B7CD8 in an attempt to understand how firmware upgrades work. This function is only called from the firmware update dialog handler, and seems to be the main function that does stuff during a firmware update.

Found this property change happens right before the firmware update.

Quote
#define PROP_AUTO_POWEROFF                0x80030009

*0x13764 = arg0
prop_request_change(property=0x80030009, address=&(*0x13764), len=4)

So maybe this is auto poweroff being disabled so the firmware update isn't interrupted.
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr

 

Related Topics