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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
« previous next »
  • Print
Pages: 1 ... 19 20 [21] 22 23 ... 129

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

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #300 on: September 19, 2008, 01:09:50 PM »
This needs to be done by the e200 testers.

I remember fragilematter has made some tests but don't remember which exactly

As for overwriting the OF, its not visible through usb interface so no problem, we just need to find its exact size on the nand to skip it when reading.
Logged
a wise man said: "a wise man said"

Offline atomikpunk

  • Member
  • *
  • Posts: 96
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #301 on: September 19, 2008, 01:19:19 PM »
Yes right, but would you mind updating (and reuploading) an updated version of your mkamsboot patch including this change? I think you hardcoded the 0x100 multiplier if I remember correctly...

And right for the filesystem, that could do the trick (though I still have my reserve).

I'll try the (new) patched mkamsboot once it is done on an e200 firmware and check its disassembly in case I see something wrong with it. Maybe we can coordinate with the e200 testers so we can talk "live" about it, maybe this weekend?
« Last Edit: September 19, 2008, 01:21:03 PM by atomikpunk »
Logged
iPod Nano 3rd gen. 4gb
Sansa Clip 1gb

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #302 on: September 19, 2008, 01:24:33 PM »
Here is a diff to svn checkout.
It uses 0xff * 0x200 as the "rom block" size (use normal test.S with it)

E200 testers, anyone ? ;)

EDIT: this week end I'm available, I'm on European time (UTC+2) but I can stay awake late; let's meet on #rockbox ?
But next week end I live the country where I live in and I'll have to look for a place to live and a job so I will hold on rockbox hacking :'(

EDIT2: I remove the patch since it doesn't work
« Last Edit: September 19, 2008, 04:46:50 PM by funman »
Logged
a wise man said: "a wise man said"

Offline fragilematter

  • Member
  • *
  • Posts: 35
  • Annoying like a rock in a box
    • Fragilematter
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #303 on: September 19, 2008, 03:34:18 PM »
Okay, just so that anyone is advised, the mkamsboot 0xff * 0x200 rom block size firmware bricks sansa e200s... try it at your own risk
Logged

Offline atomikpunk

  • Member
  • *
  • Posts: 96
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #304 on: September 19, 2008, 03:53:03 PM »
Bha damn... Thanks fragile_matter. I'll check the patch, create a patched firmware tonight and see what it looks like. If the firmware looks clean, well I'll give up god damn :'( (obviously on that firmware block size field topic, I won't give up that easily on the project itself ;D)

But I really wonder how come there is a field for that (firmware block size) in the header but they wouldn't use it ???
« Last Edit: September 19, 2008, 04:38:23 PM by atomikpunk »
Logged
iPod Nano 3rd gen. 4gb
Sansa Clip 1gb

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #305 on: September 19, 2008, 03:59:58 PM »
Maybe they use this one to flash the ROM (maybe you can write in ROM only by 512 bytes (0x200) sectors a a time ?

Also note that there is reference to past firmware, below 128k offsets, to initalise the stack.

The offset might be replicated somewhere else to handle library blocks loading ..
I'll look at finding the firmware size at other places in the file and report.

EDIT:
I removed the previous patch because it was broken.
Following patch uses 0x100 blocks (maximum), replaces in total 7 occurences of firmware size (instead of 2 previously), and update the firmware block checksum (what the previous patch didn't do).
I also added a check which verifies that the blocks we lose are padded with 0xff or 0xdeadbeef
Note: it seems that all the firmwares end with the same padding, except that some firmwares (like clip v29) are filled with random data and not recognizable padding.
XXX: patch confirmed to NOT work on E200 by fragilematter
* mkamsboot.c.diff.txt (4.75 kB - downloaded 212 times.)
« Last Edit: September 21, 2008, 04:53:52 PM by funman »
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 #306 on: September 20, 2008, 08:51:21 AM »
Hi!

Haven't been here for a while (shitty exams ;D), nice to see your great progress!

Well, I also read the wiki-page again and those missing graphs annoyed me once more. So I took the code and fed it to dot manually. You can see the results in the attachment. Perhaps someone can put these images into the wiki instead of the code?


cu
Tobi

* reset_handler.png (16.39 kB, 316x487 - viewed 596 times.)

* irq_handler.png (16.84 kB, 260x635 - viewed 480 times.)

* main_function.png (41.17 kB, 645x859 - viewed 488 times.)
Logged
working on: Sansa e250v2 FW 03.01.16

Offline fragilematter

  • Member
  • *
  • Posts: 35
  • Annoying like a rock in a box
    • Fragilematter
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #307 on: September 20, 2008, 08:53:42 AM »
Heya tobi-lu.
funman, atomikpunk and I will probably do a testing session on #rockbox in about an hour or two. Maybe you could join us :)
Logged

Offline daniel_at

  • Member
  • *
  • Posts: 28
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #308 on: September 20, 2008, 06:44:02 PM »
Hey all,

I've found some button-mappings for E200-Players. Thankfully there are some direct GPIO-wired buttons, so that it is easy to check for a bootloader. Especially if we have not much space for the code.

Up/Down/Left/Right/Center are connected to GPIOC and can therefore easily be checked.
http://www.rockbox.org/twiki/bin/view/Main/SansaV2HardwareMappings

To all the Firmwarehackers:
If you have some usefull functions/snippets which may be interesting for other hackers to play with, pls add them here: http://www.rockbox.org/twiki/bin/view/Main/SansaV2FWHacks

ciao
Daniel
Logged

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #309 on: September 21, 2008, 04:41:10 PM »
Daniel I added the known buttons for the Clip

I use a patched mkamsboot so the format of my assembly file(s)  are a bit different, do you want it to look at useful snippets ?
I think posting code on the wiki is a bit disorienting, we better should open a Git repository on repo.cz to share our code.

Any volunteer admin for the repository ?
Logged
a wise man said: "a wise man said"

Offline atomikpunk

  • Member
  • *
  • Posts: 96
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #310 on: September 21, 2008, 07:06:20 PM »
Well why not ask for svn access to the rockbox SVN repository? :)
Logged
iPod Nano 3rd gen. 4gb
Sansa Clip 1gb

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #311 on: September 21, 2008, 09:42:21 PM »
Usually people get SVN access by having a few patches accepted, at least that is the tradition.  The powers that be might make an exception for some people in this thread, but if theres going to be more then 1 or 2 people using it, running your own repo might be considerably easier since you could add as many people as you like to it.
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #312 on: September 21, 2008, 09:45:56 PM »
I agree, a repo where everyone here would have commit access is better, at least until we produce a major breakthrough.

Another note: I'll gladly try to find some buttons on my Fuze and update the SansaV2HardwareMappings page accordingly. I'd just need some short introduction on how this works. I'll be in IRC tomorrow, until evening, so it'd be nice if we can meet, for better support.
« Last Edit: September 21, 2008, 09:49:21 PM by kugel. »
Logged
 

Offline daniel_at

  • Member
  • *
  • Posts: 28
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #313 on: September 22, 2008, 04:47:39 AM »
Okay - an external Repo sounds like an good idea. First i thought i set up one on my own server - but found something looking quite okay:

http://gitorious.org/projects/rockbox_sansa_v2

I have created the initial project. To join you have just to register a user on that site and than i can add you (i hope) - But be aware: I am a git-noob :) (but thankfull that i now have a reason to get known something different than SVN)

@kugel
We just have found a reliable way of unbricking a E200-device, so the testcript for finding buttons have to be carefully adopted, so that the OF can easily (and reliable) loaded if something went wrong....

Okay - sofar
Daniel

PS: fixed typo, thx Hillshum
« Last Edit: September 22, 2008, 03:06:00 PM by daniel_at »
Logged

Offline Hillshum

  • Member
  • *
  • Posts: 108
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #314 on: September 22, 2008, 02:57:24 PM »


Well, it seems I will not have time to keep the wiki up to date, but I will be able to find time to code/learn to code.

*puts nose in big book*
« Last Edit: September 22, 2008, 03:53:08 PM by Hillshum »
Logged

  • Print
Pages: 1 ... 19 20 [21] 22 23 ... 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.123 seconds with 15 queries.