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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Sandisk Sansa View
« previous next »
  • Print
Pages: 1 ... 4 5 [6] 7

Author Topic: Sandisk Sansa View  (Read 165718 times)

Offline midgey

  • Developer
  • Member
  • *
  • Posts: 50
Re: Sandisk Sansa View
« Reply #75 on: February 18, 2009, 03:23:55 AM »
Just to add to that, I recently bought a View and can confirm that the OF will take our firmware and the bootloader will indeed attempt to load it. I compiled the e200 bootloader and resigned it with the dummy key then encrypted it with the View key. After the Sansa logo, the LCD will go white then purple and fade to black. This suggests that nothing is controller the LCD and our code is running.

I'll poke around with the bootloader and disassemble it over the next week. No promises because I know very little about disassembling and other projects have priority.
Logged

Offline zman977

  • Member
  • *
  • Posts: 2
Re: Sandisk Sansa View
« Reply #76 on: February 20, 2009, 04:01:49 PM »
ok ill see what i can help out with. This will be a little of a learning experience for me so...

hey by the way i wonder how close the fuse is with the view? ive read that a few people tryed the e200 boot loader just to try it on the view and could get some where with it and i wonder if the v2 and fuse have any thing similar with the view. if the devs have a boot loader out yet for the fuse that is.

edit**
never mind they dont lol it was a thought though
« Last Edit: February 20, 2009, 04:43:35 PM by zman977 »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8987
Re: Sandisk Sansa View
« Reply #77 on: February 20, 2009, 09:18:04 PM »
Quote from: zman977 on February 20, 2009, 04:01:49 PM
hey by the way i wonder how close the fuse is with the view?

Theres basically nothing in common except the DAC.  The View is based on an updated PP chip,  the Fuze an AMS chip.   

Quote from: zman977 on February 20, 2009, 04:01:49 PM
if the devs have a boot loader out yet for the fuse that is.

edit**
never mind they dont lol it was a thought though

There is a bootloader out there for the Fuze, but since the Fuze has essentially nothing in common, you might as well expect an Ipod or Cowan bootloader to work.
Logged

Offline obo

  • Developer
  • Member
  • *
  • Posts: 55
Re: Sandisk Sansa View
« Reply #78 on: March 17, 2009, 01:12:09 PM »
I recently got a "broken" View from ebay, which just needed recovery.  I've added documentation to the wiki describing the hidden partition layout - there are a few differences from the e200.  The firmware section starts with the magic "CPUI" followed by 0x60000 instead of "PPMI" followed by 0x20000.  If enough progress is made, Sansapatcher will need changing to cope with this (plus a little re-arrangement to allow for a third type of mi4 Sansa).

I'm struggling trying to run custom code on the View (a modified e200 bootloader)

I can modify an existing firmware file (editing plain.bin in this case):

Code: [Select]
mv firmware.mi4 firmware.orig.mi4
./mi4code decrypt -s firmware.orig.mi4 plain.bin
./mi4code build plain.bin plain.mi4
./mi4code encrypt plain.mi4 plain.enc.mi4 view
./mi4code sign plain.enc.mi4 firmware.mi4

but doing something similar with bootloader.bin:
Code: [Select]
./mi4code build bootloader.bin bootloader.plain.mi4
./mi4code encrypt bootloader.plain.mi4 bootloader.enc.mi4 view
./mi4code sign bootloader.enc.mi4 firmware.mi4
fails, the recovery screen displays "Bad File copied" as it loads the files from the 16Mb RAM disc.  Does anyone have any ideas what I am missing?
Logged

Offline j8048188

  • Member
  • *
  • Posts: 70
Re: Sandisk Sansa View
« Reply #79 on: March 17, 2009, 03:38:24 PM »
was the new checksum calculated correctly and inserted into the file?
Logged
Sansa e280v2

Offline crackmonkey421

  • Member
  • *
  • Posts: 16
Re: Sandisk Sansa View
« Reply #80 on: March 17, 2009, 03:42:11 PM »
You may need to sign before you encrypt instead of after; that's what I do, but it may work your way too.  Maybe the "offs_id" needs set when you build.  The firmware.mi4 for v1e200 rockbox gets accepted, so it must be similar to what you would do on an v1e200 to build an mi4 from a bin.  I'll try some things when I get home.

Edit:
When you modified the original firmware.mi4, did you change the file size?  Just wondering.  I looked into it a little more and the commands look correct from what I've read.  I'll try it to write and compile some custom code from scratch and build it in the same way.
« Last Edit: March 18, 2009, 03:52:01 AM by crackmonkey421 »
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Sandisk Sansa View
« Reply #81 on: March 17, 2009, 09:09:42 PM »
I trimmed some off-topic posts.  Please read the sticky and post in this thread only if you're contributing to the effort to port Rockbox to the Sansa View.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline obo

  • Developer
  • Member
  • *
  • Posts: 55
Re: Sandisk Sansa View
« Reply #82 on: March 18, 2009, 12:32:30 PM »
Quote from: crackmonkey421 on March 17, 2009, 03:42:11 PM
You may need to sign before you encrypt instead of after; that's what I do, but it may work your way too.  Maybe the "offs_id" needs set when you build.  The firmware.mi4 for v1e200 rockbox gets accepted, so it must be similar to what you would do on an v1e200 to build an mi4 from a bin.  I'll try some things when I get home.

Edit:
When you modified the original firmware.mi4, did you change the file size?  Just wondering.  I looked into it a little more and the commands look correct from what I've read.  I'll try it to write and compile some custom code from scratch and build it in the same way.

With the OF:
the order in which I sign and encrypt doesn't seem to matter, both worked.  Stripping the OF (mi4code decrypt -s), and building it again results in a larger file, but it still loads.

Quote from: j8048188 on March 17, 2009, 03:38:24 PM
was the new checksum calculated correctly and inserted into the file?

There is a checksum, but I'm not sure if it's correct or not (since it's a CRC with a custom initial polynomial.. I've haven't yet checked this).  But since the modified OF worked, I'd have to presume that the MI4 header is being setup in a way that the device accepts...

Edit:  The OF uses 01030100 at 0x4 (default mi4code build option), and 0xEC at 0x2E4 (the default build offs_id).
« Last Edit: March 18, 2009, 05:26:22 PM by obo »
Logged

Offline crackmonkey421

  • Member
  • *
  • Posts: 16
Re: Sandisk Sansa View
« Reply #83 on: March 18, 2009, 11:59:38 PM »
Yea, everything you've done looks correct as far as I've read.  I got "Invalid Image" after it restarts with a very small block of custom code.  I'm not sure what's causing this either.  I would think someone with v1e200 experience (maybe even v1c200) might know because the v1e200 rockbox firmware is accepted and ran, so the v1e200 probably has similar issues that were accounted for in the rockbox firmware.  One thought is to chop up the OF to figure out what parts are required to get it accepted and ran.  Another idea is to take a closer look at the e200's mi4 source code to get ideas or even to build from.
Logged

Offline obo

  • Developer
  • Member
  • *
  • Posts: 55
Re: Sandisk Sansa View
« Reply #84 on: March 20, 2009, 10:25:42 AM »
Well, it works if I copy the file over in MSC rather than recovery mode - I guess the checks are stricter at that point, and required a patched bootloader?

The modified bootloader I used fails to write anything, so I guess the SD interface is different or at another location.  I've found a few registers in the disassembly, but have yet to identify what any might be.

IRAM seems to be at 0x40000000 (normal PP), and I think it's 128K.
I2S init is at 0x70000000 (normal PP)
Other ones to look at are 0xc5000000, 0x7fc00000 and 0x80000000, but I'm sure there are more!  This is proving to be quite a learning curve.
Logged

Offline zman977

  • Member
  • *
  • Posts: 2
Re: Sandisk Sansa View
« Reply #85 on: March 21, 2009, 08:51:03 PM »
Quote from: obo on March 20, 2009, 10:25:42 AM

The modified bootloader I used fails to write anything, so I guess the SD interface is different or at another location.


So we need to find the location of the SD interface? Which would be a good place to look; the bootloader.rom or the firmware.mi4?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8987
Re: Sandisk Sansa View
« Reply #86 on: March 21, 2009, 08:52:20 PM »
Quote from: zman977 on March 21, 2009, 08:51:03 PM
Quote from: obo on March 20, 2009, 10:25:42 AM

The modified bootloader I used fails to write anything, so I guess the SD interface is different or at another location.


So we need to find the location of the SD interface? Which would be a good place to look; the bootloader.rom or the firmware.mi4?

It has to be in both, but the bootloader is a much smaller file.
Logged

Offline Y-brik

  • Member
  • *
  • Posts: 2
Re: Sandisk Sansa View
« Reply #87 on: May 17, 2009, 09:57:54 AM »
My original post seems to have been deleted, so I'll keep it short and sweet. I have a busted View (Screen cracked). All the boards work fine, I will gladly mail it out to whoever needs a backup in case of a bricked View
« Last Edit: October 21, 2009, 03:05:10 PM by Y-brik »
Logged

Offline obo

  • Developer
  • Member
  • *
  • Posts: 55
Re: Sandisk Sansa View
« Reply #88 on: June 01, 2009, 06:14:58 PM »
For my GSoC work I've been looking at both the bootloader and the main firmware (I've been using version 01.01.06a, available at http://daniel.haxx.se/sansa/view.html).  I'm finding a lot of references to registers which match those for the PP502x series, specifically:

Mailboxes (MBX_BASE)
Interrupts (CPU_INT_ & CPU_HI_INT_)
Timers (TIMER1_ & USEC_TIMER)
Processor Control (CPU_CTL)
Cache Control (CACHE_CTL)
GPIOs (up to at least GPIOI)

What I am not finding are any references to the registers for MMC/SD or either of the two LCD base/bridges, which has me a little worried that these might be completely different on this target.

Any advice, guidance or even confirmation of what I've found so far would be greatly appreciated!
Logged

Offline yelped

  • Member
  • *
  • Posts: 44
Re: Sandisk Sansa View
« Reply #89 on: June 01, 2009, 10:47:11 PM »
Well, about the SD Interface I don't know, but since the LCD is a different size and resolution, I would expect it to be different.
Logged

  • Print
Pages: 1 ... 4 5 [6] 7
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Sandisk Sansa View
 

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

Page created in 0.138 seconds with 22 queries.