Ixus Wireless - SD430 Porting thread - page 5 - General Help and Assistance on using CHDK stable releases - CHDK Forum

Ixus Wireless - SD430 Porting thread

  • 131 Replies
  • 49181 Views
*

Offline ahull

  • *****
  • 634
Re: Ixus Wireless - SD430 Porting thread
« Reply #40 on: 09 / October / 2013, 15:21:15 »
Advertisements
That works a lot better, nafraf rewrote kbd.c using ixus65 as reference.

1) All keys work.
2) Mode switch works.
3) <ALT> Works
4) I can navigate all menus.
5) OSD Batt % and Voltage work in all modes.
6) Clock works in all modes.
7) Optical Temp. works in all modes. 
8 )File Browser works.
9) Module inspector does *stuff*
10) Text file reader works.
11) Games all work (wasted 20 mins playing snake).
12) Console options appear to work.
13) Show Build Info works
14) Show memory info ... slightly odd..
        Free Memory: 0 bytes                     <<oops
        CHDK Size: 152416 bytes
        Loaded at: 0xC5D80
15) SD Card > Make Bootable  -fails to boot (camera crashes) EDIT: ROMLOG.LOG attached.

All other menus operate, but loading scrips fails if the script attempts to shoot.
Note: Loading scripts works, and default.bas runs without any issues, we only have a problem if we attempt to shoot.
i.e. The shoot and half shoot keys work, because default.bas runs. If we actually attempt to take a picture we crash.
We can test further once this and the possible shortage of memory are addresses.
« Last Edit: 09 / October / 2013, 16:09:18 by ahull »

*

Offline ahull

  • *****
  • 634
Re: Ixus Wireless - SD430 Porting thread
« Reply #41 on: 09 / October / 2013, 16:31:28 »
Further testing.
1) Histogram works.
2) Raw takes a picture, result is a little mixed up (will upload an example to Google+ shortly).
3) Camera tends to crash when I attempt a 2nd raw picture.

*

Offline srsa_4c

  • ******
  • 4451
Re: Ixus Wireless - SD430 Porting thread
« Reply #42 on: 09 / October / 2013, 16:33:27 »
        Free Memory: 0 bytes                     <<oops
Modify sys_mempart_id in stubs_min.S to 0x17448. It's probably not widely known, but this is now required in all Vx ports which use memPartInfoGet to get memory information.

edit:
If you compile CHDK yourself, please retain core/main.bin.dump, it can help when analysing a crash log. The dump provides address and code hints about CHDK code. If the cam crashes, save the dump and the log to the same place (e.g. a zip archive).
« Last Edit: 09 / October / 2013, 16:40:49 by srsa_4c »

*

Offline reyalp

  • ******
  • 14132
Re: Ixus Wireless - SD430 Porting thread
« Reply #43 on: 09 / October / 2013, 16:47:35 »
        Free Memory: 0 bytes                     <<oops
Modify sys_mempart_id in stubs_min.S to 0x17448. It's probably not widely known, but this is now required in all Vx ports which use memPartInfoGet to get memory information.
Some very old vxworks cameras do not have memPartInfoGet. In this case, you need to define CAM_NO_MEMPARTINFO

You still need the sys_mempart_id, and memPartFindMax must be added to stubs_entry_2.s
Don't forget what the H stands for.

*

Offline srsa_4c

  • ******
  • 4451
Re: Ixus Wireless - SD430 Porting thread
« Reply #44 on: 09 / October / 2013, 17:23:03 »
@ahull
Both of your romlogs show the same crash in InitFileModules task. A call to TakeSemaphore times out (1000 ms), seems to be in the SD card low level driver(?). Does the cam work normally without CHDK, including shooting, video, with the same card?
Just an idea, the cause is most probably a bug.

Which tasks are replaced by CHDK (platform/generic/main.c, createhook())?

@reyalp
Fortunately this camera has the mempart library. The only models that don't are the ixus30, 40 and the s1is.

*

Offline ahull

  • *****
  • 634
Re: Ixus Wireless - SD430 Porting thread
« Reply #45 on: 09 / October / 2013, 17:31:46 »
        Free Memory: 0 bytes                     <<oops
Modify sys_mempart_id in stubs_min.S to 0x17448. It's probably not widely known, but this is now required in all Vx ports which use memPartInfoGet to get memory information.

Yes, that fixes the memory reporting issue. Thanks.

*

Offline ahull

  • *****
  • 634
Re: Ixus Wireless - SD430 Porting thread
« Reply #46 on: 09 / October / 2013, 17:33:04 »
@ahull
Both of your romlogs show the same crash in InitFileModules task. A call to TakeSemaphore times out (1000 ms), seems to be in the SD card low level driver(?). Does the cam work normally without CHDK, including shooting, video, with the same card?
Just an idea, the cause is most probably a bug.

Yes, the camera works normally without CHDK.

*

Offline ahull

  • *****
  • 634
Re: Ixus Wireless - SD430 Porting thread
« Reply #47 on: 09 / October / 2013, 17:53:43 »
Sample raw .DNG image



Not sure what is going on here.
« Last Edit: 09 / October / 2013, 18:04:27 by ahull »

*

Offline nafraf

  • *****
  • 1308
Re: Ixus Wireless - SD430 Porting thread
« Reply #48 on: 09 / October / 2013, 18:05:11 »
Test with: char *hook_raw_image_addr(){    return (char*)(0x1058edd4); }
or update your working copy ;)

*

Offline ahull

  • *****
  • 634
Re: Ixus Wireless - SD430 Porting thread
« Reply #49 on: 09 / October / 2013, 18:15:00 »
 Thanks for all he help so far, but this will have to wait till the morning. I need to sleep  :D speak to you both soon. 

 

Related Topics


SimplePortal © 2008-2014, SimplePortal