Rockbox Development > New Ports
SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
kugel.:
--- Quote from: RockRabbit on December 20, 2008, 08:04:47 PM ---c3 - down button , c4 - select button, c5 - up button.
--- End quote ---
That's cool! It would be nice if you could note whether high or low indicate button presses. Maybe not on the HardwareMapping page, but on a dedicated page (like a SansaC200V2Port or so..)
But on the other hand, I guess it really doesn't hurt if the table gets expanded by a level indicator and maybe a default value cell for each pin.
RockRabbit:
kugel - how do I apply your 9679 patch and to what do I apply it?
kugel.:
You apply them to SVN (trunk). See here for a small guide: http://www.rockbox.org/twiki/bin/view/Main/WorkingWithPatches
The first patch adds c200v2 to our firmwarepatcher tool, the second one adds the c200 as a target into the rockbox tree.
After you patched, please double-check [sourcedir]/rbutil/mkamsboot/dualboot.S to see if I have done something wrong.
After than you need to build mkamsboot. To do that, just type make in [sourcedir]/rbutil/mkamsboot/.
You can then build a bootloader using these instructions: http://www.rockbox.org/twiki/bin/view/Main/HowToCompile
You should get a bootloader file(bootloader-c200v2.sansa), which you pass together with C200PA.bin to mkamsboot (./mkamsboot <OF file> <bootloader file> <patched file>. The patched file is that what you put on your c200v2 after renaming it to c200pa.bin.
Our bootloader code is situated in [sourcedir]/bootloader/sansa-as3525.c. This is the file you should edit for your experiments.
Some tests would be: test if buttonlight_on() works. test if backlight_on() works. test if lcd_init() works. While I'm doubtfully about lcd_init, I think backlight should actually work.
RockRabbit:
thanks. i'll give it a try.
kugel.:
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 :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version