SX720 Porting thread - page 11 - DryOS Development - CHDK Forum supplierdeeply

SX720 Porting thread

  • 158 Replies
  • 40898 Views
*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX720 Porting thread
« Reply #100 on: 17 / April / 2016, 10:23:10 »
Advertisements
Thanks srsa_4c, I think I have it all ported,


The problem seems to be in initifile, without it boots with no black lines, and also crashes but later


Without booth initfile and captseq also boots but crashes a bit later, attached logs

*

Offline srsa_4c

  • ******
  • 4031
Re: SX720 Porting thread
« Reply #101 on: 17 / April / 2016, 10:24:53 »
The most likely suspect is that you're not using the correct variables/constants for the overlay buffer (CHDK display) related code.
The apparently corrupt registers in your 1st romlog romlogs have values like 0x80C0E0C0 which could be CHDK drawing...
Please upload your current code somewhere.
« Last Edit: 17 / April / 2016, 10:26:49 by srsa_4c »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX720 Porting thread
« Reply #102 on: 17 / April / 2016, 10:32:40 »
Yes I thinks it something with the buffers too or the size copied from g7x, here it is http://filebin.net/mfp0a4lurj

*

Offline srsa_4c

  • ******
  • 4031
Re: SX720 Porting thread
« Reply #103 on: 17 / April / 2016, 10:44:08 »
Thanks.
Yes I thinks it something with the buffers too
bitmap_buffer in stubs_min.S is surely not correct, please read back for my suggestion.


*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX720 Porting thread
« Reply #104 on: 17 / April / 2016, 10:57:07 »
Thanks srsa_4c missed that, with
DEF(bitmap_buffer, 0xc8b8)
DEF(active_bitmap_buffer, 0xc8b8)
boots without canon logo corruption, did not shutdown, but still no chdk is shown and pressing any button crash it
Now it also boots with the initfiles enabled

*

Offline srsa_4c

  • ******
  • 4031
Re: SX720 Porting thread
« Reply #105 on: 17 / April / 2016, 11:07:03 »
DEF(bitmap_buffer, 0xc8b8)
That points to the list (array) of framebuffer addresses, so it should be OK.
Quote
DEF(active_bitmap_buffer, 0xc8b8)
But this one should be the array index (that is, alternating between 0 and 1). Obviously, it can't be the same as bitmap_buffer.

pressing any button crash it
That's still doesn't look convincing. Romlog?

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX720 Porting thread
« Reply #106 on: 17 / April / 2016, 11:14:12 »

Thanks any guess for the active_bitmap_buffer ?
Without the fileinit I can press canon menu and works and wifi too
Withe the fileinit now crashess with the attached romlog
do you have any clue  why the chdk logo is not showing?

*

Offline srsa_4c

  • ******
  • 4031
Re: SX720 Porting thread
« Reply #107 on: 17 / April / 2016, 11:23:38 »
Thanks any guess for the active_bitmap_buffer ?
Guess: g7x has bitmap_buffer - 8, try that (what you had there originally, 0xc8b0).
Quote
do you have any clue  why the chdk logo is not showing?
Wrong active_bitmap_buffer and/or the opacity buffers are not in the right order.
Your crash is in CHDK code, main.bin.dump required to decipher. (if you see any of CHDK tasks in the romlog, you can assume main.bin.dump is needed)
Will come back later.


*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX720 Porting thread
« Reply #108 on: 17 / April / 2016, 11:30:00 »

Thanks,


With 0xc8b0 and without the initfiles I get a lot of red lines shown, could be with imaginationa chdk logo !!! but messy


I have these char *opacity_buffer[2] = {(char*)0x5fc40000, (void*)0x5fb80000};


but maybe the update_screen_dimensions() or vid_get_viewport_fullscreen_height()  at lib.c is wrong

*

Offline srsa_4c

  • ******
  • 4031
Re: SX720 Porting thread
« Reply #109 on: 17 / April / 2016, 12:51:46 »
I have these char *opacity_buffer[2] = {(char*)0x5fc40000, (void*)0x5fb80000};
Those might be OK (otherwise you wouldn't see those red lines so clearly).
Quote
update_screen_dimensions()
last time I checked that was commented out, and, as I mentioned recently, you only need that if you'd like to support correct CHDK display in playback mode on HDMI or analog TV.

The rest (that doesn't depend fw variables) should be similar to sx280 - you have 640x480 resolution everywhere.

 

Related Topics