Porting chdk to the G9 - page 4 - DryOS Development - CHDK Forum

Porting chdk to the G9

  • 245 Replies
  • 126181 Views
Re: Porting chdk to the G9
« Reply #30 on: 21 / April / 2008, 16:29:06 »
Advertisements
Hello Jeff666,
I've loaded both the diskboot, but the g9 wont turn on.
I'm playing with the source now, hope to find sometihng useful.

Thanks a lot for your great work! :)

should I copy the dump to \platform\g9\sub\100f\ on PRIMARY.BIN?

Edit 1:

- fixed the size for raw image in camera.h (set it to 4032 x 3024)
« Last Edit: 21 / April / 2008, 16:34:27 by bongo_bingo »

*

Offline jeff666

  • ****
  • 181
  • A720IS
Re: Porting chdk to the G9
« Reply #31 on: 21 / April / 2008, 16:43:33 »
I've loaded both the diskboot, but the g9 wont turn on.
I'm playing with the source now, hope to find sometihng useful.

The popular method to find out if a certain piece of code is executed is to turn on an LED. After the resetcode has run and reset the device (I assume this part worked) the program is continued in platform/<dev>/sub/<ver>/boot.c, function boot().

Turn on an LED in this function. If the LED actually lits up, the code is executed. Move the LED-code on until you find the last line of code which is executed. Then we can guess what went wrong.

Cheers

Re: Porting chdk to the G9
« Reply #32 on: 21 / April / 2008, 16:50:48 »
no led are blanking at the moment.

I'm looking at g9\sub\100f\makefile.inc, it reports:

MEMBASEADDR=0x1900
RESTARTSTART=0x50000
MEMISOSTART=0xB0B68
MEMISOSIZE=0x40000
ROMBASEADDR=0xff810000

shouldn't it be:

MEMBASEADDR=0xFF810134
RESTARTSTART=0x50000
MEMISOSTART=0xFF81014C
MEMISOSIZE=0x40000
ROMBASEADDR=0xff810000
?

Edit 1:
- I'm having some problems compiling
« Last Edit: 21 / April / 2008, 16:58:48 by bongo_bingo »

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Porting chdk to the G9
« Reply #33 on: 21 / April / 2008, 17:05:31 »
MEMBASEADDR=0x1900
RESTARTSTART=0x50000
MEMISOSTART=0xB0B68
MEMISOSIZE=0x40000
ROMBASEADDR=0xff810000

shouldn't it be:
...

No, they should not. The values are absolutely correct.
CHDK Developer.


Re: Porting chdk to the G9
« Reply #34 on: 21 / April / 2008, 17:08:06 »
sorry! :-X

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Porting chdk to the G9
« Reply #35 on: 21 / April / 2008, 17:15:25 »
Edit 1:
- I'm having some problems compiling

>> in your compilation log: /home/jeff/data/digicam/a720-hack/dev/g9_port/...
Is it your path? I suspect not.
Try executing
 gmake PLATFORM=g9 PLATFORMSUB=100f clean
before
 gmake PLATFORM=g9 PLATFORMSUB=100f fir

Or just
 gmake PLATFORM=g9 PLATFORMSUB=100f clean fir
CHDK Developer.

Re: Porting chdk to the G9
« Reply #36 on: 21 / April / 2008, 17:18:46 »
corrected the issues with gcc,
succeffully recompiled, but no sign of life.

What can I search for?

Re: Porting chdk to the G9
« Reply #37 on: 21 / April / 2008, 17:23:11 »
MEMISOSTART=0xB0B68 This is where you can find it. See attachment. (I'm late)  :-[


Re: Porting chdk to the G9
« Reply #38 on: 21 / April / 2008, 17:28:35 »
Hello Titan_G9! :)

did you have some progress?
have you tested the diskboot.bin?

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Porting chdk to the G9
« Reply #39 on: 21 / April / 2008, 17:30:51 »
MEMISOSTART=0xB0B68 This is where you can find it. See attachment. (I'm late)  :-[

The another method to find that value is to search for the string "heap start". The value will be above of that string:

Code: (asm) [Select]
ROM:FF8237D0 aBssStart       DCB "bss start",0                 ; DATA XREF: memmap+16Co
ROM:FF8237DA                 DCB    0
ROM:FF8237DB                 DCB    0
ROM:FF8237DC dword_FF8237DC  DCD 0xB0B68                       ; DATA XREF: memmap+17Cr
ROM:FF8237E0 aHeapStart      DCB "heap start",0                ; DATA XREF: memmap+188o
ROM:FF8237EB                 DCB    0
« Last Edit: 21 / April / 2008, 17:46:14 by GrAnd »
CHDK Developer.

 

Related Topics