port for A3300IS / what reference port to use? - page 21 - General Discussion and Assistance - CHDK Forum  

port for A3300IS / what reference port to use?

  • 289 Replies
  • 99698 Views
Re: port for A3300IS / what reference port to use?
« Reply #200 on: 13 / January / 2012, 21:09:38 »
Advertisements
I dont really know where I am suppose to put this, but I would like to share my port with anyone wanting it for this cam.
I created a patch file and submitted this for inclusion in the svn.  Link is here : http://chdk.setepontos.com/index.php?topic=650.msg79808#msg79808.

Note that the code you posted does not actually compile.  I had to change these #defines to #undef

Code: [Select]
#undef CAM_LOAD_CUSTOM_COLORS
#undef CHDK_COLOR_BASE

as you do not have load_chdk_palette() defined in your platform/camera/lib.c file.

yeah, i was doing tweaks on the color pallettes and noticed i forgot to uncomment the def in stubs.min

i caught a few minutes later when i went to work on it again.

sorry bout that

Re: port for A3300IS / what reference port to use?
« Reply #201 on: 14 / January / 2012, 01:01:38 »
Nope, damn, thought that might have finally fixed it.

Still can't boot (tried pressing play also)

Off Topic: Do you have an IM account, or something so maybe we could chat?
Hmmm, I am really suprised it wont boot, the versions are not much differ at all, just a few addreses seem to be differ, i will look again see if i missed something.

Maybe ill try a debug light first to see if its even working at some point.

Sorry, I found what I did wrong, sleep can fix alot of bugs, lol.

Try this one, hope this gets it to boot, but remember, I only converted boot.c so far. Lets get it to boot first.

This one works!

Re: port for A3300IS / what reference port to use?
« Reply #202 on: 14 / January / 2012, 02:00:22 »
Nope, damn, thought that might have finally fixed it.

Still can't boot (tried pressing play also)

Off Topic: Do you have an IM account, or something so maybe we could chat?
Hmmm, I am really suprised it wont boot, the versions are not much differ at all, just a few addreses seem to be differ, i will look again see if i missed something.

Maybe ill try a debug light first to see if its even working at some point.

Sorry, I found what I did wrong, sleep can fix alot of bugs, lol.

Try this one, hope this gets it to boot, but remember, I only converted boot.c so far. Lets get it to boot first.

This one works!
great!!!, i will do the other files for u then!!! 8]

Re: port for A3300IS / what reference port to use?
« Reply #203 on: 14 / January / 2012, 08:14:04 »
Here is the 100d port, it should of converted fine since the boot.c went ok.

Guess I should post the 100a latest as well.
« Last Edit: 14 / January / 2012, 08:26:16 by mk11174 »


Re: port for A3300IS / what reference port to use?
« Reply #204 on: 14 / January / 2012, 12:51:24 »
Here is the 100d port, it should of converted fine since the boot.c went ok.

Guess I should post the 100a latest as well.

Well, the latest port it seems still isn't working. It successfully boots, but then the screen goes black and I can't do anything.

Edit:

I don't know anything about coding, but could the display LCD address be different or the LCD set  off?
« Last Edit: 14 / January / 2012, 12:54:04 by AlexWekell »

Re: port for A3300IS / what reference port to use?
« Reply #205 on: 14 / January / 2012, 12:59:15 »
n't know anything about coding, but could the display LCD address be different or the LCD set  off?
Not likely.  Hardware addresses do not usually change between different firmware versions of the same camera.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: port for A3300IS / what reference port to use?
« Reply #206 on: 14 / January / 2012, 15:19:21 »
Ok, confirmation this port does work fine, here is the update.

And thanks Alex for testing it for me 8]

*

Offline reyalp

  • ******
  • 14098
Re: port for A3300IS / what reference port to use?
« Reply #207 on: 14 / January / 2012, 18:11:10 »
The 100a version of this port is now in svn, in both the release and development branches. This does not mean it is working or finished, or ready to use. It's just a way of making sure the current work-in-progress doesn't get lost. Even so, I'm not sure this was a good idea.

I know that mk11174 put a lot of effort into this, but a quick look shows that it is extremely broken. I changed the notes.txt to reflect this, and added a few comments in to things that were glaringly wrong.  The previous notes.txt was a copy from sx230 ::)

It is completely wrong to just copy/paste from another cameras platform. You can use that as a starting point to make it build but EVERY CAMERA SPECIFIC ITEM NEEDS TO BE CORRECTED FOR YOUR CAMERA. That means you need to go through every file in the platform and loader directories, line by line, and confirm whether it is correct for your camera. If you aren't able to figure out what is camera specific, then you really aren't in a position to make a working port.

You absolutely should not leave comments copied from other cameras. If a comment isn't correct for your port TAKE IT OUT. If you don't know what belongs in that location, ADD A COMMENT EXPLAINING THAT THE VALUE IS NOT VERIFIED. If it's an unverified copy / paste from another camera, describe which camera it was copied from.

The fact that a port compiles and boots does not mean that it is working. If there is an experienced programmer thinking about working on this port, I'd strongly suggest you consider starting from scratch. If not, you need to assume that every platform file is unverified.

Don't forget what the H stands for.


Re: port for A3300IS / what reference port to use?
« Reply #208 on: 14 / January / 2012, 21:08:09 »
Yeah, exactly what I have actually said a couple times, I made it cryastal clear I am a newbie at this and also said it would be a good starting point for a real programmer to finish the details.

That said though, the port seems to be working fine, things are working, I am sure its not 100% cause I know there are things needing to be done that I dont understand yet, but it boots, I can use overrides, scripts, extra features, so I dont see why a user should not use it, it opens up the camera just fine.

And just to note, I did go through every file especially on my version, just cause I left comments in there from other cam, that was just lazyness cause I was just learning and trying to focus on getting it to work, they are comments,they dont effect the cam.

Amazing how much negativity I get just because I am trying to share what I have done so far with other users like me, I dont see what the problem is, especially when I make it clear I am just a beginner and I know its not going to be perfect.

The port is working plenty enough for me in all modes, so anyone should feel free to try it I think, its there choice, I am just trying to help all I can, sorry I am not mr proffesional programmer that knows all the dos and donts.


Re: port for A3300IS / what reference port to use?
« Reply #209 on: 14 / January / 2012, 21:19:56 »
Amazing how much negativity I get just because I am trying to share what I have done so far with other users like me, I dont see what the problem is, especially when I make it clear I am just a beginner and I know its not going to be perfect.
Its okay actually.  If things were really bad, the devs would not have put the port in the svn.  I'm thinking there was not an intent to offend you so much as a  healthy desire to let others know that your port is not complete.  We spend a lot of time here chasing obscure bugs so a fair warning to those that come after you is probably appropriate.  Sometimes you have to use strong words for that or people miss the warning and get into trouble.

Have fun with your port - you've worked hard for it !!
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal