Home Forums Gallery FAQs Downloads
 
 

Go Back   Meizu Me > miniPlayer M6 / SL > Community Development > Rockbox

Register Today!  

Rockbox Project (M6)

This is a discussion on Rockbox Project (M6) within the Rockbox forums, part of the Community Development category; Besides the S6D0139/S6D0129, M6SL also use LCM with S6D0154 in new product batchs, you should take account of this and ...


Reply
 
Thread Tools Display Modes
Old 03-27-2008   #201
Freshman
 
Join Date: Jan 2008
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Besides the S6D0139/S6D0129, M6SL also use LCM with S6D0154 in new product batchs, you should take account of this and read R0 for the driver ID at first.

The backlight is controled by Timer C PWM, so it's quite simple. But seems the engineer of Meizu didn't touch the bootloader provided by samsung to hold down the level of TCout, so the screen will flash when the device is reset.

Last edited by kgb2008; 03-27-2008 at 03:44 AM.
kgb2008 nincs online   Reply With Quote
Old 03-30-2008   #202
vcf
Member
 
vcf's Avatar
 
Join Date: Apr 2007
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
markun, could you often update the to do list? Because there are many people coming especially on the rockbox forums and i dont know what is already done and what is not.just mark things which are dne with ''done''. Because you work with guys like bagder geavarts A-4. So you knw better
vcf nincs online   Reply With Quote
Old 04-03-2008   #203
Passing By
 
Join Date: Mar 2008
Location: Sweden
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
The TODO list should rather be put in the Rockbox wiki so that all interested people can edit it!
bagder nincs online   Reply With Quote
Old 04-03-2008   #204
Senior Member
 
Join Date: Jan 2008
Posts: 349
Thanks: 0
Thanked 0 Times in 0 Posts
My Meizu
what is the latest news on the rockbox project, i read somwhere a few weeks ago that it cuold be finished within the week, but i guess that was wrong, so now i am interested to know if there have been made any advancements these last days?
roelandb nincs online   Reply With Quote
Old 04-03-2008   #205
Junior Member
 
markun's Avatar
 
Join Date: Mar 2008
Location: Netherlands
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Originally Posted by bagder View Post
The TODO list should rather be put in the Rockbox wiki so that all interested people can edit it!
Yes, I wanted to do that already but had other things to do this week. I'll do it right now.

Roeland: Wow, where did you read that we could do it in a week? In theory maybe something like this is possible with enough time, people, skill and information, but in practice a port can take quite some time.

EDIT: ok, I added a todo to the wiki. What do you guys think? You can create a wiki account yourself to modify it if you want:

MeizuM6Port < Main < TWiki

Last edited by markun; 04-03-2008 at 03:52 PM.
markun nincs online   Reply With Quote
Old 04-03-2008   #206
Passing By
 
Join Date: Feb 2008
Location: United Kingdom
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
My Meizu
Volunteer Rockbox Tester

Hi there,

I have recently received my new Meizu M6 SL.

I have been following this thread with great interest and would like to help out with this project.

I am not a developer, but I am very computer literate and a keen music fan.

So if you are looking for someone to test out code periodically I am willing to offer my time to help.

Regards,

Paul.
Eugol14 nincs online   Reply With Quote
Old 04-05-2008   #207
Stalker
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks to Samsung, I have got datasheet of S6D0154. Here it is: RapidShare: 1-Click Webhosting
mikus12 nincs online   Reply With Quote
Old 04-05-2008   #208
Senior Member
 
Join Date: Jan 2008
Posts: 349
Thanks: 0
Thanked 0 Times in 0 Posts
My Meizu
nice find, i hope with this datasheet the progress on rockbox for meizu will be a step closer.
roelandb nincs online   Reply With Quote
Old 04-17-2008   #209
Passing By
 
Join Date: Jun 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
hi every one!
i have one qestion , how long we must wait for rockbox on meizu m6 sp ?
szarecki nincs online   Reply With Quote
Old 04-17-2008   #210
vcf
Member
 
vcf's Avatar
 
Join Date: Apr 2007
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
its difficult to say. depends on time that we have for the porting and on luck ofcourse
vcf nincs online   Reply With Quote
Old 04-17-2008   #211
Valued Member
 
puffel's Avatar
 
Join Date: Nov 2006
Location: Germany
Posts: 392
Thanks: 0
Thanked 0 Times in 0 Posts
As we haven't heard much of you guys in the last weeks I'd be interested in how far you are, what you are doing right now and what there is to do. Is the ToDo list precise enough to tell that?
puffel nincs online   Reply With Quote
Old 04-17-2008   #212
Junior Member
 
markun's Avatar
 
Join Date: Mar 2008
Location: Netherlands
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
I've been a bit busy. I still need to get my source tree in such a shape that I can commit it so other rockbox devs can continue to work on the port. I'll let you know when I've made some progress.
markun nincs online   Reply With Quote
Old 04-23-2008   #213
Administrator
 
nice2know_u's Avatar
 
Join Date: Mar 2007
Location: Budapest, Hungary
Posts: 3,237
Thanks: 101
Thanked 474 Times in 177 Posts
My Meizu
Any news from the developers?
nice2know_u nincs online   Reply With Quote
Old 04-28-2008   #214
Junior Member
 
markun's Avatar
 
Join Date: Mar 2008
Location: Netherlands
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
I had injured my right hand last week (bicycle accident) and could hardly type, but yesterday I continued work on the port again. I wrote some test code and got the rockbox build code to output a almost valid .ebn file. When I've fixed that and the testcode works I'll post it here.

What it should do is toggle the backlight (on and off) every time the PLAY button is pressed. If my assumptions are correct it should work on the M6SP, M6SL and M3. I Don't know about the M6TP.

kgb2008: do all models load the flashed code into SDRAM and remap it to 0x0 or do some load (parts of) it into SRAM and remap? I assume that that the first 8 instructions are the normal interrupt vector table, correct?

EDIT: From looking at the DFUManager docs I see that the flashed image (M1) will be loaded to SDRAM and then executed, and from looking at addresses in the various images it will be mapped to 0x0.

Last edited by markun; 04-28-2008 at 02:31 PM.
markun nincs online   Reply With Quote
Old 04-28-2008   #215
vcf
Member
 
vcf's Avatar
 
Join Date: Apr 2007
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
Originally Posted by markun View Post
I had injured my right hand last week (bicycle accident) and could hardly type, but yesterday I continued work on the port again. I wrote some test code and got the rockbox build code to output a almost valid .ebn file. When I've fixed that and the testcode works I'll post it here.

What it should do is toggle the backlight (on and off) every time the PLAY button is pressed. If my assumptions are correct it should work on the M6SP, M6SL and M3. I Don't know about the M6TP.

kgb2008: do all models load the flashed code into SDRAM and remap it to 0x0 or do some load (parts of) it into SRAM and remap? I assume that that the first 8 instructions are the normal interrupt vector table, correct?
thats good that there is some progress. could you post it somewhere?
vcf nincs online   Reply With Quote
Old 04-28-2008   #216
Junior Member
 
markun's Avatar
 
Join Date: Mar 2008
Location: Netherlands
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Well, the actual code is quite easy (let me know if you spot any mistake I made)

Code:
    bool backlight_on = true;

    //Set backlight pin to output and enable
    int oldval = PCON0;
    PCON0 = ((oldval & ~(3 << 4)) | (1 << 4));
    PDAT0 |= (1 << 2);

    //Set PLAY to input
    oldval = PCON1;
    PCON1 = ((oldval & ~(0xf << 16)) | (0 << 16));

    //toggle backlight on PLAY
    while(true)
    {
        // Wait for play to be pressed
        while(!(PDAT1 & (1 << 4)))
        {
        }

        if (backlight_on)
            PDAT0 &= ~(1 << 2);
        else
            PDAT0 |= (1 << 2);

        backlight_on = !backlight_on;

        // Wait for play to be released
        while(PDAT1 & (1 << 4))
        {
        }

    }
but I'll post the binary here when it works
markun nincs online   Reply With Quote
Old 04-29-2008   #217
Passing By
 
Join Date: May 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Hey guys, let's offer sympathy about that hand injured in a bike accident.
Hope it heals well and thanks for your efforts, Markun!
fluxam nincs online   Reply With Quote
Old 04-29-2008   #218
FDX
Senior Member
 
FDX's Avatar
 
Join Date: Oct 2007
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
My Meizu
@markun: Your code looks like C#.
If the firmware is written with C# I could help a bit.
FDX nincs online   Reply With Quote
Old 04-29-2008   #219
vcf
Member
 
vcf's Avatar
 
Join Date: Apr 2007
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
Originally Posted by ForceDragonX View Post
@markun: Your code looks like C#.
If the firmware is written with C# I could help a bit.
yes, the code is in C. Check out the wiki page or better ask markun how exactly can you help
vcf nincs online   Reply With Quote
Old 04-29-2008   #220
Passing By
 
Join Date: Feb 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Originally Posted by markun View Post
Well, the actual code is quite easy (let me know if you spot any mistake I made)

Code:
    bool backlight_on = true;

    //Set backlight pin to output and enable
    int oldval = PCON0;
    PCON0 = ((oldval & ~(3 << 4)) | (1 << 4));
    PDAT0 |= (1 << 2);

    //Set PLAY to input
    oldval = PCON1;
    PCON1 = ((oldval & ~(0xf << 16)) | (0 << 16));

    //toggle backlight on PLAY
    while(true)
    {
        // Wait for play to be pressed
        while(!(PDAT1 & (1 << 4)))
        {
        }

        if (backlight_on)
            PDAT0 &= ~(1 << 2);
        else
            PDAT0 |= (1 << 2);

        backlight_on = !backlight_on;

        // Wait for play to be released
        while(PDAT1 & (1 << 4))
        {
        }

    }
but I'll post the binary here when it works
Hello markun,

Thanks for letting us look at a little bit of source. As for input, I don't know whether or not your mapping is correct, but based on what you've done, I believe you could replace:

Code:
    if (backlight_on)
        PDAT0 &= ~(1 << 2);
    else
        PDAT0 |= (1 << 2);
with an exclusive-OR to toggle the bit on and off, ie:

PDAT0 ^= (1 << 2);

You could also replace all complements followed by AND, with an exclusive-OR, ie:

replace this (& ~) with this (^).

That should produce equivalent code, a bit more succintly. Also, I don't think you strictly need to have a seperate 'backlight_on' variable, unless you'd prefer one, of course.

- I'm Speechless.
Speechless nincs online   Reply With Quote

   
 
Meizu Me is an independent resource for all things Meizu. All rights reserved. Powered by vBulletin. Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. Meizu M8, miniPlayer and all related names are properties of MEIZU Electronic Technology, Inc. Copyright 2009 Meizu Me.