G11 porting - page 19 - DryOS Development - CHDK Forum supplierdeeply

G11 porting

  • 530 Replies
  • 245760 Views
Re: G11 porting
« Reply #180 on: 04 / January / 2010, 17:28:37 »
Advertisements
Remember to find the USB bit in physw_status[].

Just connect to the PC with the usual cable.

If you do not see any change the bit may be in the part of physw_status[2] that is masked.

Why does physw_status[1] have nine nibbles rather than eight ?
« Last Edit: 04 / January / 2010, 17:31:29 by Microfunguy »

*

Offline ERR99

  • ****
  • 339
Re: G11 porting
« Reply #181 on: 04 / January / 2010, 18:15:35 »
Yes, the USB bit stuff. Thanks for the hint, i will check this.
The one nibble you see on the screenshot is from a another debut output,
and not from the actual phy[1] output.  I dont clear the hole framebuffer after a debug test write, so its normal
that sometimes old output survives.  ;)

*

Offline ERR99

  • ****
  • 339
Re: G11 porting
« Reply #182 on: 04 / January / 2010, 18:32:07 »
Yes, the USB-Bit (its #define USB_MASK (0x100000) for the G11) helps.
The camera is still easy to crash if i select something or try to open chdk menus, but anyway, there is progress visible...  :D
« Last Edit: 04 / January / 2010, 18:34:32 by ERR99 »

Re: G11 porting
« Reply #183 on: 04 / January / 2010, 18:37:22 »
So where was menu-entry crashing when you pressed PRINT button ?



*

Offline ERR99

  • ****
  • 339
Re: G11 porting
« Reply #184 on: 05 / January / 2010, 06:54:07 »
Its not so easy to tell. The system crashes randomly if i play arround with the buttons.
If the system crashes, or freezes or startup normaly, depends currently on the content of the SD-Card.
Yesterday, i was able to startup the cam and make the posted screenshot.
Then i deleted some of the pictures on the sd-card (with the camera) and also shooted some new pictures this morning (while CHDK was running). I deleted again some JPEGs, and now, with the same diskboot.bin from yesterday, the G11 crashes&switches off before chdk splash screen is shown.
If i take some more pictures (chdk disabled by setting the write switch to write enabled) and starting again with CHDK enabled,
the camera starts, but at the point where normaly the splash screen is shown, the G11 freezes after 2 seconds and i have to remove the battery to reset the camera.

Very strange...

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: G11 porting
« Reply #185 on: 05 / January / 2010, 07:17:55 »
@ERR99:
Check the card's file system to make sure it's not corrupted...

*

Offline ERR99

  • ****
  • 339
Re: G11 porting
« Reply #186 on: 05 / January / 2010, 08:11:22 »
Okay, i used checkdisk for a card inspection, but it does not find any errors.
Then i formated the SD-CARD again with Cardtricks and copied my CHDK folder and my diskboot.bin on the card.
And the camera started! Then i switched the camera off, and restarted again and it freezes at the Canon "PowerShot G11" startup screen. I did a compare with the SD-Card content and the CHDK folder on my harddisk, and i found a difference. It is the automaticly created CCHDK.CFG file. If i delete this files, the camera is starting again, until i shutdown the camera. Sometimes the camera is able to start, even if the file exists allready, but most of the time it crashes now. So something wie the config stuff seems to be the cause for the random crashes&freezes.
« Last Edit: 05 / January / 2010, 08:17:45 by ERR99 »

Re: G11 porting
« Reply #187 on: 05 / January / 2010, 08:20:24 »
I did think of that but I thought you could not save files.

Maybe the problem is only opening files.

I would just keep deleting the CFG file for now.

I think in CHDK \core\gui.c there is a commented-out option to not autosave the CFG file.


EDIT:

Yes, at the top :-

#define OPTIONS_AUTOSAVE 

« Last Edit: 05 / January / 2010, 09:38:18 by Microfunguy »


*

Offline ERR99

  • ****
  • 339
Re: G11 porting
« Reply #188 on: 05 / January / 2010, 13:01:21 »
Saving files works since the "SD Card protected" message dissapears. Now i have full file access and can read&write on the sd-card.

I disabled the AUTOSAVE feature now, and the camera start-up is now much more reliable. :)
I got now also a lot of CHDK menu visible, after i modified the function conf_change_menu_rbf_file() (instead of disabling this function complete, because it crashes at startup):

Code: [Select]
static void conf_change_menu_rbf_file() {
// if (!rbf_load(conf.menu_rbf_file))
        rbf_load_from_8x16(current_font);
    rbf_set_codepage(FONT_CP_WIN);
}

Now i am able to see a lot of nice CHDK menus.

*

Offline ERR99

  • ****
  • 339
Re: G11 porting
« Reply #189 on: 05 / January / 2010, 13:02:29 »
Lets play.  :D

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal