Rockbox Development > New Ports

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

<< < (101/386) > >>

RockRabbit:
Thanks to saratoga and bagder I obtained the C200PA.BIN firmware, and have been able to run mkamsboot, giving me a PATCHED.BIN file.SO far so good.

Now I need to get this onto the target somehow. Is there a development version of sansapatcher or something similar?

Also do I need to rename the patched file to c200PA.BIN?

Many thanks.

Domonoky:
There is no need for a sansapatcher for the ams-sansas. Just put the patched bin file with the correct name (c200pA.bin), to the root of you player, and the OF will flash it after USB-unplug.

But be carefull, as far as i know, the dualboot.S isnt tested on c200v2. If the dualboot function fails, it could brick your player !  (So it would be best to modify dualboot.S, so it always boots into the OF (after some delay for button checks) )

greetings, and good luck.

saratoga:

--- Quote from: RockRabbit on December 14, 2008, 05:25:38 AM ---Thanks to saratoga and bagder I obtained the C200PA.BIN firmware, and have been able to run mkamsboot, giving me a PATCHED.BIN file.SO far so good.

Now I need to get this onto the target somehow.

--- End quote ---

The link I posted has the install instructions for a firmware file. 

RockRabbit:

--- Quote from: Domonoky on December 14, 2008, 07:03:46 AM ---There is no need for a sansapatcher for the ams-sansas. Just put the patched bin file with the correct name (c200pA.bin), to the root of you player, and the OF will flash it after USB-unplug.

But be carefull, as far as i know, the dualboot.S isnt tested on c200v2. If the dualboot function fails, it could brick your player !  (So it would be best to modify dualboot.S, so it always boots into the OF (after some delay for button checks) )

greetings, and good luck.

--- End quote ---

Thanks for the warning. Actually I am following funman's instructions and using an old version of mkamsboot that simply inserts a delay into the boot process. Later I will get more adventurous and start to insert some additional keymap checking code, once I do a bit more investigation and get used to the arm instruction set.

Installed the patched bootloader and everything looks good. No brick tendencies detected. Loads the standard firmware after the delay and runs fine. Now ready for the next part.

I have come up with the following code, which is a combination of the test.s code in version 18663 or mkamsboot and the some code from dualboot.S from the current version of mkamsboot. I have made some alterations to the registers used so that hopefully the two pieces of code will work together. I have saved this code to the test.S file in place of the original 18663 version (which just contained the delay loop). Am I right in assuming that I can compile the code via make exactly as before without any more changes?

The intention is that the code will test for the left button to be pressed and exit the loop immediately if it is.  I am assuming (hoping) that the c200 might be very similar to the e200.

Code:

/* This value is filled in by mkamsboot */
originalentry:   .word   0
.set GPIOC,     0xC80D0000

        /* A delay loop - just to prove we're running */
        mov   r2, #0x500000       /* Approximately 5 seconds */
loop:       
   /* LEFT button check */
        ldr   r0,  =GPIOC /* gpioc */
        mov   r1, #0
        str   r1, [r0, #0x400]
        ldr   r1, [r0, #0x20]    /* read pin C3 */
        cmp   r1, #0             /* C3 = #0 means button pressed */
        beq   exloop

        subs  r2, r2, #1         /* decrement counter setting status flags #/
        bne   loop

        /* Now branch back to the original firmware's entry point */
exloop:  ldr   pc, originalentry
 
Does that sort of look ok?

Thanks.

atomikpunk:

--- Quote from: RockRabbit on December 14, 2008, 08:59:34 PM ---Does that sort of look ok?
--- End quote ---

I see no obvious error in there, but it is a wild guess to think that the C200 is similar to the E200 IMHO :) I would personally have thought that it would look more like the M200/clip, but I may be wrong... If you have some knowledge in disassembling, you could have a look at the C200 OF and try to figure out the buttons in there...

But I guess there is no harm in trying it out and see... ;D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version