sx280hs chdk?

  • 28 Replies
  • 5691 Views
  • Publish
    Re: sx280hs chdk?
    « Reply #10 on: 23 / May / 2013, 08:38:09 »
    Advertisements
    I can't seem to get the bootdump script to work and I've tried both.

    So I used the EOScard program to add the script string to the first sector
    I added a file called script.req to the sd card and in it I wrote "for DC_scriptdisk" (without the quotes)
    I also added a file called extend.m where I tried pasting the both scripts yet neither worked.

    The first script recorded "not found!" (this showed up on the camera screen and a log file on the card)
    The simple script did not result in a log file but the camera displayed "start not found!"

    What am I doing wrong?

    *

    Offline srsa_4c

    • ******
    • 3118
  • Publish
    Re: sx280hs chdk?
    « Reply #11 on: 23 / May / 2013, 08:52:46 »
    The first script recorded "not found!" (this showed up on the camera screen and a log file on the card)
    ...
    What am I doing wrong?
    You're not doing anything wrong. The scripts are running.
    Try using the first (bigger) script, with the following change:
    Change 0xFF000004 to 0xF8000004, and 0xFF000000 to 0xF8000000.

    update: the above modification may cause the camera to switch off. If it doesn't switch off, the dump will be 128MB.
    Make the following change in addition to the above:
    locate the following line:
    romsize = 0xFFFFFFFC - startaddr
    and change it to
    romsize = 0xF8FFFFFC - startaddr
    « Last Edit: 23 / May / 2013, 08:59:46 by srsa_4c »

  • Publish
    Re: sx280hs chdk?
    « Reply #12 on: 23 / May / 2013, 09:02:51 »
    I did the first change so the last If-Then statement is now:

       if memcmp(0xF8000004,"gaonisoy",8) = 0 then
          startaddr = 0xF8000000
          os = "dry"
          exit sub
       end if

    However, I still got the same not found! message in the log.
    I'll make the additional romsize adjustments now, for now.

    *

    Offline srsa_4c

    • ******
    • 3118
  • Publish
    Re: sx280hs chdk?
    « Reply #13 on: 23 / May / 2013, 09:07:21 »
    I did the first change so the last If-Then statement is now:

       if memcmp(0xF8000004,"gaonisoy",8) = 0 then
          startaddr = 0xF8000000
          os = "dry"
          exit sub
       end if

    However, I still got the same not found! message in the log.
    I'll make the additional romsize adjustments now, for now.
    Hmmm. Looks like the ROM is either at an address we haven't seen before, or they changed the "gaonisoy" signature. I'll post a script that will try to dump 256MB in 16MB segments.


    *

    Offline srsa_4c

    • ******
    • 3118
  • Publish
    Re: sx280hs chdk?
    « Reply #14 on: 23 / May / 2013, 10:00:30 »
    Script is below. It's a bit lame, and may cause the camera to switch off. It will try to dump memory (16MB) starting from 0xFF000000, then it will try the same from 0xFE000000, etc...
    The argument of mydump() shows which memory segment is to be dumped.
    Dump files will show up in the root of the SD card.
    You can try to look at the dump files with a hex viewer, and zip up those which contain something other than 00 bytes (7zip recommended for compression).
    Code: [Select]
    dim f,a,startadr=0,romsize=0x1000000,msgstr=0

    private sub mydump(c)
            startadr = c * 0x1000000
            startadr = startadr + 0xf0000000
            sprintf(msgstr,"A/DUMP%0X.BIN",c)
            LCDMsg_SetStr(a,msgstr)
            f=Fopen_Fut(msgstr,"w")
            Fwrite_Fut(startadr,romsize,1,f)
            Fclose_Fut(f)
    end sub

    private sub Initialize()
    UI.CreatePublic()
    a=LCDMsg_Create()
    LCDMsg_SetStr(a,"Running")
    System.Create()
    msgstr = AllocateMemory(80)

            ' mydump(15)
            ' mydump(14)
            mydump(13)
            mydump(12)
            ' mydump(11)
            ' mydump(10)
            ' mydump(9)
            ' mydump(8)
            ' mydump(7)
            ' mydump(6)
            ' mydump(5)
            ' mydump(4)
            ' mydump(3)
            ' mydump(2)
            ' mydump(1)
            ' mydump(0)

            LCDMsg_SetStr(a,"Done")
    FreeMemory(msgstr)
    end sub
    edit: commented parts of the code which appear to be unnecessary, changed chunk size to 16MB
    « Last Edit: 26 / May / 2013, 07:57:38 by srsa_4c »

  • Publish
    Re: sx280hs chdk?
    « Reply #15 on: 23 / May / 2013, 10:21:49 »
    Thanks! It seems to have worked :)

    1. I see that some files start with a lot of "AAAAAA" folowed by other repeating characters.
    2. Others have multilines of ascii nonsense
    3. Then there are others with lots of ascii lines but also lots of english.. stuff that looks like camera menu stuff I guess.

    Which ones should I upload and make available? Just the ones with English (3), or all the ones that are not just one line of repeating characters (2 and 3)?

    Update:
    Actually, there's only 2 types, its either one line or multiline with English or other languages. 4 of the proper looking ones in all. I wil try upload them..
    « Last Edit: 23 / May / 2013, 10:25:41 by tzurek »

    *

    Offline srsa_4c

    • ******
    • 3118
  • Publish
    Re: sx280hs chdk?
    « Reply #16 on: 23 / May / 2013, 10:32:25 »
    Thanks! It seems to have worked :)
    Which ones should I upload and make available? Just the ones with English (3), or all the ones that are not just one line of repeating characters (2 and 3)?
    If you have a compression utility that can create "solid" files (like 7zip), you could try to compress all dumps into one archive. If you don't, only post those dumps that make sense (dumps solely consisting of 'A' characters or so are probably not useful).

  • Publish
    Re: sx280hs chdk?
    « Reply #17 on: 23 / May / 2013, 10:55:59 »
    I have uploaded it to my Google Drive. All the useful files are 7zipped.
    https://docs.google.com/file/d/0B4Y9UEEF5SVlT0lOczZ2S2hjUG8/edit?usp=sharing

    I will put this up on the development forum :)


  • Publish
    Re: sx280hs chdk?
    « Reply #18 on: 08 / November / 2013, 11:15:22 »
    Just wanted to see if any progress has been made on SX280HS, or if it is likely that there will be or not.

    Thanks,

    Rob

  • Publish
    Re: sx280hs chdk?
    « Reply #19 on: 08 / November / 2013, 11:46:29 »
    Just wanted to see if any progress has been made on SX280HS, or if it is likely that there will be or not.
    link> CHDK FAQ : My camera isn't ported yet

    and this :  http://chdk.setepontos.com/index.php?topic=10890.msg106970#msg106970

    TL;DR : its a big job and nobody has started it

     

    Related Topics