SX160 IS porting thread - page 3 - DryOS Development - CHDK Forum

SX160 IS porting thread

  • 101 Replies
  • 55268 Views
Re: SX160 IS porting thread
« Reply #20 on: 18 / March / 2013, 11:32:19 »
Advertisements
Code: [Select]
"STMFD   SP!, {R0-R3,LR}\n" // Save all register which are used below
/* Install HOOK #1 */
"LDR     R0, = PatchCodeHook1\n" // R0 = Start adr. of our hook code call (SRC)
"LDR     R1, =0x68AF04\n" // ROM: 0xFF74C9CC
"MOV     R2, #(PatchCodeHook1End-PatchCodeHook1)/4\n" // WORDs to copy (lenght of patch bytes/4)
"BL      code_copy\n"

Guys, i have a question: How ROM address 0xFF74C9CC gets translated to RAM address 0x68AF04?

Re: SX160 IS porting thread
« Reply #21 on: 18 / March / 2013, 14:03:50 »
I'm able to boot the camera with this boot.c, but keys is not working and the screen is not ok.

Any tips from here?

Re: SX160 IS porting thread
« Reply #22 on: 18 / March / 2013, 15:58:21 »
kbc.c

Code: [Select]
static void __attribute__((noinline)) mykbd_task_proceed() {
    while (physw_run) {
        _SleepTask(*((int*)(0x1D30 + 0x8)));     //EYScudeler @FF828D54

        if (wrap_kbd_p1_f() == 1) {             // autorepeat ?
            _kbd_p2_f();
        }
    }
}

Keys working!
« Last Edit: 18 / March / 2013, 16:13:36 by EYScudeler »

*

Offline nafraf

  • *****
  • 1308
Re: SX160 IS porting thread
« Reply #23 on: 18 / March / 2013, 16:57:45 »
Hi EYScudeler, you can use:
Code: [Select]
_SleepTask(physw_sleep_delay);

A prealpha version in attachments, custom colors loaded, screen working, raw working.

« Last Edit: 20 / March / 2013, 09:29:12 by nafraf »

Re: SX160 IS porting thread
« Reply #24 on: 19 / March / 2013, 09:13:26 »
Hi EYScudeler, you can use:
Code: [Select]
_SleepTask(physw_sleep_delay);

A prealpha version in attachments, custom colors loaded, screen working, raw working.
Nice! Thanks!
This diskboot.bin is working fine!

I tried to compile from your SVN repository using the latest version of CHDK trunk, but the screen did'nt work. Have you done some modification on CHDK common files to solve the screen problem?

Re: SX160 IS porting thread
« Reply #25 on: 19 / March / 2013, 10:15:33 »
Hi EYScudeler, you can use:
Code: [Select]
_SleepTask(physw_sleep_delay);

A prealpha version in attachments, custom colors loaded, screen working, raw working.
Nice! Thanks!
This diskboot.bin is working fine!

I tried to compile from your SVN repository using the latest version of CHDK trunk, but the screen did'nt work. Have you done some modification on CHDK common files to solve the screen problem?

Found!

platform_camera.h
Code: [Select]
    #undef CAM_BITMAP_WIDTH
    #undef CAM_BITMAP_HEIGHT
    #define CAM_BITMAP_WIDTH                960 // Actual width of bitmap screen in bytes
    #define CAM_BITMAP_HEIGHT               270 // Actual height of bitmap screen in rows


*

Offline nafraf

  • *****
  • 1308
Re: SX160 IS porting thread
« Reply #26 on: 19 / March / 2013, 10:50:03 »
I tried to compile from your SVN repository using the latest version of CHDK trunk, but the screen did'nt work. Have you done some modification on CHDK common files to solve the screen problem?
platform_camera.h was out of date. Now it should be fine.
« Last Edit: 19 / March / 2013, 10:52:31 by nafraf »

Re: SX160 IS porting thread
« Reply #27 on: 20 / March / 2013, 15:27:09 »
I wanted to help you, testing in my SX160, how can I help?

Where is the file CHDK prealpha?
SX40HS

*

Offline jer

  • *
  • 10
Re: SX160 IS porting thread
« Reply #28 on: 22 / March / 2013, 08:07:30 »
Nafraf's boot image seems to have been removed for some reason
(it is running happily on my camera ...).

The source code of the pre-alpha is here:
http://subversion.assembla.com/svn/nafraf/chdk/

I was able to compile a DISKBOOT.BIN myself, however, camera doesn't boot with my version (screen remains black when booting).

Maybe due to these compile warnings:
Code: [Select]
CAUTION! 'signatures_vxworks.h' is not updated due to 'sig_ref_vxworks_1.bin` or 'sig_ref_vxworks_2.bin` or 'sig_ref_vxworks_3.bin` is empty!
CAUTION! 'signatures_dryos.h' is not updated due to 'sig_ref_dryos_?.bin` is empty!


« Last Edit: 22 / March / 2013, 10:03:40 by jer »
sx160is

Re: SX160 IS porting thread
« Reply #29 on: 22 / March / 2013, 09:48:21 »
I was able to compile a DISKBOOT.IMG myself, however, camera doesn't boot with my version (screen remains black when booting).
Is that a typo error?  The file you need to put on your SD card is DISKBOOT.BIN

Quote
Maybe due to these compile warnings:
Code: [Select]
CAUTION! 'signatures_vxworks.h' is not updated due to 'sig_ref_vxworks_1.bin` or 'sig_ref_vxworks_2.bin` or 'sig_ref_vxworks_3.bin` is empty!
CAUTION! 'signatures_dryos.h' is not updated due to 'sig_ref_dryos_?.bin` is empty!
AFAIK,  this can be safely ignored.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal © 2008-2014, SimplePortal