+ Reply to Thread
Page 11 of 22 FirstFirst ... 9 10 11 12 13 21 ... LastLast
Results 201 to 220 of 421

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 ...

  1. #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.

  2. #202
    vcf
    vcf nincs online
    Member
    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

  3. #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!
    Rockbox hacker

  4. #204
    Senior Member
    Join Date
    Jan 2008
    Posts
    349
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  5. #205
    Junior Member
    Join Date
    Mar 2008
    Location
    Netherlands
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote 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.

  6. #206
    Passing By
    Join Date
    Feb 2008
    Location
    United Kingdom
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  7. #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

  8. #208
    Senior Member
    Join Date
    Jan 2008
    Posts
    349
    Thanks
    0
    Thanked 0 Times in 0 Posts
    nice find, i hope with this datasheet the progress on rockbox for meizu will be a step closer.

  9. #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 ?

  10. #210
    vcf
    vcf nincs online
    Member
    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

  11. #211
    Valued Member
    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?

  12. #212
    Junior Member
    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.

  13. #213
    Administrator
    Join Date
    Mar 2007
    Location
    Budapest, Hungary
    Posts
    4,485
    Thanks
    237
    Thanked 1,024 Times in 375 Posts
    Any news from the developers?

  14. #214
    Junior Member
    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.

  15. #215
    vcf
    vcf nincs online
    Member
    Join Date
    Apr 2007
    Posts
    120
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote 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?

  16. #216
    Junior Member
    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

  17. #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!

  18. #218
    FDX
    FDX nincs online
    Senior Member
    Join Date
    Oct 2007
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts
    @markun: Your code looks like C#.
    If the firmware is written with C# I could help a bit.

  19. #219
    vcf
    vcf nincs online
    Member
    Join Date
    Apr 2007
    Posts
    120
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote 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

  20. #220
    Passing By
    Join Date
    Feb 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote 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.


 

Similar Threads

  1. Rockbox! - CLOSED
    By Sammy in forum Rockbox
    Replies: 5
    Last Post: 02-29-2008, 02:55 PM
  2. Rockbox - CLOSED
    By Ourkim in forum Rockbox
    Replies: 51
    Last Post: 02-29-2008, 02:54 PM
  3. Rockbox für Meizu M6
    By mojooo in forum German
    Replies: 2
    Last Post: 01-30-2008, 01:17 PM
  4. Rockbox on meizu m3???
    By Exekias in forum Technical
    Replies: 1
    Last Post: 12-07-2007, 05:22 AM
  5. [Project] German FAQ-Page for M6
    By ExilWessi in forum General Meizu M6
    Replies: 2
    Last Post: 03-30-2007, 10:37 AM