Rockbox Development > New Ports

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

<< < (112/386) > >>

RockRabbit:

--- Quote from: kugel. on December 20, 2008, 10:38:50 PM ---Uhm, before you build the bootloader (but after patching) edit firmware/target/arm/as3525/system-as3525.c and tools/configure to reflect the correct memory (I guessed 8MB when I made the patch).

And sorry that I need to say it again: Double-check rbutil/mkamsboot/dualboot.S. This file is critical! Wrong code will brick your player. So please check if I added the correct GPIO states for USB present and Right button.

Sorry, we can't be safe enough about that file :)

--- End quote ---

I did have to change the code which checks for the "right" button - it should be looking at logic level 0 not 1.

I changed:
        cmp   r1, #1                /* C6 high means button pressed */
        beq   boot_of
to:
        cmp   r1, #0                /* C6 high means button pressed */
        beq   boot_of

If i mistakenly stated the wrong level in a previous post i apologise.
The other thing I found is very minor, and that is the new option 59/ for the c200 during the build actually shows e200V2 on the display rather than c200v2, so there are now two options for the e200v2. I did not change this because as far as I can see this is only cosmetic and shown on the display - the code builds for the correct target anyhow.

Anyhow following your excellent instructions I was able to quickly do all that was required and have now built a new BIN file, with no apparent problems. The only thing I had to do to get the main tree patch to work was to enter a -P0 option otherwise it could not find the files. Remember all this stuff is new to me, but I am getting the hang of it.

I have not as yet edited the sansa_as3525.c file, I have just got the patch/build process to work and complete, to see that I could do it. Now I will go on to the next stage and edit the file, rebuild and actually load onto the player.

Is the only thing I have to change in regards to the dram config from this:

#if defined(SANSA_CLIP) || defined(SANSA_M200V4)
/* 16 bits external bus, low power SDRAM, 16 Mbits = 2 Mbytes */
#define MEMORY_MODEL 0x21

#elif defined(SANSA_E200V2) || defined(SANSA_FUZE) || defined(SANSA_C200V2)
/* 16 bits external bus, high performance SDRAM, 64 Mbits = 8 Mbytes */
#define MEMORY_MODEL 0x5

to this:

#if defined(SANSA_CLIP) || defined(SANSA_M200V4) || defined(SANSA_C200V2)
/* 16 bits external bus, low power SDRAM, 16 Mbits = 2 Mbytes */
#define MEMORY_MODEL 0x21

#elif defined(SANSA_E200V2) || defined(SANSA_FUZE)
/* 16 bits external bus, high performance SDRAM, 64 Mbits = 8 Mbytes */
#define MEMORY_MODEL 0x5
??

kugel.:
Thanks a lot for the testing and editing.

So, have you actually updated your player with a patched OF (created by mkamsboot)? If yes, and if dualboot works, I think my patch can be committed (with the changes you mentioned of course).

RockRabbit:

--- Quote from: kugel. on December 21, 2008, 09:48:47 AM ---Thanks a lot for the testing and editing.

So, have you actually updated your player with a patched OF (created by mkamsboot)? If yes, and if dualboot works, I think my patch can be committed (with the changes you mentioned of course).

--- End quote ---

Not yet. I need an answer to the question above (in my previous post), re the change to the dram setting. Once I know thats ok, I will go ahead.

kugel.:

--- Quote from: RockRabbit on December 21, 2008, 04:18:48 PM ---
--- Quote from: kugel. on December 21, 2008, 09:48:47 AM ---Thanks a lot for the testing and editing.

So, have you actually updated your player with a patched OF (created by mkamsboot)? If yes, and if dualboot works, I think my patch can be committed (with the changes you mentioned of course).

--- End quote ---

Not yet. I need an answer to the question above (in my previous post), re the change to the dram setting. Once I know thats ok, I will go ahead.

--- End quote ---
Yes, your change is correct.

Edit: You'll also want to change tools/configure to reflect the correct memory (search for "59)" and you'll get to the c200v2 part).

RockRabbit:
thanks.

Ill get on to it right away.

Kugel - Made another change - the code to detect the boot up condition was set to pin A3 - this is the power button. However you refer to this code as detecting the USB cable, which it does normally for all other players. Not sure whether you want this to be the power button or the usb cable. I changed it to be the USB cable, pin A1.

Applied the new bootloader with no problems. At present it does nothing, but it responds properly to the usb cable and holding down the right button - so its a safe bootloader.

How will we handle the changes - will you do them manually or should I email you the changed files?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version