Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
« previous next »
  • Print
Pages: 1 ... 10 11 [12] 13 14 ... 129

Author Topic: SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2  (Read 1336586 times)

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #165 on: August 02, 2008, 06:57:55 AM »
Quote from: tobi-lu on August 02, 2008, 04:15:53 AM
Quote from: funman on August 01, 2008, 12:02:44 PM
Also I took the conversion code to translate instructions in utils/disassembler/arm/disasm_arm.c
What's the purpose of disasm_arm.c? And what did you use it for?

Well it's an ARM disassembler, I used it to modify the instructions / offsets.
Ex: +       jump = 0xEB000000 /* BL */ | (((bl_offset - (firmware_size + bootloader_size - 4) - 8 ) >> 2) & 0x08ffffff);
0xE0000000 is the condition: no condition
0x0B000000 is the instruction: BL (== CALL in i386 asm)
The last 3 bytes are the relative offset we jump to.

NOTE: I just found a bug: the offset mask should be 0x00ffffff not 0x08ffffff : this is why disassembling the patched firmware before putting it on the Sansa is important !! I will change the patch.

Also I forgot to mention that my code assumes there is no offset at the beginning of test.S, it replaces the instructions directly with relative offset.

Quote from: tobi-lu on August 02, 2008, 04:15:53 AM
Quote from: funman on August 01, 2008, 12:02:44 PM
As discussed with the hackers, it would be wise to execute our code after some stuff has been initialized.
Do you think you can access other parts of the firmware file then? Or access the buttons easier?
Hm, I'd like to understand it, could someone perhaps send me a chatlog?
I don't have the log, but according to atomik_punk the code before the first BL will setup the stack, and let us call various functions of the OF (to access buttons, exactly).
Of course it would be better to test that code on daniel's e200 since he has a recovery mode :)
Logged
a wise man said: "a wise man said"

Offline tobi-lu

  • Member
  • *
  • Posts: 12
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #166 on: August 02, 2008, 12:00:17 PM »
So the next step would be to write some code that checks for a pressed button and goes to the delay loop if it isn't pressed.

But you (atomikpunk) haven't yet found the button handling code in the e200 firmware, right?


Anyway, this idea sounds rather promising to me :)
Logged
working on: Sansa e250v2 FW 03.01.16

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #167 on: August 03, 2008, 10:48:53 AM »
Hi all

I am still on the process on trying to unbrick my Sansa Clip, and I found the special mode mentioned by Daniel_at.

However just like atomik_punk and his m200, on the Clip you will see a 0MB partition.
Probably Sansa didn't allocate any space for this feature on some models.

Since I unsoldered the battery, the Clip is always off unless plugged on USB, so I assume it works only with device off:

1/ Bridge the PIN 17 & 18 of the NAND flash (ALE & WE# according to this standard: http://www.onfi.org/docs/ONFI_1_0_Gold.pdf

I also read http://s1mp3.org/en/docs_deadrec.php, mentioned in this thread, and bridging IO pins also work.

It looks like a generic way to enter recovery mode, not only for Sansa ;)

2/ Plug the Clip on USB
3/ Notice a new 0MB hard disk detected
4/ ???
5/ No profit since the Clip is still bricked ;)
Logged
a wise man said: "a wise man said"

Offline daniel_at

  • Member
  • *
  • Posts: 28
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #168 on: August 06, 2008, 05:38:17 AM »
Hi all (but mostly Atomikpunk)

As you were searching for a function which loads data from the flash into ram, i had following Idea:
Because I found only one reference to the NAND_FASH-registers in the OF-Loader and further we know (USB ID and other stuff) that the AMS-SoC has a Sansa-specific PROM-Code and that the Loader in the PROM must already fetch data from the Flash, it is very likely that the Flash will be initialized by the PROM-Code.

Further it is possible to map the PROM into the Address Space, but according to the docu only starting from Addr. 0x00000000 - but maybe it is possible to "rewire" that, when Sansa build theire specific PROM-Mask.
Therefor, maybe we _cant_  find the function read_flash in the Flash-based fw-part, but it calls that function on some specific address which gets mapped into PROM.

Just a random thought.... If you happend to find some calls to addresses which look suspicous, it might be some kind of that...

Daniel
« Last Edit: August 06, 2008, 05:39:51 AM by daniel_at »
Logged

Offline atomikpunk

  • Member
  • *
  • Posts: 96
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #169 on: August 09, 2008, 12:58:20 AM »
Nothing much today except from that I'm pretty sure the LCD controller in the E200v2 devices is an ILI9222. I updated the E200v2 wiki page to reflect this. Still looking at the GPIOs for hints on buttons...
Logged
iPod Nano 3rd gen. 4gb
Sansa Clip 1gb

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #170 on: August 12, 2008, 05:17:40 PM »
Hello!

Thanks to friendly people out there, I've got a bunch of more firmware images files for Sansa v2 players and they're now so many I decided to make a separate page listing all of them:

http://daniel.haxx.se/sansa/v2fw.html

Enjoy!
Logged

Offline dataangel

  • Member
  • *
  • Posts: 1
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #171 on: August 19, 2008, 09:10:40 PM »
I'm very interested in helping getting rockbox running on my e280v2. I've been hacking C++ for years (and recently made the new dualnback plugin you can get on flyspray) but have never done any embedded stuff and never worked with ARM assembly. Is there anything I can help hack on? I'd prefer not to do anything that could brick my player but I'd gladly run any reporting utilities or if there is any coding that doesn't require a ton of ARM knowledge :)
Logged

Offline atomikpunk

  • Member
  • *
  • Posts: 96
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #172 on: August 20, 2008, 11:05:48 PM »
Yay, finally got my sansa v2: a 1gb clip ;D

Now let's get back to work folks...
« Last Edit: August 20, 2008, 11:08:02 PM by atomikpunk »
Logged
iPod Nano 3rd gen. 4gb
Sansa Clip 1gb

Offline Sai_Deschain

  • Member
  • *
  • Posts: 1
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #173 on: August 21, 2008, 02:07:59 AM »
hey folks!

First I want to say thanks for all the work you've done!
I've got a sansa e260 yesterday, of course a v2 model, and i'd really like to get rockbox running on it. i NEED it to scrobble. I haven't done anything like this before, but in school and at work i did programming in C, C++, C#, Java, Assembler, ... If there are any smaller implementing works to do, feel free to ask ;)

ICQ # 399399688  or any other messanger which pidgin/adium is able to do
Logged

Offline notlistening

  • Member
  • *
  • Posts: 29
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #174 on: August 21, 2008, 07:10:21 PM »
Heya all,


Got a Sansa 280 v2 not done a image yet but will ASAP. I am a Real Time Systems developer with c, VHDL, FPGA, assembler, linux driver experience etc etc UK based. Lost about 80% of my vision in 2005 and I am trying to put the remaining 20% into good use.

Please contact me at thomaslloyd82 at hotmail.com MSN if you think i might be of use. I am a little rusty but with a bit of ARM assembelly I think i'll get going again.

Tom
Logged
Listening - To my E200V2, Clip+ & Dell Streak (Android 2.2) :)

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #175 on: August 21, 2008, 08:35:47 PM »
Quote from: notlistening on August 21, 2008, 07:10:21 PM
Please contact me at thomaslloyd82 at hotmail.com MSN if you think i might be of use. I am a little rusty but with a bit of ARM assembelly I think i'll get going again.


If this is your way of saying you'd like to help, I don't think its a very good way to do it.  Theres no organization here, its just people exchanging ideas and code.  Better to dig into the problem and then post once you have something to contribute.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #176 on: August 21, 2008, 09:09:41 PM »
I've removed 5 pages of old posts from this thread that didn't have any useful info in them.  Hopefully this should make the volume of information here more manageable for people just joining in.
Logged

Offline notlistening

  • Member
  • *
  • Posts: 29
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #177 on: August 22, 2008, 04:49:25 AM »
Humm,

Thanks for the frosty reception, I will go off into my own little bubble and probably duplicate someone elses work.

I will check back when I've got rockbox working. Just wanted to say hi to some of the people that are working on the same project.

Quote
Llorean POSTING IN THIS FORUM « on: August 21, 2006, 03:44:51 AM » 

--------------------------------------------------------------------------------

Before posting in this forum, search (the button is at the top of the forum screen) for a topic regarding the player you're interested in.

One thread per player. This is not for requesting ports to players. This is for discussion of working on them. If there is no post for your player of interest, you may start a thread. But discussion should then be of what is necessary to make the port happen, not "how great it would be" to have that port. As well, do not post simply to ask how a port is progressing. That will be considered disruptive, as it is unnecessary.

I believe that i followed the posting guidelines, correct me if I am wrong.

Oh yeah I am actively helping out now!

T
Logged
Listening - To my E200V2, Clip+ & Dell Streak (Android 2.2) :)

Offline atomikpunk

  • Member
  • *
  • Posts: 96
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #178 on: August 22, 2008, 08:12:28 AM »
Hi everyone, and especially you newcomers,

I'm glad you joined the fun and have interest in a sansa v2 port. Please be sure to read this entire thread and the multiple pages on the sansa players on the wiki. I know it can't be quite harsh at first, but every captured knowledge is there. You can also send me a private message so we could share jabber (or other IM) IDs.

We already have some work done, both hardware and software. Some of it is documented but some is not too and we intend to improve on that "knowledge capture" part, mostly with the wiki but other suggestions are always welcome.

Our work should be first concentrated on:
  • button handling understanding
  • original firmware code insertion possibilities
  • unbrick techniques (though we have some user unfriendly ideas already, maybe improve on that)
  • anything related to the hardware and firmware understanding

If you need help starting up, please contact me I'll share some thoughts and techniques.

Welcome aboard.


As a side note, I said earlier that I got my v2, but I fact I got _2_ fully working clips at hand now so I'm ready to rock (pun intended).
Logged
iPod Nano 3rd gen. 4gb
Sansa Clip 1gb

Offline fml2

  • Member
  • *
  • Posts: 157
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #179 on: August 23, 2008, 09:39:13 AM »
Hello atomikpunk and others.

Could you please put somewhere for download the assembly text of the firmware you're trying to understand? If possible, with the comments to the things that have already been found out. I'm not an expert in assembly language but this would be a good chance for me to learn it and to (maybe) contribute to the porting of RockBox to Sansa v2.

Of course, if doing so is illegal for some reasons do not do it! (but let me know that it's illegal)

Thanks!
Logged

  • Print
Pages: 1 ... 10 11 [12] 13 14 ... 129
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.195 seconds with 20 queries.