Rockbox Development > New Ports

SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2

<< < (114/386) > >>

saratoga:
Also, learn to use patches.  Its really annoying having to figure out what you changed otherwise.

kugel.:
The c200v2 patch has just been committed to SVN.

RockRabbit, I'd welcome if you play a bit around with the Rockbox bootloader (remember: You can do anything with it, since dual boot isn't dependent on a working bootloader). In particular I'm curious if backlight_on() and/or buttonlight_on() are working (just add those before the #ifdef SANSA_C200V2 line in bootloader/sansa_as3525.c).

And if you have any questions regarding the build system rockbox uses, don't hesitate to ask :) It may take some time, but you'll find your way through the target tree(forest rather).

RockRabbit:
I have re-installed the rockbox tree from the latest version on svn. I have tried the calls you suggested to the functions backlight_on(),    buttonlight_on() and lcd_init().

The backlight_on and buttonlight_on calls appear to do nothing. The lcd_init() call turns the screen backlight on, giving a blank white screen, before turning off again after about a quarter of a second. It appears then that the player has turned off, since pressing the power button again will trigger the same sequence. Since a perpetual while loop follows the call to lcd_init, I am inclined to think that the code crashes during the lcd_init routine, and the while loop is never reached.

With the backlight_call, the player stays active, presumably within the while loop.

What confuses me is that I can find no definition for the buttonlight_on function anywhere within the rockbox tree. I have used the Gnome search tool to look for buttonlight_on() and several files are listed, but they all call the function, not define it. Yet the code compiles, which indicates (i presume) that the compiler has a definition for the function somewhere, although there is some kind of "implicit definition" warning.

I can't determine from your post whether you intend for me to create this function, but I am assuming not. Can you explain what is happening here?

saratoga:

--- Quote from: RockRabbit on December 24, 2008, 11:57:10 PM ---What confuses me is that I can find no definition for the buttonlight_on function anywhere within the rockbox tree.

--- End quote ---

The one you want is in backlight-c200v2.c.  Theres actually a dozen or so of them in the target tree, so if your search tool isn't finding them, its probably not working right.  I suggest using grep.

kugel.:
Well, in backlight-c200v2.c there's _buttonlight_on() (with the leading underscore), but that's the actual function that turns it on (you can try calling directly that instead of buttonlight_on()), buttonlight_on calls that in a roundabout way. The functions with the underscore are generally those who touch the hardware, while the ones without are the ones which are supposed to be used by "the user" (i.e. not low-level stuff such as apps/ code).

Interesting that lcd_init did someting.

€dit: IIRC it's possible that you need to call backlight_on (or _backlight_on) before buttonlight_on (or _buttonlight_on).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version